/* ==========================================================
   Clarevanto Consulting: stylesheet
   Design idea: figures behave like a ledger. Prices use tabular
   numbers, and the Complete Package is set as a statement with a
   single rule above the total and a double rule beneath it.
   Everything else stays quiet.

   1. Tokens (colours, type, spacing): edit here
   2. Base
   3. Layout helpers and buttons
   4. Header and navigation
   5. Hero
   6. Services
   7. Pricing (built by js/pricing.js)
   8. How it works, values, FAQ, call to action
   9. Footer and floating WhatsApp button
   10. Motion and responsive
   ========================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Colour: from the Clarevanto logo, plus WhatsApp green */
  --ink: #001F3C;          /* logo navy: text, dark sections, statement */
  --ink-deep: #011529;     /* footer */
  --ink-soft: #173A61;     /* secondary navy */
  --gold: #C9A043;         /* logo gold: rules, ticks, double rule under totals */
  --gold-light: #E2C77F;   /* gold text on navy (8:1) */
  --gold-text: #7F6119;    /* gold text on white or cream (5:1) */
  --paper: #FFFFFF;        /* page */
  --cream: #F9F5EE;        /* logo background: pricing band and statement sheet */
  --cream-deep: #F1EADC;
  --slate: #4B586A;        /* secondary text (7:1 on white) */
  --rule: #E3DBCB;         /* hairlines */
  --rule-strong: #CFC3AB;
  --on-ink: #D3DCE7;       /* body text on navy */
  --on-ink-muted: #AEBBCB;
  --whatsapp: #17803F;     /* every WhatsApp button, and nothing else (white text 5:1) */
  --whatsapp-dark: #11632F;

  /* Type: two families */
  --font-display: "Marcellus", "Trajan Pro", Georgia, serif;   /* headings and wordmark */
  --font-text: "Source Sans 3", "Source Sans Pro", "Segoe UI", system-ui, sans-serif; /* text and figures */

  /* Type scale (px): 14 / 17 / 21 / 28 / 36 / 48 / 64 */
  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 1.45rem + 1.9vw, 3rem);
  --step-4: clamp(2.5rem, 1.55rem + 3.6vw, 4rem);

  /* Shape: one small radius scale */
  --r-sm: 4px;    /* badges, chips */
  --r-md: 8px;    /* buttons, inputs */
  --r-lg: 12px;   /* panels */

  --container: 1160px;
  --header-h: 76px;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: var(--gold-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }

.icon {
  width: 1.25em; height: 1.25em; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

:focus-visible { outline: 3px solid var(--ink-soft); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .section-navy :focus-visible, .cta-band :focus-visible,
.site-footer :focus-visible, .statement-intro :focus-visible { outline-color: var(--gold-light); }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-md); font-weight: 600;
}
.skip-link:focus { top: 12px; color: #fff; }

.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;
}

/* Placeholder highlight: disappears once [[...]] text is replaced */
.ph {
  background: #FFF6CC; color: #5C4600;
  outline: 1.5px dashed #C9A100; outline-offset: 1px;
  border-radius: 3px; padding: 0 .2em;
}

/* Ticks: the accountant's checked-off line */
.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 3px; top: .42em; width: 13px; height: 7px;
  border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text);
  transform: rotate(-45deg);
}

/* ---------- 3. Layout helpers and buttons ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section-cream { background: var(--cream); }
.section-navy { background: var(--ink); color: var(--on-ink); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head p { color: var(--slate); font-size: 1.125rem; max-width: 60ch; margin-bottom: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 12px 22px;
  font: 600 1rem/1.2 var(--font-text); text-decoration: none; white-space: nowrap;
  border-radius: var(--r-md); border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }
.btn-sm { min-height: 42px; padding: 8px 16px; font-size: .9688rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--whatsapp); color: #fff; }
.btn-wa:hover { background: var(--whatsapp-dark); color: #fff; }
.btn-ghost { color: #fff; border-color: rgba(226, 199, 127, .6); background: transparent; }
.btn-ghost:hover { color: #fff; border-color: var(--gold-light); background: rgba(255, 255, 255, .06); }

/* ---------- 4. Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-color: var(--rule); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 46px; height: 46px; flex-shrink: 0; border-radius: 10px; background: var(--cream); border: 1px solid rgba(201, 160, 67, .5); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand-name { font: 400 1.35rem/1.1 var(--font-display); letter-spacing: .09em; white-space: nowrap; }
/* The logo lockup "— CONSULTING —": the only tracked capitals on the site */
.brand-tag {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 3px;
  font-size: .64rem; font-weight: 600; letter-spacing: .4em; color: var(--gold-text);
}
.brand-tag::before, .brand-tag::after { content: ""; width: 14px; height: 1px; background: var(--gold); }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-tag { color: var(--gold-light); }

