/* SnapGM — snapgm.com
   Palette mirrors the app (ios/CoManager/DesignSystem/Theme.swift): field green, hype orange,
   trophy gold, grape, bubblegum. Light by default, dark via prefers-color-scheme. */

:root {
  --green: #12b76a;
  --green-2: #32d583;
  --green-ink: #067647;
  --orange: #ff6a1f;
  --gold: #f5b301;
  --grape: #7c4dff;
  --pink: #ff3d7f;
  --sky: #1e90ff;

  --bg: #f3f5fa;
  --bg-2: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #475467;
  --muted-2: #667085;
  --border: rgba(15, 23, 42, .08);
  --border-2: rgba(15, 23, 42, .14);
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .08);
  --shadow-lg: 0 30px 80px rgba(15, 23, 42, .22);
  --hero-wash: radial-gradient(900px 520px at 85% -10%, rgba(18, 183, 106, .20), transparent 65%),
               radial-gradient(700px 480px at -5% 30%, rgba(255, 106, 31, .12), transparent 60%);

  --hype: linear-gradient(100deg, #ff6a1f 0%, #ff3d7f 55%, #f5b301 100%);
  --field: linear-gradient(135deg, #12b76a 0%, #0ba5a4 100%);

  --radius: 18px;
  --radius-lg: 28px;
  --display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.22, .68, .32, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --green: #32d583;
    --green-ink: #6ce9a6;
    --orange: #ff8a4c;
    --gold: #ffc93d;
    --grape: #9f82ff;
    --pink: #ff6b9a;

    --bg: #0e1320;
    --bg-2: #121829;
    --card: #1a2133;
    --text: #f2f4f7;
    --muted: #b4bccb;
    --muted-2: #8b94a7;
    --border: rgba(255, 255, 255, .09);
    --border-2: rgba(255, 255, 255, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
    --hero-wash: radial-gradient(900px 520px at 85% -10%, rgba(50, 213, 131, .18), transparent 65%),
                 radial-gradient(700px 480px at -5% 30%, rgba(255, 138, 76, .12), transparent 60%);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--green); color: #fff; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--green); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 10px; }
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 14px; font-weight: 900; }
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 14px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-ink);
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.hype-text { background: var(--hype); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.topbar.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 1.25rem; letter-spacing: -.02em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 4px 12px rgba(255, 106, 31, .25); }
.navlinks { display: flex; align-items: center; gap: 6px; }
.navlinks a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; padding: 8px 12px; border-radius: 999px; transition: background .15s, color .15s; }
.navlinks a:hover { color: var(--text); background: var(--border); }
.navlinks a[aria-current="page"] { color: var(--text); }
.btn.burger { display: none; }
.mobile { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 999px;
  font-family: var(--display); font-weight: 800; font-size: 1.02rem; text-decoration: none; letter-spacing: -.005em;
  border: 0; cursor: pointer; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn:active { transform: scale(.97); }
.btn-hype { background: var(--hype); color: #fff; box-shadow: 0 10px 28px rgba(255, 61, 127, .28); }
.btn-hype:hover { box-shadow: 0 14px 36px rgba(255, 61, 127, .38); }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { border-color: var(--green); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.appstore {
  display: inline-flex; align-items: center; gap: 12px; min-height: 58px; padding: 0 22px 0 18px;
  background: #000; color: #fff; border-radius: 16px; text-decoration: none; border: 1px solid rgba(255, 255, 255, .18);
}
.appstore svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.appstore small { display: block; font-size: .72rem; opacity: .8; line-height: 1.1; letter-spacing: .01em; }
.appstore strong { display: block; font-family: var(--display); font-size: 1.12rem; line-height: 1.15; }
.appstore[aria-disabled="true"] { cursor: default; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 56px 0 88px; background: var(--hero-wash); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.hero-icon { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 18px 48px rgba(255, 106, 31, .30); margin-bottom: 22px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: .88rem; font-weight: 600; color: var(--muted); margin-bottom: 18px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(18, 183, 106, .18); }
.hero h1 { margin: 0 0 18px; }
.hero .lead { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.fine { color: var(--muted-2); font-size: .92rem; margin-top: 16px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--border); font-size: .88rem; font-weight: 700;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.phone {
  width: 100%; max-width: 300px; border-radius: 44px; overflow: hidden;
  border: 10px solid #0b0f1a; background: #0b0f1a; box-shadow: var(--shadow-lg);
}
.phone img { width: 100%; height: auto; border-radius: 34px; }
.hero-phones .phone.back { position: absolute; max-width: 250px; transform: translate(-58%, 34px) rotate(-7deg); opacity: .96; }
.hero-phones .phone.front { position: relative; transform: translateX(22%) rotate(3deg); z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; margin-bottom: 18px;
  font-family: var(--display); font-weight: 900; font-size: 1.3rem; color: #fff; background: var(--field);
}
.step:nth-child(2)::before { background: var(--hype); }
.step:nth-child(3)::before { background: linear-gradient(135deg, var(--grape), var(--pink)); }
.step p { color: var(--muted); margin: 0; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.card .emoji { font-size: 2rem; line-height: 1; margin-bottom: 14px; display: block; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card .tag { display: inline-block; margin-top: 14px; font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--grape); }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 22px;
  overflow-x: auto; padding: 8px 4px 26px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.shot { margin: 0; scroll-snap-align: start; }
.shot .phone { border-width: 8px; border-radius: 38px; }
.shot .phone img { border-radius: 30px; }
.shot figcaption { color: var(--muted); font-size: .93rem; font-weight: 600; text-align: center; margin-top: 14px; }

.honest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.honest .card h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- Pro ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.35rem; margin-bottom: 6px; }
.plan .price { font-family: var(--display); font-weight: 900; font-size: 2.4rem; letter-spacing: -.03em; line-height: 1.1; margin: 10px 0 4px; }
.plan .price small { font-size: 1rem; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.plan .sub { color: var(--muted); font-size: .95rem; min-height: 1.6em; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; font-size: .97rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 900; color: var(--green); }
.plan li.no { color: var(--muted-2); }
.plan li.no::before { content: "–"; color: var(--muted-2); }
.plan.monthly { border: 2px solid var(--orange); }
.plan.season { border: 2px solid var(--grape); background: linear-gradient(180deg, color-mix(in srgb, var(--grape) 8%, var(--card)), var(--card) 60%); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; min-height: 28px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; color: #fff; font-family: var(--display); font-weight: 800; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.badge.orange { background: linear-gradient(135deg, var(--orange), var(--pink)); }
.badge.grape { background: linear-gradient(135deg, var(--grape), var(--pink)); }
.badge.green { background: var(--field); }
.badge.gray { background: var(--muted-2); }
.pro-note { color: var(--muted-2); font-size: .9rem; text-align: center; margin-top: 22px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 56px 28px; border-radius: 36px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(600px 300px at 90% 0%, rgba(245, 179, 1, .35), transparent 70%), var(--field);
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; }
.cta .btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ---------- Docs (privacy / terms / support) ---------- */
.doc { padding: 56px 0 88px; }
.doc .container { max-width: 800px; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
.doc .updated { color: var(--muted-2); font-size: .95rem; margin-bottom: 30px; }
.doc h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.doc h3 { font-size: 1.08rem; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--text); }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--green-ink); text-underline-offset: 3px; }
.summary { padding: 22px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--green) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--green) 30%, transparent); margin: 8px 0 20px; }
.summary p:last-child, .summary ul:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 10px 0 18px; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--card); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--muted); }
th { color: var(--text); font-weight: 700; background: color-mix(in srgb, var(--text) 4%, var(--card)); }
tr:last-child td { border-bottom: 0; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-weight: 900; color: var(--green); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); margin: 8px 0 34px; }
.contact-card p { margin: 0; }

