/* ============================================================
   Astuto launch site — shared stylesheet
   ============================================================
   All pages link to this file for nav, footer, typography,
   and shared components.

   TO DO BEFORE GOING LIVE:
   - Remove <meta name="robots" content="noindex, nofollow">
     from every page header
   - Replace app store badge placeholders with official artwork
   - Fill in social handles and final legal copy
   - Fill prize values per market in prize-rules.html
   ============================================================ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  --mint:        #5ECFBF;
  --mint-deep:   #34b5a4;
  --mint-soft:   #eafaf7;
  --gold:        #E0A93B;
  --gold-soft:   #fdf6e6;
  --ink:         #111827;
  --muted:       #4B5563;
  --dim:         #6B7280;
  --line:        #eef0f2;
  --bg:          #f9fafb;
  --white:       #ffffff;

  --font:        'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-script: 'Dancing Script', cursive;

  --max-w:       1000px;
  --radius:      12px;
  --radius-lg:   18px;
  --shadow:      0 4px 16px rgba(17,24,39,.08);
  --shadow-lg:   0 20px 50px rgba(17,24,39,.14);
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.5; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography ─────────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mint-deep);
  text-align: center;
}
.section-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--ink);
  text-align: center;
  margin: 8px 0 32px;
}

/* ── Layout helpers ─────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; }
.section   { padding: 56px 30px; }
.section-alt {
  background: var(--white);
  border-top:    1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  height: 60px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: 30px;
  color: #1e2540;
  line-height: 1;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-cta {
  font-size: 13px;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(180deg, #1fb9a8, #0c897b);
  padding: 9px 17px;
  border-radius: 10px;
  transition: opacity .15s;
}
.nav-cta:hover { opacity: .88; }

/* ── App store badges ───────────────────────────────────── */
/* TODO: replace these with official Apple / Google badge images */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0f1115;
  color: var(--white);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 13px;
  text-decoration: none;
  transition: opacity .15s;
  border: 1px solid rgba(255,255,255,.1);
}
.badge:hover { opacity: .85; }
.badge .g { font-size: 22px; line-height: 1; }
.badge .t { text-align: left; line-height: 1.15; }
.badge .t small { font-size: 9px; opacity: .75; display: block; font-weight: 600; }
.badge .t b { font-size: 14px; font-weight: 800; }
.badges-center { justify-content: center; }

/* ── Trust strip ────────────────────────────────────────── */
.tstrip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 30px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.tstrip b { color: var(--mint-deep); }

