/* Stillriver Trout demo. Hand-written, no framework, so the mobile page stays light. */

@font-face { font-family: "Young Serif"; src: url("/fonts/young-serif-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --spring: #eef3f1;      /* cold spring water, the page */
  --spring-2: #e1eae6;
  --pool: #0f3b3a;        /* deep pool, the dark surfaces */
  --pool-2: #16504d;
  --moss: #4e6b3a;        /* bankside moss */
  --stone: #6f7a75;       /* river stone, muted text */
  --ink: #142120;
  --band: #b8507a;        /* the rainbow trout's lateral band */
  --band-deep: #963c62;
  --white: #ffffff;
  --line: #c9d6d1;

  --serif: "Young Serif", Georgia, "Times New Roman", serif;
  --sans: "Atkinson", "Segoe UI", system-ui, -apple-system, sans-serif;

  --measure: 68ch;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-l: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--spring); color: var(--ink); font-family: var(--sans); font-size: 1.0625rem; line-height: 1.6; padding-bottom: 72px; }
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pool-2); text-underline-offset: 3px; }
a:hover { color: var(--band-deep); }
:focus-visible { outline: 3px solid var(--band); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Type scale: 1.25 ratio, serif for display only */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--pool); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5.6vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.45rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.1rem, 2vw, 1.3rem); color: var(--ink); max-width: 60ch; }
.muted { color: var(--stone); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.prose { max-width: var(--measure); }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.3em; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); }
.btn-band { background: var(--band); color: var(--white); }
.btn-band:hover { background: var(--band-deep); color: var(--white); }
.btn-ghost { border-color: currentColor; color: var(--white); background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-pool { background: var(--pool); color: var(--white); }
.btn-pool:hover { background: var(--pool-2); color: var(--white); }
.btn svg { width: 20px; height: 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(238,243,241,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--pool); font-family: var(--serif); font-size: 1.2rem; line-height: 1.05; }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo small { display: block; font-family: var(--sans); font-size: .72rem; color: var(--stone); letter-spacing: .02em; }
.head-actions { display: flex; align-items: center; gap: 10px; }
.head-phone { display: none; color: var(--pool); font-weight: 700; text-decoration: none; }
@media (min-width: 900px) { .head-phone { display: inline; } }
.menu-btn { background: none; border: 1px solid var(--line); border-radius: 999px; min-height: 44px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--pool); cursor: pointer; }
.site-nav { display: none; border-top: 1px solid var(--line); background: var(--spring); }
.site-nav.open { display: block; }
.site-nav .wrap { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 28px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-nav .wrap { grid-template-columns: repeat(3, 1fr); } }
.site-nav h2 { font-size: 1.05rem; margin-bottom: .6em; }
.site-nav ul { list-style: none; padding: 0; margin: 0; }
.site-nav li { margin: 0 0 .35em; }
.site-nav a { text-decoration: none; }
.site-nav a:hover { text-decoration: underline; }

/* Hero */
.hero { position: relative; color: var(--white); background: var(--pool); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,40,39,.88) 0%, rgba(10,40,39,.62) 45%, rgba(10,40,39,.15) 100%), linear-gradient(0deg, rgba(10,40,39,.7) 0%, rgba(10,40,39,0) 40%); }
.hero canvas.ripple { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; mix-blend-mode: soft-light; opacity: .55; }
.hero .wrap { padding-top: clamp(72px, 14vw, 150px); padding-bottom: clamp(40px, 7vw, 72px); }
.hero h1 { color: var(--white); max-width: 17ch; }
.hero .lede { color: #dfe9e5; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero.compact .wrap { padding-top: clamp(56px, 9vw, 96px); padding-bottom: 40px; }
.hero.compact h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); max-width: 22ch; }
.crumbs { font-size: .9rem; color: #cfdcd7; margin-bottom: 14px; }
.crumbs a { color: #cfdcd7; }

/* The four doors: the lead chooser that ends the homepage hero */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255,255,255,.18); border-top: 1px solid rgba(255,255,255,.18); }
@media (min-width: 900px) { .doors { grid-template-columns: repeat(4, 1fr); } }
.door { display: block; padding: 20px 18px 22px; background: rgba(10,40,39,.72); color: var(--white); text-decoration: none; min-height: 132px; transition: background .2s; }
.door:hover, .door:focus-visible { background: var(--band); color: var(--white); }
.door strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.1rem, 2.4vw, 1.4rem); line-height: 1.2; margin-bottom: 6px; }
.door span { font-size: .92rem; color: #d4e1dc; }
.door:hover span { color: var(--white); }

/* Commitments strip */
.commit { background: var(--pool); color: #dfe9e5; }
.commit ul { list-style: none; margin: 0; padding: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; font-size: .95rem; }
@media (min-width: 900px) { .commit ul { grid-template-columns: repeat(4, 1fr); } }
.commit li { padding-left: 18px; position: relative; }
.commit li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--band); }

/* Sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.tint { background: var(--spring-2); }
.section.dark { background: var(--pool); color: #dfe9e5; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a { color: #f2c6d8; }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 64px; } .split.flip > :first-child { order: 2; } }
.figure { border-radius: var(--radius-l); overflow: hidden; background: var(--spring-2); }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cap { font-size: .85rem; color: var(--stone); margin-top: 8px; }

/* Life cycle: the one interactive moment on the homepage */
.cycle { margin-top: 32px; }
.cycle-track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0 0 24px; padding: 0; list-style: none; }
.cycle-track::before { content: ""; position: absolute; left: 10%; right: 10%; top: 22px; height: 3px; background: linear-gradient(90deg, #f0a35e, var(--band) 55%, #8aa7a0); border-radius: 3px; }
.cycle-track button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; background: none; border: 0; cursor: pointer; font: inherit; color: var(--stone); padding: 0 2px; }
.cycle-track .dot { width: 46px; height: 46px; border-radius: 50%; background: var(--spring); border: 3px solid var(--line); display: grid; place-items: center; transition: transform .25s, border-color .25s, background .25s; }
.cycle-track .dot svg { width: 24px; height: 24px; }
.cycle-track .lbl { font-size: .85rem; font-weight: 700; text-align: center; line-height: 1.2; }
.cycle-track button[aria-selected="true"] { color: var(--pool); }
.cycle-track button[aria-selected="true"] .dot { border-color: var(--band); background: var(--white); transform: scale(1.12); }
.cycle-panel { background: var(--white); border-radius: var(--radius-l); padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); min-height: 190px; }
.cycle-panel h3 { margin-bottom: .3em; }
.cycle-panel .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: var(--stone); margin-top: 12px; }
.cycle-panel .facts b { color: var(--pool); }

/* Product rows (not identical cards: image left, text right, varied) */
.offers { display: grid; gap: 22px; margin-top: 36px; }
@media (min-width: 760px) { .offers { grid-template-columns: repeat(2, 1fr); } }
.offer { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: start; text-decoration: none; color: inherit; padding: 14px; border-radius: var(--radius-l); background: var(--white); border: 1px solid var(--line); }
.offer:hover { border-color: var(--band); color: inherit; }
.offer img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; }
.offer h3 { font-size: 1.2rem; margin: 2px 0 6px; }
.offer p { font-size: .95rem; margin: 0; color: var(--stone); }
.offer .go { display: inline-block; margin-top: 8px; font-weight: 700; color: var(--band-deep); font-size: .92rem; }

/* Link lists, chips */
.links { columns: 1; gap: 32px; padding: 0; list-style: none; }
@media (min-width: 640px) { .links { columns: 2; } }
@media (min-width: 980px) { .links { columns: 3; } }
.links li { break-inside: avoid; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: 9px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--pool); font-weight: 700; font-size: .95rem; }
.chips a:hover { border-color: var(--band); }
.section.dark .chips a { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }

/* Steps: a real sequence, so numbers are earned */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.steps li { counter-increment: s; position: relative; padding-left: 56px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--pool); color: var(--white); display: grid; place-items: center; font-family: var(--serif); }
.steps h3 { margin-bottom: .2em; font-size: 1.2rem; }