/* ---------- Footer ---------- */
.footer { padding: 40px 0 48px; border-top: 1px solid var(--border); background: var(--bg-2); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer small { color: var(--muted-2); font-size: .86rem; max-width: 640px; display: block; }
.legal { display: flex; flex-wrap: wrap; gap: 18px; }
.legal a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; }
.legal a:hover { color: var(--text); }

/* ---------- Motion ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn:active { transition: none; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero-phones { min-height: 500px; }
  .grid3, .pricing { grid-template-columns: 1fr 1fr; }
  .pricing .plan.free { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 32px); }
  .navlinks { display: none; }
  .btn.burger { display: inline-flex; }
  .mobile { display: none; flex-direction: column; gap: 2px; padding: 8px 0 16px; }
  .mobile.open { display: flex; }
  .mobile a { text-decoration: none; font-weight: 700; padding: 12px 6px; border-radius: 12px; }
  .mobile a:hover { background: var(--border); }
  .hero { padding: 32px 0 64px; }
  .hero-icon { width: 76px; height: 76px; border-radius: 18px; }
  .hero-phones { min-height: 440px; }
  .hero-phones .phone.front { max-width: 230px; }
  .hero-phones .phone.back { max-width: 190px; }
  .section { padding: 64px 0; }
  .steps, .grid3, .honest, .pricing { grid-template-columns: 1fr; }
  .cta { padding: 44px 20px; border-radius: 28px; }
  .shots { grid-auto-columns: minmax(200px, 72vw); }
}

section[id] { scroll-margin-top: 76px; }
