/* Tree Surgery & Garden Services, site concept.
 * Palette: forest green brand, cool bone background, one hi-vis orange accent (the safety-gear orange) for actions.
 * Shape rule: buttons and chips are pills, cards and media use --r (18px), inputs use --r-sm (12px).
 * Motion only runs under html.motion (set in <head> when reduced motion is off). */

@font-face {
  font-family: "Archivo";
  src: url(/treesurgery/assets/fonts/archivo-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --bg: #f2f4ee;
  --surface: #fbfcf8;
  --tint: #e7ece2;
  --ink: #132019;
  --muted: #4a5850;
  --line: #d3dacd;
  --forest: #133523;
  --forest-2: #1d4a31;
  --on-forest: #eef3ea;
  --on-forest-muted: #b6c6b9;
  --accent: #f28b2c;
  --accent-hi: #ff9b3f;
  --accent-ink: #1b1207;
  --shadow: 0 1px 2px rgb(19 53 35 / .06), 0 18px 40px -18px rgb(19 53 35 / .28);
  --r: 18px;
  --r-sm: 12px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1510;
    --surface: #142019;
    --tint: #111c15;
    --ink: #e6ece4;
    --muted: #a3b2a7;
    --line: #26362c;
    --forest: #10301e;
    --forest-2: #18432b;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 18px 44px -18px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 800; font-stretch: 112%; letter-spacing: -.02em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 50;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 0 1.35em; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 1rem; font-stretch: 104%; white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn--lg { min-height: 56px; padding: 0 1.6em; font-size: 1.0625rem; }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 24px -12px rgb(242 139 44 / .8); }
.btn--accent:hover { background: var(--accent-hi); }
.btn--accent .i { transition: transform .25s var(--ease); }
.btn--accent:hover .i { transform: translateX(3px); }
.btn--forest { background: var(--forest); color: var(--on-forest); }
.btn--forest:hover { background: var(--forest-2); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.btn--glass {
  background: rgb(255 255 255 / .12); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgb(255 255 255 / .2); }

/* ---------- Nav ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  color: #fff;
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.nav[data-solid] {
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--nav-h); max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--accent); color: var(--accent-ink);
}
.brand__mark .i { width: 24px; height: 24px; }
.brand__name { display: grid; font-weight: 800; font-stretch: 112%; font-size: 1.0625rem; line-height: 1.05; letter-spacing: -.01em; }
.brand__name small { font-weight: 600; font-stretch: 100%; font-size: .78rem; letter-spacing: .01em; opacity: .82; }
.nav__links { display: none; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .9; }
.nav__links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__phone { display: none; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.nav__cta { display: none; min-height: 44px; }
.nav__menu {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 999px;
  background: rgb(255 255 255 / .14); cursor: pointer;
}
.nav[data-solid] .nav__menu { background: var(--tint); }
.nav__menu .i { width: 22px; height: 22px; }
.nav__menu .i-close, .nav__menu[aria-expanded="true"] .i-open { display: none; }
.nav__menu[aria-expanded="true"] .i-close { display: block; }
.menu {
  display: grid; gap: 4px; padding: 8px var(--gutter) 20px;
  background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line), var(--shadow);
}
.menu a:not(.btn) { padding: 14px 4px; font-size: 1.125rem; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.menu .btn { margin-top: 12px; }
.nav:has(.menu:not([hidden])) { background: var(--bg); color: var(--ink); }

@media (min-width: 720px) {
  .nav__cta { display: inline-flex; }
}
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .nav__actions { margin-left: 12px; gap: 18px; }
  .nav__phone { display: inline-flex; }
  .nav__menu, .menu { display: none; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: end;
  min-height: min(100svh, 860px);
  padding: calc(var(--nav-h) + 48px) 0 clamp(96px, 14vh, 140px);
  color: #fff; background: #0f2418;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 50% 40%; }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(8 20 13 / .55) 0%, rgb(8 20 13 / 0) 22%),
    linear-gradient(0deg, rgb(8 20 13 / .92) 0%, rgb(8 20 13 / .55) 42%, rgb(8 20 13 / .05) 75%);
}
.hero__copy { display: grid; gap: 20px; }
.hero__title, .hero__sub { text-shadow: 0 2px 18px rgb(8 20 13 / .45); }
.hero__title { max-width: 13ch; font-size: clamp(2.5rem, 4.6vw + 1rem, 4.75rem); line-height: 1; letter-spacing: -.03em; }
.hero__sub { max-width: 44ch; font-size: clamp(1.0625rem, .4vw + 1rem, 1.25rem); color: rgb(255 255 255 / .9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero__cta .btn { flex: 1 1 auto; }

@media (min-width: 721px) {
  .hero { align-items: center; padding-bottom: 150px; }
  .hero__media img { object-position: 70% 50%; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgb(8 20 13 / .38) 0%, rgb(8 20 13 / 0) 18%),
      linear-gradient(90deg, rgb(8 20 13 / .72) 0%, rgb(8 20 13 / .5) 30%, rgb(8 20 13 / .1) 56%, rgb(8 20 13 / 0) 100%);
  }
  .hero__cta .btn { flex: 0 0 auto; }
}

html.motion .hero__media img { animation: settle 1.8s var(--ease) both; }
html.motion .hero__copy > * { animation: rise .9s var(--ease) both; }
html.motion .hero__copy > :nth-child(2) { animation-delay: .1s; }
html.motion .hero__copy > :nth-child(3) { animation-delay: .2s; }
@keyframes settle { from { transform: scale(1.08); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* ---------- Trust band (overlaps the hero) ---------- */

.trust {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  margin-top: -64px; overflow: hidden;
  background: var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.trust li { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px; background: var(--surface); }
.trust .i { width: 28px; height: 28px; color: var(--forest-2); }
.trust strong { display: block; font-weight: 800; font-stretch: 108%; font-size: 1rem; line-height: 1.2; }
.trust span { display: block; margin-top: 4px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
@media (prefers-color-scheme: dark) { .trust .i { color: #7fcf95; } }
@media (min-width: 900px) {
  .trust { grid-template-columns: repeat(4, 1fr); margin-top: -76px; }
  .trust li { flex-direction: row; align-items: flex-start; gap: 14px; padding: 26px 24px; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(72px, 9vw, 128px); }
.section--tint { background: var(--tint); }
.head { display: grid; gap: 14px; max-width: 40rem; margin-bottom: clamp(32px, 4vw, 52px); }
.head h2, .how h2, .faq h2, .quote h2 { font-size: clamp(2rem, 2.6vw + 1rem, 3.25rem); }
.head p { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }

/* ---------- Services bento ---------- */

.bento { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tile {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: flex-end; min-height: 230px;
  border-radius: var(--r); color: #fff; text-decoration: none; background: var(--forest);
}
.tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(8 20 13 / .9) 0%, rgb(8 20 13 / .45) 45%, rgb(8 20 13 / 0) 75%);
}
.tile__body { display: grid; gap: 6px; padding: 18px; padding-right: 64px; }
.tile h3 { font-size: 1.3rem; }
.tile p { color: rgb(255 255 255 / .86); font-size: .95rem; line-height: 1.45; }
.tile__go {
  position: absolute; right: 14px; bottom: 16px;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  transition: transform .35s var(--ease);
}
.tile:hover img { transform: scale(1.045); }
.tile:hover .tile__go { transform: translateX(3px) rotate(-45deg); }
.t-tree { grid-column: 1 / -1; min-height: 360px; }
.t-landscape { grid-column: 1 / -1; }
.t-hedge, .t-power, .t-lawn { grid-column: span 1; }
.t-hedge h3, .t-power h3, .t-lawn h3 { font-size: 1.125rem; }
@media (max-width: 559px) {
  .t-hedge, .t-power, .t-lawn { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(230px, 21vw, 290px); gap: 14px; }
  .tile { min-height: 0; }
  .tile__body { padding: 26px; padding-right: 80px; }
  .tile__go { right: 22px; bottom: 24px; width: 44px; height: 44px; }
  .t-tree { grid-column: 1 / 8; grid-row: span 2; }
  .t-tree h3 { font-size: 2rem; }
  .t-tree p { font-size: 1.0625rem; max-width: 36ch; }
  .t-hedge, .t-power { grid-column: 8 / 13; }
  .t-lawn { grid-column: 1 / 6; }
  .t-landscape { grid-column: 6 / 13; }
  .t-hedge h3, .t-power h3, .t-lawn h3, .t-landscape h3 { font-size: 1.4rem; }
}

.also { display: grid; gap: 14px; margin-top: clamp(28px, 3vw, 40px); }
.also__label { font-weight: 700; color: var(--muted); }
.also__list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  transition: box-shadow .2s, background-color .2s, transform .2s var(--ease);
}
.chip .i { color: var(--forest-2); }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--forest-2); }
.chip:active { transform: scale(.98); }
@media (prefers-color-scheme: dark) { .chip .i { color: #7fcf95; } .chip:hover { box-shadow: inset 0 0 0 1.5px #7fcf95; } }

/* ---------- Before / after ---------- */

.ba { display: grid; gap: 16px; }
.ba__tabs {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none;
}
.ba__tabs::-webkit-scrollbar { display: none; }
.ba__tab {
  flex: none; scroll-snap-align: start;
  display: grid; gap: 2px; padding: 10px 18px; border: 0; border-radius: 999px; cursor: pointer; text-align: left;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.ba__tab strong { font-weight: 700; font-size: .95rem; white-space: nowrap; }
.ba__tab span { display: none; }
.ba__tab[aria-selected="true"] { background: var(--forest); color: var(--on-forest); box-shadow: none; }

.ba__stage {
  --pos: 50%;
  position: relative; overflow: hidden; aspect-ratio: 3 / 2;
  border-radius: var(--r); background: var(--line);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
}
.ba__img, .ba__before { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba__img { object-fit: cover; pointer-events: none; transition: opacity .35s; }
.ba__before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__stage[data-loading] .ba__img { opacity: .4; }
.ba__label {
  position: absolute; top: 14px; padding: 6px 12px; border-radius: 999px;
  background: rgb(8 20 13 / .62); color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .02em;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); pointer-events: none;
}
.ba__label--before { left: 14px; }
.ba__label--after { right: 14px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 44px; margin-left: -22px;
  display: grid; place-items: center; cursor: ew-resize; outline: none;
}
.ba__handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgb(0 0 0 / .35); }
.ba__knob {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 20px rgb(0 0 0 / .35), 0 0 0 4px rgb(255 255 255 / .9);
  transition: transform .2s var(--ease);
}
.ba__knob .i { width: 24px; height: 24px; }
.ba__stage[data-drag] .ba__knob, .ba__handle:hover .ba__knob { transform: scale(1.08); }
.ba__handle:focus-visible .ba__knob { box-shadow: 0 6px 20px rgb(0 0 0 / .35), 0 0 0 4px #fff, 0 0 0 7px var(--accent); }

@media (min-width: 1000px) {
  .ba { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .ba__stage { order: -1; }
  .ba__tabs { flex-direction: column; overflow: visible; margin: 0; padding: 0; gap: 4px; }
  .ba__tab { padding: 11px 18px; border-radius: var(--r); background: transparent; box-shadow: none; position: relative; }
  .ba__tab strong { font-size: 1.0625rem; }
  /* Nine jobs: only the selected one shows its caption, so the list stays as tall as the photo. */
  .ba__tab[aria-selected="true"] span { display: block; color: var(--muted); font-size: .92rem; line-height: 1.4; }
  .ba__tab:hover { background: var(--surface); }
  .ba__tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
  .ba__tab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent); }
}

/* ---------- How it works ---------- */

.how { display: grid; gap: 36px; }
.how__media { margin: 0; overflow: hidden; border-radius: var(--r); aspect-ratio: 4 / 3; }
.how__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; }
.how__body { display: grid; gap: 28px; align-content: center; }
.steps { display: grid; gap: 4px; counter-reset: s; }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding-bottom: 24px; }
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 25px; top: 56px; bottom: 4px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 6px, transparent 6px 12px);
}
.steps__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--forest); color: var(--on-forest);
}
.steps__icon .i { width: 24px; height: 24px; }
.steps h3 { font-size: 1.25rem; padding-top: 4px; }
.steps p { margin-top: 6px; color: var(--muted); }
@media (min-width: 900px) {
  .how { grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 88px); align-items: stretch; }
  .how__media { aspect-ratio: auto; min-height: 560px; }
}

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 28px; }
.faq__head { display: grid; gap: 14px; align-content: start; }
.faq__head p { color: var(--muted); font-size: 1.125rem; }
.faq__head a { font-weight: 700; color: var(--ink); text-underline-offset: 4px; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-stretch: 106%; font-size: 1.125rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--muted); transition: transform .3s var(--ease); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 62ch; }
html.motion .faq details[open] p { animation: rise .45s var(--ease) both; }
@media (min-width: 900px) {
  .faq { grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 88px); }
  .faq__head { position: sticky; top: calc(var(--nav-h) + 32px); }
}

