/* Guth Stories. Colours and type follow the app's Emerald brand (docs/brand.md in the Guth repo). */

@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400i.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-600i.woff2") format("woff2"); font-weight: 600; font-style: italic; font-display: swap; }

:root {
  --bg: #FAF7F1;
  --surface: #FFFFFF;
  --text: #13362C;
  --muted: #3F5A50;
  --accent: #0F5C4A;
  --accent-text: #FAF7F1;
  --gold: #D6B36A;
  --gold-text: #94701F;
  --tint: #EEF3EE;
  --border: #D9E2DB;
  --hero: #0F5C4A;
  --hero-text: #FAF7F1;
  --hero-muted: #D7E4DC;
  --shadow: 0 10px 30px rgba(15, 50, 40, .10);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B2A22; --surface: #12392E; --text: #F3EFE6; --muted: #C5D3CB; --accent: #D6B36A; --accent-text: #13241E;
    --gold-text: #E2C589; --tint: #10332A; --border: #24503F; --hero: #0E3A2F; --hero-text: #FAF7F1; --hero-muted: #C5D3CB;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}
@media (prefers-contrast: more) {
  :root { --muted: var(--text); --border: var(--text); --hero-muted: var(--hero-text); }
}

* { 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(--text); font: 400 1.2rem/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 12px 18px; border-radius: 12px; background: var(--surface); color: var(--text); font-weight: 700; }
.skip:focus { top: 12px; }

/* Top bar */
.top { background: var(--hero); color: var(--hero-text); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark { border-radius: 12px; background: #FAF7F1; padding: 3px; }
.mark-dark { display: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 600 1.35rem/1.1 var(--serif); }
.brand-say { font-size: .85rem; color: var(--hero-muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 1rem; }
.nav a { text-decoration: none; padding: 8px 2px; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav .nav-cta { padding: 8px 16px; border-radius: 999px; background: var(--gold); color: #13241E; font-weight: 700; }
.nav .nav-cta:hover { text-decoration: none; filter: brightness(1.05); }

/* Hero */
.hero { background: var(--hero); color: var(--hero-text); padding: 28px 0 56px; }
.hero-inner { display: grid; gap: 36px; align-items: center; }
.eyebrow { margin: 0 0 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .85rem; color: var(--gold); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; text-wrap: balance; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin: 0 0 18px; }
.lead { font-size: 1.3rem; margin: 0 0 14px; max-width: 32em; }
.hero-note { color: var(--hero-muted); margin: 0 0 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 12px 26px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.hero .button.primary { background: var(--gold); color: #13241E; }
.hero .button.secondary { color: var(--hero-text); border-color: var(--hero-text); }
.button.primary { background: var(--accent); color: var(--accent-text); }
.button:hover { filter: brightness(1.06); }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.pills li { padding: 6px 14px; border: 1px solid var(--gold); border-radius: 999px; color: #F2DDA4; font-size: .95rem; }

.phone { margin: 0 auto; width: min(280px, 76vw); }
.phone img { display: block; width: 100%; border-radius: 36px; border: 9px solid #0B1F19; box-shadow: 0 20px 44px rgba(0, 0, 0, .28); background: #0B2A22; }

/* Sections */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); margin: 0 0 16px; }
.section h2::before { content: ""; display: block; width: 52px; height: 4px; border-radius: 2px; background: var(--gold); margin-bottom: 14px; }
.tint { background: var(--tint); }
.big { font-size: 1.3rem; }
.small { font-size: 1rem; color: var(--muted); }
.why p { margin: 0 0 16px; }

.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 26px; box-shadow: var(--shadow); }
.step h3 { font-size: 1.5rem; margin: 12px 0 8px; }
.step p { margin: 0; }
.step-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 1.2rem; }

.split { display: grid; gap: 40px; align-items: center; }
.features { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 14px; }
.features li { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 16px 20px; }
.checks { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 40px; }
.checks li::before { content: ""; position: absolute; left: 0; top: .2em; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); }
.checks li::after { content: ""; position: absolute; left: 9px; top: calc(.2em + 6px); width: 7px; height: 12px; border: solid var(--accent-text); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.text-link { color: var(--accent); font-weight: 700; text-underline-offset: 4px; }
@media (prefers-color-scheme: dark) { .text-link { color: var(--gold-text); } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 32px; box-shadow: var(--shadow); }
.get .big { margin-top: 0; }

/* Footer */
.foot { background: var(--hero); color: var(--hero-text); padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-inner { display: grid; gap: 12px; }
.foot-brand { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.foot-brand img { border-radius: 8px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { padding: 6px 0; }
.foot .small { color: var(--hero-muted); margin: 0; }

@media (min-width: 820px) {
  .hero-inner { grid-template-columns: 1.25fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1.4fr; }
  .split.reverse { grid-template-columns: 1.4fr 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 48px 0; }
  .button { width: 100%; }
}
