/* xfix.ai tool landing pages. Loads after site.css.
   Motion follows the brand: snap, then stop. One thing moves at a time. */
:root {
  --ease-snap: cubic-bezier(.2, 1.4, .4, 1);
  --ease-slide: cubic-bezier(.2, .9, .1, 1);
  --ease-exit: cubic-bezier(.7, 0, .9, .3);
  --ease-product: cubic-bezier(.2, .7, .2, 1);
}
body.landing { overflow-x: clip; }
body.landing .wrap { min-width: 0; }

/* Header: keep the one primary button on phones. Sign in and the language switch are in the black bar (2026-10-01). */
@media (max-width: 480px) {
  body.landing .header-right .btn { display: inline-flex; }
  body.landing .header-right .btn-sm { height: 38px; padding: 0 14px; font-size: 13px; }
}

/* ---------- Hero ---------- */
.lp-hero { padding: clamp(28px, 4vw, 56px) 0 0; }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.lp-hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.lp-hero-copy .lede { max-width: 56ch; }
.lp-display { font-size: clamp(38px, 5.6vw, 80px); line-height: 1.02; font-weight: 700; letter-spacing: -.04em; margin: 0; text-wrap: balance; }
[dir="rtl"] .lp-display { letter-spacing: 0; line-height: 1.22; font-size: clamp(34px, 5vw, 72px); }
.lp-hero .scan { max-width: 640px; padding: 8px; }
.lp-hero .scan input { height: 46px; font-size: 16px; }
.lp-hero .scan .btn { height: 46px; }
.lp-hero .hero-note { gap: 10px 18px; }
.lp-hero .hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.lp-hero .hero-note span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tool); }

/* The stage: a tool tint panel. Tool pages put the product window in it, the home page puts the four doors in it. */
.lp-stage { position: relative; background: var(--tool-tint); border-radius: var(--radius-32); overflow: clip; min-width: 0; min-height: 440px; display: flex; align-items: center; justify-content: center; padding: clamp(18px, 3vw, 40px); }
.lp-stage > * { position: relative; z-index: 1; }
.lp-stage-bar { position: absolute; z-index: 0; inset-inline-end: -26%; top: -4%; width: 80%; height: 11%; min-height: 48px; max-height: 64px; border-radius: 999px; background: var(--tool); transform: rotate(-45deg); transform-origin: center; pointer-events: none; animation: hm-bar-in 360ms var(--ease-slide) 80ms both; }
[dir="rtl"] .lp-stage-bar { transform: rotate(45deg); }
@keyframes hm-bar-in { from { opacity: 0; translate: 12% -12%; } to { opacity: 1; translate: 0 0; } }

@keyframes hm-dot { from { transform: scale(0); } to { transform: scale(1); } }

/* Proof row under the hero: three Light numbers. */
.lp-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-16); margin-top: clamp(28px, 4vw, 48px); }
.lp-proof .stat { background: var(--card); border-radius: var(--radius-22); padding: 24px 28px; gap: 8px; min-width: 0; }
.lp-proof .big { font-size: clamp(44px, 5vw, 72px); font-weight: 300; line-height: .95; letter-spacing: -.05em; font-variant-numeric: tabular-nums; color: var(--ink); }
.lp-proof .big small { font-size: .32em; color: var(--ink-3); letter-spacing: 0; margin-inline-start: 6px; font-weight: 300; }
[dir="rtl"] .lp-proof .big { letter-spacing: 0; }

/* ---------- Sections ---------- */
.lp-section { padding-top: clamp(64px, 9vw, 120px); }
.lp-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: var(--space-48); max-width: 760px; }
.lp-head .kicker { display: inline-flex; align-items: center; gap: 10px; }
.lp-head .kicker::before { content: ""; width: 22px; height: 8px; border-radius: 4px; background: var(--tool); }
.lp-title { font-size: clamp(34px, 4.6vw, 64px); line-height: 1; font-weight: 700; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
[dir="rtl"] .lp-title { letter-spacing: 0; line-height: 1.25; }
.lp-card-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--tool-tint); display: grid; place-items: center; color: var(--ink); }
.lp-card-icon .xf-ui-icon { color: var(--ink); }
.card .lp-count { font-size: 13px; font-weight: 700; color: var(--tool-text); }