/* ---------- Quote ---------- */

.quote-sec { padding-top: clamp(72px, 9vw, 128px); }
.quote {
  display: grid; gap: 28px;
  padding: clamp(24px, 4vw, 56px); border-radius: calc(var(--r) + 8px);
  background:
    radial-gradient(120% 80% at 0% 0%, var(--forest-2) 0%, transparent 60%),
    var(--forest);
  color: var(--on-forest);
}
@media (prefers-color-scheme: dark) { .quote { box-shadow: inset 0 0 0 1px #234a33; } }
.quote__intro { display: grid; gap: 16px; align-content: start; }
.quote__intro > p { color: var(--on-forest-muted); font-size: 1.125rem; max-width: 40ch; }
.quote__direct { display: grid; gap: 10px; margin-top: 12px; }
.direct {
  display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r);
  text-decoration: none; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
  font-weight: 800; font-stretch: 108%; font-size: 1.25rem; line-height: 1.15;
  transition: background-color .2s;
}
.direct:hover { background: rgb(255 255 255 / .11); }
.direct small { display: block; font-weight: 500; font-stretch: 100%; font-size: .85rem; color: var(--on-forest-muted); }
.direct__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.direct__icon .i { width: 24px; height: 24px; }
@media (min-width: 900px) {
  .quote { grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); }
  .quote__intro { padding-top: 12px; }
}

