/* Fernhill Digital. One accent (forest green), one radius rule:
   pills for anything you press, 20px for frames and panels. */
:root {
  --bg: #F3F5F1;
  --surface: #FFFFFF;
  --tint: #E6ECE5;
  --ink: #14201A;
  --ink-soft: #46534B;
  --forest: #1F3A2D;
  --forest-ink: #F3F5F1;
  --link: #1F3A2D;
  --line: rgba(20, 32, 26, 0.14);
  --glow: rgba(31, 58, 45, 0.16);
  --max: 72rem;
  --gutter: clamp(1.25rem, 5vw, 3rem);
  --r-panel: 20px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1612;
    --surface: #16211B;
    --tint: #1B2A22;
    --ink: #EAF0EB;
    --ink-soft: #A9B7AE;
    --forest: #CFE3D6;
    --forest-ink: #10201A;
    --link: #CFE3D6;
    --line: rgba(234, 240, 235, 0.16);
    --glow: rgba(0, 0, 0, 0.45);
  }
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/geist-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); color: var(--ink); padding: 0.6rem 1rem; border-radius: 999px; z-index: 30; }

/* Headings */
h1, h2, h3 { color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
h1 { font-size: clamp(2.5rem, 6.4vw, 4.5rem); max-width: 14ch; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 20ch; }
h3 { font-size: 1.35rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.2rem, 2vw, 1.4rem); color: var(--ink-soft); max-width: 34ch; line-height: 1.5; }
.small { font-size: 0.95rem; color: var(--ink-soft); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ink-soft); margin: 0 0 1.25rem; }

