/* ==========================================================================
   EVO Proptech - design system
   Tokens, then primitives, then sections. Mobile-first.
   ========================================================================== */

:root {
  /* Brand
     Two-tier on purpose. --brand is the display orange: it clears 3:1 only at
     large sizes, so it is for headline-scale text, borders and fills.
     --brand-ink clears 4.5:1 on every light surface here and is the ONLY
     brand colour allowed on small text. White on --brand is 4.18:1 and fails,
     so buttons fill with --brand-600 (5.22:1) instead. */
  --brand:        #D4521A;
  --brand-ink:    #B04010;
  --brand-600:    #BC4614;
  --brand-700:    #9C380E;
  --brand-800:    #7D2C0A;
  --brand-tint:   #FDF1EA;
  --brand-tint-2: #FAE1D3;

  /* Ink + surfaces */
  --ink:      #14100D;
  --ink-2:    #3D3833;
  --ink-3:    #6B635B;
  --ink-4:    #9A9187;
  --bg:       #FFFCFA;
  --surface:  #FFFFFF;
  --surface-2:#FBF7F4;
  --line:     #EBE3DC;
  --line-2:   #DCD1C7;

  /* Semantic */
  --go:       #157347;
  --go-tint:  #E7F4EC;
  --caution:  #A55F0B;
  --caution-tint: #FCF2E3;
  --stop:     #B3261E;
  --stop-tint:#FBEAE9;

  /* Type */
  --serif: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Space + shape */
  --r-sm: 8px; --r: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(20,16,13,.05), 0 1px 3px rgba(20,16,13,.04);
  --shadow-2: 0 4px 12px rgba(20,16,13,.06), 0 12px 32px rgba(20,16,13,.06);
  --shadow-3: 0 8px 24px rgba(20,16,13,.08), 0 24px 64px rgba(20,16,13,.10);
  --ring: 0 0 0 3px rgba(212,82,26,.28);

  --header-h: 68px;
  --maxw: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 999;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 64px; }
