/* Quixo Audit pages (linked by src/render/page.mjs for every key in AUDIT_PAGES: /audit, /audit/pro,
   /platform/growth-audit, /lp/growth-audit and the flow steps, EN and AR). The redesign block (stage look) is at the end.

   Compact layout for /audit and /ar/audit (rules scoped to body[data-page="audit"]).
   Owner request 12 November 2026: simple and professional, with much less empty space. Layout only: no new colours,
   every colour still comes from the shared tokens. Two columns from 56rem; one column below. */

body[data-page="audit"] {
  --audit-gap: clamp(1.5rem, 3vw, 3rem);
  --audit-section-y: clamp(2.5rem, 4vw, 3.5rem);
}


/* Sections: one even rhythm, smaller headings, a thin rule between sections instead of large gaps. */
body[data-page="audit"] main > .section:not(.hero-block) { padding-block: var(--audit-section-y); border-block-start: var(--rule-ink, 1px solid currentColor); }
body[data-page="audit"] main > .section.hero-block + .page-index + .section { border-block-start: 0; }
body[data-page="audit"] main > .section > .wrap > h2, body[data-page="audit"] #order > .wrap > h2 { font-size: clamp(1.625rem, 1.2rem + 1.2vw, 2.125rem); line-height: 1.15; margin-block: 0 0.75rem; }
body[data-page="audit"] .section-kicker { margin-block-end: 0.5rem; }
body[data-page="audit"] .section .lede { font-size: 1rem; line-height: 1.6; margin-block: 0 1rem; }
body[data-page="audit"] .section .note { margin-block: 0.75rem 0; font-size: 0.875rem; }
body[data-page="audit"] .panel { padding: clamp(1.25rem, 2vw, 1.5rem); }

body[data-page="audit"] #free-score-form > .form-status:empty { display: none; }

/* Free website check: heading on the left, the form on the right; address and button on one line. */
body[data-page="audit"] #free-score-form { max-inline-size: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 0.75rem; align-items: end; }
body[data-page="audit"] #free-score-form > label,
body[data-page="audit"] #free-score-form > .form-status { grid-column: 1 / -1; margin: 0; }
body[data-page="audit"] #free-score-form > input { margin: 0; min-inline-size: 0; }
body[data-page="audit"] #free-score-form > .cta { margin: 0; white-space: nowrap; }


/* What is in the report: four short items in one row, small numbers. */
body[data-page="audit"] #audit-pages .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); gap: 1.25rem var(--audit-gap); margin: 0; }
body[data-page="audit"] #audit-pages .steps li { padding-block-start: 0.875rem; }
body[data-page="audit"] #audit-pages .steps li::before { font-size: 1.5rem; letter-spacing: -0.02em; margin-block-end: 0.5rem; }
body[data-page="audit"] #audit-pages .steps h3 { font-size: 1rem; line-height: 1.4; margin: 0; }

/* Order form: tighter heading, steps and notes. */
body[data-page="audit"] #order .steps-inline { margin-block: 0.25rem 1.5rem; }
body[data-page="audit"] #order .notes { margin-block-start: 1.25rem; font-size: 0.9375rem; }

@media (min-width: 56rem) {
  body[data-page="audit"] #free-score > .wrap {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--audit-gap);
    align-items: start;
  }
  /* !important: site.css forces every child of a section wrap that holds a form across the full grid. */
  body[data-page="audit"] #free-score > .wrap > * { grid-column: 1 !important; min-inline-size: 0; }
  /* Right column: the form (and its result panels) / the score card, spanning the left column's rows. */
  body[data-page="audit"] #free-score > .wrap > .panel { grid-column: 2 !important; grid-row: 1 / span 3; }
  body[data-page="audit"] #audit-pages > .wrap { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); column-gap: var(--audit-gap); align-items: start; }
  body[data-page="audit"] #audit-pages > .wrap > .section-kicker,
  body[data-page="audit"] #audit-pages > .wrap > h2 { grid-column: 1; }
  body[data-page="audit"] #audit-pages > .wrap > .steps { grid-column: 2; grid-row: 1 / span 2; }
}

/* Phones: the address field and its button stack, so the address has the full width. */
@media (max-width: 40rem) {
  body[data-page="audit"] #free-score-form { grid-template-columns: minmax(0, 1fr); }
}

