/* Site styles: Quixo Marketing Editorial Brand System 2026.
 * "White and black dominate. Lavender interrupts." White ground, true black type, lavender geometry.
 * Brand tokens only (var(--q-*), public/brand/tokens/quixo-tokens.css); no colour literals (scripts/check-brand.mjs).
 * Deep lavender (--q-hue-deep, 3.2:1 on white) is used for display-size type (pivots, big numbers) and artwork only.
 * Artwork (discs, rings, locator dots, grid) is drawn with pseudo-elements, so section markup (the CMS and
 * audit-flow.js contract) is unchanged; each page varies the composition through body[data-page]. */

:root {
  --ground: var(--q-ground, var(--q-white));
  --ink: var(--q-ink, var(--q-black));
  --lav: var(--q-lavender, var(--q-hue));
  --lav-deep: var(--q-lavender-deep, var(--q-hue-deep));
  --grid: var(--q-grid, var(--q-hairline));
  --muted: var(--q-ink-mid);
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --rule: 1px solid var(--grid);
  --rule-ink: 1px solid var(--ink);
  --wrap-max: 1320px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --col-gap: clamp(1rem, 2.4vw, 2.5rem);
  --tap-min-height: 44px;
  --radius-panel: 22px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --head-h: 5rem;
  --grid-bg: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  --grid-size: calc(100% / 6) 180px;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-block-start: calc(var(--head-h) + 1rem);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html, body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
}

body {
  font-family: var(--q-font-body);
  font-size: var(--q-step-0);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
}

img, video { max-width: 100%; height: auto; display: block; }

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

a:hover { text-decoration-color: var(--lav-deep); }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--lav); color: var(--ink); }

.wrap {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Scroll reveals: hidden only once animations.js has run (html.reveal-ready), so the page reads without JS. */
.reveal-ready .reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-ready .reveal-on-scroll.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ micro labels + type */

.eyebrow, .dash-chrome, .foot-powered, .price-note, .report-domain, .badge, .tier-includes-lead, .steps-inline {
  font-family: var(--q-font-mono);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: var(--q-tracking-micro, 0.16em);
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 1.75rem;
}

/* 14px deep-lavender locator dot */
.eyebrow::before {
  content: "";
  flex: none;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: var(--lav-deep);
}

/* The editorial pivot: one Instrument Serif italic word per headline, deep lavender, display sizes only. */
.pivot {
  font-family: var(--q-font-pivot);
  font-style: italic;
  font-weight: 400;
  color: var(--lav-deep);
  letter-spacing: -0.015em;
  padding-inline-end: 0.04em;
}

h1 .pivot, h2 .pivot { font-size: 1.06em; line-height: 0.8; }

/* Never at body size: inline pivots in running text read as plain emphasis. */
p .pivot, li .pivot, summary .pivot, h3 .pivot {
  font-family: inherit;
  font-style: normal;
  font-weight: 600;
  color: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}

.lede {
  font-size: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 36rem;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.note {
  font-size: var(--q-step--1);
  color: var(--muted);
  max-width: 44rem;
  line-height: 1.55;
}

.muted { color: var(--muted); }

.price-line {
  color: var(--ink);
  font-size: var(--q-step--1);
  line-height: 1.6;
}

.price-line strong { font-weight: 700; }

.num { font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ skip link */

.skip {
  position: absolute;
  inset-inline-start: 1rem;
  top: -5rem;
  background: var(--lav);
  color: var(--ink);
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus { top: 1rem; }

/* ------------------------------------------------------------------ buttons: outlined pills + circular moments */

.cta, .cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  min-height: 52px;
  padding: 0.5rem 1.625rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}

.cta { padding-inline-end: 0.5rem; }

/* The circular arrow disc: lavender with a black arrow (mirrored in RTL). */
.cta::after {
  content: "\2192";
  content: "\2192" / "";
  display: inline-grid;
  place-items: center;
  flex: none;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 50%;
  background: var(--lav);
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 500;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease);
}

[dir="rtl"] .cta::after { content: "\2190"; content: "\2190" / ""; }

.cta:hover { background: var(--lav); }
.cta:hover::after { background: var(--ground); transform: translateX(3px); }
[dir="rtl"] .cta:hover::after { transform: translateX(-3px); }

.cta-ghost:hover { background: var(--ink); color: var(--ground); }

.cta:active, .cta-ghost:active { transform: scale(0.98); }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1rem;
  margin-block: 2rem;
  align-items: center;
}

/* ------------------------------------------------------------------ header */

/* One compact sticky bar on every page and width: wordmark, language switch, one audit action (and the menu button on
 * phones). It never changes height on scroll, so nothing shifts under it. */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ground);
  border-bottom: var(--rule);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  min-height: var(--head-h);
  padding-block: 0.75rem;
}

/* The wordmark link is a 44px target at every width; the lockup itself is never cropped. */
.brand, .nav > a:first-child { display: inline-flex; align-items: center; min-height: var(--tap-min-height); min-width: var(--tap-min-height); padding-block: 0.375rem; flex: none; }
:where(.brand, .nav > a:first-child) img { height: 32px; width: auto; }

.nav-links, .foot-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links { gap: 0.25rem; }
.nav-links > li { flex: none; }

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min-height);
  min-inline-size: var(--tap-min-height);
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
}

.nav-links a:hover { background: var(--q-tile); }
.nav-links a[aria-current="page"] { background: var(--lav); color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 0.625rem; }

.lang-switch, .sign-in {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--tap-min-height);
  min-width: var(--tap-min-height);
  padding: 0.25rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.lang-switch:lang(ar), .sign-in:lang(ar) { font-family: var(--q-font-arabic); }
.lang-switch:hover, .sign-in:hover { background: var(--ink); color: var(--ground); }

/* Sign in / Sign up: a short header action from 1366px (the main action then uses its brief label so the menu keeps
 * its row); below that the full-text link sits in the nav list. */
.nav-signin { display: none; }
.nav-actions .sign-in { padding-inline: 0.625rem; font-size: 0.8125rem; }
@media (max-width: 1365px) {
  .nav-actions .sign-in { display: none; }
  .nav-signin { display: list-item; }
}

.site-head .cta { min-height: 48px; font-size: 0.9375rem; padding-inline-start: 1.25rem; white-space: nowrap; }
.site-head .cta::after { inline-size: 1.875rem; block-size: 1.875rem; font-size: 0.95rem; }
/* The header action carries a full label and a brief one; the width decides which shows. */
.site-head .cta .cta-brief { display: none; }

/* From 1366px the main action uses its brief label so the Sign in pill fits and the menu keeps its row. */
@media (min-width: 1366px) {
  .nav-actions { gap: 0.4rem; }
  .site-head .cta .cta-full { display: none; }
  .site-head .cta .cta-brief { display: inline; }
}

/* Menu button (phones only): disclosure with a visible name; the icon is drawn, never an image. */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: var(--tap-min-height);
  min-width: var(--tap-min-height);
  padding: 0.25rem 0.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ground);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}

.nav-toggle:hover, .nav-toggle[aria-expanded="true"] { background: var(--lav); }

.nav-toggle-icon {
  position: relative;
  flex: none;
  inline-size: 18px;
  block-size: 2px;
  background: currentColor;
  transition: background-color 0.2s var(--ease);
}

.nav-toggle-icon::before, .nav-toggle-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

/* Body scroll is locked while the menu is open (nav.js toggles html.nav-open). */
html.nav-open, html.nav-open body { overflow: hidden; }

/* Between 900 and 1199px the single row only fits with tighter links and the brief action label. */
@media (min-width: 900px) and (max-width: 1199px) {
  .nav { gap: 0.75rem 1rem; }
  .site-head .brand img, .nav > a:first-child img { height: 26px; }
  .nav-links { gap: 0; }
  .nav-links a { padding-inline: 0.5rem; font-size: 0.8125rem; }
  .lang-switch { padding-inline: 0.75rem; font-size: 0.875rem; }
  .site-head .cta { font-size: 0.875rem; padding-inline-start: 1rem; }
  .site-head .cta .cta-full { display: none; }
  .site-head .cta .cta-brief { display: inline; }
}