.section--tight { padding-block: 48px; }
.section--alt { background: var(--surface-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--ink); color: #F5F0EB; }
.grid { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) and (max-width: 959px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-tint);
  border: 1px solid var(--brand-tint-2);
  padding: 6px 12px; border-radius: 999px;
}
.section--ink .eyebrow { color: #FFC9AB; background: rgba(212,82,26,.16); border-color: rgba(212,82,26,.35); }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 6.2vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.25; }
.h-em { color: var(--brand); font-style: italic; }
.lede { font-size: clamp(1rem, 2.1vw, 1.15rem); color: var(--ink-2); max-width: 62ch; }
.section--ink .lede { color: #C9C0B8; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.xsmall { font-size: 12px; }

.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head > * + * { margin-top: 14px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand-600); color: #fff; box-shadow: 0 2px 0 var(--brand-800), var(--shadow-1); }
.btn--primary:hover { background: var(--brand-700); box-shadow: 0 2px 0 var(--brand-800), var(--shadow-2); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink-3); background: var(--surface-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #F3ECE6; }
.btn--lg { padding: 17px 30px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }
.btn__arrow { transition: transform .15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.cta-note b { color: var(--ink-2); font-weight: 600; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--shadow-1);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.card--hover:hover { border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card__tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card > * + * { margin-top: 10px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: #F7F2ED; font-size: 13.5px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  padding: 9px 44px 9px 20px; position: relative; text-align: center;
}
.announce b { color: #fff; }
.announce s { color: #A79C93; }
.announce a { color: #FFB68F; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce__close {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: #A79C93; font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.announce__close:hover { color: #fff; background: rgba(255,255,255,.1); }
.announce[hidden] { display: none; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,252,250,.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.nav { display: none; margin-left: auto; gap: 4px; }
.nav a { padding: 9px 13px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
/* Current section: colour alone never carries it — the underline is the
   non-colour cue, so it survives a colour-vision difference. */
.nav a[aria-current] { color: var(--brand-ink); font-weight: 600; }
.nav a[aria-current]::after {
  content: ""; display: block; height: 2px; margin-top: 3px;
  border-radius: 2px; background: var(--brand-ink);
}
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header__tel { display: none; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.header__tel:hover { color: var(--brand); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header__actions { margin-left: 0; }
  .header__tel { display: inline-flex; }
}
/* Narrow phones: the brand + CTA must fit on one line without clipping. */
@media (max-width: 480px) {
  .header__inner { gap: 10px; }
  .brand { font-size: 15px; }
  .brand__mark { width: 28px; height: 28px; }
  .header .btn { padding: 11px 15px; font-size: 13.5px; }
  .header .btn .btn__arrow { display: none; }
  .announce { font-size: 12.5px; padding-inline: 16px 38px; }
}

/* ---------- Mobile navigation ----------
   Below 900px the primary nav collapses. Without this the nav links are
   simply unreachable on a phone, which is most of this audience. */
.navtoggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 11px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink);
  flex: none;
}
.navtoggle:hover { background: var(--surface-2); }
.navtoggle .bar { transition: transform .22s ease, opacity .18s ease; transform-origin: center; }
.navtoggle[aria-expanded="true"] .bar-1 { transform: translateY(6px) rotate(45deg); }
.navtoggle[aria-expanded="true"] .bar-2 { opacity: 0; }
.navtoggle[aria-expanded="true"] .bar-3 { transform: translateY(-6px) rotate(-45deg); }

.mobilenav {
  position: fixed; inset: calc(var(--header-h)) 0 auto 0; z-index: 55;
  background: var(--bg); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  padding: 14px 20px 22px;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.mobilenav[hidden] { display: none; }
.mobilenav a.mobilenav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-size: 16.5px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobilenav a.mobilenav__link:hover { color: var(--brand-700); }
.mobilenav a.mobilenav__link svg { color: var(--ink-4); }
.mobilenav__foot { margin-top: 20px; display: grid; gap: 10px; }
.mobilenav__tel {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; padding: 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface);
}
body.nav-open { overflow: hidden; }
@media (min-width: 900px) { .navtoggle, .mobilenav { display: none !important; } }

/* ---------- Sample report preview ---------- */
.preview-grid { display: grid; gap: 36px; align-items: center; }
@media (min-width: 940px) { .preview-grid { grid-template-columns: .92fr 1.08fr; gap: 52px; } }

.pages { position: relative; display: grid; gap: 16px; }
@media (min-width: 620px) { .pages { grid-template-columns: repeat(3, 1fr); align-items: start; } }
.page {
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  box-shadow: var(--shadow-2); padding: 14px; font-size: 10px; line-height: 1.45;
  aspect-ratio: 3 / 4; overflow: hidden; position: relative;
  /* Stacked single-column: cap the width, or the 3:4 ratio turns each page
     into a near-empty full-width slab. */
  max-width: 260px; margin-inline: auto;
}
@media (min-width: 620px) {
  .page { max-width: none; margin-inline: 0; }
  .page-1 { transform: rotate(-2deg); }
  .page-2 { transform: translateY(-14px); z-index: 2; }
  .page-3 { transform: rotate(2deg); }
}
.page__brand { display: flex; align-items: center; gap: 5px; font-size: 8.5px; font-weight: 800; letter-spacing: .06em; color: var(--brand-ink); text-transform: uppercase; }
.page__brand i { width: 11px; height: 11px; border-radius: 3px; background: var(--brand); display: block; flex: none; }
.page__title { font-family: var(--serif); font-size: 13px; line-height: 1.15; margin-top: 10px; }
.page__rule { height: 1px; background: var(--line); margin: 9px 0; }
.page__label { font-size: 7.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.page__score { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--go); line-height: 1; margin-top: 4px; }
.page__row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 4px 0; border-bottom: 1px dotted var(--line-2); }
.page__row:last-child { border-bottom: 0; }
.page__row span:first-child { color: var(--ink-2); }
.page__flag { font-size: 8px; font-weight: 800; padding: 2px 6px; border-radius: 999px; white-space: nowrap; }
.flag-go { background: var(--go-tint); color: var(--go); }
.flag-cau { background: var(--caution-tint); color: #8A5009; } /* 8px text needs more headroom than --caution gives */
.flag-stop { background: var(--stop-tint); color: var(--stop); }
.page__bar { height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 4px; }
.page__bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); }
.page__skeleton { height: 5px; border-radius: 3px; background: var(--line); margin-top: 5px; }
.page__skeleton.w80 { width: 80%; } .page__skeleton.w60 { width: 60%; } .page__skeleton.w90 { width: 90%; }
.page__stamp {
  color: var(--ink-3);
  position: absolute; right: 10px; bottom: 10px;
  font-size: 7.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 3px 7px;
}
.pages-caption { text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 22px; }

/* ---------- Proof / testimonials ---------- */
.proof-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.quote { display: flex; flex-direction: column; }
.quote__mark { font-family: var(--serif); font-size: 3rem; line-height: .8; color: var(--brand-tint-2); }
.quote__body { margin-top: 8px; color: var(--ink-2); flex: 1; }
.quote__who { display: flex; align-items: center; gap: 11px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.quote__avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-700); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.quote__name { font-weight: 600; font-size: 14px; }
.quote__meta { font-size: 12.5px; color: var(--ink-3); }

/* A visibly unfilled slot — never a fabricated review. */
.slot {
  border: 1.5px dashed var(--line-2); background: repeating-linear-gradient(
    -45deg, transparent, transparent 9px, rgba(212,82,26,.035) 9px, rgba(212,82,26,.035) 18px);
  box-shadow: none;
}
.slot__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-700); background: var(--brand-tint); border: 1px solid var(--brand-tint-2);
  padding: 5px 10px; border-radius: 999px;
}

/* ---------- Sources / methodology ---------- */
.sources { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.source-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px;
}
.source-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); flex: none; }

/* ---------- Legal / content pages ---------- */
.doc { max-width: 76ch; margin-inline: auto; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.doc h2 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-top: 40px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p, .doc ul, .doc ol { margin-top: 14px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 8px; }
.doc__meta { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
/* Prose links only. Without the :not(.btn) a CTA button inside an article
   inherits this colour and underline, painting dark orange text onto the
   orange button — 1.35:1, effectively invisible. */
.doc a:not(.btn) { color: var(--brand-700); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 20px; }
@media (min-width: 820px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card__meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.post-card h2 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); line-height: 1.2; margin-top: 10px; }
.post-card h2 a:hover { color: var(--brand-ink); }
.post-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; flex: 1; }
.post-card__more { margin-top: 14px; font-weight: 600; font-size: 14px; color: var(--brand-ink); }
.post-card:hover .post-card__more { text-decoration: underline; text-underline-offset: 3px; }

.post-head { max-width: 76ch; margin-inline: auto; }
.post-head__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--ink-3); margin-top: 14px; }
.post-toc {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; margin: 32px 0;
}
.post-toc h2 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.post-toc ol { margin: 10px 0 0; padding-left: 20px; font-size: 14.5px; }
.post-toc li { margin-top: 6px; }
.post-toc a { color: var(--brand-ink); text-decoration: none; }
.post-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }

.callout {
  border-left: 4px solid var(--brand); background: var(--brand-tint);
  padding: 18px 22px; border-radius: 0 var(--r) var(--r) 0; margin: 28px 0;
}
.callout__k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.callout p { margin-top: 8px; }

.rate-table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14.5px; }
.rate-table th, .rate-table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rate-table thead th { background: var(--surface-2); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rate-table tbody tr:last-child td { border-bottom: 0; }

.post-cta {
  margin-top: 48px; padding: 28px; border-radius: var(--r-lg);
  background: var(--surface-2); border: 1px solid var(--line); text-align: center;
}
.post-cta h2 { font-size: 1.4rem; }
.post-cta p { margin: 10px auto 18px; max-width: 54ch; color: var(--ink-2); }

.post-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; }
.post-nav a { color: var(--brand-ink); font-weight: 600; }
.post-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }

.breadcrumb { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.breadcrumb a { color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--brand-ink); }
.breadcrumb span { margin: 0 6px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: 90px 110px; }
.notfound__code { font-family: var(--serif); font-size: clamp(4rem, 16vw, 8rem); line-height: 1; color: var(--brand-tint-2); }

/* ---------- Alert strip ---------- */
.alert-strip {
  background: var(--brand-tint); border-bottom: 1px solid var(--brand-tint-2);
  font-size: 13.5px; color: var(--ink-2); text-align: center; padding: 10px 20px;
}
.alert-strip b { color: var(--brand-700); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); display: inline-block; margin-right: 8px; vertical-align: 1px; }
.dot--pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

