/* =========================================================================
   REIGN CLEANS — site.css  v1.0
   Tokens and components implement docs/ARCH-DESIGN.md exactly.
   Do not add colours. A new colour is a tint of one of the five.
   ========================================================================= */

/* ---------- 1. TOKENS --------------------------------------------------- */
:root {
  /* the five */
  --primary:        #2E1F62;   /* Reign Indigo  */
  --secondary:      #1B1238;   /* Midnight Ink  */
  --accent:         #D4A03A;   /* Reign Gold    */
  --surface:        #FAF7F2;   /* Ivory         */
  --text:           #191325;   /* Obsidian      */

  /* derived tints */
  --primary-dark:   #221749;
  --primary-tint:   #EDE9F7;
  --surface-2:      #F1EAE0;
  --surface-3:      #EDE9F7;
  --line:           #E4DACB;   /* decorative hairlines on ivory (1.38:1 — not UI) */
  --line-strong:    #D6C9B4;   /* table rules, dividers (decoration only)          */
  /* Borders that IDENTIFY a control must clear 3:1 per WCAG SC 1.4.11.
     Measured: #93866F is 3.57:1 on white and 3.34:1 on ivory.
     #D6C9B4 was 1.63:1 and failed — inputs used it, which was a real defect. */
  --border-input:   #93866F;
  --text-muted:     #5B5470;
  --accent-ink:     #8A5A00;
  --accent-soft:    #E6BC5C;
  --on-dark:        #E9E4F2;
  --on-dark-muted:  #C9C1DE;
  --white:          #FFFFFF;

  /* semantic */
  --ok: #2E7D5B;  --ok-tint: #E4F0EA;
  --warn: #8A5A00; --warn-tint: #F7EEDC;
  --danger: #B3261E; --danger-tint: #FBE9E7;

  /* gradients — 135deg, 2 stops */
  --grad-cta:  linear-gradient(135deg, #2E1F62 0%, #1B1238 100%);
  --grad-hero: linear-gradient(135deg, rgba(27,18,56,.92) 0%, rgba(46,31,98,.72) 100%);
  --grad-gold: linear-gradient(135deg, #E6BC5C 0%, #D4A03A 100%);

  /* type */
  --font-display: 'Fraunces','Iowan Old Style','Palatino Linotype',Georgia,serif;
  --font-body:    'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --fs-h1:    clamp(2.5rem, 1.55rem + 3.9vw, 4.5rem);
  --fs-h2:    clamp(2rem, 1.55rem + 1.9vw, 3rem);
  --fs-h3:    clamp(1.375rem, 1.24rem + 0.55vw, 1.75rem);
  --fs-h4:    clamp(1.125rem, 1.07rem + 0.24vw, 1.3125rem);
  --fs-lead:  clamp(1.0625rem, 1rem + 0.38vw, 1.25rem);
  --fs-body:  clamp(1rem, 0.975rem + 0.11vw, 1.0625rem);
  --fs-small: 1rem;        /* was 15px — card and secondary body copy is body copy */
  --fs-meta:  0.875rem;    /* 14px: the hard floor, secondary meta lines only      */
  --fs-label: 0.875rem;    /* 14px: uppercase labels and badges only               */
  --fs-price: clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem);
  --lh-tight: 1.14;
  --lh-body:  1.7;
  --ls-head:  -0.02em;
  --ls-caps:  0.12em;

  /* spacing — 8px grid */
  --s-1:8px; --s-2:16px; --s-3:24px; --s-4:32px;
  --s-5:48px; --s-6:64px; --s-7:80px; --s-8:96px; --s-9:128px;
  --section-y:       clamp(3rem, 1.4rem + 6.4vw, 6rem);
  --section-y-large: clamp(4rem, 2rem + 8vw, 7rem);
  --gutter:          clamp(1.5rem, 0.9rem + 2.4vw, 2.5rem);
  --container:        1200px;
  --container-narrow: 760px;
  --card-pad:        clamp(1.5rem, 1.2rem + 1vw, 2rem);

  /* radii */
  --r-btn:4px; --r-sm:6px; --r-md:10px; --r-lg:16px; --r-pill:999px;

  /* shadows */
  --sh-sm:   0 1px 2px rgba(25,19,37,.06);
  --sh-md:   0 6px 20px -6px rgba(25,19,37,.18);
  --sh-lg:   0 18px 44px -12px rgba(25,19,37,.28);
  --sh-nav:  0 2px 14px rgba(25,19,37,.10);
  --sh-gold: 0 8px 24px -8px rgba(212,160,58,.55);

  /* motion */
  --t-fast:120ms; --t-base:220ms; --t-slow:420ms;
  --ease-out:    cubic-bezier(.22,.61,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --ease-pop:    cubic-bezier(.34,1.32,.64,1);

  /* chrome */
  --nav-h:76px; --nav-h-scroll:68px; --pricebar-h:88px; --wa-size:60px;

  /* z ladder */
  --z-base:1; --z-raised:10; --z-sticky:60; --z-nav:100;
  --z-wa:120; --z-overlay:200; --z-modal:300; --z-toast:400;
}

/* ---------- 2. RESET / BASE -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

h1,h2,h3 { font-family: var(--font-display); font-weight: 700; letter-spacing: var(--ls-head); }
h1 { font-size: var(--fs-h1); line-height: 1.06; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-tight); }
h3 { font-size: var(--fs-h3); line-height: 1.22; font-weight: 600; }
h4 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
p  { max-width: 65ch; }

.tnum, .price, [data-count], .stat__num, table { font-feature-settings: 'tnum' 1; font-variant-numeric: tabular-nums; }

/* ---------- 3. FOCUS ---------------------------------------------------- */
/* One focus-ring definition. Indigo by default because gold is only 2.21:1 on
   ivory and fails SC 1.4.11 as a focus indicator; indigo is 13.20:1. Gold is
   reinstated on dark surfaces, where it is 7.47:1 and indigo would vanish. */
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--primary); outline-offset: 2px; border-radius: var(--r-btn);
}
.nav :focus-visible, .navmenu :focus-visible, .hero :focus-visible,
.pagehero :focus-visible, .ctaband :focus-visible, .footer :focus-visible,
.section--dark :focus-visible, .trustbar :focus-visible, .wa:focus-visible {
  outline-color: var(--accent);
}
.btn--gold:focus-visible, [data-on-gold]:focus-visible { outline-color: var(--primary); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: var(--z-toast);
  background: var(--accent); color: var(--text); padding: var(--s-2) var(--s-3); font-weight: 700;
}
.skip:focus { left: var(--s-2); top: var(--s-2); }