/* ------------------------------------------------------------------ sections: asymmetric editorial grid */

main { counter-reset: sec; }

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
  border-top: var(--rule);
}

.section h2 {
  font-family: var(--q-font-display);
  font-size: clamp(2.25rem, 1.35rem + 3.4vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin: 0 0 2rem;
  color: var(--ink);
  text-wrap: balance;
}

/* Section number micro-label: the renderer emits <p class="section-kicker"><span class="section-number">01</span></p>. */
.section-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  font-family: var(--q-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--ink);
}

.section-number::after { content: " /"; }

.section h3 {
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 0.625rem;
  color: var(--ink);
}

.section p { line-height: 1.6; }

@media (min-width: 900px) {
  .section:not(.hero-block) > .wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
    align-items: start;
  }

  .section:not(.hero-block) > .wrap > * { grid-column: 5 / -1; min-width: 0; }

  /* Default composition: heading holds the left third (sticky), content runs in the right two thirds. */
  .section:not(.hero-block) > .wrap > h2 {
    grid-column: 1 / 5;
    grid-row: 1 / span 40;
    position: sticky;
    top: calc(var(--head-h) + 2rem);
    padding-inline-end: 1rem;
    margin: 0;
    font-size: clamp(2rem, 0.9rem + 2.5vw, 3.5rem);
    hyphens: auto;
  }

  /* Labels run full width on their own rows, so no content item can share (and stretch) the heading's first row. */
  .section:not(.hero-block) > .wrap > .section-kicker { grid-column: 1 / -1; grid-row: 1; }
  .section:not(.hero-block) > .wrap > .eyebrow { grid-column: 1 / -1; grid-row: 1; }
  .section:not(.hero-block) > .wrap:has(> .section-kicker) > .eyebrow { grid-row: 2; }
  .section:not(.hero-block) > .wrap:has(> .eyebrow) > h2,
  .section:not(.hero-block) > .wrap:has(> .section-kicker) > h2 { grid-row: 2 / span 40; }
  .section:not(.hero-block) > .wrap:has(> .section-kicker):has(> .eyebrow) > h2 { grid-row: 3 / span 40; }

  /* Every other section stacks: the heading runs full width, the content sits offset under it. */
  body:not([data-page="privacy"]):not([data-page="terms"]) .section:nth-of-type(odd):not(.hero-block) > .wrap > h2 {
    grid-column: 1 / 10;
    grid-row: auto;
    position: static;
    margin-bottom: clamp(2rem, 4vw, 3.5rem);
    font-size: clamp(2.5rem, 1.2rem + 4.4vw, 5.5rem);
  }

  body:not([data-page="privacy"]):not([data-page="terms"]) .section:nth-of-type(odd):not(.hero-block) > .wrap > :is(.eyebrow, .section-kicker) { grid-row: auto; grid-column: 1 / -1; }
  body:not([data-page="privacy"]):not([data-page="terms"]) .section:nth-of-type(odd):not(.hero-block) > .wrap > :not(h2):not(.eyebrow):not(.section-kicker) { grid-column: 3 / -1; }

  /* Wide content (tiers, marquee, dashboards, offers, the order form) always takes the full measure. */
  .section > .wrap:has(> .tiers, > .logo-marquee, > .dashboard, > .offer, > .cta-band, > .tier-picker, > form, > .split) > * { grid-column: 1 / -1 !important; }
  .section > .wrap:has(> .tiers, > .logo-marquee, > .dashboard, > .offer, > .cta-band, > form, > .split) > :is(.section-kicker, .eyebrow) { grid-row: auto !important; }
  .section > .wrap:has(> .tiers, > .logo-marquee, > .dashboard, > .offer, > .cta-band, > form, > .split) > h2 {
    grid-row: auto !important;
    position: static !important;
    margin-bottom: clamp(2rem, 4vw, 3.5rem) !important;
  }
}

.section.is-pale { background-color: var(--ground); }

/* ------------------------------------------------------------------ hero */

.hero-block, main.hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-block: clamp(4.5rem, 11vw, 10rem) clamp(3.5rem, 7vw, 6.5rem);
  border-top: 0;
  background-image: var(--grid-bg);
  background-size: var(--grid-size);
  background-position: -1px -1px;
}

.hero-block h1, main.hero h1, .offer h1 {
  font-family: var(--q-font-display);
  font-size: clamp(3rem, 1rem + 7.4vw, 8.25rem);
  font-weight: 600;
  letter-spacing: var(--q-tracking-hero, -0.055em);
  line-height: var(--q-leading-hero, 0.9);
  margin: 0 0 clamp(1.75rem, 3vw, 2.75rem);
  max-width: 13ch;
  color: var(--ink);
  word-spacing: 0.04em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.hero-block .wrap, main.hero > * { position: relative; }

.hero-block .lede { margin-bottom: 1rem; }
.hero-block .note { margin-top: 1.25rem; }

@media (min-width: 900px) {
  .hero-block > .wrap {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--col-gap);
  }
  .hero-block > .wrap > * { grid-column: 1 / -1; min-width: 0; }
  .hero-block > .wrap > h1 { grid-column: 1 / 11; }
  /* Asymmetry: the supporting copy sits away from the headline, in the right-hand columns. */
  .hero-block > .wrap > .lede, .hero-block > .wrap > .note, .hero-block > .wrap > .form-status { grid-column: 7 / -1; }
  .hero-block > .wrap > .actions { grid-column: 1 / 7; grid-row: 3; align-self: end; margin-block: 0.5rem 0; }
  .hero-block > .wrap > .price-line { grid-column: 8 / -1; grid-row: 3; align-self: end; margin: 0; }
}