/* Callouts */
.note { border-left: 4px solid var(--band); background: var(--white); padding: 16px 20px; border-radius: 0 var(--radius-s) var(--radius-s) 0; margin: 24px 0; }
.note.law { border-left-color: var(--moss); }
.demo-flag { font-size: .85rem; color: var(--band-deep); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0; }
table { border-collapse: collapse; width: 100%; min-width: 480px; background: var(--white); border-radius: var(--radius-s); overflow: hidden; font-size: .95rem; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--spring-2); color: var(--pool); }

/* FAQ */
.faq { max-width: var(--measure); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 32px 14px 0; font-weight: 700; color: var(--pool); list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--band); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; }

/* Forms */
.form-card { background: var(--white); border-radius: var(--radius-l); padding: clamp(20px, 3.4vw, 36px); border: 1px solid var(--line); color: var(--ink); }
.form-card h2, .form-card h3 { color: var(--pool); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
legend { font-weight: 700; color: var(--pool); margin-bottom: 10px; font-size: 1.05rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 700; color: var(--pool); line-height: 1.25; min-height: 56px; }
.choice input { accent-color: var(--band); width: 18px; height: 18px; flex: none; }
.choice label:has(input:checked) { border-color: var(--band); background: #fbf2f6; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--pool); }
.field .hint { font-size: .85rem; color: var(--stone); }
.grid-2 { display: grid; gap: 0 14px; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #aebdb7; border-radius: 10px; font: inherit; color: var(--ink); background: var(--white); }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--pool-2); outline: 3px solid rgba(184,80,122,.25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-weight: 700; }
.form-msg.err { color: #9b1c1c; }
.consent { font-size: .85rem; color: var(--stone); }
[hidden] { display: none !important; }

/* Calculator */
.calc-out { margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--spring-2); }
.calc-out .big { font-family: var(--serif); font-size: clamp(2rem, 5vw, 2.8rem); color: var(--pool); line-height: 1; }

/* CTA band */
.cta-band { background: var(--pool); color: #dfe9e5; padding: clamp(48px, 7vw, 88px) 0; }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band .wrap { display: grid; gap: 24px; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.3fr 1fr; align-items: end; } }

/* Footer */
.site-footer { background: #0b2c2b; color: #b9cbc5; padding: 40px 0 28px; font-size: .95rem; }
.site-footer a { color: #e3ece9; }
.site-footer .wrap { display: grid; gap: 20px; }
.foot-nav, .foot-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 0; }
.foot-legal { font-size: .88rem; }

/* Sticky mobile bar */
.mobilebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.mobilebar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; background: var(--spring); color: var(--pool); text-decoration: none; font-weight: 700; font-size: .85rem; }
.mobilebar a svg { width: 22px; height: 22px; }
.mobilebar a.primary { background: var(--band); color: var(--white); font-size: .95rem; }
@media (min-width: 900px) { .mobilebar { display: none; } }

/* Modal */
dialog.lead-modal { border: 0; padding: 0; border-radius: var(--radius-l); width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); background: var(--white); }
dialog.lead-modal::backdrop { background: rgba(10,40,39,.6); }
dialog.lead-modal .close { position: absolute; right: 10px; top: 10px; min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--pool); }
dialog.lead-modal .form-card { border: 0; }

/* Guide cards */
.guides { display: grid; gap: 22px; }
@media (min-width: 760px) { .guides { grid-template-columns: repeat(2, 1fr); } }
.guide { padding: 22px; background: var(--white); border-radius: var(--radius-l); border: 1px solid var(--line); text-decoration: none; color: inherit; }
.guide:hover { border-color: var(--band); color: inherit; }
.guide h3 { margin-bottom: .3em; }

/* Mobile header: the sticky bottom bar carries the quote button, so the header stays calm */
.head-quote { display: none; }
@media (min-width: 900px) { .head-quote { display: inline-flex; } }
.logo small { white-space: nowrap; }
@media (max-width: 899px) { .commit ul { font-size: .88rem; padding: 16px 0; gap: 10px 18px; } }
@media (max-width: 420px) { .choice label { padding: 10px; gap: 8px; font-size: .95rem; } }