/* ---------- 4. LAYOUT --------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.section--tint { background: var(--surface-2); }
.section--dark { background: var(--grad-cta); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark p { color: var(--on-dark); }

.section-head { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: var(--s-6); }
.section-head p { margin-inline: auto; }
.section-head--left { margin-inline: 0; text-align: left; }
.eyebrow {
  display: inline-block; font-size: var(--fs-label); font-weight: 700;
  text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--accent-ink);
  margin-bottom: var(--s-1);
}
.section--dark .eyebrow { color: var(--accent); }
.section-head h2 { margin-bottom: var(--s-2); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); }
.section--dark .lead { color: var(--on-dark-muted); }

.grid { display: grid; gap: var(--s-3); }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2,1fr); }
  .grid--3 { grid-template-columns: repeat(2,1fr); }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
}
@media (min-width: 1024px) {
  .grid { gap: var(--s-4); }
  .grid--3 { grid-template-columns: repeat(3,1fr); }
  .grid--4 { grid-template-columns: repeat(4,1fr); }
}

/* ---------- 5. BUTTONS -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
  min-height: 48px; padding: .85rem 2rem; border: 0; border-radius: var(--r-btn);
  font-family: var(--font-body); font-size: 1rem; font-weight: 700; line-height: 1;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color var(--t-base) var(--ease-out),
              color var(--t-base) var(--ease-out),
              transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              border-color var(--t-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn__arrow { transition: transform var(--t-base) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); box-shadow: var(--sh-md); }
.btn--gold { background: var(--accent); color: var(--text); }
.btn--gold:hover { background: var(--accent-soft); box-shadow: var(--sh-gold); }
.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.7); }
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: var(--white); }
.btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn--outline:hover { background: var(--primary); color: var(--white); }
.btn--sm { min-height: 44px; padding: .6rem 1.25rem; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
@media (max-width: 639px) { .btn--stack { width: 100%; } }

/* ---------- 6. NAV ------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h); background: var(--primary);
  border-bottom: 1px solid rgba(212,160,58,.22);
  transition: height var(--t-base) var(--ease-out),
              background-color var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out);
}
.nav--scrolled { height: var(--nav-h-scroll); background: var(--secondary); box-shadow: var(--sh-nav); }
.nav__inner { display: flex; align-items: center; gap: var(--s-3); height: 100%; }
.nav__logo {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--white); text-decoration: none; font-family: var(--font-display);
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.02em;
  transition: transform var(--t-base) var(--ease-out);
}
.nav--scrolled .nav__logo { transform: scale(.92); }
.nav__logo svg { width: 30px; height: 30px; flex: 0 0 auto; }
.nav__logo em { font-style: normal; color: var(--accent); }
.nav__links { display: none; align-items: center; gap: var(--s-3); }
.nav__links a {
  position: relative; color: var(--on-dark); text-decoration: none;
  font-size: var(--fs-small); font-weight: 600; padding: 6px 2px;
  transition: color var(--t-fast) var(--ease-out);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transition: transform var(--t-base) var(--ease-out);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--white); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__burger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 0; cursor: pointer;
  color: var(--white); border-radius: var(--r-btn); margin-left: auto;
}
.nav__burger span { display: block; width: 22px; height: 2px; background: currentColor; position: relative; }
.nav__burger span::before, .nav__burger span::after {
  content: ''; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast);
}
.nav__burger span::before { top: -7px; } .nav__burger span::after { top: 7px; }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span::after  { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1024px) {
  .nav__links { display: flex; }
  .nav__cta { display: inline-flex; }
  .nav__burger { display: none; }
}

.navmenu {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  background: var(--grad-cta); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s-3);
  padding: var(--s-7) var(--gutter) var(--s-5);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out), visibility var(--t-base);
  overflow-y: auto;
}
body.menu-open .navmenu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
.navmenu a { color: var(--white); text-decoration: none; font-size: 1.35rem; font-weight: 600; padding: 10px 16px; }
.navmenu a:hover { color: var(--accent); }
.navmenu__close {
  position: absolute; top: 14px; right: var(--gutter);
  width: 44px; height: 44px; background: transparent; border: 0; color: var(--white); cursor: pointer; font-size: 1.6rem;
}
.navmenu__label {
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--accent); font-weight: 700; margin-top: var(--s-2);
}
@media (min-width: 1024px) { .navmenu { display: none; } }

/* ---------- 7. PROGRESS BAR --------------------------------------------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: calc(var(--z-nav) + 1); pointer-events: none; }
.progress__fill { height: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: left center; }

/* ---------- 8. HERO ----------------------------------------------------- */
.hero {
  position: relative; display: flex; align-items: center;
  min-height: 80vh; padding-top: calc(var(--nav-h) + var(--s-6)); padding-bottom: var(--s-7);
  overflow: hidden; color: var(--white);
}
@media (min-width: 1024px) { .hero { min-height: 100vh; } }
.hero__bg { position: absolute; inset: -2%; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay { position: absolute; inset: 0; z-index: 1; background: var(--grad-hero); }
.hero__inner { position: relative; z-index: 2; width: 100%; }
.hero__content { max-width: 720px; }
.hero h1 { color: var(--white); margin-bottom: var(--s-3); }
.hero__sub { font-size: var(--fs-lead); color: var(--on-dark); max-width: 60ch; margin-bottom: var(--s-4); }
.hero__trust {
  display: inline-flex; align-items: center; gap: var(--s-2); flex-wrap: wrap;
  background: rgba(255,255,255,.10); border: 1px solid rgba(212,160,58,.4);
  border-radius: var(--r-pill); padding: 8px 18px; margin-bottom: var(--s-3);
  font-size: var(--fs-small); color: var(--white);
}
.hero__trust strong { color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.hero__micro { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); font-size: var(--fs-small); color: var(--on-dark-muted); }
.hero__micro li { display: flex; align-items: center; gap: 6px; }
.hero__micro li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.word { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word__i { display: inline-block; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 2;
  display: none; flex-direction: column; align-items: center; gap: 8px;
  font-size: var(--fs-meta); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--on-dark-muted);
}
.scroll-hint__rail { width: 1px; height: 34px; background: rgba(233,228,242,.3); position: relative; overflow: hidden; }
.scroll-hint__rail .seg { position: absolute; top: -12px; left: 0; width: 1px; height: 12px; background: var(--accent); }
@media (min-width: 1024px) { .scroll-hint { display: flex; } }

/* suburb launcher — funnel entry, not a lead form */
.launcher {
  display: flex; flex-wrap: wrap; gap: var(--s-1); align-items: stretch;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28);
  padding: 8px; border-radius: var(--r-md); max-width: 520px; margin-bottom: var(--s-3);
  backdrop-filter: blur(6px);
}
.launcher select {
  flex: 1 1 240px; min-height: 46px; border: 0; border-radius: var(--r-btn);
  padding: 0 12px; background: var(--white); color: var(--text); font-size: var(--fs-small);
}
.launcher .btn { flex: 0 0 auto; }