/* Artwork layers: disc (::before), ring (::after), locator dot (.wrap::before). Sized in vw so they crop. */
.hero-block::before, .hero-block::after, main.hero::before, main.hero::after,
.hero-block > .wrap::before {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

.hero-block::before, main.hero::before {
  inline-size: clamp(240px, 36vw, 580px);
  aspect-ratio: 1;
  background: var(--lav);
  inset-inline-end: -7vw;
  top: -9%;
}

.hero-block::after, main.hero::after {
  inline-size: clamp(130px, 17vw, 280px);
  aspect-ratio: 1;
  border: 4px solid var(--lav);
  inset-inline-end: 24vw;
  top: 44%;
}

.hero-block > .wrap::before {
  inline-size: 14px;
  block-size: 14px;
  background: var(--lav-deep);
  inset-inline-start: var(--gutter);
  top: -3.25rem;
}

.hero-block > .wrap:has(> .eyebrow)::before { display: none; }

/* --- per-page compositions (never identical everywhere) --- */

/* Home: an oversized cropped disc, ring overlapping the headline, a full viewport opener. */
[data-page="home"] .hero-block:first-child {
  min-height: calc(100svh - var(--head-h));
  display: flex;
  align-items: flex-end;
}
[data-page="home"] .hero-block:first-child > .wrap { inline-size: 100%; }
[data-page="home"] .hero-block:first-child h1 { font-size: var(--q-step-7); max-width: 11ch; }
[data-page="home"] .hero-block:first-child::before { inline-size: clamp(280px, 50vw, 820px); inset-inline-end: -12vw; top: -18%; }
[data-page="home"] .hero-block:first-child::after { inline-size: clamp(150px, 22vw, 360px); inset-inline-end: 29vw; top: 30%; border-color: var(--lav-deep); }
[data-page="home"] .hero-block:first-child > .wrap::before { top: auto; bottom: calc(100% + 18vh); inset-inline-start: calc(var(--gutter) + 8vw); }

/* Pricing: the disc sinks off the bottom edge on the reading side, the ring floats top-end. */
[data-page="pricing"] .hero-block::before { inset-inline-end: auto; inset-inline-start: 46%; top: auto; bottom: -38%; inline-size: clamp(260px, 40vw, 640px); }
[data-page="pricing"] .hero-block::after { inset-inline-end: 7vw; top: 12%; inline-size: clamp(110px, 12vw, 190px); }

/* Audit funnel: concentric rings, no solid disc (keeps the form area calm). */
[data-page^="audit"] .hero-block::before, [data-page="lp-growth-audit"] .hero-block::before {
  background: url("/assets/editorial/rings-stack.svg") center / contain no-repeat;
  inline-size: clamp(260px, 42vw, 640px);
  inset-inline-end: -10vw;
  top: -14%;
}
[data-page^="audit"] .hero-block::after, [data-page="lp-growth-audit"] .hero-block::after { display: none; }
[dir="rtl"] [data-page^="audit"] .hero-block::before, [dir="rtl"][data-page^="audit"] .hero-block::before { transform: scaleX(-1); }

/* Quixo Audit Pro: the price disc is the artwork; only a ring floats behind the headline. */
[data-page="audit-pro"] .hero-block::before { background: transparent; border: 4px solid var(--lav); inline-size: clamp(140px, 16vw, 240px); top: 8%; inset-inline-end: 44vw; }

/* Audit flow steps (verify / status / report): quiet, one small disc in the corner. */
[data-page="audit-verify"] .hero-block::before, [data-page="audit-status"] .hero-block::before, [data-page="audit-report"] .hero-block::before {
  background: var(--lav);
  inline-size: clamp(160px, 20vw, 300px);
  inset-inline-end: -4vw;
  top: -60px;
}

/* Services: small disc tucked behind the micro-label, a large ring leaving the canvas. */
[data-page="services"] .hero-block::before { inline-size: clamp(140px, 16vw, 240px); inset-inline-end: auto; inset-inline-start: -5vw; top: -40px; }
[data-page="services"] .hero-block::after { inline-size: clamp(260px, 42vw, 660px); inset-inline-end: -14vw; top: 8%; border-width: 4px; }

/* Solutions: the orbit crop artwork as a field on the end side. */
[data-page^="solutions"] .hero-block::before {
  background: url("/assets/editorial/orbit-crop.svg") right top / cover no-repeat;
  border-radius: 0;
  aspect-ratio: 12 / 7;
  inline-size: clamp(360px, 62vw, 980px);
  inset-inline-end: 0;
  top: 0;
}
[data-page^="solutions"] .hero-block::after { inset-inline-end: 5vw; top: auto; bottom: 9%; inline-size: clamp(60px, 6vw, 96px); background: var(--lav); border: 0; }
[dir="rtl"][data-page^="solutions"] .hero-block::before { transform: scaleX(-1); }

/* Platform: a disc with a ring set inside it, centred on the end edge. */
[data-page="platform"] .hero-block::before { top: 50%; translate: 0 -50%; inset-inline-end: -16vw; inline-size: clamp(280px, 48vw, 760px); }
[data-page="platform"] .hero-block::after { top: 50%; translate: 0 -50%; inset-inline-end: -3vw; inline-size: clamp(170px, 26vw, 420px); border-color: var(--ground); border-width: 4px; z-index: -1; }

/* About: a huge disc cropped at the bottom end corner, the ring above it. */
[data-page="about"] .hero-block::before { top: auto; bottom: -45%; inset-inline-end: -10vw; inline-size: clamp(300px, 52vw, 820px); }
[data-page="about"] .hero-block::after { top: 10%; inset-inline-end: 34vw; }

/* Contact: two overlapping rings and a dot, no fill. */
[data-page="contact"] .hero-block::before { background: transparent; border: 4px solid var(--lav); inline-size: clamp(220px, 30vw, 460px); top: 6%; inset-inline-end: 4vw; }
[data-page="contact"] .hero-block::after { inline-size: clamp(160px, 22vw, 340px); top: 30%; inset-inline-end: 18vw; background: var(--lav); border: 0; z-index: -2; }

/* How it works: a stepped trio of discs reading in the language direction. */
[data-page="how-it-works"] .hero-block::before { inline-size: clamp(90px, 11vw, 170px); inset-inline-end: 8vw; top: 16%; box-shadow: calc(-1 * clamp(110px, 13vw, 200px)) clamp(70px, 8vw, 120px) 0 0 var(--lav), calc(-2 * clamp(110px, 13vw, 200px)) calc(2 * clamp(70px, 8vw, 120px)) 0 0 var(--lav); }
[dir="rtl"] [data-page="how-it-works"] .hero-block::before, [dir="rtl"][data-page="how-it-works"] .hero-block::before { box-shadow: clamp(110px, 13vw, 200px) clamp(70px, 8vw, 120px) 0 0 var(--lav), calc(2 * clamp(110px, 13vw, 200px)) calc(2 * clamp(70px, 8vw, 120px)) 0 0 var(--lav); }
[data-page="how-it-works"] .hero-block::after { inset-inline-end: 3vw; top: 6%; inline-size: clamp(150px, 18vw, 280px); }

/* Legal: restrained. Only a thin ring and the grid. */
[data-page="privacy"] .hero-block::before, [data-page="terms"] .hero-block::before { background: transparent; border: 4px solid var(--lav); inline-size: clamp(160px, 20vw, 300px); top: -60px; inset-inline-end: 6vw; }
[data-page="privacy"] .hero-block::after, [data-page="terms"] .hero-block::after { display: none; }
[data-page="privacy"] .hero-block h1, [data-page="terms"] .hero-block h1 { font-size: clamp(2.75rem, 1rem + 6vw, 6.5rem); }

/* Partners: a solid disc on the reading side with a ring overlapping it, like two brands side by side. */
[data-page="partners"] .hero-block::before { inset-inline-end: auto; inset-inline-start: 52%; top: 12%; inline-size: clamp(200px, 26vw, 420px); }
[data-page="partners"] .hero-block::after { inset-inline-end: -4vw; top: 22%; inline-size: clamp(200px, 26vw, 420px); border-color: var(--lav-deep); }

/* Hand-written pages (404, status, experiment landing pages) share the generated hero markup. */
[data-page="404"] .hero-block { min-height: 70svh; }
[data-page="404"] .hero-block::before { inline-size: clamp(260px, 44vw, 700px); top: auto; bottom: -30%; inset-inline-end: -6vw; }
[data-page="404"] .hero-block::after { inset-inline-end: 38vw; top: 18%; }
[data-page="status"] .hero-block::before { background: url("/assets/editorial/grid-circles-light.svg") center / cover no-repeat; border-radius: 0; inline-size: clamp(220px, 34vw, 520px); top: 0; inset-inline-end: 0; }
[data-page="status"] .hero-block::after { display: none; }
[data-page^="lp-audit-offer"] .hero-block::before { background: url("/assets/editorial/editorial-rings.svg") center / contain no-repeat; inline-size: clamp(300px, 50vw, 760px); top: -12%; inset-inline-end: -10vw; }
[data-page^="lp-audit-offer"] .hero-block::after { display: none; }

/* ------------------------------------------------------------------ cards: editorial lists, not boxes */

.cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(2rem, 3vw, 3rem) var(--col-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr));
  counter-reset: card;
}