/* Order form, wide screens: the form spans two rows on the left, so the right column holds "what is included" and the
   notes one under the other from the top of the form (site.css put the notes in the row after the whole form). */
@media (min-width: 1080px) {
  body[data-page="audit"] #order > .wrap > form,
  body[data-page="audit"] #order > .wrap > .form-done { grid-row: 3 / span 2; }
  body[data-page="audit"] #order > .wrap > .note { grid-row: 5; }
  body[data-page="audit"] #order > .wrap > .tier-includes { grid-row: 3; position: static; align-self: start; margin-block-end: 0; }
  body[data-page="audit"] #order > .wrap > .notes { grid-row: 4; align-self: start; margin-block-start: 1.5rem; }
}

/* Minimal motion: the hero fades up in sequence, the chosen tier's list fades in, and cards answer the pointer.
   Everything ends fully visible; nothing runs for people who ask for reduced motion. */
@keyframes audit-rise { from { opacity: 0; transform: translateY(0.75rem); } to { opacity: 1; transform: none; } }
@keyframes audit-fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: no-preference) {
  body[data-page="audit"] .tier-includes-block:not([hidden]) { animation: audit-fade 0.3s ease-out both; }

  body[data-page="audit"] .tier-option,
  body[data-page="audit"] #free-score-form,
  body[data-page="audit"] #audit-pages .steps li { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
  body[data-page="audit"] .tier-option:hover { transform: translateY(-2px); }
  body[data-page="audit"] #free-score-form:focus-within { border-color: var(--h-ink); }
  body[data-page="audit"] #audit-pages .steps li:hover { border-color: var(--h-ink); transform: translateY(-2px); }
}

/* ---------------------------------------------------------------------------------------------------------------------
   Free score result (owner request 12 Nov 2026): one compact card across the whole section instead of a tall strip in
   the right column. Top row: score ring, grade + note, action. Then the six areas as bars in a grid, then the findings
   as small cards. audit-flow.js sets --score / --v and the classes has-free-score, is-in and is-unmeasured. */
@property --audit-p { syntax: "<number>"; inherits: true; initial-value: 0; }

@media (min-width: 56rem) {
  body[data-page="audit"] #free-score.has-free-score > .wrap > .panel { grid-column: 1 / -1 !important; grid-row: auto; margin-block-start: 0.75rem; }
}

body[data-page="audit"] .free-score-result:not([hidden]) {
  --audit-p: var(--score, 0);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "score grade next" "score note next" "factors factors factors" "findings findings findings";
  gap: 0.25rem clamp(1rem, 2.5vw, 2rem);
  align-items: center;
  margin-block-start: 0;
}

/* Score ring: a track with a white arc filled to the score (champagne stays for the pill, one row and accent words). */
body[data-page="audit"] .free-score-result .free-score-score {
  grid-area: score;
  inline-size: 7.5rem;
  border-radius: 50%;
  box-shadow: none;
  background:
    radial-gradient(closest-side, var(--ground) 80%, transparent 81% 100%),
    conic-gradient(var(--h-ink) calc(var(--audit-p) * 1%), var(--grid) 0);
}
body[data-page="audit"] .free-score-result .free-score-score .num { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; }
body[data-page="audit"] .free-score-result .free-score-score .of { font-size: 0.6875rem; color: var(--muted); }
body[data-page="audit"] .free-score-result .free-score-grade { grid-area: grade; align-self: end; font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem); }
body[data-page="audit"] .free-score-result .free-score-disclaimer { grid-area: note; align-self: start; max-inline-size: 46rem; font-size: 0.875rem; line-height: 1.5; }
body[data-page="audit"] .free-score-result > .cta { grid-area: next; justify-self: end; align-self: center; white-space: nowrap; }