/* ---------- 9. PAGE HERO (inner pages) ---------------------------------- */
.pagehero {
  position: relative; padding-top: calc(var(--nav-h) + var(--s-6)); padding-bottom: var(--s-6);
  overflow: hidden; color: var(--white);
}
.pagehero__bg { position: absolute; inset: 0; z-index: 0; }
.pagehero__bg img { width: 100%; height: 100%; object-fit: cover; }
.pagehero::after { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--grad-hero); }
.pagehero .container { position: relative; z-index: 2; }
.pagehero h1 { color: var(--white); max-width: 20ch; margin-bottom: var(--s-2); }
.pagehero p { color: var(--on-dark); font-size: var(--fs-lead); }
.crumbs { font-size: var(--fs-small); color: var(--on-dark-muted); margin-bottom: var(--s-2); }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span { margin-inline: 6px; }

/* ---------- 10. TRUST BAR ----------------------------------------------- */
.trustbar { background: var(--secondary); color: var(--on-dark); padding-block: var(--s-3); }
.trustbar ul { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--s-2) var(--s-3); }
@media (min-width: 900px) { .trustbar ul { grid-template-columns: repeat(4,1fr); } }
.trustbar li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); }
.trustbar svg { width: 22px; height: 22px; color: var(--accent); flex: 0 0 auto; }
.trustbar strong { color: var(--white); }