.card {
  position: relative;
  counter-increment: card;
  padding-top: 1.25rem;
  border-top: var(--rule-ink);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cards:not(.principles):not(.tiers):not(.collection) > .card::before {
  content: counter(card, decimal-leading-zero);
  font-family: var(--q-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  margin-bottom: 1.25rem;
}

/* Hover: a locator dot lands on the card. */
.card::after {
  content: "";
  position: absolute;
  top: -7px;
  inset-inline-end: 0;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: var(--lav-deep);
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.card:hover::after, .card:focus-within::after { transform: scale(1); }

.card p { margin: 0; color: var(--muted); }

.card h3 a {
  text-decoration: underline;
  text-decoration-color: var(--lav);
  text-decoration-thickness: 3px;
  text-underline-offset: 0.25em;
}

.card h3 a:hover { text-decoration-color: var(--ink); }

.card-n {
  display: block;
  font-family: var(--q-font-display);
  font-size: clamp(2.5rem, 1.8rem + 2.4vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--lav-deep);
  margin-bottom: 1.25rem;
}

.panel {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-panel);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--ground);
}

.panel ul { padding-inline-start: 1.25rem; margin: 0; line-height: 1.7; }
.panel h3 { font-family: var(--q-font-mono); font-size: 0.75rem !important; font-weight: 500 !important; letter-spacing: 0.16em !important; text-transform: uppercase; margin-bottom: 1.25rem !important; }

/* ------------------------------------------------------------------ steps */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(2rem, 3vw, 3rem) var(--col-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
}

.steps li { counter-increment: step; border-top: var(--rule-ink); padding-top: 1.25rem; }

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--q-font-display);
  font-size: clamp(3rem, 2rem + 3vw, 5rem);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--lav-deep);
  margin-bottom: 1.5rem;
}

.steps p { margin: 0; color: var(--muted); }

.steps-inline {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 0 0 2rem;
  counter-reset: si;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.steps-inline li {
  counter-increment: si;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.steps-inline li::before { content: counter(si) "."; }

/* ------------------------------------------------------------------ stats, chips, badges */

.stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 2rem var(--col-gap);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
}

.stats li { display: flex; flex-direction: column; gap: 0.5rem; border-top: var(--rule-ink); padding-top: 1rem; }
.stats .num { font-size: clamp(2.75rem, 2rem + 3vw, 5rem); font-weight: 500; letter-spacing: -0.05em; line-height: 1; }

.chips { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chips li {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: var(--q-step--1);
  font-weight: 500;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--ground);
}

.badge[data-status="operational"] { background: var(--lav); }
.badge[data-status="degraded"] { background: var(--ground); border-width: 2px; }
.badge[data-status="outage"] { background: var(--q-error); border-color: var(--q-error); color: var(--q-white); }

/* ------------------------------------------------------------------ offer lockup: the price lives in a disc */

.offer {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  align-items: center;
}

.offer h2, .offer h1 { font-size: clamp(2.5rem, 1.2rem + 4.2vw, 5.5rem) !important; max-width: 14ch; }

.offer-price {
  position: relative;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.75rem;
  inline-size: min(100%, 420px);
  aspect-ratio: 1;
  justify-self: end;
  margin: 0;
  border-radius: 50%;
  background: var(--lav);
  text-align: center;
  padding: 2rem;
}

/* A 4px ring offset from the disc, and a locator dot on its edge. */
.offer-price::before {
  content: "";
  position: absolute;
  inset: -22px;
  border: 4px solid var(--lav);
  border-radius: 50%;
  pointer-events: none;
}

.offer-price::after {
  content: "";
  position: absolute;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: var(--lav-deep);
  top: 12%;
  inset-inline-start: 4%;
}

.offer-price .num { font-size: clamp(4rem, 2.5rem + 6vw, 8rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.price-note { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; max-width: 16ch; line-height: 1.5; }

/* ------------------------------------------------------------------ report card: the score sits in a ring */

.report-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.5rem clamp(1.5rem, 4vw, 3rem);
  margin-block: 2rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-panel);
}

.report-domain { grid-column: 1 / -1; margin: 0 0 1rem; font-size: 0.8125rem; letter-spacing: 0.08em; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; overflow-wrap: anywhere; }

.report-score {
  grid-row: 2 / span 2;
  display: grid;
  place-content: center;
  inline-size: clamp(150px, 20vw, 220px);
  aspect-ratio: 1;
  margin: 0;
  border: 4px solid var(--lav);
  border-radius: 50%;
  text-align: center;
}

.report-score .num { font-size: clamp(3.5rem, 2.5rem + 3vw, 5.25rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.report-score .of { font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.14em; }
.report-grade { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; }

/* ------------------------------------------------------------------ free basic score: the one lavender number, then hairline rows */

.free-score-form { display: grid; gap: 0.75rem; }
.free-score-form label { font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.free-score-result { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.75rem clamp(1.5rem, 4vw, 3rem); margin-block-start: 1.5rem; }
.free-score-score {
  grid-row: 1 / span 2;
  display: grid;
  place-content: center;
  inline-size: clamp(150px, 20vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lav);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 0 0 4px var(--ground), 0 0 0 6px var(--lav);
}
.free-score-score .num { font-size: clamp(3.5rem, 2.5rem + 3vw, 5.25rem); font-weight: 500; letter-spacing: -0.06em; line-height: 0.9; }
.free-score-score .of { font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.14em; }
.free-score-grade { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -0.03em; }
.free-score-factors, .free-score-findings { list-style: none; margin: 0; padding: 0; border-block-start: 1.5px solid var(--ink); }
.free-score-factors .factor-row, .free-score-findings .finding-row { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; border-block-end: 1px solid var(--grid, var(--q-hairline)); }
.free-score-findings .finding-row { flex-direction: column; gap: 0.25rem; }
.free-score-factors .factor-label { font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; }
.free-score-factors .factor-score { font-weight: 600; }
.free-score-findings .finding-detail { color: var(--q-ink-mid); font-size: var(--q-step--1); }
.free-score-disclaimer { grid-column: 1 / -1; margin: 0; color: var(--q-ink-mid); font-size: var(--q-step--1); }
.free-score-result > .cta { grid-column: 1 / -1; justify-self: start; }
.lang-ar .free-score-form label, .lang-ar .free-score-factors .factor-label { letter-spacing: 0; text-transform: none; }
@media (max-width: 720px) {
  .free-score-result { grid-template-columns: 1fr; }
  .free-score-score { grid-row: auto; inline-size: 150px; }
  .free-score-form .cta, .free-score-result > .cta { justify-self: stretch; }
}

/* ------------------------------------------------------------------ split, dim map, meters, notes */

.split { display: grid; gap: var(--col-gap); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.split > .panel:first-child { background: var(--lav); border-color: var(--lav); }
.split > .panel:first-child h3 { color: var(--ink); }

.dim-map { margin: 0; }
.dim-map figcaption { margin-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; }
.dim-map figcaption strong { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); letter-spacing: -0.03em; }
.dim-map figcaption span { color: var(--muted); }
.dim-map ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.625rem; }

.dim {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: var(--tap-min-height);
  padding: 0.4rem 1.125rem;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 500;
}

.dim.is-high { background: var(--lav); border-color: var(--lav); font-weight: 600; }
.dim.is-low { border-style: dashed; color: var(--muted); }
.dim-note { font-size: var(--q-step--1); color: var(--muted); }
.dim.is-high .dim-note { color: var(--ink); }

.card .dim-score { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
meter { inline-size: 8rem; accent-color: var(--lav-deep); }
.num-sm { font-weight: 600; }

.notes { padding-inline-start: 1.25rem; color: var(--muted); font-size: var(--q-step--1); line-height: 1.6; }

/* ------------------------------------------------------------------ pricing tiers */

.cards.tiers {
  gap: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  border-top: var(--rule-ink);
}

.tier-card {
  border-top: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem) clamp(2rem, 3vw, 2.5rem);
  gap: 0.875rem;
  align-items: flex-start;
  border-inline-end: var(--rule);
  border-bottom: var(--rule);
}

.tier-card h3 { font-family: var(--q-font-mono); font-size: 0.75rem !important; font-weight: 500 !important; letter-spacing: 0.16em !important; text-transform: uppercase; }

.tier-price, .card p.tier-price {
  margin: 0;
  font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.95;
  color: var(--ink);
}

.tier-card > p:not(.tier-price):not(.price-line) { flex: 1; }
/* Audit tiers: the feature list takes the slack, so the three lists start level and the buttons end level. */
.tier-card:has(> .tier-features) > p:not(.tier-price):not(.price-line) { flex: none; }
.tier-card > .tier-features { flex: 1; }
.tier-card .cta, .tier-card .cta-ghost { margin-top: 1rem; align-self: stretch; }
.tier-card::after { top: 1.5rem; inset-inline-end: 1.5rem; }

/* The default tier (Pro) is the one filled primary in the row: a lavender pill; the others stay ghost. */
.tier-card.is-primary > .cta { background: var(--lav); }
.tier-card.is-primary > .cta::after { background: var(--ground); }
.tier-card.is-primary > .cta:hover { background: var(--ink); color: var(--ground); }
.tier-card.is-primary > .cta:hover::after { background: var(--lav); }

/* Stacked cards on phones: the price and its order button stay together in one view, above the feature list. */
@media (max-width: 899px) {
  .tier-card > .badge { order: -4; }
  .tier-card > h3 { order: -3; }
  .tier-card > .tier-price { order: -2; }
  .tier-card > .cta, .tier-card > .cta-ghost { order: -1; margin-top: 0.25rem; margin-bottom: 0.5rem; }
  .tier-card > .price-line { order: -2; }
}

/* The featured tier: a lavender field (black type, 11.5:1). */
.tier-card.is-featured { background: var(--lav); border-inline-end-color: var(--lav); }
.tier-card.is-featured p { color: var(--ink); }
.tier-card.is-featured .badge { background: var(--ground); }
.tier-card.is-featured .cta::after { background: var(--ground); }

/* ------------------------------------------------------------------ dashboard preview */

.dashboard {
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-panel);
  overflow: hidden;
  background: var(--ground);
}

.dash-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.875rem 1.25rem;
  border-bottom: var(--rule-ink);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dash-chrome::before {
  content: "";
  inline-size: 10px;
  block-size: 10px;
  border-radius: 50%;
  background: var(--lav-deep);
  box-shadow: 16px 0 0 var(--lav), 32px 0 0 var(--grid);
  margin-inline-end: 2.25rem;
}

[dir="rtl"] .dash-chrome::before { box-shadow: -16px 0 0 var(--lav), -32px 0 0 var(--grid); }

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  background-image: var(--grid-bg);
  background-size: 25% 90px;
}

.tiles li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  min-height: 11rem;
  padding: 1.25rem;
  border-inline-end: var(--rule);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tiles li:first-child { background: var(--lav); }

/* ------------------------------------------------------------------ tutorial */

.tutorial-wrapper { position: relative; max-width: 960px; border: 1.5px solid var(--ink); border-radius: var(--radius-panel); overflow: hidden; }
.tutorial-ratio { position: relative; padding-top: 56.25%; background-image: var(--grid-bg); background-size: 12.5% 22.2%; }
.tutorial-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; font-weight: 600; }