/* Header: a floating pill, one line at every width */
header.site { position: sticky; top: 0.75rem; z-index: 20; padding: 0 var(--gutter); margin-top: 0.75rem; }
header.site .bar {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0.6rem 0.5rem 1.4rem; border-radius: 999px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 10px 30px -18px var(--glow);
}
.brand { font-weight: 650; letter-spacing: -0.02em; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
nav.main { display: flex; align-items: center; gap: 1.6rem; }
nav.main a.link { font-size: 0.98rem; color: var(--ink-soft); text-decoration: none; }
nav.main a.link:hover { color: var(--ink); }
@media (max-width: 40rem) { nav.main a.link { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  background: var(--forest); color: var(--forest-ink); font: inherit; font-size: 1.02rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.3s var(--ease);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px -16px var(--glow); }
.btn:active { transform: scale(0.98); }
.btn .arrow {
  display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; margin: -0.3rem -0.7rem -0.3rem 0; border-radius: 999px;
  background: color-mix(in srgb, var(--forest-ink) 16%, transparent); transition: transform 0.5s var(--ease);
}
.btn:hover .arrow { transform: translate(2px, -1px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--small { padding: 0.6rem 1.15rem; font-size: 0.95rem; }
.btn--small .arrow { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

/* Hero */
.hero { padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); }
.hero h1 { font-size: clamp(2.2rem, 4.3vw, 3.3rem); max-width: 19ch; margin-bottom: 1.5rem; }
.hero-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1fr 1.08fr; } }
.frame { padding: 0.5rem; border-radius: calc(var(--r-panel) + 6px); background: var(--tint); border: 1px solid var(--line); box-shadow: 0 40px 70px -40px var(--glow); }
.frame-inner { border-radius: var(--r-panel); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.frame-bar { padding: 0.55rem 1rem; font-size: 0.78rem; color: var(--ink-soft); border-bottom: 1px solid var(--line); letter-spacing: 0.02em; }

/* Sections */
section.block { padding: clamp(4.5rem, 10vw, 8rem) 0; border-top: 1px solid var(--line); }
section.block > .wrap > h2 { margin-bottom: 1.25rem; }
.intro { color: var(--ink-soft); max-width: 46ch; font-size: 1.2rem; line-height: 1.55; margin-bottom: 3rem; }

/* Stat split */
.split { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 56rem) { .split { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.stat { font-size: clamp(4.5rem, 14vw, 9rem); font-weight: 600; letter-spacing: -0.05em; line-height: 0.95; color: var(--ink); margin: 0 0 1rem; }
.rule-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.rule-list li { padding: 1rem 0; border-top: 1px solid var(--line); }
.rule-list li:last-child { border-bottom: 1px solid var(--line); }
.rule-list strong { display: block; font-weight: 600; }

/* Bento: three things, three different surfaces */
.bento { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .bento { grid-template-columns: repeat(6, 1fr); } .bento .b1 { grid-column: span 4; grid-row: span 2; } .bento .b2, .bento .b3 { grid-column: span 2; } }
.cell { border-radius: var(--r-panel); padding: clamp(1.5rem, 3vw, 2.25rem); border: 1px solid var(--line); background: var(--surface); }
.cell h3 { margin-bottom: 0.75rem; }
.cell p { color: var(--ink-soft); margin: 0; }
.cell.b1 { background: var(--forest); color: var(--forest-ink); border-color: transparent; display: flex; flex-direction: column; justify-content: space-between; min-height: 22rem; }
.cell.b1 h3 { color: var(--forest-ink); font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.03em; max-width: 14ch; }
.cell.b1 p { color: color-mix(in srgb, var(--forest-ink) 82%, transparent); max-width: 36ch; }
.cell.b3 { background: var(--tint); }

/* Process: a row with hairlines, not cards */
.process { display: grid; gap: 2.5rem; margin: 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .process { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.process li { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.process h3 { margin-bottom: 0.5rem; }
.process p { color: var(--ink-soft); margin: 0; font-size: 1.02rem; }

/* Standards */
.columns { display: grid; gap: 3rem; }
@media (min-width: 52rem) { .columns { grid-template-columns: 1.2fr 1fr; gap: 5rem; } }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding: 0.9rem 0 0.9rem 2rem; position: relative; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 1.45rem; width: 0.9rem; height: 0.5rem; border-left: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(-45deg) translateY(-50%); }
.never { background: var(--tint); border-radius: var(--r-panel); padding: clamp(1.5rem, 3vw, 2.25rem); align-self: start; }
.never h3 { margin-bottom: 1rem; }
.never ul { padding-left: 1.2rem; margin: 0; color: var(--ink-soft); }
.never li { margin-bottom: 0.6rem; }

/* Sample band */
.band { background: var(--forest); color: var(--forest-ink); border-radius: var(--r-panel); padding: clamp(2rem, 6vw, 4.5rem); display: grid; gap: 2rem; }
@media (min-width: 52rem) { .band { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.band h2 { color: var(--forest-ink); max-width: 16ch; }
.band p { color: color-mix(in srgb, var(--forest-ink) 82%, transparent); max-width: 40ch; margin: 1rem 0 0; }
.band .btn { background: var(--forest-ink); color: var(--forest); justify-self: start; }
.band .btn .arrow { background: color-mix(in srgb, var(--forest) 14%, transparent); }
@media (min-width: 52rem) { .band .btn { justify-self: end; } }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 1.25rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform 0.4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0.9rem 0 0; color: var(--ink-soft); max-width: 60ch; }

/* Contact */
.contact-mail { font-size: clamp(1.5rem, 5vw, 3rem); font-weight: 600; letter-spacing: -0.03em; word-break: break-word; }

/* Footer */
footer.site { margin-top: 2rem; padding: 3rem 0 4rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-soft); }
footer.site p { margin: 0 0 0.6rem; max-width: 60ch; }

/* Privacy page text */
.doc { padding: clamp(3rem, 8vw, 5rem) 0; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: none; margin-bottom: 0.5rem; }
.doc h2 { font-size: 1.5rem; max-width: none; margin: 2.5rem 0 0.75rem; }
.doc ul { padding-left: 1.2rem; }
.doc p, .doc li { max-width: 62ch; }

/* Scroll reveal. Only hides content when scripting works and motion is allowed. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn .arrow, summary::after { transition: none; }
}