/* ---------- 11. CARDS --------------------------------------------------- */
.card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--card-pad); text-decoration: none; color: inherit;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), border-color var(--t-base);
}
a.card:hover, .card--hover:hover { transform: translateY(-3px); box-shadow: var(--sh-md); border-color: var(--line-strong); }
.card__icon {
  width: 48px; height: 48px; border-radius: var(--r-sm); background: var(--primary-tint);
  color: var(--primary); display: grid; place-items: center; margin-bottom: var(--s-2);
}
.card__icon svg { width: 24px; height: 24px; }
.card h3, .card h4 { margin-bottom: var(--s-1); }
.card p { color: var(--text-muted); font-size: var(--fs-small); }
.card__foot { margin-top: auto; padding-top: var(--s-2); display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.card__price { font-weight: 700; color: var(--primary); }
.card__price small { display: block; font-weight: 400; font-size: var(--fs-meta); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-caps); }
.card__link { color: var(--primary); font-weight: 700; font-size: var(--fs-small); display: inline-flex; align-items: center; gap: 6px; }
.card__media { margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) var(--s-3); border-radius: var(--r-md) var(--r-md) 0 0; overflow: hidden; height: 200px; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease-out); }
a.card:hover .card__media img { transform: scale(1.05); }

/* ---------- 12. RAIL (pinned horizontal, desktop) ------------------------ */
.rail { position: relative; }
.rail__track { display: flex; gap: var(--s-4); }
.rail__panel { flex: 0 0 300px; }
@media (min-width: 1024px) {
  .rail { height: 100vh; overflow: hidden; display: flex; align-items: center; }
  .rail__track { padding-inline: var(--gutter); will-change: transform; }
  .rail__panel { flex: 0 0 380px; }
}
@media (max-width: 1023px) {
  .rail__track { flex-direction: column; }
  .rail__panel { flex: 1 1 auto; }
}