/* ------------------------------------------------------------------ FAQ: hairline rows with a circular toggle */

.faq { display: grid; max-width: 56rem; border-bottom: var(--rule-ink); }

.faq details { border-top: var(--rule-ink); }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.5rem;
  padding-block: 1rem;
  cursor: pointer;
  list-style: none;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.375rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  content: "+" / "";
  flex: none;
  display: grid;
  place-items: center;
  inline-size: 2.75rem;
  block-size: 2.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-size: 1.375rem;
  font-weight: 400;
  transition: transform 0.35s var(--ease), background-color 0.25s var(--ease);
}

.faq details[open] summary::after { transform: rotate(45deg); background: var(--lav); border-color: var(--lav); }
.faq summary:hover::after { background: var(--lav); border-color: var(--lav); }
.faq details p { margin: 0 0 1.75rem; color: var(--muted); max-width: 44rem; }

/* ------------------------------------------------------------------ client logo marquee */

.logo-marquee {
  overflow: hidden;
  user-select: none;
  display: flex;
  padding-block: 2rem;
  border-block: var(--rule-ink);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(3rem, 6vw, 5.5rem);
  align-items: center;
  flex-shrink: 0;
  animation: marquee 30s linear infinite;
  will-change: transform;
}

.logos:hover { animation-play-state: paused; }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-33.333%); } }
[dir="rtl"] .logos { animation-name: marquee-rtl; }
@keyframes marquee-rtl { from { transform: translateX(0); } to { transform: translateX(33.333%); } }

.logos li { flex-shrink: 0; display: flex; align-items: center; }
.logos a { display: inline-flex; align-items: center; min-height: var(--tap-min-height); }

.logos img {
  height: 30px;
  max-height: 30px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter 0.25s var(--ease), opacity 0.25s var(--ease);
}

.logos li:hover img { filter: none; opacity: 1; }

/* ------------------------------------------------------------------ forms + audit funnel */

.form { display: grid; gap: 0.875rem; max-width: 40rem; margin: 0 0 1.5rem; }
.form[hidden], .form-done[hidden] { display: none; }

.form label { font-weight: 600; font-size: 0.9375rem; letter-spacing: -0.01em; margin-top: 0.5rem; }

.form input[type="email"], .form input[type="url"], .form input[type="text"], .form textarea {
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  padding: 0.875rem 1.125rem;
  min-height: 54px;
  width: 100%;
  transition: box-shadow 0.2s var(--ease);
}

.form input::placeholder, .form textarea::placeholder { color: var(--muted); opacity: 1; }

.form input:focus-visible, .form textarea:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--lav);
}

.form textarea { resize: vertical; min-height: 7rem; }
.form .field-hint, .field-hint { color: var(--muted); font-size: var(--q-step--1); margin: -0.25rem 0 0; }

.form .check { display: flex; gap: 0.875rem; align-items: flex-start; font-weight: 400; cursor: pointer; min-height: var(--tap-min-height); padding-block: 0.5rem; }
.form .check input { flex: none; margin: 0.15rem 0 0; accent-color: var(--ink); inline-size: 1.375rem; block-size: 1.375rem; }

.form button { justify-self: start; margin-top: 0.75rem; }

.form-done .done-email { font-weight: 600; overflow-wrap: anywhere; }
.form-status { color: var(--ink); min-height: 1.5em; font-weight: 500; }
.hero-block .form-status { font-size: var(--q-step-0); }

/* A written status (audit-flow.js fills it: sending, sent, an API error) reads as a ruled plate with the lavender
 * edge, so it is not lost under the button on a phone. Empty, it keeps its line and nothing shows. */
.form .form-status:not(:empty), .free-score-form .form-status:not(:empty), [data-audit-step] > .wrap > .form-status:not(:empty) {
  margin: 0.25rem 0 0;
  padding: 0.875rem 1.125rem;
  border: 1.5px solid var(--ink);
  border-inline-start: 6px solid var(--lav);
  border-radius: 14px;
  line-height: 1.45;
}

/* Fields the browser has flagged (after a submit attempt or a blur) get the error edge; the label follows. */
.form input:user-invalid, .form textarea:user-invalid {
  border-color: var(--q-error);
  border-width: 2px;
  box-shadow: 0 0 0 4px var(--q-hue-wash);
}
.form label:has(+ :user-invalid) { color: var(--q-error); }
.form input:user-invalid:focus-visible, .form textarea:user-invalid:focus-visible { outline-color: var(--q-error); }

/* The consent row is a bordered, tappable plate: lavender once ticked, the error edge when a submit needs it. */
.form .check { border: 1.5px solid var(--ink); border-radius: 14px; padding: 0.75rem 1rem; transition: background-color 0.2s var(--ease); }
.form .check:hover { background: var(--q-tile); }
.form .check:has(input:checked) { background: var(--lav); }
.form .check:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }
.form .check input:focus-visible { outline: none; }
.form .check:has(input:user-invalid) { border-color: var(--q-error); border-width: 2px; box-shadow: 0 0 0 4px var(--q-hue-wash); }
.form .check:has(input:user-invalid) span { color: var(--q-error); }

