/* PinThePrice marketing site — global stylesheet.
   Design tokens mirror UI_APP_SPECIFICATION.md so the site matches the app. */

:root {
  --brand-primary: #0286FF;
  --brand-accent: #FF7A00;
  --success: #0CC56B;
  --bg-canvas: #F6F8FA;
  --bg-surface: #FFFFFF;
  --text-main: #1A1E25;
  --text-muted: #858585;
  --radius-master: 18px;
  --radius-interactive: 10px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --maxw: 68rem;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background: var(--bg-canvas);
  line-height: 1.6;
}

a { color: var(--brand-primary); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-surface);
  box-shadow: 0 1px 10px rgba(0, 0, 0, 0.05);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-primary);
  text-decoration: none;
  white-space: nowrap;
}
.nav {
  display: flex;
  gap: 1.25rem;
  margin-right: auto;
}
.nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
}
.nav a:hover { color: var(--brand-primary); }

/* ── Header login form ──────────────────────────────────── */
.login-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.login-form input {
  padding: 0.5rem 0.7rem;
  border: 1px solid #e2e6ea;
  border-radius: var(--radius-interactive);
  font: inherit;
  min-width: 9.5rem;
}
.login-form input:focus {
  outline: none;
  border-color: var(--brand-primary);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-interactive);
  background: var(--brand-primary);
  color: #fff;
}
.btn.accent { background: var(--brand-accent); }
.btn.ghost { background: transparent; color: var(--brand-primary); border: 1px solid var(--brand-primary); }
.btn:hover { filter: brightness(0.96); }

/* ── Layout ─────────────────────────────────────────────── */
main { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem; }
.hero { text-align: center; padding: 2rem 0 1rem; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 1rem; }
.hero p.lead { font-size: 1.2rem; color: var(--text-muted); max-width: 42rem; margin: 0 auto; }

.section { margin-top: 3rem; }
.section h2 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.text-center { text-align: center; }

.card {
  background: var(--bg-surface);
  border-radius: var(--radius-master);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}
.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  margin-top: 1.25rem;
}
.grid .card h3 { margin-top: 0; color: var(--brand-primary); }

.pill {
  display: inline-block;
  background: rgba(2, 134, 255, 0.1);
  color: var(--brand-primary);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 700;
}

/* ── Store badges ───────────────────────────────────────── */
.stores { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 2rem; }
.store-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  background: var(--text-main);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-interactive);
  min-width: 12rem;
}
.store-badge .glyph { font-size: 1.6rem; line-height: 1; }
.store-badge .top { font-size: 0.7rem; opacity: 0.8; display: block; }
.store-badge .bottom { font-size: 1.05rem; font-weight: 700; display: block; }

/* ── Map ────────────────────────────────────────────────── */
.map-frame {
  width: 100%;
  height: 460px;
  border: 0;
  border-radius: var(--radius-master);
  box-shadow: var(--shadow);
}

/* ── Privacy / prose ────────────────────────────────────── */
.prose h2 { margin-top: 2rem; }
.prose ul { padding-left: 1.2rem; }
.updated { color: var(--text-muted); font-size: 0.9rem; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid #e6eaee;
  margin-top: 4rem;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-inner a { text-decoration: none; }
.footer-inner .spacer { margin-left: auto; }