.qf-card {
  /* clip: the step slide-in must not widen the page, or focusing a field scrolls it sideways */
  overflow: clip; overflow-clip-margin: 8px;
  padding: clamp(20px, 3vw, 36px); border-radius: var(--r);
  background: var(--surface); color: var(--ink); box-shadow: 0 30px 60px -30px rgb(0 0 0 / .5);
}
.qf { display: grid; gap: 22px; }
.qf__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qf__count { font-weight: 700; font-size: .9rem; color: var(--muted); }
.qf__dots { display: flex; gap: 6px; }
.qf__dots i { width: 22px; height: 6px; border-radius: 999px; background: var(--line); transition: background-color .3s, width .3s var(--ease); }
.qf__dots i.on { width: 34px; background: var(--accent); }
.qf__step { display: grid; gap: 18px; margin: 0; padding: 0; border: 0; min-width: 0; }
.qf__step legend { padding: 0; margin-bottom: 18px; font-weight: 800; font-stretch: 110%; font-size: clamp(1.4rem, 1vw + 1.1rem, 1.75rem); letter-spacing: -.02em; line-height: 1.15; }
html.motion .qf__step:not([hidden]) { animation: step-in .45s var(--ease) both; }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } }
.qf__hint { color: var(--muted); font-size: .92rem; }
.qf__step > .qf__hint { margin-top: -12px; }
.qf__err { color: #b42318; font-size: .92rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .qf__err { color: #ff8a7a; } }

.qf__chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 560px) { .qf__chips { grid-template-columns: repeat(3, 1fr); } }
.pick {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px;
  border-radius: var(--r-sm); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: .92rem; line-height: 1.25; cursor: pointer;
  transition: background-color .2s, box-shadow .2s, color .2s, transform .15s var(--ease);
}
.pick:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.pick:active { transform: scale(.98); }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick .i { color: var(--forest-2); }
.pick:has(input:checked) { background: var(--forest); color: var(--on-forest); box-shadow: none; }
.pick:has(input:checked) .i { color: var(--accent); }
.pick:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .pick .i { color: #7fcf95; } .pick:has(input:checked) { background: var(--forest-2); } }

.field { display: grid; gap: 8px; }
.field__label { font-weight: 700; font-size: .95rem; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 13px 14px; border: 0; border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
  font: inherit; font-size: 1rem; transition: box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 116px; line-height: 1.5; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--muted); }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--forest-2), 0 0 0 4px rgb(242 139 44 / .35); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #b42318; }