.tier-picker { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; min-width: 0; }

.tier-picker legend {
  padding: 0;
  margin-bottom: 1rem;
  font-family: var(--q-font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tier-option {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: start;
  padding: 1.125rem 1.375rem;
  min-height: var(--tap-min-height);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.tier-option:hover { background: var(--q-tile); }
.tier-option:has(input:checked) { background: var(--lav); border-color: var(--ink); border-width: 2px; padding: calc(1.125rem - 0.5px) calc(1.375rem - 0.5px); }
/* The chosen tier reads as the lavender field with a heavier edge and a bold name (the radio stays visible). */
.tier-option:has(input:checked) .tier-option-name { font-weight: 600; }
.tier-option:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 3px; }

.tier-option input { margin: 0.3rem 0 0; accent-color: var(--ink); inline-size: 1.375rem; block-size: 1.375rem; }
.tier-option input:focus-visible { outline: none; }

.form .tier-option label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 0.75rem;
  margin: 0;
  cursor: pointer;
  font-size: 1.125rem;
}

/* The whole row is the hit area. */
.form .tier-option label::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }

.tier-option-price { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.04em; }
.tier-option .note { grid-column: 2; margin: 0; color: var(--ink); }

.tier-includes { margin-block: 2rem; padding-top: 1.5rem; border-top: var(--rule-ink); }
.tier-includes-block h3 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem) !important; letter-spacing: -0.035em !important; margin: 0 0 0.75rem !important; }
.tier-includes-lead { margin: 0 0 0.75rem; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }
.tier-includes-block ul { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 0.375rem; }

/* The audit request section: form + includes side by side on wide screens. */
@media (min-width: 1080px) {
  .section[data-audit-step="request"] > .wrap:has(> form) > h2, .section[data-audit-step="request"] > .wrap:has(> form) > .steps-inline { grid-column: 1 / -1 !important; }
  .section[data-audit-step="request"] > .wrap:has(> form) > form, .section[data-audit-step="request"] > .wrap:has(> form) > .form-done { grid-column: 1 / 8 !important; grid-row: 3; }
  .section[data-audit-step="request"] > .wrap:has(> form) > .note { grid-column: 1 / 8 !important; grid-row: 4; }
  .section[data-audit-step="request"] > .wrap:has(> form) > .tier-includes { grid-column: 9 / -1 !important; grid-row: 3; margin-top: 0; position: sticky; top: calc(var(--head-h) + 2rem); }
  .section[data-audit-step="request"] > .wrap:has(> form) > .notes { grid-column: 9 / -1 !important; grid-row: 4; }
}

[data-audit-step="request"] .panel.form, [data-audit-step="request"] .form-done { max-width: none; }

/* ------------------------------------------------------------------ status page */

.status-list, .status-incidents { list-style: none; padding: 0; margin: 0 0 3rem; display: grid; border-top: var(--rule-ink); }

.status-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 1.25rem;
  border-bottom: var(--rule);
  font-weight: 500;
}

.status-uptime { color: var(--muted); font-size: var(--q-step--1); font-family: var(--q-font-mono); }
.incident { padding-block: 1.25rem; border-bottom: var(--rule); }
.incident h3 { margin: 0 0 0.5rem; font-size: 1.125rem; }
.incident time, .incident .meta { color: var(--muted); font-size: var(--q-step--1); }

/* ------------------------------------------------------------------ CTA band: one circular CTA moment */

.cta-band { position: relative; }

.section:has(> .wrap > .cta-band) {
  overflow: clip;
  isolation: isolate;
  border-top: var(--rule-ink);
  background-image: var(--grid-bg);
  background-size: var(--grid-size);
}

.section:has(> .wrap > .cta-band)::before {
  content: "";
  position: absolute;
  z-index: -1;
  inline-size: clamp(260px, 40vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lav);
  inset-inline-end: -9vw;
  bottom: -30%;
}

.section:has(> .wrap > .cta-band)::after {
  content: "";
  position: absolute;
  z-index: -1;
  inline-size: 14px;
  block-size: 14px;
  border-radius: 50%;
  background: var(--lav-deep);
  inset-inline-start: calc(var(--gutter) + 3vw);
  top: 3rem;
}

.cta-band h2 { font-size: clamp(2.75rem, 1.2rem + 5.4vw, 6.75rem) !important; max-width: 12ch; margin-bottom: 2.5rem !important; }
.cta-band .actions { margin-block: 0 1rem; }
.cta-band .note { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .cta-band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: var(--col-gap); }
  .cta-band h2 { grid-column: 1; margin-bottom: 0 !important; }
  .cta-band .actions { grid-column: 2; grid-row: 1; flex-direction: column; align-items: center; margin: 0; }
  .cta-band .note { grid-column: 1 / -1; }
  /* The primary action becomes a circle. */
  .cta-band .actions .cta {
    flex-direction: column;
    inline-size: 12rem;
    block-size: 12rem;
    padding: 1.5rem;
    border-radius: 50%;
    background: var(--ground);
    font-size: 1.0625rem;
    gap: 0.75rem;
  }
  .cta-band .actions .cta:hover { background: var(--ink); color: var(--ground); }
}

/* ------------------------------------------------------------------ buy bar */

.buy-bar {
  position: sticky;
  bottom: 0;
  z-index: 40;
  background: var(--ground);
  border-top: var(--rule-ink);
}

.buy-bar .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 0.5rem 1rem; padding-block: 0.625rem; }
.buy-bar p { margin: 0; font-weight: 500; min-width: 0; line-height: 1.3; }
.buy-bar .cta { min-height: 48px; flex: none; padding-inline: 1.375rem; gap: 0; }
.buy-bar .cta::after { display: none; }
.buy-bar .cta:hover { background: var(--ink); color: var(--ground); }
/* Focus and anchor scrolling keep clear of the bar. */
html:has(body.has-buybar) { scroll-padding-block-end: 6rem; }

/* ------------------------------------------------------------------ prose, media, CMS sections */

.prose { max-width: 44rem; }
.prose p, .prose li { line-height: 1.7; overflow-wrap: anywhere; }
.prose p { margin: 0 0 1.125rem; }
.prose a { text-decoration-color: var(--lav-deep); text-decoration-thickness: 2px; }
.prose h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem) !important; letter-spacing: -0.04em; line-height: 1.05; margin: 3.5rem 0 1.25rem; }
.prose ul { padding-inline-start: 1.25rem; }
.prose li { margin-bottom: 0.625rem; }

.media-figure { margin: 0; }
.media-figure img, .media-figure video { display: block; max-width: 100%; height: auto; border-radius: var(--radius-panel); border: var(--rule); }
.media-figure video { inline-size: 100%; }
.media-figure figcaption { margin-top: 0.75rem; font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--col-gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.collection-item img { display: block; inline-size: 100%; height: auto; border-radius: 16px; margin-bottom: 1rem; }
.collection-item .cta-ghost { margin-top: 1rem; align-self: flex-start; }
.cards.collection.is-list { grid-template-columns: 1fr; }
.cards.collection.is-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr)); }

/* ------------------------------------------------------------------ footer */

.site-foot, body > footer.foot {
  position: relative;
  overflow: clip;
  isolation: isolate;
  border-top: var(--rule-ink);
  padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem;
  font-size: var(--q-step--1);
}

.site-foot::after {
  content: "";
  position: absolute;
  z-index: -1;
  inline-size: clamp(220px, 28vw, 440px);
  aspect-ratio: 1;
  border: 4px solid var(--lav);
  border-radius: 50%;
  inset-inline-end: -6vw;
  bottom: -40%;
}