.nav-toggle {
  display: none; width: 46px; height: 46px; flex-shrink: 0;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: #fff; color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav ul { display: flex; gap: 2px; }
.site-nav ul a {
  position: relative; display: block; padding: 8px 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--ink); color: #fff;
  padding: clamp(64px, 9vw, 128px) 0 clamp(64px, 8vw, 112px);
}
.hero-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.hero-lines { position: absolute; pointer-events: none; width: min(900px, 90vw); height: auto; opacity: .4; top: -40px; right: -80px; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { color: #fff; max-width: 16ch; margin-bottom: 28px; }
.hero-lead { font-size: 1.25rem; line-height: 1.6; color: var(--on-ink); max-width: 50ch; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.credentials { display: grid; gap: 6px; font-size: 1rem; color: var(--on-ink); }
.credentials li { padding-left: 14px; border-left: 2px solid rgba(226, 199, 127, .55); line-height: 1.4; }

/* The month on the books, set like a statement on cream paper */
.hero-sheet {
  background: var(--cream); color: var(--ink);
  border-radius: var(--r-lg); padding: 28px 28px 26px;
  box-shadow: 0 28px 56px -28px rgba(0, 0, 0, .6);
}
.hero-sheet-title { font: 400 1.375rem/1.25 var(--font-display); margin: 0 0 10px; }
.sheet-lines li {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid var(--rule-strong);
}
.sheet-lines .tick { color: var(--gold-text); width: 1.15em; height: 1.15em; stroke-width: 2.25; }
.sheet-total { margin: 22px 0 0; font-size: 1.0625rem; }
.sheet-figure {
  font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums lining-nums;
  text-decoration: underline double var(--gold); text-underline-offset: 6px; text-decoration-thickness: 1px;
}

/* ---------- 6. Services: three ruled columns, like a ledger page ---------- */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.service { display: flex; flex-direction: column; padding: 32px 32px 0 0; }
.service + .service { padding-left: 32px; border-left: 1px solid var(--rule); }
.service h3 { font-size: var(--step-2); margin-bottom: 12px; }
.service > p { color: var(--slate); max-width: 42ch; }
.service .ticks { margin: 4px 0 28px; }
.service .btn { margin-top: auto; align-self: flex-start; }
.services-more { margin: 40px 0 0; font-weight: 600; }

/* ---------- 7. Pricing ---------- */
#pricing-app [hidden] { display: none !important; }
.pricing-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; max-width: none; }

/* Billing period: segmented control */
.billing-toggle { border: 0; padding: 0; margin: 0; min-width: 0; }
.billing-options {
  display: inline-grid; grid-auto-flow: column; gap: 4px; padding: 4px;
  background: #fff; border: 1px solid var(--rule); border-radius: 10px;
}
.billing-option { position: relative; cursor: pointer; }
.billing-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.billing-pill {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  border-radius: 7px; font-weight: 600; font-size: .9688rem; color: var(--ink); white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.billing-option:hover .billing-pill { background: var(--cream); }
.billing-option input:checked + .billing-pill { background: var(--ink); color: #fff; }
.billing-option input:focus-visible + .billing-pill { outline: 3px solid var(--ink-soft); outline-offset: 2px; }
.billing-save {
  font-size: .8125rem; font-weight: 700; padding: 1px 7px; border-radius: var(--r-sm);
  background: var(--cream-deep); color: var(--gold-text);
}
.billing-option input:checked + .billing-pill .billing-save { background: rgba(226, 199, 127, .18); color: var(--gold-light); }

/* The three single-service plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.plan {
  display: flex; flex-direction: column; padding: 28px 26px 26px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r-lg);
}
.plan-title { font-size: var(--step-2); margin-bottom: 6px; }
.plan-desc { color: var(--slate); margin-bottom: 18px; }
.band-picker { margin-bottom: 4px; }
.band-label { display: block; font-weight: 600; font-size: .9688rem; margin-bottom: 6px; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg);
}
.select-wrap select {
  width: 100%; min-height: 48px; padding: 10px 40px 10px 14px; appearance: none; -webkit-appearance: none;
  font: 600 1rem/1.3 var(--font-text); color: var(--ink);
  background: #fff; border: 1.5px solid var(--rule-strong); border-radius: var(--r-md); cursor: pointer;
}
.select-wrap select:hover { border-color: var(--gold); }
.band-range { font-size: .9688rem; color: var(--slate); margin: 8px 0 0; }

.plan-price { margin: 20px 0 22px; padding: 18px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; }
.price-figure {
  font: 700 clamp(1.75rem, 1.45rem + .9vw, 2.125rem)/1.1 var(--font-text); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums lining-nums; color: var(--ink);
}
.price-per { font-size: 1rem; color: var(--slate); }
.price-note { margin: 6px 0 0; font-size: .9688rem; color: var(--slate); }
.price-save {
  display: inline-block; margin: 10px 0 0; padding: 3px 9px; border-radius: var(--r-sm);
  font-size: .9063rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--cream-deep); color: var(--gold-text);
}
.plan .ticks { margin-bottom: 24px; font-size: 1rem; }
.plan-note { font-size: .9375rem; color: var(--slate); margin: -6px 0 16px; }
.plan-note + .plan-note { margin-top: -10px; }
.plan > .btn { margin-top: auto; }

/* The Complete Package: a statement on navy, with a cream ledger sheet */
.statement {
  margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); overflow: hidden;
}
.statement-intro { display: flex; flex-direction: column; padding: clamp(28px, 4vw, 44px); }
.statement-badge {
  align-self: flex-start; margin: 0 0 16px; padding: 4px 10px; border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 700; background: var(--gold); color: var(--ink);
}
.statement-title { font-size: var(--step-3); color: #fff; margin-bottom: 10px; }
.statement-desc { color: var(--on-ink); margin-bottom: 22px; max-width: 44ch; }
.statement-intro .band-picker { max-width: 360px; }
.statement-intro .band-label { color: var(--gold-light); }
.statement-intro .band-range { color: var(--on-ink); }
.statement-intro .select-wrap select { border-color: transparent; }
.statement-note { font-size: .9375rem; color: var(--on-ink-muted); margin: 16px 0 0; }

.statement-sheet { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 44px); background: var(--paper); color: var(--ink); }
.ledger { width: 100%; border-collapse: collapse; font-size: 1.0625rem; font-variant-numeric: tabular-nums lining-nums; }
.ledger .num { text-align: right; white-space: nowrap; }
.ledger thead th { padding: 0 0 10px; font-size: .9375rem; font-weight: 600; color: var(--slate); text-align: left; border-bottom: 1px solid var(--rule-strong); }
.ledger thead th.num { text-align: right; }
.ledger tbody th { padding: 14px 16px 14px 0; font-weight: 400; text-align: left; border-bottom: 1px solid var(--rule); }
.ledger tbody td { padding: 14px 0; font-weight: 600; border-bottom: 1px solid var(--rule); }
.ledger tbody tr:last-child th, .ledger tbody tr:last-child td { border-bottom: 0; }
.ledger tfoot th { padding: 16px 16px 0 0; font-weight: 700; font-size: 1.125rem; text-align: left; vertical-align: top; }
/* Accounting convention: a single rule above the total, a double rule beneath it */
.ledger tfoot td { padding: 12px 0 8px; border-top: 1.5px solid var(--ink); border-bottom: 4px double var(--gold); }
.ledger-total { font-size: clamp(1.75rem, 1.45rem + .9vw, 2.125rem); font-weight: 700; letter-spacing: -.01em; line-height: 1.1; }
.statement-sheet .price-note { margin-top: 16px; }
.statement-sheet .price-save { align-self: flex-start; }
.statement-sheet .btn { margin-top: 26px; align-self: flex-start; width: auto; }

.pricing-notes {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 48px;
  margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--rule-strong);
}
.pricing-notes h3 { font: 700 1.0625rem/1.4 var(--font-text); margin-bottom: 6px; }
.pricing-notes p { margin: 0; color: var(--slate); font-size: .9688rem; max-width: 62ch; }
.pricing-payment { margin: 28px 0 0; color: var(--slate); font-size: .9688rem; }
.pricing-footnote { margin: 8px 0 0; color: var(--slate); font-size: .875rem; }

/* ---------- 8. How it works, values, FAQ, call to action ---------- */
/* A real sequence, so it is numbered, with a gold line joining the steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0 0 48px; }
.steps::before {
  content: ""; position: absolute; top: 22px; height: 1px; background: var(--gold);
  left: 22px; right: calc((100% - 96px) / 4 - 22px);
}
.step { position: relative; }
.step-num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--paper); border: 1.5px solid var(--gold);
  font: 400 1.25rem/1 var(--font-display); color: var(--ink);
}
.step h3 { margin: 22px 0 8px; }
.step p { color: var(--slate); margin: 0; }

.values-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.values-layout h2 { color: #fff; max-width: 14ch; margin: 0; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 40px; }
.value { padding-top: 18px; border-top: 1px solid rgba(226, 199, 127, .4); }
.value dt { font: 400 var(--step-1)/1.25 var(--font-display); color: var(--gold-light); margin-bottom: 8px; }
.value dd { color: var(--on-ink); max-width: 38ch; }

.faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.6fr); gap: 32px 64px; align-items: start; }
.faq-aside { position: sticky; top: calc(var(--header-h) + 32px); }
.faq-aside h2 { max-width: 12ch; }
.faq-aside p { color: var(--slate); max-width: 34ch; }
.wa-link { color: var(--whatsapp); font-weight: 700; }
.wa-link:hover { color: var(--whatsapp-dark); }
.faq-list { border-top: 2px solid var(--ink); }
.faq { border-bottom: 1px solid var(--rule); }
.faq summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 48px 22px 0; font-weight: 600; font-size: 1.125rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-right: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--gold-text); }
.faq-body { padding: 0 48px 24px 0; color: var(--slate); }
.faq-body p { margin: 0; max-width: 62ch; }

.cta-band { background: var(--ink-soft); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: var(--step-2); margin-bottom: .3em; }
.cta-band p { color: var(--on-ink); margin: 0; }

/* ---------- 9. Footer and floating WhatsApp button ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-ink-muted); padding: 72px 0 0; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 20px; max-width: 40ch; }
.footer-title { font: 600 1.0625rem/1.3 var(--font-text); color: #fff; margin-bottom: 18px; }
.contact-list, .footer-links { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .icon { color: var(--gold-light); margin-top: .15em; }
.site-footer a { color: #E3E9F0; text-decoration: none; }
.site-footer a:hover { color: var(--gold-light); text-decoration: underline; }
.site-footer .brand-light, .site-footer .brand-light:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 24px; padding-bottom: 28px; font-size: .9375rem;
}
@media (min-width: 641px) { .footer-bottom { padding-right: 104px; } } /* keep clear of the floating button */
.footer-bottom p { margin: 0; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 10px 24px -8px rgba(1, 21, 41, .5), 0 0 0 3px #fff;
  transition: background-color .15s;
}
.wa-float:hover { background: var(--whatsapp-dark); color: #fff; }
.wa-float .icon { width: 30px; height: 30px; }

/* ---------- 10. Motion and responsive ---------- */
/* The only animation that is not a hover: a brief gold wash on figures the visitor just changed */
@keyframes figure-updated {
  from { background-color: rgba(201, 160, 67, .42); }
  to { background-color: rgba(201, 160, 67, 0); }
}
.is-updated { animation: figure-updated 1s ease-out; border-radius: var(--r-sm); }

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

/* Large tablets: menu collapses (matches js/main.js) */
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px 24px 24px; background: #fff;
    border-bottom: 2px solid var(--gold); box-shadow: 0 18px 30px -18px rgba(0, 31, 60, .3);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--rule); }
  .site-nav ul a::after { display: none; }
  .site-nav ul a.is-active { color: var(--gold-text); }
  .site-nav .btn { min-height: 50px; }

  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-sheet { max-width: 560px; }
}