/* The six areas: label and score on one line, a thin bar under them; three columns on wide screens. */
body[data-page="audit"] .free-score-result .free-score-factors {
  grid-area: factors;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-inline: 0;
  gap: 0.25rem clamp(1rem, 2.5vw, 2rem);
  margin-block-start: 1.25rem;
  padding-block-start: 1rem;
  border-block-start: var(--rule);
}
body[data-page="audit"] .free-score-result .factor-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.375rem 0.75rem; padding-block: 0.5rem; border: 0; }
body[data-page="audit"] .free-score-result .factor-label { font-family: inherit; font-size: 0.875rem; letter-spacing: 0; text-transform: none; }
body[data-page="audit"] .free-score-result .factor-score { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
body[data-page="audit"] .free-score-result .factor-row.is-unmeasured .factor-score { font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
body[data-page="audit"] .free-score-result .factor-bar { grid-column: 1 / -1; display: block; block-size: 0.375rem; border-radius: 999px; background: var(--grid); overflow: hidden; }
body[data-page="audit"] .free-score-result .factor-bar::before { content: ""; display: block; block-size: 100%; inline-size: calc(var(--v, 0) * 1%); border-radius: inherit; background: var(--h-ink); }
body[data-page="audit"] .free-score-result .factor-row.is-unmeasured .factor-bar { background: transparent; border: 1px dashed var(--grid); }

/* The findings: up to three small cards side by side. */
body[data-page="audit"] .free-score-result .free-score-findings {
  grid-area: findings;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 0.75rem;
  padding: 0;
  margin-block-start: 1rem;
  border: 0;
}
body[data-page="audit"] .free-score-result .free-score-findings:empty { display: none; }
body[data-page="audit"] .free-score-result .finding-row { justify-content: flex-start; gap: 0.25rem; padding: 0.875rem 1rem; border: 0; border-radius: 12px; background: var(--q-tile, var(--grid)); }
body[data-page="audit"] .free-score-result .finding-title { font-size: 0.9375rem; line-height: 1.35; }
body[data-page="audit"] .free-score-result .finding-detail { font-size: 0.8125rem; line-height: 1.45; }

/* The "couldn't reach your website" panel also takes the full width. */
body[data-page="audit"] .free-score-unreachable:not([hidden]) { margin-block-start: 0; }

@media (max-width: 56rem) {
  body[data-page="audit"] .free-score-result .free-score-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones and narrow tablets: ring beside the grade, everything else stacked. */
@media (max-width: 40rem) {
  body[data-page="audit"] .free-score-result .free-score-factors { grid-template-columns: minmax(0, 1fr); }
  body[data-page="audit"] .free-score-result:not([hidden]) {
    grid-template-columns: 5.5rem minmax(0, 1fr);
    grid-template-areas: "score grade" "note note" "factors factors" "findings findings" "next next";
    row-gap: 0.75rem;
  }
  body[data-page="audit"] .free-score-result .free-score-score { inline-size: 5.5rem; }
  body[data-page="audit"] .free-score-result .free-score-grade { align-self: center; }
  body[data-page="audit"] .free-score-result .free-score-score .num { font-size: 1.875rem; }
  body[data-page="audit"] .free-score-result > .cta { justify-self: stretch; margin-block-start: 1rem; }
}

/* Motion: the ring fills, the bars grow one after another, the findings rise in. Final state without motion. */
@media (prefers-reduced-motion: no-preference) {
  body[data-page="audit"] .free-score-result:not(.is-in) { --audit-p: 0; }
  body[data-page="audit"] .free-score-result { transition: --audit-p 1.1s cubic-bezier(0.2, 0.7, 0.2, 1); }
  body[data-page="audit"] .free-score-result .factor-bar::before { transition: inline-size 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
  body[data-page="audit"] .free-score-result:not(.is-in) .factor-bar::before { inline-size: 0; }
  body[data-page="audit"] .free-score-result .factor-row:nth-child(2) .factor-bar::before { transition-delay: 0.08s; }
  body[data-page="audit"] .free-score-result .factor-row:nth-child(3) .factor-bar::before { transition-delay: 0.16s; }
  body[data-page="audit"] .free-score-result .factor-row:nth-child(4) .factor-bar::before { transition-delay: 0.24s; }
  body[data-page="audit"] .free-score-result .factor-row:nth-child(5) .factor-bar::before { transition-delay: 0.32s; }
  body[data-page="audit"] .free-score-result .factor-row:nth-child(6) .factor-bar::before { transition-delay: 0.4s; }
  body[data-page="audit"] .free-score-result.is-in .free-score-score .num,
  body[data-page="audit"] .free-score-result.is-in .free-score-grade { animation: audit-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  body[data-page="audit"] .free-score-result.is-in .finding-row { animation: audit-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: 0.45s; }
  body[data-page="audit"] .free-score-result.is-in .finding-row:nth-child(2) { animation-delay: 0.55s; }
  body[data-page="audit"] .free-score-result.is-in .finding-row:nth-child(3) { animation-delay: 0.65s; }
  body[data-page="audit"] .free-score-unreachable:not([hidden]) { animation: audit-rise 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
}

/* =====================================================================================================================
   REDESIGN: Direction H2 (workstream 4, 16 Nov 2026; docs/design/direction-h2/SPEC.md on design/direction-h2).
   White pages, black type, black pills; the six signals as numbered white cards (one black inverse card); the audit
   score phone (sample figures) with a ring and signal rows; the price bar inside one rounded black closer. Black, white
   and greys only: the page's one accent touch is the shared hero frame's glow line. Variables only: the --h-* names
   come from the interior layer (marketing-pages.css, workstream 5) and map to --q-* tokens, so the CMS theme can override
   them. Logical properties only. This file loads before ui.css, so selectors start at `body`.
   Motion: transform/opacity only, under prefers-reduced-motion: no-preference; content is visible without script. */

/* ---------- shared bits */
.au-label { margin: 0; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em; color: var(--h-grey); }
body.os-page .au-signals-section, body.os-page .au-showcase-section, body.os-page .au-close-section { padding-block: clamp(4rem, 8vw, 7rem); background: var(--h-white); color: var(--h-ink); }
body.os-page .au-showcase-section { background: var(--h-alt); }
body .section:is(.au-signals-section, .au-showcase-section, .au-close-section) > .wrap { display: block; }
body .section:is(.au-signals-section, .au-showcase-section, .au-close-section) > .wrap > .section-kicker { margin-block: 0 clamp(1.25rem, 3vw, 2rem); color: var(--h-mute); }
body.os-page :is(.au-signals-section, .au-showcase-section, .au-close-section) h2 { margin: 0; font-size: clamp(2.25rem, 1.3rem + 3vw, 4rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--h-ink); text-wrap: balance; }
body.os-page.lang-ar :is(.au-signals-section, .au-showcase-section, .au-close-section) h2 { letter-spacing: 0; line-height: 1.2; }
body.os-page :is(.au-signals-section, .au-showcase-section) :is(.lede, .note) { color: var(--h-grey); }
body .au-stat .qx-stat__n, body .au-stat .qx-stat__n::before, body .au-stat .qx-stat__n::after { color: var(--h-ink); }
body .au-stat .qx-stat__label { color: var(--h-grey); }

/* ---------- hero of the landing page (it has a visual) and /audit/pro's offer: the white intro row */
body.os-page .hero-block.au-hero { background: var(--h-white); color: var(--h-ink); padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); border: 0; }
body.os-page .hero-block.au-hero::before, body.os-page .hero-block.au-hero::after, body.os-page .hero-block.au-hero > .wrap::before { content: none; display: none; }
body.os-page .au-hero > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
body.os-page .au-hero > .wrap > * { grid-column: 1 / -1; min-inline-size: 0; }
@media (min-width: 900px) {
  body.os-page .au-hero.has-media > .wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  body.os-page .au-hero.has-media > .wrap > .au-hero__copy { grid-column: 1; }
  body.os-page .au-hero.has-media > .wrap > .lpv { grid-column: 2; }
}
.au-hero__copy { display: grid; justify-items: start; gap: 1.25rem; }
body.os-page .au-hero :is(.au-hero__copy h1, .au-offer h1) {
  margin: 0;
  max-inline-size: 13em;
  font-size: clamp(2.75rem, 1.3rem + 4.4vw, 5.75rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: var(--h-ink);
  text-wrap: balance;
}
body.os-page.lang-ar .au-hero :is(.au-hero__copy h1, .au-offer h1) { letter-spacing: 0; line-height: 1.2; font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4.5rem); }
body.os-page .au-hero :is(h1, h2) .pivot { display: block; font-family: var(--q-font-pivot); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--h-ink); }
body.os-page.lang-ar .au-hero :is(h1, h2) .pivot { display: inline; font-family: inherit; font-style: normal; font-weight: 500; letter-spacing: 0; }
body.os-page .au-hero .lede { margin: 0; max-inline-size: 38rem; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: var(--h-grey); }
body.os-page .au-hero .note { margin: 0; max-inline-size: 38rem; font-size: 0.8125rem; line-height: 1.5; color: var(--h-grey); }
body.os-page .au-hero .qx-btn--primary { background: var(--h-ink); color: var(--h-white); }
body.os-page .au-hero .qx-btn--outline { color: var(--h-ink); box-shadow: inset 0 0 0 1px var(--h-line-strong); }
body.os-page .au-hero .lpv { border-radius: var(--h-radius-card); box-shadow: var(--h-shadow); }

/* /audit/pro: the price sits in a white card beside the intro. */
body.os-page .au-offer { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: end; }
@media (min-width: 900px) { body.os-page .au-offer { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); } }
body.os-page .au-offer .au-price {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  inline-size: auto;
  aspect-ratio: auto;
  justify-self: stretch;
  place-content: start;
  justify-items: start;
  text-align: start;
  border: 0;
  border-radius: var(--h-radius-card);
  background: var(--h-white);
  box-shadow: var(--h-shadow), inset 0 0 0 1px var(--h-line);
  color: var(--h-ink);
}
body.os-page .au-offer .au-price::before, body.os-page .au-offer .au-price::after { content: none; }
body.os-page .au-offer .au-price .num { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--h-ink); }
body.os-page .au-offer .au-price .price-note { font-size: 0.8125rem; letter-spacing: 0; text-transform: none; color: var(--h-grey); }

/* ---------- the audit score phone in the hero's story card (sample figures, src/render/audit-visuals.mjs) and the
   example report card on /audit. Both share the .au-card__* parts. */
.au-showcase { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) { .au-showcase { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .au-showcase > .au-giant { order: 2; } }
.au-showcase__copy { display: grid; justify-items: start; gap: 1rem; }
.au-showcase__copy .lede, .au-showcase__copy .note { margin: 0; max-inline-size: 34rem; }
.au-giant { display: grid; place-items: center; }
.au-report { margin: 0; inline-size: min(100%, 22rem); padding: clamp(1.25rem, 3vw, 1.75rem); border-radius: var(--h-radius-card); background: var(--h-white); color: var(--h-ink); box-shadow: var(--h-shadow-lift), inset 0 0 0 1px var(--h-line); }
.au-report__body { display: grid; gap: 0.875rem; }
/* The story phone: it rises from the bottom edge of the card, like the reference. */
body.os-page .h-visual:has(.au-phone--story) { place-items: end center; padding-block-end: 0; }
.au-phone { display: block; inline-size: min(78%, 15.5rem); padding: 0.55rem 0.55rem 0; border-radius: 2.2rem 2.2rem 0 0; background: var(--h-ink); box-shadow: var(--h-shadow-lift); }
.au-phone__screen { display: grid; gap: 0.75rem; padding: 1.25rem 1rem 1.5rem; border-radius: 1.75rem 1.75rem 0 0; background: var(--h-white); color: var(--h-ink); }
.au-phone .au-card__dial { inline-size: 7rem; }
.au-phone .au-card__num { font-size: 2rem; }
.au-phone .au-card__row:nth-child(n + 4) { display: none; }
.au-card__head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.au-card__domain { font-family: var(--q-font-mono); font-size: 0.6875rem; letter-spacing: 0.06em; color: var(--h-grey); }
.au-card__dial { position: relative; display: grid; place-items: center; inline-size: 9.5rem; margin-inline: auto; }
.au-card__dial > * { grid-area: 1 / 1; }
.au-ring { inline-size: 100%; block-size: auto; transform: rotate(-90deg); }
.au-ring circle { fill: none; stroke-width: 9; }
.au-ring__track { stroke: var(--h-line); }
.au-ring__arc { stroke: var(--h-ink); stroke-linecap: round; stroke-dasharray: 100 100; }
.au-card__score { display: flex; align-items: baseline; gap: 0.15rem; margin: 0; }
.au-card__num { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--h-ink); }
.au-card__of { font-family: var(--q-font-mono); font-size: 0.75rem; color: var(--h-grey); }
.au-card__grade { margin: 0; text-align: center; font-size: 0.875rem; font-weight: 600; color: var(--h-ink); }
.au-card__signals { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
:is(.au-card__signals li, .au-card__row) { display: grid; grid-template-columns: minmax(0, 1fr) 3.5rem 1.75rem; align-items: center; gap: 0.6rem; padding: 0.55rem 0.7rem; border-radius: 0.75rem; background: var(--h-alt); }
.au-card__head, .au-card__dial, .au-card__score { box-sizing: border-box; }
.au-card__name { font-size: 0.75rem; line-height: 1.25; color: var(--h-ink); }
.au-card__bar { display: block; block-size: 4px; border-radius: 999px; background: var(--h-line); overflow: hidden; }
.au-card__fill { display: block; block-size: 100%; inline-size: 100%; border-radius: inherit; background: var(--h-ink); transform-origin: 0 50%; }
[dir="rtl"] .au-card__fill { transform-origin: 100% 50%; }
.au-card__v { font-size: 0.75rem; font-weight: 700; text-align: end; font-variant-numeric: tabular-nums; color: var(--h-ink); }
.au-w-0 { transform: scaleX(0); } .au-w-10 { transform: scaleX(0.1); } .au-w-20 { transform: scaleX(0.2); }
.au-w-30 { transform: scaleX(0.3); } .au-w-40 { transform: scaleX(0.4); } .au-w-50 { transform: scaleX(0.5); }
.au-w-60 { transform: scaleX(0.6); } .au-w-70 { transform: scaleX(0.7); } .au-w-80 { transform: scaleX(0.8); }
.au-w-90 { transform: scaleX(0.9); } .au-w-100 { transform: none; }
.au-p-0 { stroke-dashoffset: 100; } .au-p-5 { stroke-dashoffset: 95; } .au-p-10 { stroke-dashoffset: 90; } .au-p-15 { stroke-dashoffset: 85; }
.au-p-20 { stroke-dashoffset: 80; } .au-p-25 { stroke-dashoffset: 75; } .au-p-30 { stroke-dashoffset: 70; } .au-p-35 { stroke-dashoffset: 65; }
.au-p-40 { stroke-dashoffset: 60; } .au-p-45 { stroke-dashoffset: 55; } .au-p-50 { stroke-dashoffset: 50; } .au-p-55 { stroke-dashoffset: 45; }
.au-p-60 { stroke-dashoffset: 40; } .au-p-65 { stroke-dashoffset: 35; } .au-p-70 { stroke-dashoffset: 30; } .au-p-75 { stroke-dashoffset: 25; }
.au-p-80 { stroke-dashoffset: 20; } .au-p-85 { stroke-dashoffset: 15; } .au-p-90 { stroke-dashoffset: 10; } .au-p-95 { stroke-dashoffset: 5; }
.au-p-100 { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .au-report { transition: transform 0.6s var(--h-out); }
  .au-giant:hover .au-report { transform: translateY(-6px) rotate(-1deg); }
  [dir="rtl"] .au-giant:hover .au-report { transform: translateY(-6px) rotate(1deg); }
}

/* ---------- the six signals: heading, then numbered white cards (one black inverse), then the four tiles */
.au-signals { display: grid; gap: clamp(2rem, 4vw, 3rem); }
.au-signals__head { display: grid; justify-items: start; gap: 1rem; max-inline-size: 48rem; }
.au-signals__head .lede { margin: 0; }
.au-sigs { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(0.75rem, 1.5vw, 1.25rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.au-sig {
  display: grid;
  align-content: start;
  gap: 0.625rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: var(--h-radius-card);
  background: var(--h-white);
  color: var(--h-ink);
  box-shadow: var(--h-shadow), inset 0 0 0 1px var(--h-line);
}
.au-sig.is-inverse { background: var(--h-ink); color: var(--h-white); box-shadow: var(--h-shadow-lift); }
.au-sig__top { display: flex; align-items: center; justify-content: space-between; margin-block-end: 0.75rem; }
.au-sig__n { font-family: var(--q-font-mono); font-size: 0.75rem; color: var(--h-grey); }
.au-sig.is-inverse .au-sig__n { color: inherit; opacity: 0.7; }
.au-sig__icon svg, .au-extra__icon svg { inline-size: 1.375rem; block-size: 1.375rem; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
body .au-sig__title { margin: 0; font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; color: inherit; }
.au-sig__line { margin: 0; font-size: 0.9375rem; line-height: 1.55; color: var(--h-grey); }
.au-sig.is-inverse .au-sig__line { color: inherit; opacity: 0.75; }
body.os-page.lang-ar .au-sig__title { letter-spacing: 0; line-height: 1.4; }
@media (prefers-reduced-motion: no-preference) {
  .au-sig, .au-extra { transition: transform 0.4s var(--h-bounce), box-shadow 0.3s var(--h-out); }
  .au-sig:hover, .au-extra:hover { transform: translateY(-4px); box-shadow: var(--h-shadow-lift); }
}
.au-badge { display: inline-block; margin-inline-start: 0.4rem; padding: 0.15rem 0.55rem; border-radius: 999px; vertical-align: middle; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0; background: var(--h-ink); color: var(--h-white); }
.au-extras { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.au-extra { display: grid; align-content: start; gap: 0.5rem; padding: 1.25rem; border-radius: calc(var(--h-radius-card) * 0.75); background: var(--h-alt); color: var(--h-ink); }
.au-extra__icon { color: var(--h-ink); }
body .au-extra__title { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--h-ink); }
.au-extra__line { margin: 0; font-size: 0.875rem; line-height: 1.45; color: var(--h-grey); }
.au-signals__foot { display: grid; justify-items: start; gap: 1.25rem; }
.au-signals__foot .note { margin: 0; max-inline-size: 46rem; font-size: 0.875rem; }
body.os-page .au-signals .qx-btn--outline { color: var(--h-ink); box-shadow: inset 0 0 0 1px var(--h-line-strong); }

/* ---------- the closer: one rounded black band with the heading and the price bar (action | live price | arrow) */
body.os-page .au-close-section > .wrap { padding: 0; }
.au-close {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: var(--h-radius-frame);
  background: var(--h-ink);
  color: var(--h-white);
}
body.os-page .au-close h2, body.os-page .au-close h2 .pivot { color: var(--h-white); }
body.os-page .au-close .au-label { color: var(--h-white); opacity: 0.7; }
body .au-ctabar { inline-size: min(100%, 52rem); background: var(--h-white); color: var(--h-ink); box-shadow: none; text-align: start; }
body .au-ctabar:hover { background: var(--h-white); color: var(--h-ink); }
body .au-ctabar .qx-ctabar__note { color: var(--h-grey); }
body .au-ctabar .qx-ctabar__arrow { background: var(--h-ink); color: var(--h-white); }
body.os-page .au-close .qx-btn--outline { background: transparent; color: var(--h-white); box-shadow: inset 0 0 0 1px currentColor; }
body.os-page .au-close .qx-btn--outline:is(:hover, :focus-visible) { background: var(--h-white); color: var(--h-ink); }
body.os-page .au-close .note { color: var(--h-white); opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  body .au-ctabar { transition: transform 0.35s var(--h-bounce); }
  body .au-ctabar:is(:hover, :focus-visible) { transform: translateY(-2px); }
}

/* ---------- the audit flow steps (verify, status, report): a white page, panels as white cards */
body.os-page .au-flow.hero-block { min-block-size: 70vh; background: var(--h-white); color: var(--h-ink); border: 0; }
body.os-page .au-flow.hero-block::before, body.os-page .au-flow.hero-block::after, body.os-page .au-flow.hero-block > .wrap::before { content: none; display: none; }
body.os-page .au-flow > .wrap { display: grid; justify-items: start; align-content: start; gap: 1.25rem; }
body.os-page .au-flow > .wrap > * { grid-column: 1 / -1; margin: 0; }
body.os-page .au-flow h1 { max-inline-size: 14em; font-size: clamp(2.25rem, 1.3rem + 3.4vw, 4.5rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; color: var(--h-ink); }
body.os-page.lang-ar .au-flow h1 { letter-spacing: 0; line-height: 1.2; }
body.os-page .au-flow h1 .pivot { font-family: var(--q-font-pivot); font-style: italic; font-weight: 400; color: var(--h-ink); }
body.os-page.lang-ar .au-flow h1 .pivot { font-family: inherit; font-style: normal; font-weight: 500; }
body.os-page .au-flow .form-status { font-size: 0.9375rem; color: var(--h-grey); }
body.os-page .au-flow :is(.panel, form.panel) {
  inline-size: min(100%, 40rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 0;
  border-radius: var(--h-radius-card);
  background: var(--h-white);
  color: var(--h-ink);
  box-shadow: var(--h-shadow), inset 0 0 0 1px var(--h-line);
}
body.os-page .au-flow .cta { background: var(--h-ink); color: var(--h-white); }

/* ---------- forms on the audit pages (free check and order form): restyle only, never moved or re-wired */
body.os-page :is(#free-score-form, #audit-request, #audit-checkout) :is(input[type="email"], input[type="url"], textarea, select) {
  background: var(--h-white);
  color: var(--h-ink);
  border: 1px solid var(--h-line-strong);
  border-radius: 0.875rem;
}
body.os-page :is(#free-score-form, #audit-request, #audit-checkout) :is(input, textarea, select):focus-visible { outline: 2px solid var(--h-ink); outline-offset: 2px; }
body.os-page :is(#free-score-form, #audit-request) .cta, body.os-page #free-score .cta { background: var(--h-ink); color: var(--h-white); }
body.os-page #audit-request .tier-option { border-radius: 1rem; background: var(--h-white); box-shadow: inset 0 0 0 1px var(--h-line-strong); }
body.os-page #audit-request .tier-option:has(input:checked) { background: var(--h-white); color: var(--h-ink); border-color: var(--h-ink); box-shadow: inset 0 0 0 1.5px var(--h-ink); }
body.os-page #audit-request .tier-option-price { font-size: 0.8125rem; font-weight: 600; color: var(--h-ink); }
body.os-page .split > .panel { background: var(--h-white); color: var(--h-ink); border: 0; border-radius: var(--h-radius-card); box-shadow: var(--h-shadow), inset 0 0 0 1px var(--h-line); }
body.os-page .split > .panel:first-child { box-shadow: var(--h-shadow-lift), inset 0 0 0 1.5px var(--h-ink); }
body.os-page .split > .panel h3 { color: var(--h-grey); font-size: 0.8125rem; letter-spacing: 0.02em; }
/* The Pro "included" list takes the panel's ink (WS7: never dark text on a dark panel). */
body.os-page .split > .panel :is(li, p) { color: var(--h-ink); }
/* The order steps: the current step's number is black, not the legacy accent. */
body.os-page .steps-inline li:first-child::before { background: var(--h-ink); color: var(--h-white); }
/* The landing page's signal map: gaps are black-ringed white nodes. */
body.os-page .dim-map li.dim.is-high, body.os-page .dim.is-high { background: var(--h-white); color: var(--h-ink); border-color: var(--h-ink); box-shadow: inset 0 0 0 1.5px var(--h-ink); }
body.os-page .dim.is-high .dim-note { color: var(--h-grey); }
/* Score pairs read "46 /100" in Arabic too (the phone sets dir="ltr"; the free-score ring is filled by audit-flow.js, so
   CSS isolates it). */
[dir="rtl"] .free-score-score { direction: ltr; unicode-bidi: isolate; }

/* ---------- motion: the ring and the bars draw in when the section is on screen (qx-motion marks html.qx-motion and the
   section .is-visible); without script, or with reduced motion, they are simply at their value. */
@media (prefers-reduced-motion: no-preference) {
  .au-card__fill { transition: transform 0.9s var(--h-out); }
  .au-ring__arc { transition: stroke-dashoffset 1.2s var(--h-out); }
}

@media (forced-colors: active) {
  .au-card__bar, .au-extra, .au-badge, .au-sig, .au-phone { border: 1px solid CanvasText; }
  .au-card__fill { background: CanvasText; }
  .au-ring__arc { stroke: CanvasText; }
}
/* The story phone is narrow: shorter bars, the title in the body font. */
.au-phone .au-card__row { grid-template-columns: minmax(0, 1fr) 2.25rem 1.5rem; gap: 0.5rem; padding: 0.5rem 0.6rem; }
.au-phone .au-card__domain { font-family: inherit; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--h-grey); }
.au-phone .au-card__domain:lang(ar) { text-transform: none; letter-spacing: 0; }

/* ---------- live score cards (no made-up scores): empty until the visitor's free check returns; audit-flow.js then fills
   [data-live-*] from the real result and adds .is-live. Before that there is a ring track, six real factor names, empty
   bars and a prompt, and nothing that reads as a number. */
.au-card:not(.is-live) .au-ring__arc { visibility: hidden; }
.au-card [hidden] { display: none; }
.au-card__prompt { margin: 0; text-align: center; font-size: 0.8125rem; font-weight: 600; line-height: 1.35; color: var(--h-ink); text-wrap: balance; }
.au-card__prompt a { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.au-phone .au-card__prompt { font-size: 0.75rem; }
.au-card__row.is-unmeasured .au-card__v { color: var(--h-grey); }