/* ---------- Hero ---------- */
.hero { padding-block: 48px 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 620px; z-index: -1;
  background: radial-gradient(58% 60% at 22% 30%, rgba(212,82,26,.10), transparent 70%),
              radial-gradient(45% 50% at 88% 8%,  rgba(21,115,71,.07), transparent 70%);
}
.hero__grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 56px; } }
.hero h1 { margin-top: 20px; }
.hero__sub { margin-top: 18px; font-size: clamp(1.02rem, 2.2vw, 1.2rem); font-weight: 500; color: var(--ink); max-width: 34ch; }
.hero__body { margin-top: 12px; color: var(--ink-2); max-width: 54ch; }
.hero__proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 999px;
}
.chip svg { color: var(--go); flex: none; }
.hero__cta { margin-top: 28px; }
.hero__scarcity { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

/* Score card */
.scorecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-3); overflow: hidden; }
.scorecard__head { padding: 22px 24px 6px; text-align: center; }
.scorecard__label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.gauge { display: grid; place-items: center; padding: 4px 0 10px; }
.gauge__svg { width: 200px; height: 128px; }
.gauge__track { stroke: var(--line); }
.gauge__fill { stroke: var(--go); stroke-linecap: round; transition: stroke-dashoffset 1.4s cubic-bezier(.2,.8,.2,1); }
.gauge__num { font-family: var(--serif); font-size: 44px; font-weight: 700; fill: var(--ink); }
.gauge__of { font-size: 11px; fill: var(--ink-3); font-family: var(--sans); letter-spacing: .04em; }
.badge-go {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--go-tint); color: var(--go); border: 1px solid rgba(21,115,71,.2);
  font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
}
.scorecard__guide { margin: 18px 20px 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.guide-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 13.5px; }
.guide-row + .guide-row { border-top: 1px solid var(--line); }
.guide-row__band { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.guide-row__band i { width: 8px; height: 8px; border-radius: 50%; }
.guide-row__what { color: var(--ink-3); font-size: 13px; text-align: right; }
.b-go i { background: var(--go); } .b-go { color: var(--go); }
.b-caution i { background: var(--caution); } .b-caution { color: var(--caution); }
.b-stop i { background: var(--stop); } .b-stop { color: var(--stop); }

/* ---------- Forms ---------- */
.leadform { margin: 20px; padding: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.leadform__title { font-family: var(--serif); font-size: 1.2rem; }
.leadform__price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.price-now { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--brand-ink); }
.price-was { text-decoration: line-through; color: var(--ink-3); font-size: 15px; }
.price-off { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--go); background: var(--go-tint); padding: 3px 8px; border-radius: 999px; }
.field { margin-top: 12px; }
.field > label, .field > .field-label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.req { color: var(--brand-ink); }
.input, .select {
  width: 100%; padding: 12px 14px; font-size: 15px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border-color: var(--stop); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%236B635B' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
/* Space is reserved rather than collapsed: an error appearing must not shove
   the rest of the form down (content-jumping guideline). */
.err { display: block; font-size: 12px; line-height: 1.35; color: var(--stop); margin-top: 5px; min-height: 1.35em; }

/* Error summary — focused on failed submit so the failure is announced once,
   with each item linking to the field that caused it. Inline errors stay. */
.form-errors {
  border: 1px solid var(--stop); border-left-width: 4px; border-radius: var(--r-sm);
  background: var(--stop-tint); padding: 14px 16px; margin-bottom: 4px;
}
.form-errors[hidden] { display: none; }
.form-errors:focus-visible { outline: 2px solid var(--stop); outline-offset: 2px; }
.form-errors__title { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--stop); }
.form-errors ul { margin: 8px 0 0; padding-left: 18px; font-size: 13.5px; }
.form-errors li + li { margin-top: 4px; }
.form-errors a:not(.btn) { color: var(--stop); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* Send failure: a dead end for the lead unless we hand over another route,
   so this reads as a redirection rather than an apology. */
.send-failure { border-left-color: var(--caution); border-color: var(--caution); background: var(--caution-tint); }
.send-failure .form-errors__title { color: #8A5009; }
.send-failure__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.send-failure__actions .btn { text-decoration: none; font-size: 14px; padding: 12px 18px; }

/* Handoff is not a failure state: nothing went wrong from the visitor's side,
   so it reads as the next step and carries no alarm colour. */
.handoff { border-color: var(--go); border-left-color: var(--go); background: var(--go-tint); }
.handoff .form-errors__title { color: var(--go); }
.segmented { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label {
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 13.5px; font-weight: 600; padding: 11px 8px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
  transition: all .15s;
}
.segmented label:hover { border-color: var(--ink-4); }
.segmented input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.segmented input:focus-visible + label { box-shadow: var(--ring); }
.form-foot { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 10px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { display: none; text-align: center; padding: 26px 12px; }
.form-success h3 { margin-bottom: 8px; }
form.is-sent { display: none; }
form.is-sent + .form-success { display: block; }
.tick { width: 48px; height: 48px; margin: 0 auto 14px; border-radius: 50%; background: var(--go-tint); color: var(--go); display: grid; place-items: center; }

/* ---------- Stat bar ---------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 22px 20px; }
.stat__n { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; color: var(--brand-ink); line-height: 1; font-variant-numeric: lining-nums; }
.stat__k { font-weight: 600; font-size: 14.5px; margin-top: 8px; }
.stat__d { font-size: 13px; color: var(--ink-3); margin-top: 3px; }

/* ---------- Risk cards ---------- */
.risk { border-left: 3px solid var(--brand-tint-2); }
.risk:hover { border-left-color: var(--brand); }
.risk__tag { color: var(--brand-700); }

/* ---------- Steps ---------- */
.step__n { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; color: var(--brand); line-height: 1; }
.step__time { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--go); background: var(--go-tint); padding: 4px 10px; border-radius: 999px; display: inline-block; }
.step__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Report contents ---------- */
.report-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .report-grid { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 11px; padding: 10px 0; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.check-list li:last-child { border-bottom: 0; }
.check-list svg { flex: none; color: var(--go); margin-top: 3px; }
.cat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.cat-card h3 { font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-700); }
.cat-card ul { list-style: none; padding: 0; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.cat-card li { padding: 4px 0 4px 16px; position: relative; }
.cat-card li::before { content: ""; position: absolute; left: 0; top: 13px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-tint-2); }
.cat-card .more { color: var(--ink-3); font-size: 13px; padding-left: 16px; margin-top: 4px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 10px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-3); white-space: nowrap; transition: all .15s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.tabpanel[hidden] { display: none; }
.tabpanel { margin-top: 28px; }
.stage { display: grid; gap: 24px; }
@media (min-width: 820px) { .stage { grid-template-columns: .85fr 1.15fr; align-items: start; } }

/* ---------- Versus ---------- */
.versus { display: grid; gap: 20px; }
@media (min-width: 860px) { .versus { grid-template-columns: 1fr 1fr; } }
.vs-card { border-radius: var(--r-lg); padding: 26px; border: 1px solid var(--line); }
.vs-card--bad { background: var(--stop-tint); border-color: rgba(179,38,30,.18); }
.vs-card--good { background: var(--surface); border-color: var(--go); box-shadow: var(--shadow-2); }
.vs-card h3 { font-family: var(--serif); font-size: 1.5rem; }
.vs-list { list-style: none; padding: 0; margin-top: 16px; }
.vs-list li { display: flex; gap: 10px; font-size: 14.5px; padding: 9px 0; border-bottom: 1px solid rgba(20,16,13,.07); }
.vs-list li:last-child { border-bottom: 0; }
.vs-list svg { flex: none; margin-top: 3px; }
.vs-card--bad svg { color: var(--stop); }
.vs-card--good svg { color: var(--go); }
.vs-foot { margin-top: 18px; padding-top: 16px; border-top: 2px solid rgba(20,16,13,.1); }
.vs-foot__k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.vs-foot__v { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; margin-top: 4px; }
.vs-card--bad .vs-foot__v { color: var(--stop); }
.vs-card--good .vs-foot__v { color: var(--go); }

/* ---------- Pricing table ---------- */
.ptable-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.ptable { width: 100%; border-collapse: collapse; min-width: 640px; }
.ptable th, .ptable td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
.ptable thead th { vertical-align: bottom; background: var(--surface-2); }
.ptable tbody tr:last-child td { border-bottom: 0; }
.ptable tbody tr:hover { background: var(--surface-2); }
.ptable .col-evo { background: var(--brand-tint); border-inline: 1px solid var(--brand-tint-2); }
.ptable tbody tr:hover .col-evo { background: var(--brand-tint-2); }
.ptable th.col-evo { background: var(--brand-tint-2); }
.pcol-name { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pcol-price { font-family: var(--serif); font-size: 1.5rem; font-weight: 700; margin-top: 6px; }
.pill-rec { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: #fff; background: var(--brand-600); padding: 3px 9px; border-radius: 999px; display: inline-block; margin-bottom: 8px; }
.yes { color: var(--go); font-weight: 600; }
.no { color: var(--ink-3); }

/* ---------- Lead magnet ---------- */
.magnet { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .magnet { grid-template-columns: 1.1fr .9fr; } }
.magnet-form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.magnet-form .input { flex: 1 1 240px; }
.pdf-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px; text-align: center; box-shadow: var(--shadow-2);
  transform: rotate(-1.4deg);
}
.pdf-card__icon { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 12px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }

/* ---------- FAQ ---------- */
.faq { 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: 20px 4px; cursor: pointer; list-style: none;
  font-weight: 600; font-size: 16.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand-700); }
.faq summary .chev { flex: none; color: var(--ink-3); transition: transform .2s ease; }
.faq details[open] summary .chev { transform: rotate(180deg); color: var(--brand); }
.faq .answer { padding: 0 4px 22px; color: var(--ink-2); max-width: 76ch; }
.faq .answer > * + * { margin-top: 12px; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; }
.final::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(60% 80% at 15% 0%, rgba(212,82,26,.22), transparent 62%);
}
.final .wrap { position: relative; z-index: 1; }
.final__grid { display: grid; gap: 36px; align-items: start; }
@media (min-width: 980px) { .final__grid { grid-template-columns: 1.05fr .95fr; gap: 52px; } }
.final h2 { color: #fff; }
.price-flip { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 24px; }
.price-block__k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #A79C93; }
.price-block__v { font-family: var(--serif); font-size: 2rem; font-weight: 700; margin-top: 4px; }
.price-block--old .price-block__v { color: #877D74; text-decoration: line-through; }
.price-block--new .price-block__v { color: #FF8B4C; }
.final .check-list li { color: #C9C0B8; border-color: rgba(255,255,255,.09); }
.final-note { margin-top: 26px; padding: 18px 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); }
.final-note__k { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FFC9AB; }
.final-card { background: var(--surface); color: var(--ink); border-radius: var(--r-xl); box-shadow: var(--shadow-3); overflow: hidden; }
.final-card__head { padding: 24px 24px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.final-card form { padding: 4px 24px 24px; }

/* ---------- Footer ---------- */
.footer { background: #0E0B09; color: #A79C93; padding-block: 52px 28px; font-size: 14px; }
.footer__grid { display: grid; gap: 32px; }
@media (min-width: 860px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer h4 { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #E8E1DA; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; }
.footer li + li { margin-top: 9px; }
.footer a:hover { color: #FFB68F; }
.footer .brand { color: #fff; }
.contact-line { display: flex; align-items: center; gap: 10px; margin-top: 9px; }
.contact-line svg { color: #6E645C; flex: none; }
/* #6E645C on this ground is 3.4:1 — disclaimers are legally load-bearing text
   and must clear 4.5:1 like any other body copy. */
.footer__legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.09); font-size: 12px; color: #9A8F86; }
.footer__legal p + p { margin-top: 10px; }
.footer__legal b { color: #C4B9AF; }
.footer__legal a { color: #C4B9AF; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Target sizes (WCAG 2.2 AA, 24x24 CSS px) ----------
   Inline text links collapse to ~17px tall from line-height alone. Padding
   is added on the block axis so the hit area clears 24px without changing
   the visual rhythm of the lists they sit in. */
.footer li a,
.footer .contact-line a,
.announce a,
.doc a:not(.btn) { display: inline-block; padding-block: 4px; }
.footer li a { padding-block: 5px; }
/* Padding only — this one is inline-flex (icon + number) and must stay that
   way, or the icon drops onto its own line. */
.header__tel { padding-block: 4px; }

/* ---------- Floating / sticky ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: 9px;
  background: #0E7A40; color: #fff; font-weight: 700; font-size: 14px;
  padding: 12px 15px; border-radius: 999px; box-shadow: var(--shadow-2);
  transition: transform .15s, background-color .15s;
}
.wa-float:hover { transform: translateY(-2px); background: #0B6435; }
/* The expanded pill sat on top of hero copy at tablet widths. Keep it a
   compact icon until there is genuinely room beside the content column. */
.wa-float span { display: none; }
@media (min-width: 1180px) { .wa-float span { display: inline; } }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 65;
  background: rgba(255,252,250,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta__price { line-height: 1.2; }
.mobile-cta__price b { font-family: var(--serif); font-size: 1.15rem; color: var(--brand-ink); }
.mobile-cta .btn { margin-left: auto; padding: 13px 20px; }
@media (min-width: 900px) { .mobile-cta { display: none; } }
@media (max-width: 899px) { .wa-float { bottom: 76px; } }

/* ---------- Content visibility ----------
   Deliberately no scroll-triggered opacity animation. Hiding content behind
   JS + a CSS transition means any stall — a throttled background tab, a slow
   device, a blocked script — leaves sections blank or half-faded. On a page
   whose whole job is to be trusted and read, content is always visible.
   .reveal is kept as a hook only; it must never affect opacity. */
.reveal { opacity: 1; }

/* ==========================================================================
   COMPONENT GUARD — keep this last.
   Buttons are components, not prose links. Container-scoped rules like
   `.doc a`, `.form-errors a` or `.footer li a` match any anchor inside them,
   including `.btn`, and silently repaint it. That has now produced two real
   defects: an article CTA at 1.35:1 and a WhatsApp handoff button at 1.25:1,
   both effectively invisible. Equal specificity means source order decides,
   so these re-assertions at the end of the file win.
   ========================================================================== */
a.btn { text-decoration: none; }
a.btn--primary { color: #fff; }
a.btn--ghost   { color: var(--ink); }
a.btn--light   { color: var(--ink); }
