/* ==========================================================================
   Fangorn Analytics - components & layout (uses theme.css variables only)
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 32px); }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 20px rgba(0,0,0,.05); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; transition: transform .3s var(--ease), filter .3s; }
.brand:hover img { transform: rotate(-4deg) scale(1.05); }
/* Logo is dark green: render it off-white on dark backgrounds */
:root[data-theme="dark"] .site-header .brand img,
.site-footer .brand img { filter: brightness(0) invert(.95) sepia(.08); }
.brand .brand-name { display: block; font-family: var(--font-brand); font-weight: 500; font-size: 1.3rem; line-height: 1.1; letter-spacing: .01em; }
.brand span small { display: block; font-weight: 500; font-size: .78rem; color: var(--text-muted); letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-muted); font-weight: 500; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border: 1px solid var(--border); border-radius: 50%; background: var(--surface);
  color: var(--text); cursor: pointer; transition: transform .2s var(--ease), background .2s;
}
.icon-btn:hover { transform: rotate(-12deg); background: var(--accent-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; }

@media (max-width: 880px) {
  .menu-toggle { display: inline-grid; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px clamp(18px, 4vw, 32px) 24px; background: var(--bg); border-bottom: 1px solid var(--border);
    transform: translateY(-120%); opacity: 0; visibility: hidden;
    transition: transform .35s var(--ease), opacity .25s, visibility 0s .35s;
    pointer-events: none;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .35s var(--ease), opacity .25s; }
  .nav-links a { display: block; padding: 12px 14px; }
  .nav-actions .btn { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary { background: var(--brand-gradient); color: #F7F7F2; box-shadow: 0 6px 20px rgba(14,78,41,.35); }
.btn-primary:hover { box-shadow: 0 10px 28px rgba(14,78,41,.45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--accent-soft); }
.btn-light { background: #F7F7F2; color: var(--brand-2); }
.btn-outline-light { background: transparent; color: #F7F7F2; border-color: rgba(247,247,242,.4); }
.btn-outline-light:hover { background: rgba(247,247,242,.1); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--forest-bg); color: var(--forest-text);
  padding: clamp(90px, 14vw, 160px) 0 clamp(80px, 12vw, 140px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 70% at 15% 20%, rgba(19,78,14,.75), transparent 70%),
    radial-gradient(50% 60% at 85% 30%, rgba(14,78,73,.7), transparent 70%),
    radial-gradient(70% 60% at 50% 110%, rgba(14,78,41,.9), transparent 70%);
}
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { max-width: 860px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(247,247,242,.08); border: 1px solid rgba(247,247,242,.18); color: #CFE3D2;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: #7BD394; box-shadow: 0 0 0 4px rgba(123,211,148,.2); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(123,211,148,0); } }
.hero h1 { font-size: var(--fs-hero); margin: 22px 0 20px; letter-spacing: -0.035em; font-weight: 750; }
.hero h1 .grad {
  background: linear-gradient(90deg, #A8E0B4, #7CC9A0 45%, #6FC3BB);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: #C5D6C9; max-width: 680px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; margin-top: 64px; max-width: 760px; }
.hero-stat { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(247,247,242,.05); border: 1px solid rgba(247,247,242,.12); backdrop-filter: blur(6px); }
.hero-stat strong { display: block; font-size: 1.7rem; letter-spacing: -0.02em; color: #F7F7F2; }
.hero-stat span { font-size: .88rem; color: #A9BFAE; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { margin-bottom: 52px; }
.section-head.center { max-width: 900px; margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.12rem; }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.card p { color: var(--text-muted); margin: 0; }
.card-icon {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-gradient); color: #F7F7F2; margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(14,78,41,.25);
}
.card-icon svg { width: 24px; height: 24px; }

/* Phase steps */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); counter-reset: step; }
.step { padding-top: 46px; display: flex; flex-direction: column; align-items: flex-start; }
.step .price { display: inline-block; margin-top: auto; padding-top: 18px; font-weight: 700; color: var(--accent); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 24px; right: 28px; font-size: 3.2rem; font-weight: 800; line-height: 1;
  color: var(--accent-soft); letter-spacing: -0.04em;
}
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }

/* Tier teaser */
.tier { display: flex; flex-direction: column; }
.tier .tag { align-self: flex-start; }
.tier .amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 2px; color: var(--text); }
.tier .amount small { font-size: 1rem; font-weight: 500; color: var(--text-muted); }
.tier.featured { border: 2px solid var(--accent); }
.tier.featured .ribbon { position: absolute; top: -13px; left: 30px; background: var(--brand-gradient); color: #F7F7F2; font-size: .75rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 28px; margin-bottom: 10px; color: var(--text-muted); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230E4E29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
:root[data-theme="dark"] .checklist li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%235FB37A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Ownership split */
.split { display: grid; gap: 50px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: center; }
.own-visual {
  position: relative; border-radius: calc(var(--radius) + 8px); padding: 36px;
  background: var(--brand-gradient); color: #F7F7F2; box-shadow: var(--shadow-lg); overflow: hidden;
}
.own-visual > * { position: relative; z-index: 1; }
/* Faded logo watermark (white silhouette of the icon) */
.own-visual::after {
  content: ""; position: absolute; z-index: 0;
  top: 50%; right: 28px; transform: translateY(-50%);
  width: min(240px, 70%); height: calc(100% - 48px);
  background: url("../img/fangorn_icon.svg") center/contain no-repeat;
  filter: brightness(0) invert(1); opacity: .08; pointer-events: none;
}
.own-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(247,247,242,.15); }
.own-row:last-child { border-bottom: 0; }
.own-row b { font-weight: 600; }
.pill-own { font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(247,247,242,.16); white-space: nowrap; }

/* Platforms marquee */
.platforms { padding: 46px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.platforms p { text-align: center; color: var(--text-muted); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 22px; }
/* Ping-pong drift: slides between left and right edges; --drift-dist set by main.js */
.drift { overflow: hidden; }
.drift-track { display: flex; width: max-content; gap: clamp(28px, 4vw, 56px); animation: drift var(--drift-time, 14s) ease-in-out infinite alternate; }
.drift:hover .drift-track { animation-play-state: paused; }
.drift-track span { font-size: 1.6rem; font-weight: 750; letter-spacing: -0.02em; color: var(--text-muted); opacity: .75; white-space: nowrap; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(var(--drift-dist, 0px)); } }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; border-radius: calc(var(--radius) + 10px);
  padding: clamp(40px, 7vw, 76px); background: var(--brand-gradient); color: #F7F7F2; text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 0%, rgba(247,247,242,.14), transparent 70%); }
.cta-band > * { position: relative; }
.cta-band h2 { color: #F7F7F2; }
.cta-band p { color: #D5E4D8; max-width: 620px; margin: 0 auto 28px; font-size: 1.12rem; }
.cta-band .hero-ctas { justify-content: center; margin-top: 0; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--forest-bg); color: var(--forest-text);
  padding: clamp(70px, 10vw, 120px) 0 clamp(60px, 8vw, 96px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(55% 80% at 10% 0%, rgba(19,78,14,.8), transparent 70%),
              radial-gradient(50% 80% at 95% 20%, rgba(14,78,73,.75), transparent 70%);
}
.page-hero > .container { position: relative; }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); letter-spacing: -0.03em; margin: 18px 0 14px; }
.page-hero p { color: #C5D6C9; font-size: 1.15rem; margin: 0; }

/* ---------- Interactive phase timeline ---------- */
.timeline-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; margin-bottom: 28px; }
.timeline-nav::before { content: ""; position: absolute; left: 8%; right: 8%; top: 27px; height: 3px; background: var(--border); border-radius: 3px; }
.timeline-progress { position: absolute; left: 8%; top: 27px; height: 3px; width: 0; background: var(--brand-gradient); border-radius: 3px; transition: width .5s var(--ease); }
.phase-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px;
  background: none; border: 0; cursor: pointer; font: inherit; color: var(--text-muted); padding: 0 6px 6px; text-align: center;
}
.phase-btn .num {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
  background: var(--surface); border: 2px solid var(--border); color: var(--text-muted);
  transition: all .35s var(--ease);
}
.phase-btn .lbl { font-weight: 600; font-size: .95rem; }
.phase-btn.done .num { border-color: var(--accent); color: var(--accent); }
.phase-btn[aria-selected="true"] { color: var(--text); }
.phase-btn[aria-selected="true"] .num { background: var(--brand-gradient); border-color: transparent; color: #F7F7F2; transform: scale(1.08); box-shadow: 0 8px 22px rgba(14,78,41,.35); }
.phase-panel { display: none; }
.phase-panel.active { display: grid; animation: fadeUp .5s var(--ease); }
.phase-panel { grid-template-columns: 1.4fr 1fr; gap: 34px; align-items: start; }
@media (max-width: 800px) { .phase-panel { grid-template-columns: 1fr; } .phase-btn .lbl { font-size: .82rem; } }
.phase-meta { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.phase-meta dt { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.phase-meta dd { margin: 4px 0 18px; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.phase-meta dd:last-child { margin-bottom: 0; }
.callout { margin-top: 18px; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Accordion (native details) ---------- */
.accordion { display: grid; gap: 14px; }
.accordion details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 26px; font-weight: 650; font-size: 1.1rem;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-size: 1.3rem; font-weight: 500; transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .acc-body { padding: 0 26px 24px; color: var(--text-muted); }
.accordion details[open] .acc-body { animation: fadeUp .35s var(--ease); }

/* ---------- Pricing: view toggle, compare table, rate card ---------- */
.view-toggle { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 40px; }
.view-toggle button { border: 0; background: none; font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 999px; cursor: pointer; color: var(--text-muted); transition: all .25s var(--ease); }
.view-toggle button[aria-pressed="true"] { background: var(--brand-gradient); color: #F7F7F2; }
.toggle-wrap { text-align: center; }
.view { display: none; }
.view.active { display: block; animation: fadeUp .45s var(--ease); }
.tier .fit { font-size: .92rem; color: var(--text-muted); padding: 12px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: 6px; }
.tier .checklist { flex: 1; }
.tier .btn { margin-top: 22px; }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
.compare { width: 100%; border-collapse: collapse; min-width: 680px; }
.compare th, .compare td { padding: 15px 20px; text-align: center; border-bottom: 1px solid var(--border); }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--surface-2); font-size: .95rem; position: sticky; top: 0; }
.compare thead th small { display: block; font-weight: 500; color: var(--text-muted); margin-top: 2px; }
.compare thead th.hl { background: var(--accent-soft); }
.compare td.hl { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.compare tbody tr:hover td { background: var(--accent-soft); }
.compare .group td { background: var(--bg-alt); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); text-align: left; }
.compare .yes { color: var(--accent); font-weight: 800; font-size: 1.15rem; }
.compare .no { color: var(--text-muted); opacity: .5; }
.compare .txt { font-size: .9rem; font-weight: 600; color: var(--text); }

.rates { display: grid; gap: 18px; }
.rate {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 30px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 30px; box-shadow: var(--shadow);
  transition: transform .3s var(--ease), border-color .3s;
}
.rate:hover { transform: translateX(6px); border-color: var(--accent); }
.rate h3 { margin: 0 0 6px; }
.rate p { margin: 0; color: var(--text-muted); }
.rate .amt { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); text-align: right; white-space: nowrap; }
.rate .amt small { display: block; font-size: .85rem; font-weight: 500; color: var(--text-muted); }
@media (max-width: 640px) { .rate { grid-template-columns: 1fr; } .rate .amt { text-align: left; } }

/* ---------- About ---------- */
.principles { counter-reset: pr; }
.principle h3::before { counter-increment: pr; content: counter(pr, decimal-leading-zero); display: block; font-size: .85rem; font-weight: 800; color: var(--accent); letter-spacing: .1em; margin-bottom: 10px; }
.big-quote { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; max-width: 900px; margin: 0 auto; text-align: center; }
.big-quote .grad { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="dark"] .big-quote .grad { background: linear-gradient(90deg, #A8E0B4, #6FC3BB); -webkit-background-clip: text; background-clip: text; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1.4fr; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-aside .checklist li { color: var(--text); }
.form-card { padding: clamp(24px, 4vw, 40px); }
.form-card:hover { transform: none; }
.form-row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: .93rem; }
.field label .opt { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B4442F; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-top: 6px; }
.form-foot small { color: var(--text-muted); }
.btn.loading { opacity: .7; pointer-events: none; }
.form-status { min-height: 1.5em; margin: 16px 0 0; font-weight: 600; }
.form-status.ok { color: var(--accent); }
.form-status.err { color: #B4442F; }
:root[data-theme="dark"] .form-status.err { color: #F08A73; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-bg); color: #B9CABD; padding: 64px 0 30px; margin-top: 0; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 2fr repeat(auto-fit, minmax(150px, 1fr)); }
.site-footer .brand { color: #F7F7F2; }
.site-footer .brand span small { color: #8FA594; }
.site-footer h4 { color: #F7F7F2; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #B9CABD; }
.site-footer a:hover { color: #F7F7F2; }
.footer-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(247,247,242,.1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .88rem; color: #8FA594; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
