/* Layout concept: golden-hour job site. A dark forest hero and offer bands, daylight sections for the
   details, one orange reserved for actions and one sun-gold for the guarantee number. */
/* Brand: TreeCrew identity. Leaf green #248844, deep forest #081C14, off-white #F0F0EC and black from the logo.
   Layout concept: a dark forest hero and offer bands, daylight sections for the details, green reserved for actions. */
:root {
  --paper: #F5F5F1;
  --paper-2: #EAEBE5;
  --surface: #FFFFFF;
  --ink: #0B110E;
  --ink-2: #4C5650;
  --line: #D9DBD3;
  --brand: #1B6E37;
  --leaf: #248844;
  --leaf-bright: #34A85A;
  --forest: #081C14;
  --forest-2: #0F2A1E;
  --on-forest: #F0F0EC;
  --on-forest-2: #A7B8AE;
  --action: #1F7A3D;
  --action-hover: #19692F;
  --on-action: #FFFFFF;
  --focus: #2563EB;
  --error: #B42318;
  --ph-bg: #FFF1CC;
  --ph-ink: #6B4A00;
  --font-display: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-body: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-label: "Poppins", "Segoe UI", Arial, sans-serif;
  --radius: 14px;
  --wrap: 1180px;
  --wrap-pad: 20px;
  --shadow: 0 1px 2px rgb(8 28 20 / 0.06), 0 12px 32px rgb(8 28 20 / 0.08);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0A1410;
    --paper-2: #0E1B15;
    --surface: #12201A;
    --ink: #EEF0EA;
    --ink-2: #A5B3AA;
    --line: #23352C;
    --brand: #6FCB8F;
    --leaf: #2E9B52;
    --leaf-bright: #45B96A;
    --forest: #06130D;
    --forest-2: #0E241A;
    --on-forest: #F0F0EC;
    --on-forest-2: #A5B6AC;
    --focus: #7AA8FF;
    --error: #FF8A7A;
    --ph-bg: #3A2F10;
    --ph-ink: #F3D98B;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0A1410;
  --paper-2: #0E1B15;
  --surface: #12201A;
  --ink: #EEF0EA;
  --ink-2: #A5B3AA;
  --line: #23352C;
  --brand: #6FCB8F;
  --leaf: #2E9B52;
  --leaf-bright: #45B96A;
  --forest: #06130D;
  --forest-2: #0E241A;
  --on-forest: #F0F0EC;
  --on-forest-2: #A5B6AC;
  --focus: #7AA8FF;
  --error: #FF8A7A;
  --ph-bg: #3A2F10;
  --ph-ink: #F3D98B;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px rgb(0 0 0 / 0.35);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.08; text-wrap: balance; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3.1rem); font-weight: 800; }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.55vw, 1.5rem); font-weight: 700; line-height: 1.2; }
p, ul, ol, dl, dd, figure { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--wrap-pad); }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--alt { background: var(--paper-2); }
.dark { background: var(--forest); color: var(--on-forest); }
.dark a:not(.btn) { color: var(--on-forest); }
.stack { display: grid; gap: 18px; }
.stack-lg { display: grid; gap: clamp(32px, 4.5vw, 56px); }
.muted { color: var(--ink-2); }
.dark .muted { color: var(--on-forest-2); }
.small { font-size: 0.9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 60; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-label); font-weight: 400; font-size: 0.74rem;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--ink-2);
}
.eyebrow::before { content: ""; width: 13px; height: 13px; margin-top: calc((1.6em - 13px) / 2); flex: none; background: var(--leaf); border-radius: 100% 0 100% 0; transform: rotate(-8deg); }
.dark .eyebrow::before, .hero .eyebrow::before, .page-head .eyebrow::before { background: var(--leaf-bright); }
.dark .eyebrow { color: var(--on-forest-2); }
.lede { font-size: clamp(1.05rem, 1rem + 0.35vw, 1.22rem); color: var(--ink-2); max-width: 60ch; }
.dark .lede { color: var(--on-forest-2); }
.head { display: grid; gap: 16px; max-width: 800px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--action); color: var(--on-action); box-shadow: 0 8px 22px rgb(31 122 61 / 0.30); }
.btn-primary:hover { transform: translateY(-1px); background: var(--action-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: currentColor; }
.dark .btn-ghost { color: var(--on-forest); }
.btn-sm { min-height: 42px; padding: 9px 16px; font-size: 0.95rem; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }

/* ---------- Preview bar ---------- */
.preview-bar { background: var(--ph-bg); color: var(--ph-ink); font-size: 0.85rem; line-height: 1.4; padding: 8px 20px; text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  background: color-mix(in srgb, #081C14 97%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 0.08); color: #EDF3EE;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; flex: none; }
.brand-symbol { height: 44px; width: auto; flex: none; }
.brand-word { height: 31px; width: auto; display: block; color: #FCFCFC; overflow: visible; }
.site-footer .brand-symbol { height: 52px; }
.site-footer .brand-word { height: 37px; }
@media (max-width: 560px) { .brand-symbol { height: 38px; } .brand-word { height: 27px; } .site-header .btn { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: #081C14; color: #EDF3EE; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media canvas, .hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgb(8 28 20 / 0.94) 0%, rgb(8 28 20 / 0.80) 42%, rgb(8 28 20 / 0.35) 72%, rgb(8 28 20 / 0.15) 100%),
    linear-gradient(0deg, rgb(8 28 20 / 0.85) 0%, rgb(8 28 20 / 0) 35%);
}
.hero-sky { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, #06150F 0%, #12301F 52%, #5E6A3A 78%, #C99245 100%); }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 5vw, 72px); align-items: end; padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 96px); }
.hero-copy { display: grid; gap: 22px; }
.hero .eyebrow { color: #C9D8CF; }
.hero h1 { font-size: clamp(2.1rem, 1.2rem + 3.2vw, 3.85rem); font-weight: 800; line-height: 1.04; max-width: 20ch; }
.hero h1 mark { background: none; color: var(--leaf-bright); }
.hero h1 .h1-sub { display: block; margin-top: 14px; font-weight: 600; font-size: 0.52em; line-height: 1.2; letter-spacing: -0.01em; color: #DCE6E0; max-width: 28ch; }
.hero-lede { display: grid; gap: 12px; max-width: 58ch; color: #C9D8CF; font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.15rem); }
.hero-micro { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 0.92rem; color: #C9D8CF; }
.hero-micro span { display: inline-flex; align-items: center; gap: 8px; }
.hero-micro svg { width: 18px; height: 18px; color: var(--leaf-bright); flex: none; }
.g-card {
  background: rgb(10 30 24 / 0.62); border: 1px solid rgb(255 255 255 / 0.14); border-radius: 18px;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding: 26px; display: grid; gap: 16px; color: #EDF3EE; box-shadow: 0 24px 60px rgb(0 0 0 / 0.35);
}
.g-top { display: flex; align-items: center; gap: 16px; }
.g-num { font-family: var(--font-display); font-weight: 800; font-size: 4rem; line-height: 0.9; letter-spacing: -0.03em; color: var(--leaf-bright); font-variant-numeric: tabular-nums; }
.g-label { font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: #C9D8CF; line-height: 1.5; }
.g-promise { font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.g-terms { font-size: 0.92rem; line-height: 1.55; color: #C9D8CF; border-top: 1px solid rgb(255 255 255 / 0.14); padding-top: 14px; }
.g-terms a { color: #EDF3EE; }
.photo-note { position: absolute; right: 14px; bottom: 10px; z-index: 1; font-family: var(--font-label); font-size: 0.68rem; color: rgb(237 243 238 / 0.6); }
@media (max-width: 920px) { .hero-inner { grid-template-columns: 1fr; align-items: start; } .hero h1 { max-width: 20ch; } }

/* ---------- Profile ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; display: grid; gap: 12px; }
.check-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.check-list svg { width: 24px; height: 24px; color: var(--brand); margin-top: 1px; }
.dark .check-list svg { color: var(--leaf-bright); }
.pull { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.3; letter-spacing: -0.01em; border-left: 4px solid var(--leaf); padding-left: 18px; }
.frame { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); }
.frame img, .frame svg { width: 100%; height: auto; display: block; }
.frame-tag {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; gap: 8px; align-items: center;
  background: rgb(10 30 24 / 0.78); color: #EDF3EE; border-radius: 999px; padding: 7px 12px;
  font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.06em;
}

/* ---------- Method ---------- */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.step {
  background: var(--forest-2); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 18px;
  display: grid; grid-template-rows: auto 1fr; overflow: hidden; min-width: 0;
}
.step-visual { aspect-ratio: 16 / 10; background: #0B2219; position: relative; overflow: hidden; border-bottom: 1px solid rgb(255 255 255 / 0.08); }
.step-visual svg, .step-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.step-body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.step-num { font-family: var(--font-label); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--leaf-bright); }
.step h3 { font-size: 1.6rem; }
.step p { color: var(--on-forest-2); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .step { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: none; } .step-visual { aspect-ratio: auto; min-height: 100%; border-bottom: 0; border-right: 1px solid rgb(255 255 255 / 0.08); } }
@media (max-width: 600px) { .step { grid-template-columns: 1fr; } .step-visual { aspect-ratio: 16 / 10; border-right: 0; border-bottom: 1px solid rgb(255 255 255 / 0.08); } }

/* ---------- Before / after creatives ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; min-height: 44px;
}
.tab[aria-selected="true"] { background: var(--forest); color: var(--on-forest); border-color: var(--forest); }
.creative { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.creative-notes { padding-top: 24px; }
@media (max-width: 880px) { .creative { grid-template-columns: 1fr; justify-items: center; } .creative-notes { justify-self: stretch; } }
.ad {
  width: 100%; max-width: 440px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.ad-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.ad-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); color: var(--leaf-bright); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; flex: none; }
.ad-name { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }
.ad-meta { font-size: 0.78rem; color: var(--ink-2); }
.ad-copy { padding: 0 16px 12px; font-size: 0.95rem; line-height: 1.45; }
.ad-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--paper-2); border-top: 1px solid var(--line); }
.ad-foot strong { display: block; font-size: 0.92rem; }
.ad-foot span { font-size: 0.8rem; color: var(--ink-2); }
.ad-foot .ad-cta { flex: none; background: var(--action); color: #FFFFFF; border-radius: 8px; padding: 9px 14px; font-weight: 700; font-size: 0.88rem; }
.creative-notes { display: grid; gap: 22px; }
.creative-notes dl { display: grid; gap: 14px; }
.creative-notes dt { font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.creative-notes dd { font-weight: 600; font-size: 1.08rem; }
.disclaimer { font-size: 0.85rem; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.disclaimer svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }

/* the comparison slider */
.ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1a2a24; --pos: 50%; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer svg, .ba-layer img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #FFFFFF; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); pointer-events: none; }
.ba-knob {
  position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%;
  background: #FFFFFF; color: #0F1E19; display: grid; place-items: center; box-shadow: 0 6px 18px rgb(0 0 0 / 0.3); pointer-events: none;
}
.ba-knob svg { width: 26px; height: 26px; }
.ba-tag {
  position: absolute; top: 12px; padding: 5px 10px; border-radius: 6px; pointer-events: none;
  font-family: var(--font-label); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.ba-tag-before { left: 12px; background: rgb(15 30 25 / 0.82); color: #FFFFFF; }
.ba-tag-after { right: 12px; background: var(--action); color: #FFFFFF; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent; }
.ba:has(.ba-range:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
.ba-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); background: rgb(15 30 25 / 0.78); color: #FFFFFF; font-size: 0.78rem; padding: 6px 10px; border-radius: 999px; pointer-events: none; white-space: nowrap; transition: opacity .3s ease; }
.ba.touched .ba-hint { opacity: 0; }

/* ---------- Deliverables + timeline ---------- */
.deliver { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; list-style: none; padding: 0; }
.deliver li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-weight: 700; }
.deliver svg, .note svg, .check-list svg { color: var(--leaf); }
.deliver svg { width: 26px; height: 26px; color: var(--brand); }
.timeline { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 3px; background: linear-gradient(90deg, var(--ink-2) 0 50%, var(--leaf) 50% 100%); border-radius: 2px; }
.timeline li { position: relative; padding-top: 40px; padding-right: 16px; display: grid; gap: 4px; align-content: start; }
.timeline li::before { content: ""; position: absolute; top: 4px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink-2); }
.timeline li.hot::before { border-color: var(--leaf); }
.tl-when { font-family: var(--font-label); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.tl-what { font-family: var(--font-display); font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .timeline { grid-template-columns: 1fr; gap: 18px; }
  .timeline::before { left: 10px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; background: linear-gradient(180deg, var(--ink-2) 0 50%, var(--leaf) 50% 100%); }
  .timeline li { padding-top: 0; padding-left: 40px; }
  .timeline li::before { top: 0; }
}
.note { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; color: var(--ink-2); font-size: 0.95rem; display: flex; gap: 10px; }
.note svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }

/* ---------- Guarantee ---------- */
.guarantee { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 900px) { .guarantee { grid-template-columns: 1fr; } }
.seal { position: relative; width: min(100%, 360px); aspect-ratio: 1; margin-inline: auto; color: var(--leaf-bright); }
.seal svg { width: 100%; height: 100%; display: block; }
.seal-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 4px; }
.seal-num { font-family: var(--font-display); font-weight: 800; font-size: clamp(4.4rem, 3rem + 5vw, 7rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--leaf-bright); }
.seal-txt { font-family: var(--font-label); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-forest-2); }
.criteria { background: var(--forest-2); border: 1px solid rgb(255 255 255 / 0.08); border-radius: 16px; padding: 22px 24px; display: grid; gap: 14px; }
.criteria h3 { font-size: 1.45rem; }
.terms-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .terms-grid { grid-template-columns: 1fr; } }
.term { border: 1px solid rgb(255 255 255 / 0.12); border-radius: 14px; padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.term strong { font-size: 1.02rem; }
.term p { color: var(--on-forest-2); font-size: 0.97rem; }
.flex-card { background: var(--paper); color: var(--ink); border-radius: 16px; padding: 24px; display: grid; gap: 10px; }
.flex-card h3 { color: var(--ink); }
.dark .flex-card .muted { color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq { display: grid; max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 18px; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-label); font-size: 1.3rem; line-height: 1.1; color: var(--leaf); flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq .answer { padding-top: 10px; color: var(--ink-2); max-width: 70ch; }

/* ---------- Form ---------- */
.book { position: relative; display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .book { grid-template-columns: 1fr; } }
.book-side { display: grid; gap: 22px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 92px); }
@media (max-width: 960px) { .book-side { position: static; } }
.progress { list-style: none; padding: 0; display: grid; gap: 10px; counter-reset: p; }
.progress li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; color: var(--ink-2); font-weight: 600; }
.progress li::before { counter-increment: p; content: counter(p); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); font-family: var(--font-label); font-size: 0.85rem; color: var(--ink-2); background: var(--surface); }
.progress li[aria-current="step"] { color: var(--ink); }
.progress li[aria-current="step"]::before { border-color: var(--action); background: var(--action); color: #FFFFFF; }
.progress li.done::before { content: "\2713"; border-color: var(--brand); background: var(--brand); color: #FFFFFF; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: clamp(20px, 3.5vw, 34px); }
.form { display: grid; gap: 18px; }
.row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label, fieldset legend { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 50px; width: 100%;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--focus) 30%, transparent); outline-offset: 0; background: var(--surface); }
[aria-invalid="true"] { border-color: var(--error) !important; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.help { font-size: 0.88rem; color: var(--ink-2); }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 0.95rem; line-height: 1.3;
}
.choice input:checked + span { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); font-weight: 600; }
.choice input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
fieldset[aria-invalid="true"] .choice span { border-color: var(--error); }
.field-error { color: var(--error); font-size: 0.86rem; font-weight: 600; }
.consent { font-size: 0.88rem; color: var(--ink-2); }
.submit-row { display: grid; gap: 10px; }
.form-step { display: grid; gap: 18px; }
.step-label { font-family: var(--font-label); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand); }
.step-head { display: grid; gap: 8px; }
.step-title { font-size: clamp(1.3rem, 1.1rem + 0.6vw, 1.6rem); outline: none; }
.submit-row .btn-ghost, .cal-actions .btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.text-link { color: var(--ink-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Step 2: pick a time ----------
   The calendar sits beside the form and spans the whole row, so it measures the same width
   whether it is warming up out of sight or on screen. Showing it is then instant. */
.book-cal { grid-column: 1 / -1; }
.book-cal[data-warming] {
  /* grid-column above makes the grid area itself the containing block, so the frame warms up
     at exactly the width it will have on screen: revealing it costs no reflow at all. */
  position: absolute; inset: 0 0 auto 0;
  height: 1px; overflow: hidden; opacity: 0; pointer-events: none;
}
.book.is-calendar { grid-template-columns: minmax(0, 1fr); }
.book.is-calendar .book-side, .book.is-calendar .form-card { display: none; }

.cal-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); overflow: hidden; display: grid;
  max-width: 960px; margin-inline: auto; width: 100%;
}
.cal-head {
  display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 4px 14px;
  padding: clamp(16px, 2.6vw, 24px) clamp(16px, 3vw, 28px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 9%, var(--surface)), var(--surface));
  border-bottom: 1px solid var(--line);
}
.cal-mark {
  grid-row: span 2; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand); color: #FFFFFF; align-self: start;
}
.cal-mark svg { width: 24px; height: 24px; }
.cal-head-text { display: grid; gap: 5px; min-width: 0; }
.cal-head .step-title { font-size: clamp(1.22rem, 1.05rem + 0.6vw, 1.55rem); }
.cal-tz {
  grid-column: 2; display: flex; align-items: flex-start; gap: 8px; margin-top: 4px;
  font-size: 0.86rem; color: var(--ink-2);
}
.cal-tz svg { width: 16px; height: 16px; flex: none; color: var(--brand); margin-top: 2px; }

.cal-embed { position: relative; background: #FFFFFF; min-height: 320px; }
.cal-embed iframe {
  display: block; width: 100%; border: 0;
  height: 780px; height: clamp(680px, 76vh, 860px); height: clamp(680px, 76svh, 860px);
  opacity: 0; transition: opacity 0.35s ease;
}
.cal-embed.is-ready iframe { opacity: 1; }
.cal-loading {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px;
  background: var(--surface); color: var(--ink-2); font-size: 0.92rem; transition: opacity 0.3s ease;
}
.cal-embed.is-ready .cal-loading { opacity: 0; pointer-events: none; }
.cal-spin {
  width: 30px; height: 30px; border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--brand) 22%, transparent); border-top-color: var(--brand);
  animation: cal-spin 0.9s linear infinite;
}
@keyframes cal-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .cal-spin { animation: none; border-top-color: color-mix(in srgb, var(--brand) 22%, transparent); }
  .cal-embed iframe, .cal-loading { transition: none; }
}
.cal-embed--preview { display: grid; place-items: center; text-align: center; min-height: 260px; padding: 32px 24px; background: var(--paper-2); color: var(--ink-2); }
.cal-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  padding: clamp(14px, 2.4vw, 20px) clamp(16px, 3vw, 28px); border-top: 1px solid var(--line); background: var(--paper-2);
}
@media (max-width: 640px) {
  .cal-head { grid-template-columns: 38px minmax(0, 1fr); gap: 3px 12px; }
  .cal-mark { width: 38px; height: 38px; border-radius: 11px; }
  .cal-mark svg { width: 20px; height: 20px; }
  .cal-tz { grid-column: 1 / -1; font-size: 0.82rem; margin-top: 12px; }
  .cal-embed iframe { height: 760px; height: clamp(600px, calc(100vh - 150px), 800px); height: clamp(600px, calc(100svh - 150px), 800px); }
  .cal-actions .btn { width: 100%; }
}
.submit-row .btn-ghost:hover, .cal-actions .btn-ghost:hover { border-color: var(--ink-2); }
.submit-row .btn { width: 100%; }
.form-status { font-size: 0.88rem; color: var(--ink-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Sub pages ---------- */
.page { min-height: 60vh; }
.page-head { background: var(--forest); color: var(--on-forest); padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); }
.page-head h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); font-weight: 800; max-width: 24ch; }
.page-head .lede { color: var(--on-forest-2); }
.page-head .eyebrow { color: var(--on-forest-2); }
.legal { display: grid; gap: 16px; max-width: 74ch; }
.legal h2 { font-size: 1.7rem; margin-top: 18px; }
.legal ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal h2[id] { scroll-margin-top: 96px; }
.legal .callout { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--leaf); border-radius: 12px; padding: 16px 18px; }
.legal .caps { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.01em; }
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.toc-title { font-family: var(--font-label); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 16rem; column-gap: 32px; }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.ph { background: var(--ph-bg); color: var(--ph-ink); padding: 0 4px; border-radius: 4px; font-weight: 600; }
.ph-block { border: 2px dashed var(--ph-ink); background: var(--ph-bg); color: var(--ph-ink); border-radius: 12px; padding: 14px 16px; font-size: 0.95rem; }

/* ---------- Footer ---------- */
.site-footer { background: #030806; color: #C9D8CF; padding-block: 48px calc(28px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; }
.site-footer a { color: #EDF3EE; }
.footer-small { font-size: 0.85rem; color: #93A79C; margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface) 94%, transparent); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: translateY(0); visibility: visible; transition: transform .25s ease, visibility 0s;
}
.sticky-cta .btn { width: 100%; }
.sticky-cta.off { transform: translateY(110%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
@media (max-width: 760px) { .sticky-cta { display: block; } body.has-sticky { padding-bottom: 80px; } }

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