@media (prefers-color-scheme: dark) { .field input:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px #7fcf95, 0 0 0 4px rgb(242 139 44 / .35); } }

.seg { display: flex; gap: 8px; }
.seg--wrap { flex-wrap: wrap; }
.seg label {
  position: relative; flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .95rem; white-space: nowrap;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--forest); color: var(--on-forest); box-shadow: none; }
.seg label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .seg label:has(input:checked) { background: var(--forest-2); } }

.qf__nav { display: flex; gap: 10px; justify-content: space-between; padding-top: 4px; }
.qf__nav [data-qf-next], .qf__nav [data-qf-send] { flex: 1 1 auto; margin-left: auto; }
@media (min-width: 560px) { .qf__nav [data-qf-next], .qf__nav [data-qf-send] { flex: 0 0 auto; min-width: 220px; } }
.qf__alt { color: var(--muted); font-size: .92rem; text-align: right; margin-top: -8px; }
.qf__alt a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }

.qf-done { display: grid; gap: 14px; justify-items: start; padding: 12px 0; outline: none; }
.qf-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 999px; background: var(--forest); color: var(--accent); }
.qf-done__icon .i { width: 28px; height: 28px; }
.qf-done h3 { font-size: 1.6rem; }
.qf-done p { color: var(--muted); max-width: 44ch; }
.qf-done__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
html.motion .qf-done:not([hidden]) > * { animation: rise .6s var(--ease) both; }
html.motion .qf-done:not([hidden]) > :nth-child(2) { animation-delay: .06s; }
html.motion .qf-done:not([hidden]) > :nth-child(3) { animation-delay: .12s; }
html.motion .qf-done:not([hidden]) > :nth-child(4) { animation-delay: .18s; }

