/* Pocket Angler — "field journal at first light". Tokens mirror the app's Palette (§11.1). */
:root {
  --bg: #F4F1EA;
  --surface: #FFFFFF;
  --ink: #1B2621;
  --ink-muted: #5E6B64;
  --moss: #2F5D50;
  --moss-tint: #DCE6DF;
  --brass: #B7802A;
  --brass-tint: #F3E7D2;
  --river: #3C6E8F;
  --river-tint: #E6EDF0;
  --prime: #2E7D4F;
  --hairline: #E2DDD2;
  --chip: #EDE8DD;
  --on-brass: #1B2621;
  --shadow: 0 1px 2px rgba(27, 38, 33, .04), 0 8px 24px rgba(27, 38, 33, .06);

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius: 20px;
  --wrap: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1714;
    --surface: #18231F;
    --ink: #EEF0EA;
    --ink-muted: #9AA79F;
    --moss: #5E9C88;
    --moss-tint: #1E302A;
    --brass: #D9A24A;
    --brass-tint: #332A1C;
    --river: #6FA3C4;
    --river-tint: #1C2C33;
    --prime: #5BBF85;
    --hairline: #26332E;
    --chip: #22302B;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--moss); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(38px, 6vw, 64px); }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--ink-muted); max-width: 34em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--hairline);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav { display: none; } .header-inner .btn { margin-left: auto; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px;
  font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap;
}
.btn-store { background: var(--ink); color: var(--bg); }
.btn-store svg { width: 18px; height: 18px; fill: currentColor; }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; margin-bottom: 3px; }
.btn-store .stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1; }
.btn-store.soon { cursor: default; }
.btn-ghost { color: var(--moss); border: 1.5px solid color-mix(in srgb, var(--moss) 45%, transparent); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lede { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { width: 16px; height: 16px; stroke: var(--moss); }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-phone { order: 2; }
}

/* ---------- Phone mock (the app's Today screen, drawn in HTML) ---------- */
.hero-phone { display: flex; justify-content: center; position: relative; }
.hero-phone::before {
  content: ""; position: absolute; inset: 8% -10% -6% -10%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--moss) 22%, transparent), transparent);
  z-index: 0;
}
.phone {
  position: relative; z-index: 1;
  width: min(340px, 100%); aspect-ratio: 9 / 19;
  background: #F4F1EA; color: #1B2621;
  border-radius: 46px; padding: 14px;
  border: 10px solid #1B2621;
  box-shadow: 0 30px 60px -20px rgba(27, 38, 33, .45);
  overflow: hidden;
  font-family: var(--sans);
  display: flex; flex-direction: column;
}
@media (prefers-color-scheme: dark) {
  .phone { border-color: #34433D; box-shadow: 0 0 0 1px #46564F, 0 30px 60px -20px rgba(0, 0, 0, .8); }
}
.p-tabbar {
  margin: auto -14px -14px; padding: 8px 8px 16px;
  background: #fff; border-top: 1px solid #E2DDD2;
  display: flex; justify-content: space-around; align-items: flex-end;
}
.p-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 8px; color: #5E6B64; width: 48px; }
.p-tab svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.p-tab.on { color: #2F5D50; font-weight: 700; }
.p-plus { width: 44px; height: 44px; border-radius: 50%; background: #2F5D50; display: flex; align-items: center; justify-content: center; margin-top: -22px; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.p-plus svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }
.phone-island { width: 96px; height: 26px; border-radius: 20px; background: #1B2621; margin: 0 auto 14px; }
.p-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: #5E6B64; }
.p-title { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.1; margin: 2px 0 2px; }
.p-sub { font-size: 11px; color: #5E6B64; margin-bottom: 12px; }
.p-card { background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.05); display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.p-ring { position: relative; width: 78px; height: 78px; flex: none; }
.p-ring svg { width: 78px; height: 78px; transform: rotate(-90deg); }
.p-ring .num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.p-ring .num b { font: 600 26px/1 var(--rounded); }
.p-ring .num span { font-size: 8px; font-weight: 800; letter-spacing: .08em; color: #2E7D4F; margin-top: 2px; }
.p-headline { font-family: var(--serif); font-weight: 600; font-size: 14px; line-height: 1.2; margin-bottom: 6px; }
.p-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.p-pill { font-size: 9px; font-weight: 600; color: #2F5D50; background: #DCE6DF; border-radius: 99px; padding: 3px 7px; }
.p-window { font-size: 10px; }
.p-label { font-size: 11px; font-weight: 700; margin: 2px 0 6px; display: flex; justify-content: space-between; }
.p-label span { font-weight: 400; color: #5E6B64; font-size: 9px; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 12px; }
.p-tile { background: #fff; border-radius: 10px; padding: 7px 8px; }
.p-tile i { display: block; font-style: normal; font-size: 8px; color: #5E6B64; }
.p-tile b { font: 600 16px/1.2 var(--rounded); }
.p-tile small { font-size: 8px; color: #5E6B64; }
.p-tile.water { background: #E6EDF0; }
.p-tile.water i, .p-tile.water b, .p-tile.water small { color: #3C6E8F; }
.p-start { background: #B7802A; color: #1B2621; border-radius: 12px; text-align: center; font-weight: 700; font-size: 12px; padding: 11px; margin-bottom: 12px; }
.p-catches { display: flex; gap: 8px; }
.p-catch { flex: 1; background: #fff; border-radius: 10px; overflow: hidden; }
.p-catch .ph { height: 38px; background: #DCE6DF; display: flex; align-items: center; justify-content: center; }
.p-catch .ph.r { background: #E6EDF0; }
.p-catch .ph svg { width: 24px; height: 24px; }
.p-catch div:last-child { padding: 5px 7px; font-size: 9px; font-weight: 600; }
.p-catch div:last-child span { display: block; font-weight: 400; color: #5E6B64; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { color: var(--ink-muted); font-size: 18px; }

.alt { background: var(--surface); border-block: 1px solid var(--hairline); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--hairline); }
.step-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--moss-tint); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step-icon svg { width: 24px; height: 24px; stroke: var(--moss); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--ink-muted); }
.step .num { font: 600 13px var(--sans); color: var(--brass); letter-spacing: .08em; display: block; margin-bottom: 6px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* Conditions list */
.conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cond-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cond { background: var(--bg); border-radius: 16px; padding: 16px; border: 1px solid var(--hairline); }
.cond b { display: block; font: 600 22px/1.2 var(--rounded); }
.cond span { font-size: 14px; color: var(--ink-muted); }
.cond.water { background: var(--river-tint); border-color: transparent; }
.cond.water b, .cond.water span { color: var(--river); }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--ink-muted); }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; stroke: var(--moss); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 880px) { .conditions { grid-template-columns: 1fr; } }

/* Fly box */
.flies { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fly { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.fly .art { background: #EDE8DD; border-radius: 14px; padding: 6px; margin-bottom: 12px; }
.fly b { display: block; font-weight: 600; }
.fly span { font-size: 14px; color: var(--moss); font-weight: 600; }
@media (max-width: 720px) { .flies { grid-template-columns: repeat(2, 1fr); } }

/* Pro */
.pro { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.benefits { display: grid; gap: 18px; margin-top: 28px; }
.benefit { display: flex; gap: 16px; }
.benefit .ic { flex: none; width: 46px; height: 46px; border-radius: 13px; background: var(--moss-tint); display: flex; align-items: center; justify-content: center; }
.benefit .ic svg { width: 22px; height: 22px; stroke: var(--moss); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.benefit h3 { font-family: var(--sans); font-size: 18px; margin-bottom: 4px; }
.benefit p { color: var(--ink-muted); font-size: 16px; }
.plans { display: grid; gap: 12px; }
.plan { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.plan.best { border: 2px solid var(--moss); }
.plan b { font-size: 18px; }
.plan small { display: block; color: var(--moss); font-weight: 600; font-size: 13px; }
.plan .price { font: 700 24px var(--sans); white-space: nowrap; }
.plan .price span { font-size: 14px; font-weight: 500; color: var(--ink-muted); }
.free-note { margin-top: 6px; padding: 18px 20px; border-radius: 18px; background: var(--brass-tint); font-size: 15px; }
.free-note strong { display: block; margin-bottom: 4px; }
@media (max-width: 880px) { .pro { grid-template-columns: 1fr; } }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 22px; }
.pcard svg { width: 26px; height: 26px; stroke: var(--moss); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.pcard h3 { font-family: var(--sans); font-size: 17px; margin-bottom: 6px; }
.pcard p { color: var(--ink-muted); font-size: 15px; }
@media (max-width: 960px) { .privacy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .privacy-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--hairline); padding: 18px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--moss); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-muted); margin-top: 10px; }

/* CTA + footer */
.cta { text-align: center; }
.cta img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 12px 30px -10px rgba(27, 38, 33, .4); }
.cta h2 { margin-bottom: 12px; }
.cta p { color: var(--ink-muted); margin: 0 auto 26px; max-width: 30em; }
.cta .hero-cta { justify-content: center; }

.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0 40px; font-size: 14px; color: var(--ink-muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--ink-muted); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* Legal page */
.legal { padding: clamp(40px, 6vw, 72px) 0; }
.legal-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); max-width: 760px; margin: 0 auto; }
.legal-card h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 8px; }
.legal-card h2 { font-size: 22px; margin: 32px 0 10px; }
.legal-card p { color: var(--ink-muted); margin-bottom: 12px; }
.legal-card .updated { font-size: 14px; margin-bottom: 24px; }