/* ---------- 13. STEPS --------------------------------------------------- */
.steps { display: grid; gap: var(--s-4); position: relative; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3,1fr); gap: var(--s-5); } }
.step__n {
  font-family: var(--font-display); font-size: 2.5rem; font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: var(--s-1);
}
.step h3 { margin-bottom: var(--s-1); }
.step p { color: var(--text-muted); }
.steps__line { display: none; }
@media (min-width: 900px) {
  .steps__line { display: block; position: absolute; top: 22px; left: 8%; right: 8%; height: 2px; background: var(--line); z-index: 0; }
  .steps__line i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left center; }
  .step { position: relative; z-index: 1; }
}

/* ---------- 14. STATS --------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s-4); }
.stat__rule { display: block; width: 40px; height: 3px; background: var(--accent); margin-bottom: var(--s-2); transform-origin: left center; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.25rem,1.6rem + 2.6vw,3.5rem); font-weight: 700; line-height: 1; color: var(--white); }
.stat__label { font-size: var(--fs-small); color: var(--on-dark-muted); margin-top: 6px; }

/* ---------- 15. REVIEWS ------------------------------------------------- */
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--card-pad); height: 100%; display: flex; flex-direction: column; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); margin-bottom: var(--s-2); }
.stars svg { width: 18px; height: 18px; }
.review__text { font-style: italic; color: var(--text); margin-bottom: var(--s-3); }
.review__who { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.review__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: var(--white); display: grid; place-items: center; font-weight: 700; flex: 0 0 auto; }
.review__meta { font-size: var(--fs-small); line-height: 1.4; }
.review__meta strong { display: block; }
.review__meta span { color: var(--text-muted); }

/* ---------- 16. SQUEEGEE (signature) ------------------------------------ */
.squeegee { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16/9; background: var(--surface-2); }
.squeegee img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.squeegee__after { clip-path: inset(0 0 0 0); }
.squeegee__edge { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--grad-gold); filter: blur(1px); box-shadow: 0 0 18px 3px rgba(212,160,58,.6); display: none; }
.squeegee__tag { position: absolute; bottom: 12px; z-index: 3; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-caps); font-weight: 700; background: rgba(27,18,56,.82); color: var(--white); padding: 6px 12px; border-radius: var(--r-pill); }
.squeegee__tag--before { left: 12px; } .squeegee__tag--after { right: 12px; color: var(--accent); }
@media (min-width: 1024px) { .squeegee__edge { display: block; } }

/* ---------- 17. POLISH (signature) -------------------------------------- */
.polish { position: relative; display: inline-block; overflow: hidden; }
.polish__gloss {
  position: absolute; inset: -20% -10%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.85) 50%, transparent 62%);
  transform: translateX(-130%); mix-blend-mode: overlay;
}

/* ---------- 18. ACCORDION ----------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-2);
  background: none; border: 0; padding: var(--s-3) 0; text-align: left; cursor: pointer;
  font-family: var(--font-body); font-size: var(--fs-h4); font-weight: 700; color: var(--text);
}
.acc__btn:hover { color: var(--primary); }
.acc__icon { position: relative; width: 22px; height: 22px; flex: 0 0 auto; color: var(--accent-ink); }
.acc__icon .h, .acc__icon .v { position: absolute; background: currentColor; }
.acc__icon .h { top: 10px; left: 0; width: 22px; height: 2px; }
.acc__icon .v { top: 0; left: 10px; width: 2px; height: 22px; }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t-slow) var(--ease-in-out); }
.acc__panel > div { overflow: hidden; padding-bottom: 0; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__item.is-open .acc__panel > div { padding-bottom: var(--s-3); }
.acc__icon .v { transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast); }
.acc__item.is-open .acc__icon .v { transform: rotate(90deg); opacity: 0; }
.acc__panel p { color: var(--text-muted); }

/* ---------- 19. FORMS --------------------------------------------------- */
.field { margin-bottom: var(--s-3); }
.field > label, .field__legend { display: block; font-size: var(--fs-small); font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: var(--fs-small); color: var(--text-muted); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--border-input); border-radius: var(--r-sm);
  color: var(--text); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { min-height: 120px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--primary); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,31,98,.14); }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--danger); background: var(--danger-tint); }