/* ---------- Footer ---------- */

.foot { padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--forest); color: var(--on-forest); }
@media (prefers-color-scheme: dark) { .foot { background: #0a1d13; } }
.foot__grid { display: grid; gap: 36px; }
.foot__brand { display: grid; gap: 16px; align-content: start; }
.foot__brand p { color: var(--on-forest-muted); max-width: 40ch; }
.foot h2 { font-size: .95rem; font-stretch: 104%; letter-spacing: 0; margin-bottom: 14px; }
.foot__col ul { display: grid; gap: 8px; color: var(--on-forest-muted); }
.foot__col a { text-decoration: none; }
.foot__col a:hover { color: var(--on-forest); text-decoration: underline; text-underline-offset: 4px; }
.foot__base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .14);
  color: var(--on-forest-muted); font-size: .9rem;
}
.foot__base a { color: var(--on-forest); text-underline-offset: 3px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr .8fr; } }

/* ---------- Mobile call bar ---------- */

.callbar {
  position: fixed; inset: auto 0 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 -1px 0 var(--line);
  transition: transform .35s var(--ease);
}
.callbar[data-away] { transform: translateY(110%); }
.callbar .btn--forest { padding: 0 1.4em; }
@media (min-width: 720px) { .callbar { display: none; } }

/* ---------- Scroll reveal ---------- */

html.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
html.motion [data-reveal].in { opacity: 1; transform: none; }