/* ── How it works steps ─────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 860px;
  margin: 0 auto;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.section-alt .step { background: var(--bg); }
.step-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--mint-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin: 0 auto 14px;
}
.step h3 { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 7px; }
.step p  { font-size: 13px; color: var(--dim); line-height: 1.55; }
.mini-timer {
  height: 5px; border-radius: 99px;
  background: var(--line);
  margin-top: 14px; overflow: hidden;
}
.mini-timer-fill {
  display: block; height: 100%; width: 58%;
  background: linear-gradient(90deg, var(--mint), var(--mint-deep));
  border-radius: 99px;
  animation: timerfill 1.6s ease-out both;
}
@keyframes timerfill { from { width: 0; } to { width: 58%; } }
.mini-pips {
  display: flex; gap: 5px; justify-content: center; margin-top: 14px;
}
.mini-pips span { width: 15px; height: 15px; border-radius: 5px; }
.pip-c { background: #22c55e; }
.pip-w { background: #d1d5db; }
@media (prefers-reduced-motion: reduce) { .mini-timer-fill { animation: none; } }

/* ── Prize panel ────────────────────────────────────────── */
.prize-panel {
  max-width: 660px;
  margin: 0 auto;
  border-radius: 22px;
  padding: 36px 32px 30px;
  text-align: center;
  background: radial-gradient(120% 120% at 50% 0%, #243156 0%, #18213a 58%, #141b30 100%);
  border: 1px solid #2c3a5e;
  box-shadow: 0 24px 54px rgba(20,27,48,.45);
  position: relative;
  overflow: hidden;
}
.prize-panel::before {
  content: "";
  position: absolute; top: -70px; left: 50%; transform: translateX(-50%);
  width: 320px; height: 220px;
  background: radial-gradient(circle, rgba(224,169,59,.22), transparent 70%);
}
.pp-chip {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 800; color: #e6edf0;
}
.pp-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.25); }
.pp-headline {
  position: relative;
  font-size: 28px; font-weight: 900; color: #fff;
  letter-spacing: -.02em;
  margin: 18px 0 4px; line-height: 1.18;
}
.pp-headline .gold {
  background: linear-gradient(180deg, #f8e3a6, #E0A93B 75%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pp-div {
  position: relative; height: 1px;
  background: rgba(255,255,255,.12);
  margin: 22px auto; max-width: 300px;
}
.pp-pillars {
  position: relative;
  display: flex; justify-content: center; gap: 22px; flex-wrap: wrap;
}
.pp-pillar {
  font-size: 13px; font-weight: 700; color: #c5d2ea;
  display: flex; align-items: center; gap: 7px;
}
.pp-pillar .check { color: var(--mint); font-weight: 900; }
.pp-note {
  position: relative;
  font-size: 12px; font-weight: 700; color: #8392b3; margin-top: 20px;
}

/* ── Why section ────────────────────────────────────────── */
.why {
  max-width: 660px; margin: 0 auto; text-align: center;
}
.why .lead {
  font-size: 22px; font-weight: 800;
  color: var(--ink); line-height: 1.45;
  letter-spacing: -.01em;
}
.why .lead .big    { font-size: 1.3em; font-weight: 900; }
.why .lead .script { font-family: var(--font-script); font-weight: 700; color: var(--mint-deep); font-size: 1.2em; }
.why p { font-size: 14.5px; color: var(--dim); line-height: 1.6; margin: 14px auto 0; max-width: 500px; }

/* ── Stats ──────────────────────────────────────────────── */
.stats {
  display: flex; justify-content: center;
  gap: 40px; flex-wrap: wrap;
  max-width: 720px; margin: 0 auto;
}
.stat { text-align: center; }
.stat .v { font-size: 32px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; }
.stat .l { font-size: 12px; font-weight: 700; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }

/* ── CTA band ───────────────────────────────────────────── */
.cta-band {
  padding: 52px 30px;
  text-align: center;
  background: radial-gradient(120% 100% at 50% 0%, #eafaf7, #f9fafb);
}
.cta-band h2 { font-size: 28px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; margin-bottom: 8px; }
.cta-band p  { font-size: 15px; color: var(--muted); margin-bottom: 24px; }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: #0f1115;
  color: #cbd5e1;
  padding: 44px 30px 28px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-col h4 {
  font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
  color: #7f969a; margin: 0 0 14px;
}
.footer-col a {
  display: block; font-size: 13px;
  color: #cbd5e1; text-decoration: none;
  margin-bottom: 9px; font-weight: 600;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-brand .logo { color: #fff; font-size: 34px; display: block; }
.footer-brand p {
  font-size: 12.5px; color: #8fa3a7;
  line-height: 1.55; margin: 10px 0 0; max-width: 220px;
}
.footer-socials { display: flex; gap: 10px; margin-top: 16px; }
.soc {
  width: 36px; height: 36px; border-radius: 50%;
  background: #1b1f24; border: 1px solid #2a3040;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.soc:hover { background: #252b36; }
.soc svg { width: 17px; height: 17px; fill: #cbd5e1; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid #1e2530;
  display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  font-size: 11.5px; color: #7f969a;
}
.footer-bottom .entity { line-height: 1.55; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 680px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 17px 20px;
  margin-bottom: 10px;
}
.faq-q {
  font-size: 15px; font-weight: 800; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  gap: 12px;
}
.faq-q .toggle { color: var(--mint-deep); font-weight: 900; font-size: 18px; flex-shrink: 0; line-height: 1; }
.faq-a { font-size: 13.5px; color: var(--dim); line-height: 1.6; margin-top: 10px; }

/* ── Legal doc layout ───────────────────────────────────── */
.doc-page { max-width: 680px; margin: 0 auto; }
.doc-body {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 34px;
}
.doc-updated {
  font-size: 11px; font-weight: 700; color: var(--dim);
  text-transform: uppercase; letter-spacing: .05em;
}
.doc-body h2 { font-size: 26px; font-weight: 900; color: var(--ink); letter-spacing: -.02em; margin: 8px 0 22px; }
.doc-body h3 { font-size: 14.5px; font-weight: 800; color: var(--ink); margin: 24px 0 7px; }
.doc-body p  { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-bottom: 10px; }
.doc-body ul { padding-left: 20px; font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.doc-body li { margin-bottom: 4px; }

/* ── Contact page ───────────────────────────────────────── */
.contact-grid {
  max-width: 680px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.cbox {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px; text-align: center;
  box-shadow: var(--shadow);
}
.cbox .em { font-size: 28px; margin-bottom: 10px; }
.cbox h3  { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.cbox p   { font-size: 13.5px; color: var(--dim); line-height: 1.55; }
.cbox a   { color: var(--mint-deep); font-weight: 800; }

/* ── Internal page hero (sub-pages) ─────────────────────── */
.page-hero {
  background: radial-gradient(120% 90% at 50% 0%, #eafaf7, #f9fafb);
  padding: 44px 30px 36px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: 34px; font-weight: 900; letter-spacing: -.025em; color: var(--ink); margin-top: 8px; }
.page-hero p  { font-size: 15px; color: var(--muted); margin-top: 8px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-links { display: none; }
  .steps, .footer-cols { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 44px 20px; }
}
@media (max-width: 520px) {
  .section-title { font-size: 22px; }
  .pp-headline    { font-size: 22px; }
}