.field .error { display: none; font-size: var(--fs-small); color: var(--danger); font-weight: 600; margin-top: 6px; }
.field.is-error .error { display: block; }
fieldset { border: 0; padding: 0; }

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: var(--fs-small); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  width: 24px; height: 24px; flex: 0 0 auto; border: 2px solid var(--border-input); border-radius: var(--r-btn);
  background: var(--white); display: grid; place-items: center; transition: all var(--t-fast);
}
.check__box svg { width: 15px; height: 15px; color: var(--text); transform: scale(0); transition: transform var(--t-base) var(--ease-pop); }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box svg { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--primary); outline-offset: 2px; }

/* option tiles (services, extras, frequency) */
.tiles { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 900px) { .tiles--3 { grid-template-columns: repeat(3,1fr); } .tiles--4 { grid-template-columns: repeat(4,1fr); } }
.tile { position: relative; display: block; cursor: pointer; height: 100%; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile__body {
  height: 100%; background: var(--white); border: 2px solid var(--border-input); border-radius: var(--r-md);
  padding: var(--s-3); transition: all var(--t-base) var(--ease-out);
}
.tile:hover .tile__body { border-color: var(--primary); transform: translateY(-2px); }
.tile input:checked + .tile__body { border-color: var(--primary); background: var(--primary-tint); box-shadow: inset 0 0 0 1px var(--primary); }
.tile input:focus-visible + .tile__body { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile__title { font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: var(--s-1); }
.tile__meta { font-size: var(--fs-small); color: var(--text-muted); margin-top: 4px; }
.tile__tick { width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: var(--white); display: none; place-items: center; flex: 0 0 auto; }
.tile input:checked + .tile__body .tile__tick { display: grid; }

/* stepper */
.stepper { display: inline-flex; align-items: center; gap: var(--s-1); }
.stepper button {
  width: 44px; height: 44px; border-radius: var(--r-sm); border: 2px solid var(--border-input);
  background: var(--white); cursor: pointer; font-size: 1.25rem; font-weight: 700; color: var(--primary);
  display: grid; place-items: center; transition: all var(--t-fast);
}
.stepper button:hover:not([disabled]) { border-color: var(--primary); background: var(--primary-tint); }
.stepper button[disabled] { opacity: .4; cursor: not-allowed; }
.stepper output { min-width: 72px; text-align: center; font-weight: 700; font-size: 1.25rem; }

/* ---------- 20. FUNNEL -------------------------------------------------- */
.funnel { padding-top: calc(var(--nav-h) + var(--s-4)); padding-bottom: var(--s-7); }
.funnel__grid { display: grid; gap: var(--s-4); align-items: start; }
@media (min-width: 1024px) { .funnel__grid { grid-template-columns: minmax(0,1fr) 340px; gap: var(--s-5); } }

.prog { margin-bottom: var(--s-4); }
.prog__rail { position: relative; height: 4px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; }
.prog__fill { height: 100%; background: var(--grad-gold); transform: scaleX(0); transform-origin: left center; }
.prog__dots { display: flex; justify-content: space-between; margin-top: 10px; gap: 4px; }
.prog__dot { font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 700; background: none; border: 0; padding: 2px; cursor: default; }
.prog__dot.is-current { color: var(--primary); }
.prog__dot.is-done { color: var(--ok); cursor: pointer; }
@media (max-width: 767px) { .prog__dots { display: none; } }
.prog__count { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }

.stage { position: relative; }
.panel { display: none; }
.panel.is-active { display: block; }
.panel h2 { font-size: clamp(1.5rem,1.2rem + 1.2vw,2rem); margin-bottom: var(--s-1); }
.panel h2:focus { outline: none; }
.panel > .lead { margin-bottom: var(--s-3); }
.panel__nav { display: flex; gap: var(--s-2); margin-top: var(--s-4); flex-wrap: wrap; }
.panel__nav .btn { flex: 1 1 auto; }
@media (min-width: 560px) { .panel__nav .btn { flex: 0 0 auto; } }

.summary {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--card-pad);
}
@media (min-width: 1024px) { .summary { position: sticky; top: calc(var(--nav-h) + var(--s-2)); } }
.summary h3 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 700; margin-bottom: var(--s-2); }
.summary__price { font-family: var(--font-body); font-size: var(--fs-price); font-weight: 700; color: var(--primary); display: inline-block; transform-origin: left center; }
.summary__rows { margin: var(--s-2) 0; font-size: var(--fs-small); }
.summary__row { display: flex; justify-content: space-between; gap: var(--s-2); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.summary__row:last-child { border-bottom: 0; }
.summary__row span:last-child { font-weight: 600; white-space: nowrap; }
.summary__row--discount span:last-child { color: var(--ok); }
.summary__row--total { border-top: 2px solid var(--line-strong); border-bottom: 0; margin-top: 6px; padding-top: 10px; font-size: var(--fs-body); font-weight: 700; }
.summary__note { font-size: var(--fs-meta); color: var(--text-muted); margin-top: var(--s-2); }
.summary__empty { color: var(--text-muted); font-size: var(--fs-small); }

/* mobile sticky price bar */
.pricebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  background: var(--white); border-top: 1px solid var(--line-strong);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: var(--s-2); box-shadow: 0 -4px 18px rgba(25,19,37,.10);
}
.pricebar.is-on { display: flex; }
.pricebar__l { flex: 1 1 auto; line-height: 1.2; }
.pricebar__l small { display: block; font-size: var(--fs-meta); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--text-muted); font-weight: 700; }
.pricebar__p { font-size: 1.4rem; font-weight: 700; color: var(--primary); display: inline-block; transform-origin: left center; }
@media (min-width: 1024px) { .pricebar { display: none !important; } }
body.has-pricebar { padding-bottom: var(--pricebar-h); }
@media (min-width: 1024px) { body.has-pricebar { padding-bottom: 0; } }