.site-foot .foot {
  display: grid;
  gap: 1.5rem var(--col-gap);
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.site-foot .foot > * { grid-column: 1 / -1; margin: 0; }
.foot-brand { display: inline-flex; justify-self: start; min-height: var(--tap-min-height); }
.foot-brand img { inline-size: clamp(220px, 30vw, 380px); height: auto; }
.foot-powered { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; }
.foot-links { gap: 0 1.25rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--tap-min-height); text-decoration: none; font-weight: 500; }
.foot-links a:hover { text-decoration: underline; text-decoration-color: var(--lav-deep); text-decoration-thickness: 2px; }
.foot-owner { color: var(--muted); max-width: 40rem; padding-top: 1.5rem; border-top: var(--rule); }
.site-foot .foot p a { min-height: var(--tap-min-height); display: inline-flex; align-items: center; }
.section[data-section="lead-form"] .note a { display: inline-flex; align-items: center; min-height: var(--tap-min-height); padding-inline: 0.25rem; margin-inline-start: -0.25rem; font-size: var(--q-step-0); font-weight: 500; color: var(--ink); text-decoration-color: var(--lav-deep); text-decoration-thickness: 2px; overflow-wrap: anywhere; }

@media (min-width: 900px) {
  .site-foot .foot > .foot-brand { grid-column: 1 / 7; }
  .site-foot .foot > .foot-powered { grid-column: 7 / -1; grid-row: 1; align-self: center; justify-self: end; }
  .site-foot .foot > nav { grid-column: 1 / 9; }
  .site-foot .foot > p:not(.foot-powered):not(.foot-owner) { grid-column: 9 / -1; justify-self: end; }
}

/* Hand-written pages: header.wrap.nav, main.wrap.hero, footer.wrap.foot. */
body > header.nav { border-bottom: var(--rule); max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--wrap-max)) / 2 + var(--gutter))); }
main.hero { max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--wrap-max)) / 2 + var(--gutter))); }
main.hero > p { max-width: 40rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); }
main.hero > .cta { margin-top: 1rem; }
main.hero h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.05; margin: 3.5rem 0 1.25rem; }
main.hero.prose { max-width: none; }
main.hero.prose > * { max-width: 46rem; }
main.hero.prose > h1 { max-width: 14ch; }
body > footer.foot { max-width: none; padding-inline: max(var(--gutter), calc((100% - var(--wrap-max)) / 2 + var(--gutter))); line-height: 2; }
body > footer.foot a { display: inline-flex; min-height: var(--tap-min-height); align-items: center; }

/* ------------------------------------------------------------------ page chrome: breadcrumb + "on this page" index */

.page-breadcrumb {
  max-width: var(--wrap-max);
  margin: 0 auto;
  padding: 1.25rem var(--gutter) 0;
  font-family: var(--q-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  z-index: 2;
}

.page-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 0 0.5rem; margin: 0; padding: 0; list-style: none; }
.page-breadcrumb li { display: flex; align-items: center; gap: 0.5rem; }
.page-breadcrumb li + li::before, .page-breadcrumb > span[aria-hidden="true"] { content: "/"; color: var(--muted); }
.page-breadcrumb li + li a { margin-inline-start: 0; }
.page-breadcrumb > span[aria-hidden="true"] { margin-inline: 0.5rem; }
.page-breadcrumb a { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap-min-height); min-inline-size: var(--tap-min-height); padding-inline: 0.5rem; margin-inline-start: -0.5rem; color: var(--ink); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; text-decoration-color: var(--lav-deep); }
.page-breadcrumb [aria-current="page"] { color: var(--ink); }
/* The breadcrumb sits on the hero's grid field. */
.page-breadcrumb + .hero-block { margin-top: calc(-1 * (1.25rem + var(--tap-min-height))); padding-top: calc(clamp(4.5rem, 11vw, 10rem) + 1.25rem); }

