/* Feats - landing & legal site
   Design tokens ported from the app's FeatsColors (lib/.../app_colors.dart):
   warm paper base, one reserved "win" green accent, precious gold for Plus. */

:root {
  --paper: #f4f3ef;
  --paper2: #e9e8e2;
  --surface: #fcfcfa;
  --surface2: #f5f4f0;
  --ink: #2a2722;
  --ink-soft: #6b6458;
  --ink-faint: #a6a093;
  --hairline: rgba(40, 38, 33, 0.1);
  --hairline2: rgba(40, 38, 33, 0.055);
  --win: #3e9c6e;
  --win-deep: #2e7a54;
  --win-tint: #dcebde;
  --on-win: #ffffff;
  --gold: #c28a2b;
  --gold-bright: #e2a93b;
  --gold-tint: #f3e8cc;
  --gold-ink: #7a551a;
  --shadow: 0 1px 2px rgba(40, 38, 33, 0.04), 0 12px 32px rgba(40, 38, 33, 0.06);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1040px;
  --font: "Bricolage Grotesque", ui-rounded, "SF Pro Rounded", system-ui,
    -apple-system, Segoe UI, Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #211e19;
    --paper2: #1b1813;
    --surface: #2b2720;
    --surface2: #322d25;
    --ink: #efe7d7;
    --ink-soft: #ada28d;
    --ink-faint: #756b58;
    --hairline: rgba(239, 231, 215, 0.12);
    --hairline2: rgba(239, 231, 215, 0.06);
    --win: #54b884;
    --win-deep: #3e9c6e;
    --win-tint: rgba(84, 184, 132, 0.16);
    --on-win: #11140f;
    --gold: #e2b154;
    --gold-bright: #f1c76e;
    --gold-tint: rgba(226, 177, 84, 0.16);
    --gold-ink: #f1c76e;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--win-deep);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- nav ------------------------------------------------------------ */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand:hover {
  text-decoration: none;
}
.glyph {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--win);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}
.glyph svg {
  width: 19px;
  height: 19px;
}
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}

/* ---- buttons -------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-win {
  background: var(--win);
  color: var(--on-win);
  box-shadow: var(--shadow);
}
.btn-win:hover {
  background: var(--win-deep);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover {
  background: var(--surface2);
  text-decoration: none;
}

/* ---- hero ----------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0 72px;
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--win-deep);
  margin: 0 0 18px;
}
h1 {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin: 0 0 20px;
}
.hero p.lede {
  font-size: 19px;
  color: var(--ink-soft);
  margin: 0 0 30px;
  max-width: 30ch;
}
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.cta-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--ink-faint);
}

/* ---- phone mock ----------------------------------------------------- */
.mock {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  max-width: 360px;
  margin-left: auto;
}
.mock-date {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.mock-h {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0 20px;
}
.feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--paper);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.feat .box {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--hairline);
  flex: none;
  display: grid;
  place-items: center;
}
.feat.done .box {
  background: var(--win);
  border-color: var(--win);
}
.feat.done .box svg {
  width: 13px;
  height: 13px;
}
.feat .label {
  font-weight: 600;
  font-size: 16px;
}
.feat.done .label {
  color: var(--ink-faint);
  text-decoration: line-through;
  text-decoration-color: var(--ink-faint);
}
.mock-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--win);
}

/* ---- sections ------------------------------------------------------- */
section.band {
  padding: 64px 0;
}
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.card .ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--win-tint);
  color: var(--win-deep);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}
.card .ic svg {
  width: 21px;
  height: 21px;
}
.card h3 {
  margin: 0 0 7px;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* ---- plus band ------------------------------------------------------ */
.plus {
  background: var(--gold-tint);
  border: 1px solid var(--hairline);
  border-radius: 24px;
  padding: 48px;
  text-align: center;
}
.plus .pill {
  display: inline-block;
  background: var(--gold);
  color: var(--on-win);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.plus h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.plus p {
  color: var(--gold-ink);
  margin: 0 auto 28px;
  max-width: 46ch;
}
.plus ul {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 560px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 26px;
  text-align: left;
}
.plus li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink);
  font-weight: 600;
  font-size: 15.5px;
}
.plus li svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex: none;
  margin-top: 3px;
}

/* ---- footer --------------------------------------------------------- */
footer {
  border-top: 1px solid var(--hairline);
  margin-top: 24px;
  padding: 40px 0 56px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.foot-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.foot-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
}
.foot-copy {
  color: var(--ink-faint);
  font-size: 14px;
}

/* ---- legal pages ---------------------------------------------------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 8px 24px 80px;
}
.legal .back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 15px;
  margin: 8px 0 32px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 44px);
  margin: 0 0 8px;
}
.legal .updated {
  color: var(--ink-faint);
  font-size: 15px;
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
  margin: 38px 0 12px;
}
.legal h3 {
  font-size: 18px;
  margin: 26px 0 8px;
}
.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 16.5px;
}
.legal ul {
  padding-left: 22px;
}
.legal li {
  margin-bottom: 8px;
}
.legal strong {
  color: var(--ink);
}
.legal .lead {
  font-size: 18px;
  color: var(--ink);
}
.callout {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p {
  margin: 0;
}

/* ---- responsive ----------------------------------------------------- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 36px 0 48px;
  }
  .mock {
    margin: 0 auto;
  }
  .hero p.lede {
    max-width: none;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .plus ul {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .plus {
    padding: 36px 24px;
  }
}
