/* HyperLocal landing — tokens */
:root {
  --paper: #F3F5F0;
  --surface: #FFFFFF;
  --ink: #10231F;
  --ink-2: #4A5C57;
  --line: #D7DFD8;
  --jade: #0E7C66;
  --jade-strong: #0A5E4D;
  --jade-soft: #DCEEE7;
  --star: #E9A800;
  --alert: #C2412D;
  --alert-soft: #F8E3DE;
  --wait: #8A5A00;
  --wait-soft: #FBEFCF;
  --river: #CFE2E6;
  --land: #E9EEE6;
  --block: #DEE5DB;
  --road: #FFFFFF;

  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 8px;
  --header-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1715;
    --surface: #15211E;
    --ink: #E4ECE8;
    --ink-2: #A3B4AE;
    --line: #26342F;
    --jade: #2BB394;
    --jade-strong: #5FD0B3;
    --jade-soft: #163A31;
    --star: #F5C33B;
    --alert: #EF7461;
    --alert-soft: #3A1E19;
    --wait: #F2C66B;
    --wait-soft: #3A2E12;
    --river: #17323A;
    --land: #13201D;
    --block: #1A2926;
    --road: #24332F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1715; --surface: #15211E; --ink: #E4ECE8; --ink-2: #A3B4AE; --line: #26342F;
  --jade: #2BB394; --jade-strong: #5FD0B3; --jade-soft: #163A31; --star: #F5C33B;
  --alert: #EF7461; --alert-soft: #3A1E19; --wait: #F2C66B; --wait-soft: #3A2E12;
  --river: #17323A; --land: #13201D; --block: #1A2926; --road: #24332F;
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--jade-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--jade); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; line-height: 1.22; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 5.4vw + 0.6rem, 3.75rem); font-weight: 700; line-height: 1.14; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 2.6vw + 0.9rem, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.narrow { max-width: 760px; }
.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 { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--jade); color: #fff; }
.btn-primary:hover { background: var(--jade-strong); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary { color: #06201A; } }
:root[data-theme="dark"] .btn-primary { color: #06201A; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Chips */
.chip { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 500; line-height: 1.6; white-space: nowrap; }
.chip-wait { background: var(--wait-soft); color: var(--wait); }
.chip-soon { background: var(--jade-soft); color: var(--jade-strong); }

/* Stars */
.stars { color: var(--star); letter-spacing: 1px; white-space: nowrap; }
.stars-off { color: var(--line); }
.stars-dim { opacity: .45; }
.stars-bad { color: var(--alert); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-row { height: var(--header-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-mark { width: 22px; height: 22px; color: var(--jade); align-self: center; }
.brand-name { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.header-nav { display: none; gap: 24px; }
.header-nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.header-nav a:hover { color: var(--ink); }
@media (min-width: 900px) { .header-nav { display: flex; } }

/* Hero */
.hero { padding: 28px 0 56px; }
.hero-grid { display: grid; gap: 32px; }
.hero-beta { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px var(--jade-soft); }
.hero h1 { max-width: 14ch; }
.lede { margin-top: 18px; font-size: clamp(1.05rem, .6vw + .95rem, 1.2rem); color: var(--ink-2); max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn { flex: 1 1 auto; }
.fineprint { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
@media (min-width: 560px) { .hero-actions .btn { flex: 0 0 auto; } }
@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero-grid { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; }
}

/* Map illustration */
.map {
  position: relative; margin: 0;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--land);
  border: 1px solid var(--line);
}
.map-svg { width: 100%; height: auto; }
.m-land { fill: var(--land); }
.m-block { fill: var(--block); }
.m-river { fill: var(--river); }
.m-road { fill: none; stroke: var(--road); stroke-width: 6; stroke-linecap: round; }
.m-road-main { stroke-width: 11; }
.m-label { font: 500 9px var(--font); fill: var(--ink-2); opacity: .8; }
.m-label-water { font-style: italic; }
.pin path { fill: var(--ink-2); stroke: var(--surface); stroke-width: 2; }
.pin text { font: 700 9.5px var(--font); fill: #fff; text-anchor: middle; }
.pin-good path { fill: var(--jade); }
.pin-hot path { fill: var(--jade-strong); }
.pin-bad path { fill: var(--alert); }
.pin-ring { fill: var(--jade); opacity: .18; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pin text { fill: #06201A; } }
:root[data-theme="dark"] .pin text { fill: #06201A; }

.map-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 10px 30px -12px rgba(16, 35, 31, .35);
  padding: 12px 14px;
  font-size: .82rem; line-height: 1.45;
}
.map-card-stat { top: 14px; right: 14px; width: min(48%, 200px); }
.mc-title { font-weight: 700; }
.mc-big { font-size: 1.7rem; font-weight: 700; color: var(--jade-strong); letter-spacing: -0.03em; line-height: 1.1; margin-top: 4px; }
.mc-sub { color: var(--ink-2); }
.spark { width: 100%; height: 24px; margin-top: 6px; }
.spark path { fill: none; stroke: var(--jade); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.map-card-review { left: 14px; right: 14px; bottom: 14px; max-width: 340px; }
.mc-review-head { display: flex; align-items: center; gap: 8px; }
.mc-who { font-weight: 500; }
.mc-quote { margin-top: 4px; }
.mc-status { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink-2); }
/* Màn hình hẹp: thẻ review nằm dưới bản đồ để không che ghim */
@media (max-width: 559px) {
  .map-card { font-size: .8rem; padding: 10px 12px; }
  .map-card-stat { top: 8px; right: 8px; width: auto; padding: 6px 10px; }
  .map-card-stat .mc-title, .map-card-stat .spark { display: none; }
  .mc-big { font-size: 1.25rem; margin-top: 0; }
  .mc-sub { font-size: .72rem; }
  .map-card-review { position: relative; left: auto; right: auto; bottom: auto; max-width: none; margin: 0 10px 10px; }
}

/* One orchestrated entrance: pins drop, then cards appear */
@media (prefers-reduced-motion: no-preference) {
  .pin { opacity: 0; animation: pin-drop .5s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(.25s + var(--i) * .12s); }
  .pin-ring { transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out 1.4s infinite; }
  .map-card { opacity: 0; animation: card-in .45s ease-out both; }
  .map-card-stat { animation-delay: 1.05s; }
  .map-card-review { animation-delay: 1.3s; }
}
@keyframes pin-drop { from { opacity: 0; translate: 0 -14px; } to { opacity: 1; translate: 0 0; } }
@keyframes card-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes ring { 0% { transform: scale(.6); opacity: .35; } 100% { transform: scale(1.8); opacity: 0; } }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head p { margin-top: 14px; color: var(--ink-2); }

/* Problem */
.problem { background: var(--surface); border-block: 1px solid var(--line); }
.pain-list { margin-top: 28px; display: grid; gap: 20px; }
.pain-list li { padding-left: 20px; border-left: 3px solid var(--alert); color: var(--ink-2); }
.pain-list strong { display: block; color: var(--ink); margin-bottom: 2px; }

/* Ranking factors */
.factors { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.factor { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.factor dt { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; }
.factor dd { margin: 0; }
.factor-what { color: var(--ink-2); }
.factor-how { margin-top: 4px; }
@media (min-width: 800px) {
  .factor { grid-template-columns: 200px 1fr 1.4fr; gap: 32px; align-items: baseline; padding: 28px 0; }
  .factor-how { margin-top: 0; }
}

/* Features */
.features { background: var(--paper); }
.feature-group { display: grid; gap: 18px; }
.feature-group + .feature-group { margin-top: 48px; }
.feature-group h3 { font-size: 1rem; color: var(--jade-strong); }
.feature-list { display: grid; gap: 18px; }
.feature-list li { color: var(--ink-2); }
.feature-list strong { color: var(--ink); display: block; margin-bottom: 2px; }
@media (min-width: 720px) { .feature-list { grid-template-columns: 1fr 1fr; gap: 24px 40px; } }
@media (min-width: 960px) {
  .feature-group { grid-template-columns: 160px 1fr; gap: 40px; }
  .feature-group-visual { grid-template-columns: 160px 1fr 360px; }
  .feature-group-visual .feature-list { grid-template-columns: 1fr; }
}

.board { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; font-size: .92rem; align-self: start; }
.board-head, .board-row { display: grid; grid-template-columns: 1fr 48px 1fr; gap: 12px; align-items: center; }
.board-head { font-size: .78rem; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.board-row { padding: 10px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board-row span:nth-child(2) { font-weight: 700; }
.bar { height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--jade) var(--v), var(--line) var(--v)); }
.board-row-bad span:nth-child(2) { color: var(--alert); }
.board-row-bad .bar { background: linear-gradient(90deg, var(--alert) var(--v), var(--line) var(--v)); }
.board-note { margin-top: 12px; font-size: .85rem; color: var(--alert); }

/* Branch pages */
.branch-pages { background: var(--surface); border-block: 1px solid var(--line); }
.branch-grid { display: grid; gap: 40px; align-items: center; }
.branch-lede { margin-top: 14px; color: var(--ink-2); max-width: 60ch; }
.branch-list { margin-top: 22px; display: grid; gap: 10px; }
.branch-list li { position: relative; padding-left: 28px; }
.branch-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--jade); border-bottom: 2.5px solid var(--jade); transform: rotate(-45deg); }
.branch-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.branch-actions .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .branch-actions .btn { flex: 0 0 auto; } }
@media (min-width: 960px) { .branch-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }

/* Phone mockup of a branch page — uses the customer's brand colours, not ours */
.phone {
  --pb: #5B3422; --pa: #C8743A; --pbg: #F7F3EF; --pink: #2A1A12; --pmut: #6B5A50; --pline: #E6DCD3;
  display: block; width: min(300px, 100%); margin: 0 auto; padding: 10px;
  border-radius: 38px; background: #1B1512; text-decoration: none;
  box-shadow: 0 30px 60px -30px rgba(16, 35, 31, .5);
  transition: transform .2s ease;
}
.phone:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .phone, .phone:hover { transition: none; transform: none; } }
.phone-screen { border-radius: 30px; overflow: hidden; background: var(--pbg); color: var(--pink); font-size: 12px; line-height: 1.45; padding-bottom: 14px; }
.ph-cover { height: 78px; background: radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--pa) 55%, var(--pb)) 0 34px, transparent 35px), var(--pb); }
.ph-card { position: relative; margin: -22px 10px 0; padding: 26px 12px 10px; background: #fff; border: 1px solid var(--pline); border-radius: 14px; }
.ph-logo { position: absolute; top: -18px; left: 12px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--pa); color: #fff; font-weight: 700; font-size: 12px; border: 3px solid #fff; }
.ph-cat { color: var(--pmut); font-size: 11px; }
.ph-name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.ph-rating { color: var(--pmut); }
.ph-rating b { color: var(--pink); }
.ph-open { display: flex; align-items: center; gap: 6px; color: #2F7D4F; font-weight: 500; }
.ph-open span { width: 7px; height: 7px; border-radius: 50%; background: #2F7D4F; }
.ph-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 10px 10px 0; }
.ph-actions span { display: grid; place-items: center; min-height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--pline); font-weight: 500; font-size: 11px; }
.ph-actions .ph-main { background: var(--pb); border-color: var(--pb); color: #fff; }
.ph-review { margin: 10px 10px 0; padding: 10px 12px; background: #fff; border: 1px solid var(--pline); border-radius: 12px; }
.ph-review p:first-child { font-weight: 700; }
.ph-reply { margin-top: 6px; padding: 6px 8px; border-left: 2px solid var(--pa); background: var(--pbg); color: var(--pmut); border-radius: 0 6px 6px 0; }
.ph-write { margin: 10px 10px 0; display: grid; place-items: center; min-height: 34px; border-radius: 999px; border: 1.5px solid var(--pb); color: var(--pb); font-weight: 700; font-size: 11px; }

/* Rules */
.rule-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.rule-table thead th { font-size: .82rem; font-weight: 500; color: var(--ink-2); text-align: left; padding: 12px 22px; border-bottom: 1px solid var(--line); }
.rule-table tbody th, .rule-table tbody td { text-align: left; vertical-align: middle; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.rule-table tbody tr:last-child th, .rule-table tbody tr:last-child td { border-bottom: 0; }
.rule-table tbody th { font-weight: 500; width: 55%; }
.rule-table tbody th .stars { margin-right: 6px; }
.rule-table td { color: var(--jade-strong); font-weight: 500; }
.rule-table td.rt-hold { color: var(--wait); }
.rule-table td.rt-alert { color: var(--alert); }
.chip-lock { background: var(--wait-soft); color: var(--wait); margin-left: 6px; }
@media (max-width: 639px) {
  .rule-table thead { display: none; }
  .rule-table tbody tr { display: grid; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .rule-table tbody tr:last-child { border-bottom: 0; }
  .rule-table tbody th, .rule-table tbody td { padding: 0; border: 0; width: auto; }
}
.safeguards { margin-top: 24px; display: grid; gap: 10px; }
.safeguards li { position: relative; padding-left: 28px; color: var(--ink-2); }
.safeguards li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--jade); border-bottom: 2.5px solid var(--jade); transform: rotate(-45deg); }
@media (min-width: 720px) { .safeguards { grid-template-columns: 1fr 1fr; gap: 12px 40px; } }

/* Steps: a real sequence, so numbered */
.steps { background: var(--paper); }
.rules, .industries { background: var(--surface); border-block: 1px solid var(--line); }
.step-list { counter-reset: step; display: grid; gap: 28px; }
.step-list li { counter-increment: step; position: relative; padding-left: 56px; }
.step-list li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--jade-soft); color: var(--jade-strong); font-weight: 700;
}
.step-list li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 44px; bottom: -22px; width: 2px; background: var(--line); }
.step-list p { margin-top: 6px; color: var(--ink-2); }
@media (min-width: 860px) {
  .step-list { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .step-list li { padding-left: 0; padding-top: 56px; }
  .step-list li:not(:last-child)::after { left: 48px; right: -32px; top: 18px; bottom: auto; width: auto; height: 2px; }
}

/* Industries */
.industry-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.industry-list > div { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.industry-list dt { font-weight: 700; }
.industry-list dd { margin: 0; color: var(--ink-2); }
@media (min-width: 720px) { .industry-list > div { grid-template-columns: 220px 1fr; gap: 24px; } }

/* Don'ts */
.donts { background: var(--ink); color: var(--paper); }
.donts p { margin-top: 10px; opacity: .8; }
.dont-list { margin-top: 28px; display: grid; gap: 14px; }
.dont-list li { position: relative; padding-left: 30px; font-size: 1.05rem; }
.dont-list li::before, .dont-list li::after { content: ""; position: absolute; left: 4px; top: .8em; width: 14px; height: 2.5px; background: var(--alert); border-radius: 2px; }
.dont-list li::before { transform: rotate(45deg); }
.dont-list li::after { transform: rotate(-45deg); }

/* FAQ */
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding: 14px 0; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: inherit; font-weight: 500; letter-spacing: 0; line-height: 1.45; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); font-size: 1.1rem; color: var(--jade-strong); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 64ch; }

/* Signup */
.signup { background: var(--jade-soft); }
.signup-grid { display: grid; gap: 28px; }
.signup-copy p { margin-top: 14px; color: var(--ink-2); max-width: 44ch; }
.signup-alt { font-weight: 500; }
@media (min-width: 960px) { .signup-grid { grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; } }

.lead-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 12px; min-width: 0; display: grid; gap: 16px; }
@media (min-width: 560px) { .lead-form { padding: 32px; } }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .95rem; padding: 0; }
.field legend { margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--ink-2); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px tránh iOS tự phóng to */
  color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: var(--r-sm);
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--jade); box-shadow: 0 0 0 3px var(--jade-soft); }
.field [aria-invalid="true"] { border-color: var(--alert); }
.field-error { font-size: .85rem; color: var(--alert); min-height: 0; }
.field-error:empty { display: none; }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: grid; place-items: center; min-height: 48px; padding: 0 4px; text-align: center;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font-size: .95rem; font-weight: 500; line-height: 1.2;
}
.segmented input:checked + span { border-color: var(--jade); background: var(--jade-soft); color: var(--jade-strong); }
.segmented input:focus-visible + span { outline: 3px solid var(--jade); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { min-height: 65px; max-width: 100%; overflow: hidden; }
.form-status { font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--jade-strong); }
.form-status.is-error { color: var(--alert); }
.consent { font-size: .85rem; color: var(--ink-2); }
.lead-form.is-done > :not(.form-status) { display: none; }
.lead-form.is-done .form-status { font-size: 1.1rem; padding: 12px 0; }

/* Footer */
.site-footer { padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.footer-grid { display: grid; gap: 24px; }
.footer-brand { font-weight: 700; color: var(--ink); font-size: 1.1rem; margin-bottom: 4px; }
.footer-legal { margin-top: 12px; font-size: .85rem; }
.footer-links { display: grid; gap: 4px; }
.footer-links a { display: inline-block; padding: 8px 0; color: var(--ink); }
.footer-copy { font-size: .8rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr; } .footer-copy { grid-column: 1 / -1; } }

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: auto 1fr; gap: 10px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s ease;
}
.sticky-cta[hidden] { display: none; }
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 900px) { .sticky-cta { display: none !important; } }
@media (max-width: 899px) { body.has-sticky { padding-bottom: 72px; } }

/* Legal pages */
.legal { padding: 40px 0 80px; }
.legal h1 { font-size: clamp(1.9rem, 3vw + 1rem, 2.6rem); }
.legal .updated { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.legal h2 { font-size: 1.3rem; margin-top: 36px; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal .lang-switch { margin-top: 16px; font-size: .95rem; }
.legal .breadcrumb { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.legal h3 { margin-top: 28px; }
.legal .breadcrumb-top { margin: 0 0 12px; }