/* ---------- 21. TABLES -------------------------------------------------- */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
thead th {
  text-align: left; font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-caps);
  color: var(--text-muted); padding: 14px 16px; border-bottom: 2px solid var(--line-strong); white-space: nowrap;
}
tbody td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--surface); }
td.num, th.num { text-align: right; white-space: nowrap; }

/* ---------- 22. LISTS --------------------------------------------------- */
.ticks li, .crosses li { display: flex; gap: 12px; padding: 8px 0; align-items: flex-start; }
.ticks svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--ok); margin-top: 3px; }
.crosses svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--danger); margin-top: 3px; }
.split { display: grid; gap: var(--s-4); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: var(--s-6); } .split--wide { grid-template-columns: 1.15fr .85fr; } }
.split__text { max-width: 600px; }
.split__media { border-radius: var(--r-lg); overflow: hidden; position: relative; height: 480px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .split__media { height: 300px; } }

/* ---------- 23. CTA BANNER + FOOTER ------------------------------------- */
.ctaband { background: var(--grad-cta); color: var(--on-dark); text-align: center; padding-block: var(--section-y); border-top: 1px solid rgba(212,160,58,.28); }
.ctaband h2 { color: var(--white); margin-bottom: var(--s-2); }
.ctaband p { color: var(--on-dark); margin-inline: auto; margin-bottom: var(--s-4); }
.ctaband__btns { display: flex; gap: var(--s-2); justify-content: center; flex-wrap: wrap; }