/* Tablets */
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps::before { display: none; }
  .step { padding: 0 0 32px 68px; min-height: 76px; }
  .step-num { position: absolute; left: 0; top: 0; }
  .step:not(:last-child)::after { content: ""; position: absolute; left: 22px; top: 44px; bottom: 0; width: 1px; background: var(--gold); }
  .step h3 { margin-top: 8px; }

  .values-layout, .faq-layout { grid-template-columns: minmax(0, 1fr); }
  .values-layout h2, .faq-aside h2 { max-width: none; }
  .faq-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .services { grid-template-columns: minmax(0, 1fr); }
  .service { padding: 28px 0 32px; }
  .service + .service { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule); }
  .pricing-head { grid-template-columns: minmax(0, 1fr); }
  .billing-options { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; max-width: 560px; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .statement { grid-template-columns: minmax(0, 1fr); }
  .statement-sheet .btn { width: 100%; align-self: stretch; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body { font-size: 1rem; }
  .container { padding: 0 16px; }
  .brand { gap: 10px; }
  .brand-mark { width: 40px; height: 40px; border-radius: 9px; }
  .brand-name { font-size: 1.15rem; }
  .brand-tag { font-size: .58rem; letter-spacing: .34em; gap: 6px; }
  .brand-tag::before, .brand-tag::after { width: 10px; }

  .hero-lead { font-size: 1.0625rem; }
  .hero-actions .btn { width: 100%; }
  .hero-lines { width: 140vw; }
  .hero-sheet { padding: 22px 20px 20px; }

  .section-head p { font-size: 1.0625rem; }
  .service .btn { align-self: stretch; }
  .billing-pill { flex-direction: column; gap: 2px; min-height: 60px; padding: 8px 6px; white-space: normal; text-align: center; }
  .plan { padding: 24px 20px; }
  .statement-sheet .ledger { font-size: 1rem; }
  .pricing-notes { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .faq summary { font-size: 1.0625rem; padding-right: 40px; }
  .faq-body { padding-right: 0; }
  .cta-inner .btn { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
  .footer-bottom { padding-bottom: 96px; } /* keep clear of the floating button */
}

@media print {
  .site-header, .wa-float, .cta-band, .btn, .hero-deco { display: none !important; }
  .hero, .section-navy, .statement { background: none; color: #000; }
}