/* Steps */
.lp-step { gap: 14px; }
.lp-step .num { font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.lp-step .stage { height: 124px; }
.lp-step .stage .xf-explain { box-shadow: none; }

/* Mini score stage for the third search step */
.lp-mini-score { height: 124px; border-radius: var(--radius-14); background: var(--paper); padding: 20px 22px; display: flex; flex-direction: column; justify-content: space-between; }
.lp-mini-score .n { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.lp-mini-score .n small { font-size: .38em; color: var(--ink-3); letter-spacing: 0; }

/* ---------- Tool colour band: problem, then fix ---------- */
.lp-band { position: relative; overflow: clip; background: var(--tool); color: var(--ink); border-radius: var(--radius-32); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.lp-band > * { position: relative; z-index: 1; min-width: 0; }
.lp-band .lp-head { margin-bottom: 0; }
.lp-band .kicker, .lp-band .lp-title, .lp-band .lede, .lp-band .caption { color: var(--ink); }
.lp-band .lp-head .kicker::before { background: var(--ink); }
.lp-band .lede { opacity: .82; }
.lp-band-left, .lp-band-right { display: flex; flex-direction: column; gap: 24px; }
.lp-band .xf-finding { box-shadow: none; }
.lp-band .pill-row { gap: 8px; }
.lp-band-mark { position: absolute; z-index: 0; inset-inline-end: 0; bottom: 0; translate: 8% 28%; width: min(42%, 440px); aspect-ratio: 1 / 1; pointer-events: none; }
[dir="rtl"] .lp-band-mark { translate: -8% 28%; }
.lp-band-mark .xf-mark { width: 100% !important; height: 100% !important; }
.lp-band-right .xf-score { box-shadow: none; }

/* The fix: two bars rotate into the cross. Used only next to a fixed finding. */
.lp-fixrow { display: flex; align-items: center; gap: 16px; }
.lp-fix { width: 64px; height: 64px; flex: none; }
.lp-fixrow .caption { font-weight: 700; color: var(--ink); }
.lp-fix .fx-bar { transform: rotate(45deg); transform-origin: 50px 50px; }
.lp-fix .fx-fix { transform: rotate(-45deg); transform-origin: 50px 50px; }
.lp-fix .fx-dot { fill: var(--graphite); transform-box: fill-box; transform-origin: center; }
.js .lp-fix:not(.is-in) .fx-bar { transform: rotate(0deg); }
.js .lp-fix:not(.is-in) .fx-fix { transform: rotate(0deg); }
.js .lp-fix:not(.is-in) .fx-dot { transform: scale(0); }
.js .lp-fix.is-in .fx-bar { animation: fx-bar 420ms var(--ease-snap) both; }
.js .lp-fix.is-in .fx-fix { animation: fx-fix 420ms var(--ease-snap) 260ms both; }
.js .lp-fix.is-in .fx-dot { animation: hm-dot 280ms var(--ease-snap) both; }
.js .lp-fix.is-in .fx-dot:nth-of-type(1) { animation-delay: 700ms; }
.js .lp-fix.is-in .fx-dot:nth-of-type(2) { animation-delay: 760ms; }
.js .lp-fix.is-in .fx-dot:nth-of-type(3) { animation-delay: 820ms; }
.js .lp-fix.is-in .fx-dot:nth-of-type(4) { animation-delay: 880ms; }
@keyframes fx-bar { from { transform: rotate(0deg); } to { transform: rotate(45deg); } }
@keyframes fx-fix { from { transform: rotate(0deg); } to { transform: rotate(-45deg); } }

/* ---------- Rankings ---------- */
.lp-rank .rank-list li { grid-template-columns: 28px 1fr auto; }
.lp-rank .card .link { margin-top: auto; }
.lp-list-links { display: flex; flex-direction: column; }
.lp-list-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--hairline); font-weight: 700; font-size: 15px; }
.lp-list-links a .xf-ui-icon { color: var(--tool-text); }
[dir="rtl"] .lp-list-links a .xf-ui-icon { transform: scaleX(-1); }

/* ---------- Pricing ---------- */
.lp-price { position: relative; }
.lp-price .big { font-size: clamp(48px, 5vw, 64px); font-weight: 300; line-height: .9; letter-spacing: -.05em; }
.lp-price .big small { font-size: .3em; color: var(--ink-3); letter-spacing: 0; }
.lp-price.is-pro { background: var(--tool-tint); }
.lp-price.is-pro .kicker { color: var(--ink); }
.lp-price .btn { align-self: flex-start; margin-top: auto; }
[dir="rtl"] .lp-price .btn { align-self: flex-start; }
.lp-price .lp-plan-note { font-size: 13px; color: var(--ink-3); }

/* ---------- CTA on ink ---------- */
.lp-cta { --tool-text: var(--tool); background: var(--ink); color: var(--card); border-radius: var(--radius-32); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 34%); gap: 32px; align-items: center; position: relative; overflow: clip; min-height: 420px; }
.lp-cta-copy { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.lp-cta-copy .lp-title { margin-top: 4px; }
.lp-cta > * { position: relative; z-index: 1; min-width: 0; }
.lp-cta .lp-title { color: var(--card); }
.lp-cta .lede { color: var(--on-dark-soft); }
.lp-cta .kicker { color: var(--on-dark-muted); }
.lp-cta .scan { background: var(--graphite); }
.lp-cta .scan input { color: var(--card); }
.lp-cta .scan input::placeholder { color: var(--on-dark-muted); }
.lp-cta .scan:focus-within { box-shadow: 0 0 0 3px var(--card); }
.lp-cta .hero-note { color: var(--on-dark-soft); }
.lp-cta .hero-note span::before { background: var(--tool); }
.lp-cta-mark { position: absolute; z-index: 0; inset-inline-end: 0; top: 0; translate: 10% -16%; width: min(38%, 440px); aspect-ratio: 1 / 1; pointer-events: none; }
[dir="rtl"] .lp-cta-mark { translate: -10% -16%; }
.lp-cta-mark .xf-mark { width: 100% !important; height: 100% !important; }
.js .lp-cta-mark { opacity: 0; transform: scale(.6); }
.js .lp-cta.is-in .lp-cta-mark { animation: lp-snap 520ms var(--ease-snap) 120ms both; }
@keyframes lp-snap { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }

/* Band with no right column content: the mark owns the right side. */
.lp-band.lp-band-solo { grid-template-columns: minmax(0, 1fr) minmax(0, 34%); min-height: 460px; align-items: center; }
.lp-band.lp-band-solo .lp-band-mark { width: min(44%, 460px); translate: 8% 24%; }
[dir="rtl"] .lp-band.lp-band-solo .lp-band-mark { translate: -8% 24%; }
.lp-band.lp-band-solo .check-list li { border-color: rgba(23, 21, 9, .18); }
.lp-band.lp-band-solo .check-list li .xf-ui-icon { color: var(--ink); }

/* Arabic pages: explainers walk right to left; "/100" stays a Latin fragment. */
[dir="rtl"] .lp-step .xf-explain { transform: scaleX(-1); }
[dir="rtl"] .lp-step .xf-station-box, [dir="rtl"] .lp-step .xf-station-label, [dir="rtl"] .lp-step .xf-tick, [dir="rtl"] .lp-step .xf-lock { transform: scaleX(-1); }
[dir="rtl"] .lp-step .xf-station-label { letter-spacing: 0; }   /* spacing pulls Arabic letters apart */
[dir="rtl"] .xf-score-of { direction: ltr; unicode-bidi: isolate; }

/* Phones: the scan pill stacks its input and button instead of squeezing them. */
@media (max-width: 560px) {
  .lp-hero .scan, .lp-cta .scan, .lp-hero .waitlist { border-radius: var(--radius-22); flex-direction: column; align-items: stretch; }
  .lp-hero .scan input, .lp-cta .scan input, .lp-hero .waitlist input { min-width: 0; width: 100%; }
  .lp-hero .scan .btn, .lp-cta .scan .btn, .lp-hero .waitlist .btn { width: 100%; }
}

/* ---------- The product window: a short screencast of the tool, drawn in CSS. 10 second loop, one thing moves at a time. ---------- */
@property --n { syntax: '<integer>'; initial-value: 0; inherits: false; }
.demo { --loop: 10s; width: 100%; max-width: 520px; border-radius: 18px; background: var(--card); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23, 21, 9, .35); font-family: var(--font-sans); color: var(--ink); }
.demo-bar { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; background: var(--ink); color: var(--on-dark-soft); }
.demo-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--graphite); }
.demo-bar i:first-child { background: var(--tool); }
.demo-url { margin-inline-start: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
.demo-body { position: relative; height: 424px; background: var(--paper); }
.demo-screen { position: absolute; inset: 0; padding: 22px; display: flex; flex-direction: column; gap: 14px; opacity: 0; }
.demo-s1 { justify-content: center; animation: demo-s1 var(--loop) linear infinite; }
.demo-s2 { justify-content: center; animation: demo-s2 var(--loop) linear infinite; }
.demo-s3 { animation: demo-s3 var(--loop) linear infinite; }
@keyframes demo-s1 { 0%, 15% { opacity: 1; } 17%, 100% { opacity: 0; } }
@keyframes demo-s2 { 0%, 16% { opacity: 0; } 18%, 49% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes demo-s3 { 0%, 50% { opacity: 0; } 52%, 97% { opacity: 1; } 100% { opacity: 0; } }
.demo-kicker { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.demo[dir="rtl"] .demo-kicker { letter-spacing: 0; text-transform: none; font-size: 12px; }
.demo-title { font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.demo[dir="rtl"] .demo-title { letter-spacing: 0; line-height: 1.3; }
.demo-pill { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; background: var(--card); border-radius: var(--radius-pill); box-shadow: 0 0 0 3px var(--ink); animation: demo-focus var(--loop) linear infinite; }
.demo[dir="rtl"] .demo-pill { padding: 6px 16px 6px 6px; }
@keyframes demo-focus { 0%, 1% { box-shadow: 0 0 0 0 var(--ink); } 2%, 13% { box-shadow: 0 0 0 3px var(--ink); } 14%, 100% { box-shadow: 0 0 0 0 var(--ink); } }
.demo-typed { flex: 1; min-width: 0; font-size: 15px; white-space: nowrap; overflow: hidden; direction: ltr; unicode-bidi: isolate; clip-path: inset(0 100% 0 0); animation: demo-type var(--loop) steps(16, end) infinite; }
@keyframes demo-type { 0%, 2% { clip-path: inset(0 100% 0 0); } 11%, 100% { clip-path: inset(0 0 0 0); } }
.demo-drop { flex: 1; display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); }
.demo-file { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--radius-10); background: var(--tool-tint); color: var(--ink); font-weight: 700; font-size: 13px; animation: demo-file var(--loop) var(--ease-snap) infinite; }
@keyframes demo-file { 0%, 3% { opacity: 0; transform: translateY(-18px) scale(.9); } 7%, 100% { opacity: 1; transform: none; } }
.demo-btn { flex: none; height: 40px; padding: 0 16px; border-radius: var(--radius-pill); background: var(--tool); color: var(--ink); font-size: 14px; font-weight: 700; display: inline-flex; align-items: center; animation: demo-press var(--loop) var(--ease-snap) infinite; }
@keyframes demo-press { 0%, 12% { transform: scale(1); } 13% { transform: scale(.94); } 14.5% { transform: scale(1.05); } 16%, 100% { transform: scale(1); } }
.demo-note { font-size: 12px; color: var(--ink-2); }
.demo-run { display: flex; align-items: center; gap: 18px; }
.demo-mark { width: 84px; height: 84px; flex: none; }
.demo-mark .dm-fill { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: demo-fill var(--loop) linear infinite; }
@keyframes demo-fill { 0%, 18% { transform: scaleX(0); } 48%, 100% { transform: scaleX(1); } }
.demo-line { font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; }
.demo[dir="rtl"] .demo-line { letter-spacing: 0; }
.demo-meter { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.demo-meter i { flex: 1; height: 8px; border-radius: 3px; background: var(--tool); opacity: .18; animation: demo-seg var(--loop) linear infinite; animation-delay: calc(var(--i) * 110ms); }
.demo-meter i:nth-child(5n) { height: 12px; }
@keyframes demo-seg { 0%, 18% { opacity: .18; } 19%, 58% { opacity: 1; } 59%, 100% { opacity: .18; } }
.demo-meter-final i { animation-name: demo-seg-final; animation-delay: calc(var(--i) * 30ms); }
.demo-meter-final i.is-off { animation: none; }
@keyframes demo-seg-final { 0%, 51% { opacity: .18; } 53%, 96% { opacity: 1; } 97%, 100% { opacity: .18; } }
.demo-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-steps span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px 0 5px; border-radius: var(--radius-pill); background: var(--chip); color: var(--ink-2); font-size: 12px; font-weight: 700; animation: demo-step var(--loop) linear infinite; animation-delay: calc(var(--i) * 480ms); }
.demo[dir="rtl"] .demo-steps span { padding: 0 5px 0 12px; }
.demo-steps span i { width: 20px; height: 20px; border-radius: 50%; background: var(--card); color: var(--ink); display: grid; place-items: center; font-style: normal; font-size: 10px; }
@keyframes demo-step { 0%, 18% { background: var(--chip); color: var(--ink-2); } 19%, 58% { background: var(--ink); color: var(--card); } 59%, 100% { background: var(--chip); color: var(--ink-2); } }
.demo-score { background: var(--ink); color: var(--card); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.demo-score-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; font-weight: 700; }
.demo-score-head small { font-weight: 400; color: var(--on-dark-muted); }
.demo-num { display: flex; align-items: baseline; gap: 6px; font-size: 56px; font-weight: 300; letter-spacing: -.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.demo-num small { font-size: 16px; color: var(--on-dark-muted); letter-spacing: 0; direction: ltr; unicode-bidi: isolate; }
.demo-count { counter-reset: n var(--n); animation: demo-count var(--loop) linear infinite; }
.demo-count::after { content: counter(n); }
.demo[dir="rtl"] .demo-count::after { content: counter(n, arabic-indic); }
@keyframes demo-count { 0%, 51% { --n: 0; } 60%, 100% { --n: var(--final); } }
.demo-findings { display: flex; flex-direction: column; gap: 8px; }
.demo-finding { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; background: var(--card); border-radius: 12px; opacity: 0; animation: demo-finding var(--loop) var(--ease-product) infinite; animation-delay: calc(var(--i) * 700ms); }
@keyframes demo-finding { 0%, 58% { opacity: 0; transform: translateY(10px); } 62%, 96% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
.demo-finding i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: var(--fail); color: var(--card); }
.demo-finding.is-part i { background: var(--partial); color: var(--ink); }
.demo-finding.is-pass i { background: var(--pass); }
.demo-finding div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.demo-finding b { font-size: 13px; line-height: 1.3; }
.demo-finding span { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
.demo-finding em { flex: none; font-style: normal; font-size: 10px; font-weight: 700; padding: 4px 8px; border-radius: var(--radius-pill); background: var(--critical-soft); color: var(--critical-text); }
.demo-finding.is-part em { background: var(--partial-soft); color: var(--partial-text); }
.demo-finding.is-pass em { background: var(--pass-soft); color: var(--pass); }
@media (max-width: 560px) {
  .demo { border-radius: 14px; }
  .demo-body { height: 372px; }
  .demo-screen { padding: 16px; gap: 12px; }
  .demo-title { font-size: 22px; }
  .demo-num { font-size: 48px; }
  .demo-finding span { display: none; }
}
/* Still variant: the finished report, no motion (the home cards). */
.demo-still *, .demo-still .demo-screen { animation: none !important; }
.demo-still .demo-s1, .demo-still .demo-s2 { display: none; }
.demo-still .demo-s3 { opacity: 1; }
.demo-still .demo-meter i { opacity: 1; }
.demo-still .demo-finding { opacity: 1; transform: none; }
.demo-still .demo-count { --n: var(--final); }
.demo-still { box-shadow: none; }
/* Reduced motion: the window shows the finished report. */
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo-screen { animation: none !important; }
  .demo-s1, .demo-s2 { display: none; }
  .demo-s3 { opacity: 1; }
  .demo-meter i { opacity: 1; }
  .demo-finding { opacity: 1; transform: none; }
  .demo-count { --n: var(--final); }
}

/* ---------- Home: the four doors in the hero stage, and the master colours ---------- */
.lp-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.lp-door { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius-22); background: var(--tool-tint); color: var(--ink); min-height: 190px; animation: xf-pop 400ms var(--ease-snap) both; transition: background-color 200ms, transform 280ms var(--ease-snap); }
.lp-door:nth-child(2) { animation-delay: 60ms; } .lp-door:nth-child(3) { animation-delay: 120ms; } .lp-door:nth-child(4) { animation-delay: 180ms; }
.lp-door:hover { background: var(--tool); transform: translateY(-2px); }
.lp-door .xf-mark { transition: transform 280ms var(--ease-snap); }
.lp-door:hover .xf-mark { transform: scale(1.08); }
.lp-door-who { font-size: 12px; font-weight: 700; color: var(--tool-text); }
.lp-door:hover .lp-door-who { color: var(--ink); }
.lp-door-line { font-size: 13px; line-height: 1.45; color: var(--ink-2); flex: 1; }
.lp-door:hover .lp-door-line { color: var(--ink); }
.lp-door-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-top: auto; }
[dir="rtl"] .lp-door-go .xf-ui-icon { transform: scaleX(-1); }
.lp-door-input { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.lp-door-input .xf-ui-icon { color: var(--tool-text); }
[data-tool="master"] .lp-band { background: var(--chip); }
[data-tool="master"] .lp-band-mark { inset-inline-end: auto; inset-inline-start: 0; translate: -12% 30%; width: min(38%, 400px); }
[dir="rtl"] [data-tool="master"] .lp-band-mark { translate: 12% 30%; }
[data-tool="master"] .lp-cta .btn-primary { background: var(--card); color: var(--ink); }
[data-tool="master"] .lp-cta .hero-note span::before { background: var(--card); }
[data-tool="master"] .lp-head .kicker::before { background: var(--ink); }
.lp-tool-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-16); }
.lp-tool-card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius-22); overflow: hidden; color: var(--ink); transition: transform 280ms var(--ease-snap); }
.lp-tool-card:hover { transform: translateY(-3px); }
.lp-tool-top { background: var(--tool-tint); display: flex; justify-content: center; padding: clamp(14px, 2.5vw, 28px) clamp(14px, 2.5vw, 28px) 0; position: relative; overflow: clip; height: 344px; align-items: flex-start; }
.lp-tool-top .demo { max-width: 460px; border-radius: 14px 14px 0 0; }
.lp-tool-top .demo-body { height: 330px; }
.lp-tool-top .xf-mark { transition: transform 280ms var(--ease-snap); }
.lp-tool-card:hover .lp-tool-top { background: var(--tool); }
.lp-tool-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lp-tool-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lp-tool-body .h3 { font-size: 22px; }
.lp-tool-body .btn { align-self: flex-start; margin-top: auto; }
.lp-tool-body .caption { flex: 1; }
@media (max-width: 900px) { .lp-tool-cards { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .lp-tool-top { height: 292px; }
  .lp-tool-top .demo-body { height: 300px; }
  .lp-doors { gap: 8px; }
  .lp-door { padding: 14px; min-height: 0; border-radius: 16px; gap: 8px; }
  .lp-door-line { display: none; }
}
@media (prefers-reduced-motion: reduce) { .lp-door { animation: none !important; } }

/* ---------- Waitlist (publish) ---------- */
.lp-hero .waitlist { max-width: 560px; padding: 8px; }
.lp-hero .waitlist input { height: 46px; font-size: 16px; }
.lp-hero .waitlist .btn { height: 46px; }

/* ---------- Scroll reveals: fade up 14px, 600ms, stagger 60ms, at most 4 ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(14px); }
.js [data-reveal].is-in { animation: xf-rise 600ms var(--ease-product) both; animation-delay: calc(var(--d, 0) * 60ms); }

/* ---------- Counting numbers ---------- */
[data-count] { font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-stage { min-height: 0; }
  .lp-band, .lp-band.lp-band-solo { grid-template-columns: 1fr; padding-bottom: clamp(150px, 40vw, 230px); min-height: 0; }
  .lp-band-mark { width: 58%; translate: 14% 34%; }
  [dir="rtl"] .lp-band-mark { translate: -14% 34%; }
  .lp-cta { grid-template-columns: 1fr; min-height: 0; }
}
@media (max-width: 640px) {
  .lp-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-proof > :last-child { grid-column: span 2; }
  .lp-proof .stat { padding: 20px 22px; }
  .lp-stage { border-radius: var(--radius-22); padding: 14px; }
  .lp-stage-bar { width: 80%; }
  .lp-band, .lp-cta { border-radius: var(--radius-22); }
  .lp-head { margin-bottom: var(--space-32); }
  .lp-step .num { font-size: 44px; }
  .lp-cta-mark { width: 62%; top: auto; bottom: 0; translate: 16% 38%; }
  [dir="rtl"] .lp-cta-mark { translate: -16% 38%; }
  .lp-cta { padding-bottom: 160px; }
}

/* ---------- Reduced motion: final frames, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  .hm-dot, .lp-stage-bar { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; animation: none !important; }
  .js .lp-fix .fx-bar { transform: rotate(45deg) !important; animation: none !important; }
  .js .lp-fix .fx-fix { transform: rotate(-45deg) !important; animation: none !important; }
  .js .lp-fix .fx-dot { transform: none !important; animation: none !important; }
  .js .lp-cta-mark { opacity: 1 !important; transform: none !important; animation: none !important; }
  .btn, .xf-btn { transition: none; }
}

/* Questions on a product landing (build.py faq_section), the same look as the pricing pages' (2026-10-03) */
.lp-faq { display: grid; gap: 10px; max-width: 820px; }
.lp-faq details { background: var(--card); border-radius: var(--radius-14, 14px); padding: 0 20px; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq p { margin: 0 0 16px; color: var(--ink-2); line-height: 1.7; }
/* The line under a landing's price cards: the link to the tool's own pricing page */
.lp-more { margin: 20px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.lp-more .link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Homepage: shop and search lead; gov and publish keep a smaller door (2026-10-06). */
.lp-door.is-small { min-height: 0; padding: 14px 18px; gap: 6px; background: var(--card); }
.lp-door.is-small .lp-door-line, .lp-door.is-small .lp-door-input { display: none; }


/* xfix search: the sample report link under the hero box and in "Then the report" (round 1). */
.lp-sample { margin: 0; font-size: 15px; font-weight: 700; }
.card .lp-sample { margin-top: 4px; }

/* Homepage (2026-10-08, the owner's design, variant A): one centred page. build.py home_hero. */
body.home { display: flex; flex-direction: column; min-height: 100vh; }
body.home .site-footer, body.home footer { margin-top: auto; }
.home-hero { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 112px 40px 96px; box-sizing: border-box; }
.home-h1 { margin: 0; max-width: 980px; font-family: "Schibsted Grotesk", var(--font-sans); font-weight: 800; font-size: 86px; line-height: .98; letter-spacing: -.045em; text-wrap: balance; }
[dir="rtl"] .home-h1 { font-family: var(--font-sans); font-weight: 700; font-size: 72px; line-height: 1.3; letter-spacing: 0; }
.home-check { margin-top: 48px; width: 100%; max-width: 640px; height: 64px; box-sizing: border-box; display: flex; align-items: stretch; background: #FFFDF8; border: 1.5px solid var(--ink); border-radius: 14px; padding: 5px; gap: 6px; }
.home-check:focus-within { box-shadow: 0 0 0 3px var(--chip-hover); }
.home-check input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); text-align: start; }
.home-check input::placeholder { color: var(--ink-2); }
.home-check-btn { flex: none; border: 0; border-radius: 10px; background: var(--ink); color: var(--paper); display: flex; align-items: center; gap: 8px; padding: 0 22px; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; transition: background-color 200ms; }
.home-check-btn:hover { background: #3A3428; }
.home-check-btn:active { background: #000; }
.home-check-btn[disabled] { opacity: .7; cursor: progress; }
[dir="rtl"] .home-check-chev { transform: scaleX(-1); }
.home-hero .scan-error { margin: 12px 0 0; color: var(--critical-text); font-weight: 600; max-width: 640px; }
.home-hero .scan-error:empty { display: none; }
.home-micro { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }
.home-proof { margin: 0; padding-top: 84px; max-width: 760px; font-size: 24px; line-height: 67px; font-weight: 500; text-wrap: pretty; }
.home-proof-box { display: inline-block; white-space: nowrap; line-height: 1.25; }
.home-proof-link { position: relative; color: var(--ink); text-decoration: none; padding: 0 3px; background: linear-gradient(transparent 58%, var(--search) 58%); transition: background-color 200ms; }
[dir="rtl"] .home-proof-link { padding: 0; }
.home-proof-link.is-shop { background: linear-gradient(transparent 58%, var(--shop) 58%); }
.home-proof-link.is-search:hover { background: var(--search); }
.home-proof-link.is-shop:hover { background: var(--shop); }
.home-proof-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.home-proof-tag { position: absolute; left: 0; right: 0; bottom: calc(100% + 3px); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; }
.home-proof-label { font-size: 10.5px; line-height: 1; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
[dir="rtl"] .home-proof-label { font-size: 11.5px; letter-spacing: 0; text-transform: none; }
.home-proof-bracket { align-self: stretch; height: 5px; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 2px 2px 0 0; }
.home-sample { margin: 36px 0 0; font-size: 14px; color: var(--ink-2); }
.home-sample a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.home-sample a:hover { text-decoration-thickness: 2px; }
.home-sample.home-free-tools { margin-top: 10px; }   /* the free tool hubs line (step 8 spec B2) sits under the sample link */
@media (max-width: 1100px) {
  .home-h1 { font-size: 64px; }
  [dir="rtl"] .home-h1 { font-size: 56px; }
}
@media (max-width: 640px) {
  .home-hero { padding: 56px 20px 56px; }
  .home-h1 { font-size: 44px; }
  [dir="rtl"] .home-h1 { font-size: 38px; }
  .home-check { margin-top: 32px; height: 56px; }
  .home-check input { font-size: 14px; padding: 0 8px; }
  .home-check-btn { font-size: 14px; padding: 0 12px; }
  .home-micro { margin-top: 12px; font-size: 13.5px; }
  .home-proof { padding-top: 68px; font-size: 19px; line-height: 61px; }
  .home-sample { margin-top: 28px; font-size: 13.5px; }
}

/* Homepage under the hero (new-user journey, 2026-10-20): what one check gets you, then the "what you get" section. */
.home-under { margin: 10px 0 0; max-width: 560px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.home-what .lp-head { text-align: center; margin-inline: auto; display: flex; flex-direction: column; align-items: center; }
.home-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.home-card { background: var(--card); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.home-card-name { align-self: flex-start; text-decoration: none; color: var(--ink); }
.home-card-line { margin: 0; font-size: 19px; line-height: 1.4; font-weight: 700; text-wrap: pretty; }
.home-card .check-list { margin: 0; }
.home-card-more { margin-top: auto; align-self: flex-start; }
.home-report { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--ink); color: #fff; border-radius: 22px; padding: 20px 28px; text-decoration: none; }
.home-report .link { color: #fff; }
.home-report-k { font-weight: 800; font-size: 15px; }
.home-report-tabs { display: inline-flex; gap: 8px; background: rgba(255,255,255,.1); border-radius: 999px; padding: 4px; }
.home-report-tab { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px; line-height: 1.2; }
.home-report-tab small { font-size: 11px; font-weight: 600; opacity: .75; }
.home-report-tab.is-search { background: var(--search); color: var(--ink); }
.home-report-tab.is-shop { background: var(--shop); color: var(--ink); }
.home-gov, .home-price { margin: 24px auto 0; max-width: 760px; text-align: center; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.home-gov b { color: var(--ink); }
.home-price { color: var(--ink); font-weight: 600; }
.home-nums { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 32px; }
.home-num { display: flex; flex-direction: column; align-items: center; text-align: center; }
.home-num b { font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
.home-num span { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.home-more { margin-top: 40px; text-align: center; }
.home-more h3 { margin: 0 0 12px; font-size: 15px; font-weight: 800; }
.home-more-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.home-more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.home-more-link:hover { background: #fff; }
@media (max-width: 760px) {
  .home-cards { grid-template-columns: minmax(0, 1fr); }
  .home-card { padding: 22px; }
  .home-report { padding: 18px 20px; }
  .home-nums { gap: 24px; }
}

/* /resources/ (2026-10-20) */
.res-page .lp-head { margin-bottom: 8px; }
.res-group { margin-top: 36px; }
.res-group h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; }
.res-group h2 small { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-inline-start: 8px; }
.res-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.res-item { display: flex; flex-direction: column; gap: 4px; background: var(--card); border-radius: 16px; padding: 16px 18px; text-decoration: none; color: var(--ink); }
.res-item b { font-size: 16px; }
.res-item span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.res-item:hover { background: #fff; }