.footer { background: var(--secondary); color: var(--on-dark-muted); padding-block: var(--s-6) var(--s-4); font-size: var(--fs-small); }
.footer__grid { display: grid; gap: var(--s-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-5); } }
.footer h3 { font-family: var(--font-body); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--ls-caps); color: var(--accent); font-weight: 700; margin-bottom: var(--s-2); }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }
.footer li { padding: 4px 0; }
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: var(--s-2); text-decoration: none; }
.footer__brand em { font-style: normal; color: var(--accent); }
.footer__brand svg { width: 28px; height: 28px; }
.footer__bottom { border-top: 1px solid rgba(233,228,242,.14); margin-top: var(--s-5); padding-top: var(--s-3); display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-3); justify-content: space-between; font-size: var(--fs-meta); }
.footer__areas { color: var(--on-dark-muted); line-height: 1.9; }

/* ---------- 24. WHATSAPP FLOAT ------------------------------------------ */
.wa {
  position: fixed; right: 18px; bottom: 18px; z-index: var(--z-wa);
  width: var(--wa-size); height: var(--wa-size); border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.28); text-decoration: none;
  transition: transform var(--t-base) var(--ease-out);
}
.wa:hover { transform: scale(1.07); }
.wa svg { width: 32px; height: 32px; }
.wa__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; opacity: 0; pointer-events: none; }
body.has-pricebar .wa { bottom: calc(var(--pricebar-h) + 12px); }
@media (min-width: 1024px) { body.has-pricebar .wa { bottom: 18px; } }

/* ---------- 25. TOASTS -------------------------------------------------- */
.toasts { position: fixed; right: 16px; bottom: 90px; z-index: var(--z-toast); display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.toast { background: var(--secondary); color: var(--on-dark); border-left: 4px solid var(--accent); border-radius: var(--r-sm); padding: 14px 16px; box-shadow: var(--sh-lg); font-size: var(--fs-small); }
.toast--ok { border-left-color: var(--ok); }
.toast--error { border-left-color: var(--danger); }

/* ---------- 26. BADGES / PILLS ------------------------------------------ */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-label); font-weight: 700; text-transform: uppercase; letter-spacing: var(--ls-caps); padding: 5px 12px; border-radius: var(--r-pill); }
.pill--ok { background: var(--ok-tint); color: var(--ok); }
.pill--warn { background: var(--warn-tint); color: var(--warn); }
.pill--danger { background: var(--danger-tint); color: var(--danger); }
.pill--info { background: var(--primary-tint); color: var(--primary); }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--warn-tint); border-left: 4px solid var(--accent);
  border-radius: var(--r-sm); padding: var(--s-2) var(--s-3); font-size: var(--fs-small);
}
.note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--accent-ink); margin-top: 2px; }
.note strong { color: var(--text); }
.note p { max-width: none; }

/* ---------- 27. UTILITIES ----------------------------------------------- */
.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; }
.mt-1{margin-top:var(--s-1)} .mt-2{margin-top:var(--s-2)} .mt-3{margin-top:var(--s-3)} .mt-4{margin-top:var(--s-4)} .mt-5{margin-top:var(--s-5)}
.mb-2{margin-bottom:var(--s-2)} .mb-3{margin-bottom:var(--s-3)} .mb-4{margin-bottom:var(--s-4)}
.center{text-align:center} .muted{color:var(--text-muted)} .nowrap{white-space:nowrap}

/* ---------- 28. FAIL-OPEN REVEAL GATE ----------------------------------- */
/* Content is VISIBLE by default. Only .fx (added by motion.js AFTER GSAP is
   confirmed present) hides it. .fx-rescue un-hides everything and always wins. */
.fx [data-reveal]         { opacity: 0; will-change: transform, opacity; }
.fx [data-reveal="up"]    { transform: translate3d(0,28px,0); }
.fx [data-reveal="left"]  { transform: translate3d(-28px,0,0); }
.fx [data-reveal="right"] { transform: translate3d(28px,0,0); }
.fx [data-reveal="scale"] { transform: scale(.96); }
.fx [data-reveal="mask"] > span { display: block; transform: translate3d(0,110%,0); }

html.fx-rescue [data-reveal],
html.fx-rescue [data-reveal] > span {
  opacity: 1 !important; transform: none !important; visibility: visible !important;
}

/* ---------- 29. REDUCED MOTION ------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal], [data-reveal] > span { opacity: 1 !important; transform: none !important; }
}