.page-index { border-top: var(--rule-ink); border-bottom: var(--rule); background: var(--ground); }
.page-index > .wrap { display: flex; align-items: center; gap: 0.5rem 2.5rem; flex-wrap: wrap; padding-block: 0.5rem; }
.page-index p { margin: 0; font-family: var(--q-font-mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; }
.page-index p::before { content: ""; display: inline-block; inline-size: 10px; block-size: 10px; border-radius: 50%; background: var(--lav-deep); margin-inline-end: 0.75rem; vertical-align: 0.05em; }
.page-index ol { display: flex; flex-wrap: wrap; gap: 0 0.25rem; margin: 0; padding: 0; list-style: none; }
.page-index a { display: inline-flex; align-items: center; gap: 0.625rem; min-height: var(--tap-min-height); padding-inline: 0.875rem; border-radius: 999px; font-size: 0.875rem; font-weight: 500; text-decoration: none; }
.page-index a > span { font-family: var(--q-font-mono); font-size: 0.6875rem; letter-spacing: 0.1em; color: var(--muted); }
.page-index a:hover { background: var(--lav); }
.page-index a:hover > span { color: var(--ink); }

/* Tier feature lists (pricing cards). */
.tier-features { list-style: none; inline-size: 100%; margin: 0.5rem 0 0; padding: 0; border-top: var(--rule); }
.tier-features li { position: relative; padding: 0.625rem 0; padding-inline-start: 1.5rem; border-bottom: var(--rule); font-size: var(--q-step--1); line-height: 1.5; }
.tier-features li::before { content: ""; position: absolute; inset-inline-start: 0.125rem; top: 1.05em; inline-size: 8px; block-size: 8px; border-radius: 50%; background: var(--lav-deep); }
.tier-card.is-featured .tier-features, .tier-card.is-featured .tier-features li { border-color: var(--ink); }
.tier-card.is-featured .tier-features li::before { background: var(--ink); }

/* Status summary (hand-owned status page). */
#status-summary { max-width: 44rem; padding: 1.25rem 1.5rem; border: var(--rule-ink); border-inline-start: 6px solid var(--lav); border-radius: 0 var(--radius-panel) var(--radius-panel) 0; }
[dir="rtl"] #status-summary { border-radius: var(--radius-panel) 0 0 var(--radius-panel); }
.badge[data-status="unknown"] { border-style: dashed; color: var(--muted); }

/* ------------------------------------------------------------------ Arabic / RTL: mirror logic, not personality */

.lang-ar, [lang="ar"] body { font-family: var(--q-font-arabic); }
.lang-ar .eyebrow, .lang-ar .tier-picker legend, .lang-ar .foot-powered, .lang-ar .price-note, .lang-ar .panel h3, .lang-ar .tier-card h3, .lang-ar .tier-includes-lead, .lang-ar .steps-inline, .lang-ar .dash-chrome, .lang-ar .badge, .lang-ar .media-figure figcaption {
  font-family: var(--q-font-arabic);
  letter-spacing: 0;
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Arabic display type: no negative tracking, a looser leading, and weight contrast instead of the serif. */
.lang-ar .hero-block h1, .lang-ar main.hero h1, .lang-ar .offer h1, .lang-ar .offer h2, .lang-ar .section h2, .lang-ar .cta-band h2 {
  font-family: var(--q-font-arabic);
  letter-spacing: 0;
  line-height: 1.22;
  font-weight: 500;
}

.lang-ar .section h3, .lang-ar .lede, .lang-ar .faq summary, .lang-ar .tiles li, .lang-ar .cta, .lang-ar .cta-ghost { letter-spacing: 0; }

.lang-ar .pivot {
  font-family: var(--q-font-arabic);
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
}

.lang-ar p .pivot, .lang-ar li .pivot { font-weight: 700; }
.lang-ar .num, .lang-ar .tier-price, .lang-ar .card-n { letter-spacing: -0.02em; }
.lang-ar .hero-block h1 { max-width: 14ch; }
.lang-ar .offer-price .num { font-size: clamp(2.75rem, 1.8rem + 3.4vw, 5rem); letter-spacing: 0; line-height: 1.15; }

[dir="rtl"] .logo-marquee {
  mask-image: linear-gradient(to left, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, black 10%, black 90%, transparent);
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 899px) {
  :root { --head-h: 4rem; --grid-size: 25% 120px; }

  /* Compact bar: wordmark | language | audit action | menu. One row, 4rem tall, sticky. */
  .nav { flex-wrap: nowrap; gap: 0.5rem; padding-block: 0.5rem; }
  .site-head .brand { min-width: 0; flex: 0 1 auto; }
  .site-head .brand img { height: 22px; }
  .site-head .nav-actions { flex: none; gap: 0.375rem; margin-inline-start: auto; }
  .site-head .lang-switch { min-height: 44px; padding-inline: 0.625rem; font-size: 0.8125rem; }
  .site-head .cta { min-height: 44px; padding: 0.25rem 0.75rem; font-size: 0.8125rem; gap: 0; }
  .site-head .cta::after { display: none; }
  .site-head .cta .cta-full { display: none; }
  .site-head .cta .cta-brief { display: inline; }
  .nav-toggle { display: inline-flex; }
  /* On a page with the sticky buy bar the bar carries the audit action; the header keeps wordmark, language, menu. */
  body.has-buybar .site-head .cta { display: none; }

  /* The link list becomes a full-height panel under the bar (nav.js opens it). It is closed by default so the first
   * paint never shifts; every link is also in the footer for visitors without JavaScript. */
  .site-head:has(.nav-toggle) nav {
    position: fixed;
    inset-inline: 0;
    top: var(--head-h);
    bottom: 0;
    z-index: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--ground);
    border-top: var(--rule-ink);
    padding: 0.5rem var(--gutter) 3rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .site-head.is-open nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-head:has(.nav-toggle) .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .site-head:has(.nav-toggle) .nav-links > li { border-bottom: var(--rule); }
  .site-head:has(.nav-toggle) .nav-links a {
    display: flex;
    justify-content: flex-start;
    gap: 0.75rem;
    min-height: 3.5rem;
    padding: 0.75rem 0.25rem;
    border-radius: 0;
    font-size: 1.375rem;
    font-weight: 500;
    letter-spacing: -0.02em;
  }
  .site-head:has(.nav-toggle) .nav-links a:hover { background: transparent; text-decoration: underline; text-decoration-color: var(--lav-deep); text-decoration-thickness: 2px; }
  .site-head:has(.nav-toggle) .nav-links a[aria-current="page"] { background: transparent; font-weight: 600; }
  .site-head:has(.nav-toggle) .nav-links a[aria-current="page"]::before { content: ""; flex: none; inline-size: 14px; block-size: 14px; border-radius: 50%; background: var(--lav-deep); }

  /* Hand-written pages have no menu button: their links wrap under the bar instead of scrolling sideways. */
  .site-head:not(:has(.nav-toggle)) .nav { flex-wrap: wrap; }
  .site-head:not(:has(.nav-toggle)) nav { flex: 1 0 100%; order: 3; }
  .site-head:not(:has(.nav-toggle)) .nav-links a { padding-inline: 0.625rem; font-size: 0.875rem; }

  [data-page="home"] .hero-block:first-child { min-height: calc(88svh - var(--head-h)); }
  body.has-buybar[data-page="home"] .hero-block:first-child { min-height: calc(88svh - var(--head-h) - 5rem); }
  [data-page^="audit"] .hero-block::before, [data-page="lp-growth-audit"] .hero-block::before { top: -32%; inset-inline-end: -22vw; }
  [data-page="partners"] .hero-block::before { inset-inline-start: auto; inset-inline-end: -22vw; top: -40px; inline-size: 56vw; }
  [data-page="partners"] .hero-block::after { inset-inline-end: 22vw; top: 14px; inline-size: 30vw; }

  body > header.nav { flex-wrap: wrap; }

  .offer { grid-template-columns: 1fr; }
  .offer-price { justify-self: center; inline-size: min(78vw, 320px); }
  .report-card { grid-template-columns: 1fr; }
  .report-score { grid-row: auto; }

  .hero-block::before, main.hero::before { opacity: 1; }
  .section:has(> .wrap > .cta-band)::before { bottom: -18%; }

  .page-breadcrumb + .hero-block { margin-top: 0; padding-top: 4rem; }
  .tier-card { border-inline-end: 0; }
  .site-foot::after { bottom: -12%; }
  .buy-bar .cta { font-size: 0.875rem; min-height: 44px; padding-inline: 1rem; }
  .buy-bar p { font-size: var(--q-step--1); }
}

@media (max-width: 480px) {
  .site-head .brand img { height: 18px; }
  .site-head .nav-actions { gap: 0.25rem; }
  .site-head .lang-switch, .site-head .cta, .nav-toggle { padding-inline: 0.5rem; font-size: 0.75rem; }
  /* Below 480px the menu button is its word alone; the three-line icon returns from 481px. */
  .nav-toggle-icon { display: none; }
  .cta, .cta-ghost { font-size: 0.9375rem; }
  .actions > .cta, .actions > .cta-ghost { flex: 1 1 100%; }
  .hero-block h1, main.hero h1 { font-size: clamp(2.625rem, 12.5vw, 3.5rem); }
  [data-page="home"] .hero-block:first-child h1 { font-size: clamp(3rem, 15vw, 4rem); }
  .lang-ar .hero-block h1 { font-size: clamp(2.25rem, 10.5vw, 3rem); }
}

/* ------------------------------------------------------------------ motion + forced colours */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-on-scroll, .reveal-ready .reveal-on-scroll { opacity: 1 !important; transform: none !important; }
  .logos { animation: none !important; flex-wrap: wrap !important; justify-content: center !important; row-gap: 1.5rem; }
  .logos li[aria-hidden="true"] { display: none; }
  .logo-marquee { mask-image: none; -webkit-mask-image: none; justify-content: center; }
}

@media (forced-colors: active) {
  .cta, .cta-ghost, .tier-option, .panel { border: 2px solid ButtonText; }
  .hero-block::before, .hero-block::after, main.hero::before, main.hero::after { forced-color-adjust: none; }
}

/* CRM plans: longer price strings (AED + USD line) get a tighter scale and a five-up grid. */
.cards.tiers:has(.price-line) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.cards.tiers:has(.price-line) .tier-price { font-size: clamp(1.75rem, 1.2rem + 1.3vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.05; }

/* WhatsApp automation plans: currency switch (buttons appear only with script) and the hidden state of the other price. */
.region-plans [hidden] { display: none; }
.region-switch { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-block: 1.5rem 0.75rem; }
.region-switch button {
  font: inherit; font-family: var(--q-font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.6rem 1rem; border: 1.5px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
}
.region-switch button[aria-pressed="true"] { background: var(--lav); }
.region-switch button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.region-countries { margin-block: 0 0.5rem; }
.region-plans .cards.tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.region-plans .tier-price { font-size: clamp(1.75rem, 1.2rem + 1.3vw, 2.5rem); letter-spacing: -0.04em; line-height: 1.05; }

/* Cookie consent banner (public/assets/js/consent.js). Equal-weight Accept / Reject; sits above the buy bar. */
.consent {
  position: fixed;
  inset-inline: 1rem;
  inset-block-end: 1rem;
  z-index: 60;
  max-width: 34rem;
  padding: 1.25rem;
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--q-radius-tile);
}
.consent-title { margin: 0 0 0.35rem; font-size: var(--q-step-0); font-family: var(--q-font-display); }
.consent-text { margin: 0 0 1rem; font-size: var(--q-step--1); color: var(--muted); }
.consent-text a { color: var(--ink); text-decoration: underline; }
.consent-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.consent-actions .cta-ghost { cursor: pointer; }
.consent:lang(ar), .consent:lang(ar) * { font-family: var(--q-font-arabic); }
.foot-cookies { margin: 0; }
.foot-cookies button { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
@media (min-width: 40rem) { .consent { inset-inline-start: auto; } }
