/* Go Good website. Colors and shapes match the app (app/context/theme.tsx). */
:root {
  --bg: #FAF8F3;
  --surface: #FFFFFF;
  --surface-alt: #F4F2ED;
  --text: #1C1C1E;
  --sub: #6B6860;
  --muted: #A8A49C;
  --brand: #0F7855;
  --teal: #23B385;
  --chip: #E8F5F0;
  --chip-text: #0F7855;
  --line: rgba(0, 0, 0, 0.07);
  --btn: linear-gradient(180deg, #12865F 0%, #0E7250 100%);
  --shadow: 0 3px 11px rgba(58, 46, 30, 0.07);
  --shadow-lg: 0 18px 50px rgba(58, 46, 30, 0.14);
  --amber: #E89B2E;
  --red: #E0574A;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #1E1E1E;
    --surface-alt: #262626;
    --text: #E8E4DC;
    --sub: rgba(232, 228, 220, 0.66);
    --muted: rgba(232, 228, 220, 0.40);
    --brand: #E8E4DC;
    --teal: #7FB394;
    --chip: rgba(79, 120, 97, 0.18);
    --chip-text: #9CC8AE;
    --line: rgba(255, 255, 255, 0.08);
    --btn: linear-gradient(180deg, #5A8169 0%, #4A705A 100%);
    --shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
@media (prefers-color-scheme: dark) { a { color: var(--teal); } }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.5px; text-decoration: none; color: var(--brand); }
.logo span { color: var(--teal); }
.nav { display: flex; gap: 24px; align-items: center; }
.nav a { color: var(--sub); text-decoration: none; font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
@media (max-width: 680px) { .nav .hide-sm { display: none; } }

/* ── Buttons and pills ────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 14px; border: 0;
  background: var(--btn); color: #fff; font: 700 16px var(--sans); text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 13px rgba(8, 80, 65, 0.18);
  border-bottom: 1.5px solid rgba(0, 40, 25, 0.16);
}
.btn-secondary { background: var(--surface); color: var(--text); box-shadow: var(--shadow); border-bottom-color: var(--line); }
.btn .i { background: #fff; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; background: var(--chip); color: var(--chip-text);
  font-size: 13px; font-weight: 700;
}
.nav .btn { padding: 10px 16px; font-size: 14px; border-radius: 12px; color: #fff; }

/* Icons: shapes from the app's icon set, colored here */
.i {
  display: inline-block; width: 22px; height: 22px; flex: none;
  background: currentColor;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
}
.badge {
  width: 52px; height: 52px; border-radius: 50%; background: var(--chip); color: var(--chip-text);
  display: inline-flex; align-items: center; justify-content: center;
}
.badge .i { width: 24px; height: 24px; }

/* ── Sections ─────────────────────────────────────────── */
section { padding: 72px 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--teal); margin: 0 0 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.5px; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.05; }
h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; }
h3 { font-size: 20px; line-height: 1.3; }
.lead { font-size: 19px; color: var(--sub); max-width: 560px; margin: 18px 0 0; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.hero-note { font-size: 14px; color: var(--muted); margin-top: 14px; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
}

/* Phone mock (drawn, until real screenshots are in) */
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; aspect-ratio: 300 / 620;
  border-radius: 46px; padding: 12px; background: #1A1A1A; box-shadow: var(--shadow-lg);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 26px; border-radius: 14px; background: #000; z-index: 2;
}
.screen { text-align: left; height: 100%; border-radius: 35px; background: #FAF8F3; overflow: hidden; padding: 54px 14px 14px; color: #1C1C1E; }
.screen .s-title { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 4px 10px; }
.screen .tabs { display: flex; gap: 6px; background: #F0EDE6; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.screen .tabs span { flex: 1; text-align: center; font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 9px; color: #6B6860; }
.screen .tabs .on { background: #fff; color: #1C1C1E; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.row { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 10px 12px; margin-bottom: 8px; box-shadow: 0 2px 8px rgba(58,46,30,0.06); }
.row .emoji { width: 34px; height: 34px; border-radius: 10px; background: #F4F2ED; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.row .name { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.25; }
.row .name small { display: block; font-weight: 400; color: #8B877F; font-size: 11px; }
.tag { font-size: 10.5px; font-weight: 700; padding: 4px 8px; border-radius: 8px; white-space: nowrap; }
.tag.red { background: #FCE8E5; color: #C2463A; }
.tag.amber { background: #FDF1DE; color: #B06E12; }
.tag.green { background: #E1F5EE; color: #0F7855; }
.tag.blue { background: #E4EEFB; color: #2D63B0; }

/* Snap band */
.snap { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.snap .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.steps { display: grid; gap: 14px; margin-top: 28px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step b { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--chip); color: var(--chip-text); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.step p { margin: 3px 0 0; color: var(--sub); }
.snap-card { background: var(--bg); border-radius: 24px; padding: 28px 24px; text-align: center; box-shadow: var(--shadow); max-width: 360px; margin: 0 auto; }
.snap-card .badge { width: 60px; height: 60px; background: var(--teal); color: #fff; margin-bottom: 12px; }
.snap-card h3 { font-size: 22px; }
.snap-card p { color: var(--sub); font-size: 14.5px; margin: 8px 0 0; }
.snap-card .free { color: var(--brand); font-weight: 700; font-size: 13px; margin-top: 12px; }
.snap-card .btn { width: 100%; margin-top: 16px; }
.choices { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.choices span { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
@media (max-width: 860px) { .snap .wrap { grid-template-columns: 1fr; } .snap .wrap > div:last-child { order: -1; } }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 40px; }
.card { background: var(--surface); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); border-bottom: 1.5px solid var(--line); }
.card h3 { margin-top: 16px; }
.card p { color: var(--sub); margin: 8px 0 0; font-size: 15px; }

/* Savings */
.savings .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stat-card { background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg); max-width: 400px; margin: 0 auto; width: 100%; }
.stat-card .label { font-size: 13px; color: var(--sub); font-weight: 600; }
.stat-card .big { font-family: var(--serif); font-size: 56px; font-weight: 600; color: var(--brand); line-height: 1; margin: 6px 0 4px; }
@media (prefers-color-scheme: dark) { .stat-card .big { color: var(--teal); } }
.stat-row { display: flex; gap: 10px; margin-top: 20px; }
.stat-row div { flex: 1; background: var(--surface-alt); border-radius: 14px; padding: 12px; }
.stat-row strong { display: block; font-size: 20px; }
.stat-row span { font-size: 12px; color: var(--sub); }
.bar { height: 10px; border-radius: 6px; background: var(--surface-alt); margin-top: 18px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 86%; background: var(--btn); border-radius: 6px; }
@media (max-width: 860px) { .savings .wrap { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--surface); border-radius: 22px; padding: 28px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; position: relative; }
.plan.best { box-shadow: 0 0 0 2px var(--teal), var(--shadow-lg); }
.plan .flag { position: absolute; top: -12px; left: 24px; background: var(--teal); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan .price { font-family: var(--serif); font-size: 40px; font-weight: 600; margin-top: 10px; }
.plan .price small { font-family: var(--sans); font-size: 15px; color: var(--sub); font-weight: 500; }
.plan .yearly { font-size: 14px; color: var(--sub); margin-top: 2px; min-height: 22px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .i { width: 18px; height: 18px; color: var(--teal); margin-top: 3px; }
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; } }

/* FAQ */
.faq { max-width: 720px; margin: 36px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--sub); margin: 10px 0 0; }

/* Notify */
.notify { text-align: center; }
.notify-box { background: var(--surface); border-radius: 28px; padding: 48px 24px; box-shadow: var(--shadow); }
.notify form { max-width: 460px; margin: 18px auto 0; }
.notify .field-row { display: flex; gap: 10px; }
.notify input[hidden], .notify label[hidden], .notify p[hidden] { display: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; margin-top: 22px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--sub); font: 600 14px var(--sans); padding: 9px 18px; border-radius: 999px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--brand); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.notify .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 10px; align-items: flex-start; text-align: left; margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--sub); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); padding: 0; }
.consent a { color: var(--brand); }
.form-msg { min-height: 20px; margin-top: 12px; font-size: 14px; font-weight: 600; }
.form-msg.ok { color: var(--brand); }
.form-msg.err { color: #C24A3A; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.notify input[type=email], .notify input[type=tel] {
  flex: 1; min-width: 0; padding: 15px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: 16px var(--sans);
}
.notify .fine { font-size: 13px; color: var(--muted); margin-top: 12px; }
@media (max-width: 520px) { .notify .field-row { flex-direction: column; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--sub); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; justify-content: space-between; align-items: center; }
.site-footer .links { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--sub); text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: var(--text); }

/* ── Legal pages ──────────────────────────────────────── */
.legal { padding: 40px 0 72px; }
.legal .doc { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: 24px; padding: 40px clamp(20px, 5vw, 48px); box-shadow: var(--shadow); }
.legal h1 { font-size: clamp(32px, 5vw, 44px); }
.legal .updated { color: var(--muted); font-size: 14px; margin: 8px 0 24px; }
.legal h2 { font-size: 22px; margin: 34px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal p, .legal li { color: var(--sub); }
.legal b { color: var(--text); }
.legal ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal .back { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; text-decoration: none; margin-bottom: 18px; font-size: 15px; }

/* Small pages (open-the-app bridge) */
.small-page { max-width: 440px; margin: 0 auto; padding: 72px 16px; text-align: center; }
.small-page .btn { width: 100%; margin-top: 28px; }
.small-page p { color: var(--sub); }
