/* Kadensio design tokens: Audit Green.
   The single source of truth for colour, type, spacing and corners. Rules and reasons are in DESIGN.md.
   Everything that looks like Kadensio reads from this file: the sites build it into their stylesheet
   (sites/build.mjs), and slides, one-pagers and mockups use the same variable names.
   Change a value here, then run `node sites/check.mjs`. Do not copy a hex value into another file.

   Names follow the old Figma variables (brand/main -> --brand-main) so nothing else had to be renamed. */

:root {
  /* Colour: exactly seven. Pairs that are approved for text are listed in DESIGN.md. */
  --brand-main: #1D6B52;     /* main buttons, links, key shapes */
  --brand-accent: #E3B341;   /* tags, highlights, numbers on dark. Never text on --bg-light (1.75:1) */
  --bg-light: #F5F3EC;       /* light background; also text on --bg-dark and on --brand-main */
  --bg-dark: #0C1F1A;        /* dark background */
  --text-default: #14211D;   /* main text on light */
  --text-soft: #55625D;      /* soft text on light only (2.68:1 on dark: do not use there) */
  --line: #D8D4C8;           /* borders and dividers; also soft text on --bg-dark */

  /* Spacing scale */
  --space-4: 4px; --space-8: 8px; --space-16: 16px; --space-24: 24px; --space-32: 32px; --space-48: 48px; --space-64: 64px;

  /* Motion: feedback, not decoration. Animate transform and opacity only (colour on hover is the one exception). 150 to 300 ms, no bounce. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 150ms; --dur-base: 200ms; --dur-slow: 300ms;

  /* Corners */
  --radius-small: 4px; --radius-medium: 8px; --radius-large: 16px;

  /* Type: headings Source Serif 4 SemiBold; body Inter Regular, Inter SemiBold for labels. No Arabic face chosen yet. */
  --font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Text sizes, phone first (up to 719px). Body 16/24, small 13/20 and label 12/16 do not change. */
  --h1-size: 32px; --h1-line: 40px;
  --h2-size: 24px; --h2-line: 32px;
  --h3-size: 20px; --h3-line: 28px;
  --body-size: 16px; --body-line: 24px;
  --small-size: 13px; --small-line: 20px;
  --label-size: 12px; --label-line: 16px; --label-tracking: 0.06em; /* labels are capitals */

  /* Slides only (1920 x 1080). No text on a slide is smaller than 28px. */
  --slide-title-size: 64px; --slide-title-line: 76px;
  --slide-big-size: 160px;  --slide-big-line: 168px;   /* big numbers and very short quotes */
  --slide-body-size: 36px;  --slide-body-line: 48px;
  --slide-label-size: 28px; --slide-label-line: 36px;  /* capitals, +6% */
}

/* Desktop (720px and up). */
@media (min-width: 720px) {
  :root {
    --h1-size: 48px; --h1-line: 56px;
    --h2-size: 32px; --h2-line: 40px;
    --h3-size: 24px; --h3-line: 32px;
  }
}

/* Audit Green: the kadensio.com home page.
   Source of truth: brand/tokens.css and brand/DESIGN.md. Only the seven colours defined there are used.
   Phone first: base rules are for 390 px, one media query lifts them at 720 px. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("assets/fonts/Inter-latin.3100e775e8.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/SourceSerif4-latin.f2b7e1cf1d.woff2") format("woff2"); }

/* The colour, spacing, corner and type-size variables come from brand/tokens.css, which sites/build.mjs puts in front of this file. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-16); }
body { margin: 0; background: var(--bg-light); color: var(--text-default); font: 400 16px/24px var(--font-body); overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--brand-main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--brand-main); outline-offset: 2px; border-radius: var(--radius-small); }
.on-dark :focus-visible, .site-footer :focus-visible { outline-color: var(--brand-accent); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--space-16); top: -64px; background: var(--bg-dark); color: var(--bg-light); padding: var(--space-8) var(--space-16); border-radius: var(--radius-medium); z-index: 10; }
.skip:focus { top: var(--space-8); }

/* Text styles */
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; margin: 0; }
h1 { font-size: var(--h1-size); line-height: var(--h1-line); letter-spacing: -0.01em; }
h2 { font-size: var(--h2-size); line-height: var(--h2-line); letter-spacing: -0.005em; }
h3 { font-size: var(--h3-size); line-height: var(--h3-line); }
p { margin: 0; }
.small { font-size: 13px; line-height: 20px; }
.soft { color: var(--text-soft); }
.label { font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin: 0; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--space-16); }
@media (min-width: 720px) { .wrap { padding-inline: var(--space-32); } }

/* Dark blocks: colours swap, nothing else changes. Soft text on dark is the line colour. */
.on-dark { background: var(--bg-dark); color: var(--bg-light); }
.on-dark .label, .on-dark .soft { color: var(--line); }
.on-dark a { color: var(--bg-light); }

/* Button: Main and Second */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-8);
  min-height: 48px; padding: 0 var(--space-24); border-radius: var(--radius-medium);
  font: 600 16px/24px var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid var(--brand-main); background: var(--brand-main); color: var(--bg-light);
}
.btn:hover { background: var(--bg-dark); border-color: var(--bg-dark); }
.btn-second { background: transparent; color: var(--brand-main); }
.btn-second:hover { background: var(--brand-main); border-color: var(--brand-main); color: var(--bg-light); }
.btn[disabled] { opacity: 1; background: var(--text-soft); border-color: var(--text-soft); color: var(--bg-light); cursor: default; }
.btn-block { width: 100%; }
.icon { width: 16px; height: 16px; fill: currentColor; }

/* Tag: Accent and Outline */
.tag { display: inline-block; font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: var(--space-4) var(--space-8); border-radius: var(--radius-small); }
.tag-accent { background: var(--brand-accent); color: var(--text-default); }
.tag-outline { border: 1px solid var(--text-soft); color: var(--text-default); }
.on-dark .tag-outline { border-color: var(--line); color: var(--bg-light); }

/* Card: eyebrow, title, body */
.card { border: 1px solid var(--line); border-radius: var(--radius-large); padding: var(--space-24); background: var(--bg-light); display: flex; flex-direction: column; gap: var(--space-8); }
.card h3 { margin-top: var(--space-4); }
.on-dark .card { background: transparent; border-color: var(--text-soft); }
.card a { margin-top: var(--space-8); display: inline-flex; align-items: center; min-height: 44px; }

/* Quote block: accent bar on the left, source always named */
.quote { margin: 0; border-left: 4px solid var(--brand-accent); padding: var(--space-4) 0 var(--space-4) var(--space-16); }
.quote p { font: 600 18px/26px var(--font-head); }
.quote footer { margin-top: var(--space-8); font-size: 13px; line-height: 20px; color: var(--line); }
.quote footer a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 720px) { .quote p { font-size: 20px; line-height: 28px; } }

/* Big number: number and label, source named */
.bignum { border: 1px solid var(--text-soft); border-radius: var(--radius-large); padding: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); }
.bignum strong { font: 600 48px/56px var(--font-head); color: var(--brand-accent); }
.bignum .src { font-size: 13px; line-height: 20px; }
.light-num strong { color: var(--brand-main); }
.light-num { border-color: var(--line); }

/* Top bar: logo left, one button right, no menu */
.topbar { border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 72px; }
.topbar .logo { display: inline-flex; align-items: center; min-height: 44px; }
.topbar .logo img { display: block; height: 24px; width: auto; }
.topbar .btn { min-height: 44px; padding: 0 var(--space-16); }
@media (max-width: 389px) { .topbar .btn { padding: 0 var(--space-8); font-size: 14px; } }
@media (min-width: 720px) { .topbar .btn { min-height: 48px; padding: 0 var(--space-24); } .topbar .logo img { height: 28px; } }

/* Blocks */
.block { padding-block: var(--space-48); }
.block + .block { border-top: 1px solid var(--line); }
.block.on-dark + .block, .block + .block.on-dark { border-top: 0; }
.block-head { display: flex; flex-direction: column; gap: var(--space-8); max-width: 44rem; margin-bottom: var(--space-24); }
.block-head p.lead { font-size: 16px; }
@media (min-width: 720px) { .block { padding-block: var(--space-64); } .block-head { margin-bottom: var(--space-32); } }

/* Hero */
.hero { padding-block: var(--space-32) var(--space-48); }
.hero-grid { display: grid; gap: var(--space-32); }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-16); align-items: flex-start; }
.hero-copy .btn { align-self: stretch; }
@media (min-width: 720px) {
  .hero { padding-block: var(--space-64); }
  .hero-grid { align-items: start; gap: var(--space-48); }
  .hero-copy .btn { align-self: flex-start; }
}

/* Score card */
.score-card { border: 1px solid var(--text-soft); border-radius: var(--radius-large); padding: var(--space-16); background: var(--bg-light); }
.score-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-8); }
.score-top .tags { display: flex; gap: var(--space-8); flex-wrap: wrap; }
.score-num { font: 600 48px/56px var(--font-head); letter-spacing: -0.01em; }
.score-num span { font: 400 16px/24px var(--font-body); color: var(--text-soft); margin-left: var(--space-4); }
.score-rows { list-style: none; margin: var(--space-8) 0 0; padding: 0; }
.score-rows li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-8); padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.score-rows .pts { font: 600 14px/20px var(--font-body); color: var(--brand-main); }
.score-rows .f { font: 600 14px/20px var(--font-body); display: block; }
.score-rows .why { font-size: 13px; line-height: 20px; color: var(--text-soft); display: block; }
.score-foot { margin-top: var(--space-8); font-size: 13px; line-height: 20px; color: var(--text-soft); border-top: 1px solid var(--text-soft); padding-top: var(--space-8); }

/* Problem */
.problem-grid { display: grid; gap: var(--space-32); }
.quote-group { display: flex; flex-direction: column; gap: var(--space-16); }
.quote-group + .quote-group { margin-top: var(--space-8); }
@media (min-width: 960px) { .problem-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-48); align-items: start; } }

/* How it works: step */
.steps { list-style: none; margin: 0 0 var(--space-32); padding: 0; display: grid; gap: var(--space-16); counter-reset: step; }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.step::before { counter-increment: step; content: counter(step); width: 40px; height: 40px; border-radius: var(--radius-medium); background: var(--brand-main); color: var(--bg-light); font: 600 16px/40px var(--font-body); text-align: center; }
.step h3 { font-size: 18px; line-height: 24px; font-family: var(--font-body); }
.step p { color: var(--text-soft); margin-top: var(--space-4); }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .step { grid-template-columns: minmax(0, 1fr); } }

/* Demo (part of the page, not a call to action: Second buttons only) */
.demo { display: grid; gap: var(--space-24); margin-top: var(--space-24); }
.demo [hidden] { display: none !important; }
.demo-chat { position: relative; display: flex; flex-direction: column; min-height: 440px; max-height: 560px; border: 1px solid var(--text-soft); border-radius: var(--radius-large); overflow: hidden; background: var(--bg-light); }
.demo-head { display: flex; align-items: center; gap: var(--space-8); padding: var(--space-16); border-bottom: 1px solid var(--line); font-weight: 600; }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-main); }
.demo-tag { margin-left: auto; font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--text-soft); padding: var(--space-4) var(--space-8); border-radius: var(--radius-small); }
.demo-thread { flex: 1; overflow-y: auto; padding: var(--space-16); display: flex; flex-direction: column; gap: var(--space-8); overscroll-behavior: contain; }
.bubble { max-width: 88%; padding: var(--space-8) var(--space-16); border-radius: var(--radius-medium); white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble-bot { align-self: flex-start; border: 1px solid var(--line); }
.bubble-you { align-self: flex-end; background: var(--brand-main); color: var(--bg-light); }
.bubble-error { align-self: center; border: 1px solid var(--text-default); font-size: 13px; line-height: 20px; }
.bubble-typing { display: inline-flex; gap: var(--space-4); align-items: center; }
.bubble-typing span { width: 8px; height: 8px; border-radius: 50%; background: var(--text-soft); animation: dot 1.1s ease-in-out infinite; }
.bubble-typing span:nth-child(2) { animation-delay: .15s; } .bubble-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.demo-options { display: flex; flex-wrap: wrap; gap: var(--space-8); padding: var(--space-16); border-top: 1px solid var(--line); max-height: 180px; overflow-y: auto; }
.demo-opt { font: inherit; min-height: 44px; padding: 0 var(--space-16); cursor: pointer; border: 2px solid var(--brand-main); background: transparent; color: var(--brand-main); border-radius: var(--radius-medium); font-weight: 600; }
.demo-opt:hover:not(:disabled) { background: var(--brand-main); color: var(--bg-light); }
.demo-opt:disabled { border-color: var(--text-soft); color: var(--text-soft); cursor: default; }
.demo-form { display: flex; gap: var(--space-8); padding: var(--space-16); border-top: 1px solid var(--line); }
.demo-input { flex: 1; min-width: 0; min-height: 48px; padding: 0 var(--space-16); font: inherit; color: var(--text-default); background: var(--bg-light); border: 1px solid var(--text-soft); border-radius: var(--radius-medium); }
.demo-form .btn { min-height: 48px; background: transparent; color: var(--brand-main); }
.demo-form .btn:hover { background: var(--brand-main); color: var(--bg-light); }
.demo-form .btn[disabled] { background: transparent; border-color: var(--text-soft); color: var(--text-soft); }
.demo-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-16); padding: var(--space-16); background: var(--bg-light); }
.demo-starts { display: flex; }
.demo-result-h { margin-bottom: var(--space-16); }
.demo-empty { color: var(--text-soft); max-width: 32rem; }
.demo-card { border: 1px solid var(--text-soft); border-radius: var(--radius-large); padding: var(--space-16); }
.demo-card-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); }
.demo-temp { font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: var(--space-4) var(--space-8); border-radius: var(--radius-small); border: 1px solid var(--text-soft); }
.demo-temp-hot { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--text-default); }
.demo-temp-warm { border-color: var(--brand-main); color: var(--brand-main); }
.demo-temp-ok { background: var(--brand-main); border-color: var(--brand-main); color: var(--bg-light); }
.demo-temp-cold { color: var(--text-soft); }
.demo-venue { font-size: 13px; line-height: 20px; color: var(--text-soft); }
.demo-score { font: 600 48px/56px var(--font-head); }
.demo-of { font: 400 16px/24px var(--font-body); color: var(--text-soft); margin-left: var(--space-4); }
.demo-answers { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-4) var(--space-16); margin: var(--space-16) 0; font-size: 14px; line-height: 20px; }
.demo-answers dt { color: var(--text-soft); } .demo-answers dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.demo-sub { font: 600 12px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-soft); margin: 0 0 var(--space-8); }
.demo-factors { list-style: none; margin: 0 0 var(--space-16); padding: 0; font-size: 14px; line-height: 20px; }
.demo-factors li { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.demo-pts { font-weight: 600; color: var(--brand-main); margin-right: var(--space-4); }
.demo-next { margin: 0 0 var(--space-8); font-size: 14px; line-height: 20px; }
.demo-again { background: none; border: 0; padding: 0 var(--space-8) 0 0; min-height: 44px; cursor: pointer; font: inherit; font-weight: 600; color: var(--brand-main); text-decoration: underline; text-underline-offset: 3px; }
.demo-note { margin-top: var(--space-16); color: var(--text-soft); font-size: 13px; line-height: 20px; max-width: 44rem; }
.demo-h { margin-top: var(--space-32); }
.how-link { margin-top: var(--space-16); }
.how-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 960px) { .demo { grid-template-columns: minmax(0, 28rem) minmax(0, 1fr); gap: var(--space-48); align-items: start; } }

/* Proof and help: card grids */
.grid { display: grid; gap: var(--space-16); }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid { gap: var(--space-24); } }
.proof-honest { margin-top: var(--space-24); font: 600 20px/28px var(--font-head); }
.proof-fast { margin-top: var(--space-24); max-width: 28rem; }
.proof-fast .tag { align-self: flex-start; }
.proof-fast a { color: var(--bg-light); display: inline-flex; align-items: center; min-height: 44px; }

/* Who it is for */
.who-grid { display: grid; gap: var(--space-24); }
.who-col { display: flex; flex-direction: column; gap: var(--space-8); }
.who-col ul { margin: 0; padding-left: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); }
@media (min-width: 720px) { .who-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-48); } }

/* Offer */
.offer-grid { display: grid; gap: var(--space-24); }
.offer-terms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.offer-terms li { padding: var(--space-8) 0; border-top: 1px solid var(--line); }
.offer-terms a { font-weight: 600; }
.offer-body { display: flex; flex-direction: column; gap: var(--space-16); align-items: flex-start; }
.offer-body .btn { align-self: stretch; }
@media (min-width: 720px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-48); align-items: start; } .offer-body .btn { align-self: flex-start; } }

/* Question-and-answer item */
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 56px; padding: var(--space-8) 0; cursor: pointer; font-weight: 600; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 600 24px/24px var(--font-body); color: var(--brand-main); flex: none; width: 24px; text-align: center; }
.qa[open] summary::after { content: "–"; }
.qa p { padding: 0 0 var(--space-16); max-width: 44rem; color: var(--text-default); }
.qa-list { max-width: 48rem; }

/* Form */
.contact-grid { display: grid; gap: var(--space-32); }
.form { display: flex; flex-direction: column; gap: var(--space-16); max-width: 32rem; }
.field { display: flex; flex-direction: column; gap: var(--space-8); }
.field label { font-weight: 600; }
.field input, .field textarea { font: inherit; color: var(--text-default); background: var(--bg-light); border: 1px solid var(--text-soft); border-radius: var(--radius-medium); padding: var(--space-8) var(--space-16); min-height: 48px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--brand-main); outline-offset: 2px; }
.field-error { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--text-default); border-left: 4px solid var(--brand-accent); padding-left: var(--space-8); }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 24px; font-weight: 600; }
.form-status.is-ok { border-left: 4px solid var(--brand-main); padding-left: var(--space-8); }
.form-status.is-error { border-left: 4px solid var(--brand-accent); padding-left: var(--space-8); }
.founder { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-8); }
.founder strong { font: 600 20px/28px var(--font-head); }
.alt-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; margin-top: var(--space-8); }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 32rem); gap: var(--space-64); align-items: start; } }

/* Footer */
.site-footer { padding-block: var(--space-48); }
.footer-grid { display: grid; gap: var(--space-32); }
.footer-grid p { color: var(--bg-light); }
.footer-grid .soft { color: var(--line); }
.footer-col { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-logo { display: inline-flex; min-height: 44px; align-items: center; }
.footer-logo img { height: 24px; width: auto; display: block; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-48); } }

/* Motion. Tokens from brand/tokens.css. Only transform and opacity move; colour changes on hover. Nothing loops except the typing dots. */
.btn, .demo-opt, .wa-btn, .lang-link, .demo-again { transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.btn:active, .demo-opt:active:not(:disabled), .wa-btn:active { transform: scale(0.98); }
.btn[disabled], .demo-opt:disabled { transform: none; }
.qa summary::after, .more summary::after { transition: transform var(--dur-base) var(--ease-out); }
.qa[open] > :not(summary), .more[open] > :not(summary) { animation: rise var(--dur-base) var(--ease-out) both; }
.bubble, .wa-msg, .demo-card, .wa-sheet { animation: rise var(--dur-base) var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Entrances and the guided steps run from assets/site-motion.77635477e3.js (Motion). With no script, or reduced motion, nothing is hidden. */
.js-motion:not(.motion-ready):not(.motion-late) .hero-copy > *,
.js-motion:not(.motion-ready):not(.motion-late) .hero .score-card,
.js-motion:not(.motion-ready):not(.motion-late) .hero .score-rows li { opacity: 0; }
.read-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--brand-accent); transform: scaleX(0); transform-origin: 0 50%; z-index: 40; pointer-events: none; }
[dir="rtl"] .read-progress { transform-origin: 100% 50%; }
/* Hover and press feedback */
.card, .bignum, .quote, .shot { transition: transform var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out); }
@media (hover: hover) {
  .card:hover, .shot:hover { transform: translateY(-3px); border-color: var(--brand-main); }
  .quote:hover, .bignum:hover { transform: translateY(-2px); }
  .btn:hover { transform: translateY(-1px); }
  .btn:active { transform: scale(0.98); }
}
/* How it works as a pinned story: the steps scroll, the phone stays and plays the active one. Without the script (no .story-on) it is the plain list. */
.story-stage, .story-skip { display: none; }
.story-on .has-story { display: grid; gap: var(--space-16); position: relative; margin-bottom: var(--space-32); }
.story-on .story-skip { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; justify-self: start; }
.story-on .has-story .story-stage { display: block; order: -1; position: sticky; top: var(--space-8); z-index: 4; height: 56svh; overflow: hidden; background: var(--bg-light); }
.story-on .has-story .steps { gap: 0; margin: 0; }
.story-on .has-story .step { min-height: 34svh; align-content: center; opacity: .35; transition: opacity var(--dur-slow) var(--ease-out); position: relative; }
.story-on .has-story .step.is-active { opacity: 1; }
.story-on .has-story .step.is-done { opacity: .6; }
.story-on .has-story .step h3 { font: 600 22px/28px var(--font-head); }
.story-on .has-story .step p { font-size: 16px; }
.story-on .has-story .step::before { transition: transform var(--dur-slow) var(--ease-out), background-color var(--dur-slow) var(--ease-out); background: var(--text-soft); }
.story-on .has-story .step.is-active::before { background: var(--brand-main); transform: scale(1.12); }
.story-on .has-story .step.is-done::before { background: var(--brand-main); }
@media (min-width: 960px) {
  .story-on .has-story { grid-template-columns: minmax(0, 1fr) 360px; column-gap: var(--space-48); align-items: start; }
  .story-on .story-skip { grid-column: 1; }
  .story-on .has-story .steps { grid-template-columns: minmax(0, 1fr); grid-column: 1; }
  .story-on .has-story .step { grid-template-columns: 48px minmax(0, 1fr); min-height: 60svh; }
  .story-on .has-story .step h3 { font-size: 30px; line-height: 38px; }
  .story-on .has-story .step p { font-size: 18px; line-height: 28px; max-width: 34rem; }
  .story-on .has-story .story-stage { grid-column: 2; grid-row: 1 / span 2; order: 0; top: 96px; height: auto; overflow: visible; background: none; }
  .story-on .phone { height: auto; width: 100%; max-height: calc(100svh - 120px); }
}
.phone { --u: 1cqw; container-type: inline-size; height: 100%; max-height: 100%; aspect-ratio: 9 / 15; width: auto; max-width: 100%; margin-inline: auto; border: 8px solid var(--bg-dark); border-radius: 34px; background: var(--bg-light); display: flex; flex-direction: column; overflow: hidden; }
.phone-bar { display: flex; align-items: center; gap: calc(var(--u) * 2.5); padding: calc(var(--u) * 3) calc(var(--u) * 4); background: var(--brand-main); color: var(--bg-light); font: 600 calc(var(--u) * 4.2) / 1.2 var(--font-body); }
.phone-bar b { flex: 1; font-weight: 600; }
.phone-bar .tag { font-size: calc(var(--u) * 3); line-height: 1.3; padding: 2px calc(var(--u) * 2); }
.phone-dot { width: calc(var(--u) * 6); height: calc(var(--u) * 6); border-radius: 50%; background: var(--brand-accent); }
.phone-body { position: relative; flex: 1; min-height: 0; }
.scr { position: absolute; inset: 0; padding: calc(var(--u) * 4); display: flex; flex-direction: column; gap: calc(var(--u) * 2.6); visibility: hidden; opacity: 0; }
.scr.on { visibility: visible; opacity: 1; }
/* The timeline in site-motion.js adds .in (arrives) and .out (leaves) at set times. Without it, or after it, everything is simply shown. */
.scr.run [data-at] { opacity: 0; transform: translateY(14px) scale(.96); }
.scr.run .bub-you[data-at] { transform: translateX(18px) scale(.94); }
[dir="rtl"] .scr.run .bub-you[data-at] { transform: translateX(-18px) scale(.94); }
.scr.run li[data-at] { transform: translateX(-12px); }
.scr.run .lead-top[data-at], .scr.run .listing[data-at] { transform: translateY(34px) scale(.96); }
.scr.run [data-at].in { opacity: 1; transform: none; transition: opacity .35s var(--ease-out), transform .7s cubic-bezier(.34, 1.45, .64, 1); }
.scr.run [data-at].in.out { opacity: 0; transform: translateY(-12px); transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.scr.run .typing.in { opacity: 1; }
.scr.done .q.out, .scr.done .typing.out { opacity: 0; }
.scr.done .q.out + .q.out + .more { opacity: 1; }
.phone .bub { margin: 0; max-width: 84%; padding: calc(var(--u) * 2.6) calc(var(--u) * 3.4); border-radius: calc(var(--u) * 3.4); font: 400 calc(var(--u) * 4.3) / 1.4 var(--font-body); }
.phone .bub-bot { align-self: flex-start; border: 1px solid var(--line); background: var(--bg-light); }
.phone .bub-you { align-self: flex-end; background: var(--brand-main); color: var(--bg-light); }
.phone .typing { position: absolute; inset-inline-start: calc(var(--u) * 4); top: calc(var(--u) * 24); display: inline-flex; gap: calc(var(--u) * 1.6); width: auto; }
.phone .typing span { width: calc(var(--u) * 2.2); height: calc(var(--u) * 2.2); border-radius: 50%; background: var(--text-soft); animation: dot 1.1s ease-in-out infinite; }
.phone .typing span:nth-child(2) { animation-delay: .15s; } .phone .typing span:nth-child(3) { animation-delay: .3s; }
.phone .chips { display: flex; flex-wrap: wrap; gap: calc(var(--u) * 2); }
.phone .chip { position: relative; padding: calc(var(--u) * 2.2) calc(var(--u) * 3.6); border: 1.5px solid var(--brand-main); border-radius: 999px; color: var(--brand-main); font: 600 calc(var(--u) * 3.9) / 1.2 var(--font-body); background: var(--bg-light); transition: background-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.phone .chip.picked { background: var(--brand-main); color: var(--bg-light); }
.phone .tap { position: absolute; inset: 50% auto auto 50%; width: calc(var(--u) * 9); height: calc(var(--u) * 9); margin: calc(var(--u) * -4.5) 0 0 calc(var(--u) * -4.5); border-radius: 50%; background: var(--brand-accent); opacity: 0; pointer-events: none; }
.scr-2 .q { position: absolute; inset: calc(var(--u) * 4) calc(var(--u) * 4) auto; display: flex; flex-direction: column; gap: calc(var(--u) * 3); }
.scr-2 .sum { position: absolute; inset: auto calc(var(--u) * 4) calc(var(--u) * 15); display: flex; flex-wrap: wrap; gap: calc(var(--u) * 2); }
.scr-2 .pill { padding: calc(var(--u) * 1.8) calc(var(--u) * 3.2); border-radius: 999px; background: var(--brand-main); color: var(--bg-light); font: 600 calc(var(--u) * 3.6) / 1.2 var(--font-body); }
.scr-2 .s2more { position: absolute; inset: auto calc(var(--u) * 4) calc(var(--u) * 4); margin: 0; color: var(--text-soft); font: 400 calc(var(--u) * 3.6) / 1.4 var(--font-body); }
.phone .lead { display: flex; flex-direction: column; gap: calc(var(--u) * 2); border: 1px solid var(--text-soft); border-radius: calc(var(--u) * 3.4); padding: calc(var(--u) * 4); }
.lead-top { display: flex; justify-content: space-between; align-items: center; }
.phone .lead .tag { font-size: calc(var(--u) * 3); }
.lead-num { margin: 0; font: 600 calc(var(--u) * 17) / 1 var(--font-head); }
.lead-num span { font: 400 calc(var(--u) * 4) / 1 var(--font-body); color: var(--text-soft); margin-inline-start: calc(var(--u) * 1.5); }
.lead-rows { list-style: none; margin: 0; padding: 0; }
.lead-rows li { display: grid; grid-template-columns: calc(var(--u) * 10) minmax(0, 1fr); gap: calc(var(--u) * 2); padding: calc(var(--u) * 2) 0; border-top: 1px solid var(--line); }
.lead-rows .ppts { font: 600 calc(var(--u) * 3.8) / 1.3 var(--font-body); color: var(--brand-main); }
.lead-rows .pf { display: block; font: 600 calc(var(--u) * 3.8) / 1.3 var(--font-body); }
.lead-rows .pw { display: block; font-size: calc(var(--u) * 3.3); line-height: 1.3; color: var(--text-soft); }
.listing { border: 1px solid var(--line); border-radius: calc(var(--u) * 3.4); overflow: hidden; background: var(--bg-light); }
.listing img { display: block; width: 100%; height: calc(var(--u) * 42); object-fit: cover; }
.listing-in { padding: calc(var(--u) * 3.4); display: flex; flex-direction: column; gap: calc(var(--u) * 1.4); align-items: flex-start; }
.listing .tag { font-size: calc(var(--u) * 2.8); }
.listing p { margin: 0; }
.l-title { font: 600 calc(var(--u) * 4.4) / 1.25 var(--font-head); }
.l-meta, .l-why { font-size: calc(var(--u) * 3.5); line-height: 1.35; color: var(--text-soft); }
.l-why { color: var(--brand-main); font-weight: 600; }
.phone .note { margin: 0; display: flex; align-items: center; gap: calc(var(--u) * 2.4); padding: calc(var(--u) * 2.8) calc(var(--u) * 3.4); border: 1px solid var(--line); border-radius: calc(var(--u) * 3); font: 600 calc(var(--u) * 3.8) / 1.3 var(--font-body); }
.phone .note-ok { border-color: var(--brand-main); color: var(--brand-main); }
.note-ic { display: inline-grid; place-items: center; flex: none; width: calc(var(--u) * 6.4); height: calc(var(--u) * 6.4); border-radius: 50%; background: var(--brand-main); color: var(--bg-light); font-size: calc(var(--u) * 3.6); }
@keyframes dot { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.story-on [dir="rtl"] .phone, [dir="rtl"].story-on .phone { direction: rtl; }
@media (prefers-reduced-motion: reduce) {
  .bubble-typing span { animation: none; opacity: .6; }
  .btn:active, .demo-opt:active, .wa-btn:active { transform: none; }
  .card:hover, .shot:hover, .quote:hover, .bignum:hover, .btn:hover { transform: none; }
  .phone .typing span { animation: none; opacity: .6; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-timeline: auto !important; animation-range: normal !important; transition-duration: 1ms !important; }
  .bubble-typing span { animation: none !important; }
}

/* WhatsApp-style messages in the property-matching demo. Palette variables only. */
.demo-chat.is-wa { min-height: 560px; max-height: 680px; }
.wa-msg { align-self: flex-start; max-width: 88%; display: flex; flex-direction: column; gap: var(--space-4); }
.wa-msg .bubble { max-width: 100%; }
.bubble-media { padding: var(--space-4) var(--space-4) var(--space-8); }
.wa-media { position: relative; margin-bottom: var(--space-8); border-radius: var(--radius-small); overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.wa-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wa-demo-tag { position: absolute; top: var(--space-8); left: var(--space-8); font: 600 11px/16px var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; background: var(--text-default); color: var(--bg-light); padding: var(--space-4) var(--space-8); border-radius: var(--radius-small); }
.wa-body { padding: 0 var(--space-8); }
.wa-actions { display: flex; flex-direction: column; gap: var(--space-4); }
.wa-btn { font: inherit; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: var(--space-8); padding: 0 var(--space-16); cursor: pointer; border: 1px solid var(--line); background: var(--bg-light); color: var(--brand-main); font-weight: 600; border-radius: var(--radius-medium); }
.wa-btn:hover { background: var(--brand-main); color: var(--bg-light); }
.wa-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-direction: column; max-height: 82%; background: var(--bg-light); border-top: 1px solid var(--text-soft); border-radius: var(--radius-large) var(--radius-large) 0 0; }
.wa-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-8) var(--space-16); border-bottom: 1px solid var(--line); font-weight: 600; }
.wa-close { font: 400 28px/1 var(--font-body); width: 44px; height: 44px; border: 0; background: none; color: var(--text-default); cursor: pointer; }
.wa-sheet-list { overflow-y: auto; overscroll-behavior: contain; }
.wa-row { display: block; width: 100%; min-height: 44px; text-align: start; font: inherit; color: var(--text-default); background: none; border: 0; border-bottom: 1px solid var(--line); padding: var(--space-8) var(--space-16); cursor: pointer; }
.wa-row:hover, .wa-row:focus-visible { background: var(--line); }
.wa-row-t { display: block; font-weight: 600; }
.wa-row-d { display: block; color: var(--text-soft); font-size: 13px; line-height: 20px; }
.demo-unit-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-medium); margin: var(--space-16) 0 0; }
/* The demo's own start button is part of the demo, not a call to action: Second style. */
.demo-start .btn { background: transparent; color: var(--brand-main); }
.demo-start .btn:hover { background: var(--brand-main); color: var(--bg-light); }

/* Tap targets: links that sit alone on a line are at least 44 px tall. */
.founder a, .offer-terms a { display: inline-flex; align-items: center; min-height: 44px; }

/* Conversion review, 12.11.2026 */
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.ticks li { position: relative; padding-left: var(--space-24); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: var(--radius-small); background: var(--brand-main); }
.micro { font-size: 13px; line-height: 20px; }
.hero-copy .micro { margin-top: calc(var(--space-8) * -1); }
.stack { display: flex; flex-direction: column; gap: var(--space-16); }
.quote-note { margin-top: var(--space-16); }
.shots { display: grid; gap: var(--space-24); margin-bottom: var(--space-32); }
.shot { margin: 0; display: flex; flex-direction: column; gap: var(--space-8); }
.shot img { display: block; width: 100%; height: auto; border: 1px solid var(--text-soft); border-radius: var(--radius-large); }
@media (min-width: 960px) { .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.offer-side { display: flex; flex-direction: column; gap: var(--space-8); }
.next { margin: 0 0 var(--space-16); padding-left: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); }
.offer-side .label { margin-top: var(--space-8); }
.more { border: 1px solid var(--line); border-radius: var(--radius-large); padding: 0 var(--space-16); }
.more[open] { padding-bottom: var(--space-16); display: flex; flex-direction: column; gap: var(--space-16); }
.more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 56px; font-weight: 600; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font: 600 24px/24px var(--font-body); color: var(--brand-main); flex: none; }
.more[open] summary::after { content: "–"; }
.field select { font: inherit; color: var(--text-default); background: var(--bg-light); border: 1px solid var(--text-soft); border-radius: var(--radius-medium); padding: var(--space-8) var(--space-16); min-height: 48px; width: 100%; }
.checks { border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 600; padding: 0; margin-bottom: var(--space-8); }
.check { display: flex; align-items: center; gap: var(--space-8); min-height: 44px; font-weight: 400; cursor: pointer; }
.check input { width: 24px; height: 24px; min-height: 24px; accent-color: var(--brand-main); flex: none; }
.founder-photo { width: 96px; height: 96px; border-radius: var(--radius-large); object-fit: cover; margin-bottom: var(--space-8); }
.form-next a { font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.step { align-content: start; }

/* Supporting pages */
.page-hero { padding-block: var(--space-32) var(--space-32); }
.page-hero .hero-copy { max-width: 44rem; }
.kv { margin: 0; display: grid; gap: 0; max-width: 56rem; }
.kv-row { display: grid; gap: var(--space-4); padding: var(--space-16) 0; border-top: 1px solid var(--line); }
.kv-row:last-child { border-bottom: 1px solid var(--line); }
.kv dt { font-weight: 600; }
.kv dd { margin: 0; }
@media (min-width: 720px) { .kv-row { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: var(--space-32); } }
.plain { margin: 0; padding-left: var(--space-24); display: flex; flex-direction: column; gap: var(--space-8); max-width: 48rem; }
.doc-links { list-style: none; padding-left: 0; }
.doc-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.trust-note { margin-top: var(--space-16); max-width: 48rem; }
.sample-title { font: 600 24px/32px var(--font-head); margin: var(--space-16) 0 0; }
.block .lead { font-size: 16px; }

.score-card { margin: 0; }
.score-rows.no-pts li { grid-template-columns: minmax(0, 1fr); }

/* Phone: edge-to-edge with the notch and home indicator respected, taps that answer at once, no text resizing on rotate. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { -webkit-tap-highlight-color: transparent; padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
a, button, summary, label, select, input { touch-action: manipulation; }
.site-footer, footer.footer, body > footer { padding-bottom: calc(var(--footer-pad, 0px) + env(safe-area-inset-bottom)); }
@media (hover: none) { a:active, button:active, summary:active { opacity: .85; } }

/* Hero: two buttons, and a strip of checkable facts under it */
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.proof-strip {
  list-style: none; margin: var(--space-32) 0 0; padding: var(--space-16) 0 0;
  border-top: 1px solid var(--line); display: grid; gap: var(--space-8);
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); font: 500 15px/22px var(--font-body);
}
.proof-strip li { padding-inline-start: 22px; position: relative; }
.proof-strip li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--brand-main); font-weight: 700; }

/* Language switch in the top bar */
.topbar-end { display: flex; align-items: center; gap: var(--space-16); }
.lang-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-8); font: 600 16px/24px var(--font-body); color: var(--brand-main); text-decoration: none; }
.lang-link:hover { text-decoration: underline; }

/* Arabic (right to left). Noto Sans Arabic carries both the body and the headings; the Latin text (brand name, numbers) falls back to Inter. */
@font-face { font-family: "Noto Sans Arabic"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("assets/fonts/NotoSansArabic-arabic.ce85091f02.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+200C-200F; }
html[lang="ar"] { --font-head: "Noto Sans Arabic", "Source Serif 4", Georgia, serif; --font-body: "Noto Sans Arabic", "Inter", system-ui, sans-serif; }
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
html[lang="ar"] .label, html[lang="ar"] .tag, html[lang="ar"] .demo-tag { letter-spacing: 0; text-transform: none; }
/* Physical rules above, mirrored. */
[dir="rtl"] .skip { left: auto; right: var(--space-16); }
[dir="rtl"] .quote { border-left: 0; border-right: 4px solid var(--brand-accent); padding: var(--space-4) var(--space-16) var(--space-4) 0; }
[dir="rtl"] .score-num span { margin-left: 0; margin-right: var(--space-4); }
[dir="rtl"] .demo-tag { margin-left: 0; margin-right: auto; }
[dir="rtl"] .demo-of { margin-left: 0; margin-right: var(--space-4); }
[dir="rtl"] .demo-pts { margin-right: 0; margin-left: var(--space-4); }
[dir="rtl"] .who-col ul, [dir="rtl"] .next, [dir="rtl"] .plain { padding-left: 0; padding-right: var(--space-24); }
[dir="rtl"] .field-error { border-left: 0; border-right: 4px solid var(--brand-accent); padding-left: 0; padding-right: var(--space-8); }
[dir="rtl"] .form-status.is-ok { border-left: 0; border-right: 4px solid var(--brand-main); padding-left: 0; padding-right: var(--space-8); }
[dir="rtl"] .form-status.is-error { border-left: 0; border-right: 4px solid var(--brand-accent); padding-left: 0; padding-right: var(--space-8); }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: var(--space-24); }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .doc-links { padding-right: 0; }
/* Email addresses and the brand name stay left to right inside Arabic sentences. */
[dir="rtl"] a[href^="mailto:"] { unicode-bidi: isolate; direction: ltr; }
[dir="rtl"] .hp { left: auto; right: -10000px; }
/* Headline mask reveal and button arrow nudge */
.hero-copy h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-copy h1 .wi { display: inline-block; }
.btn .icon { transition: transform var(--dur-base) var(--ease-out); }
@media (hover: hover) { .btn:hover .icon { transform: translate(2px, -2px); } [dir="rtl"] .btn:hover .icon { transform: translate(-2px, -2px); } }

/* ============ Demo: a WhatsApp-style phone, a result card that builds itself, and the get-in-touch panel ============ */
.demo { gap: var(--space-24); }
.demo-chat { border: 8px solid var(--bg-dark); border-radius: 34px; min-height: 520px; max-height: min(78svh, 680px); background: var(--bg-light); }
.demo-chat.is-wa { min-height: 560px; max-height: min(80svh, 720px); }
.demo-head { background: var(--brand-main); color: var(--bg-light); border-bottom: 0; padding: var(--space-8) var(--space-16); gap: var(--space-8); }
.demo-avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--brand-accent); color: var(--text-default); font: 700 16px/1 var(--font-body); }
.demo-avatar-lg { width: 72px; height: 72px; font-size: 30px; }
.demo-who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.2; }
.demo-who b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-who small { font-size: 12px; opacity: .85; }
.demo-head .demo-tag { margin-inline-start: 0; border-color: var(--brand-accent); background: var(--brand-accent); color: var(--text-default); }
.demo-thread { padding: var(--space-16) var(--space-16) var(--space-8); gap: var(--space-8); }
.bubble { background: var(--bg-light); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; max-width: 86%; }
.bubble-bot { align-self: flex-start; }
.bubble-you { align-self: flex-end; border-radius: 16px 4px 16px 16px; background: var(--brand-main); color: var(--bg-light); border-color: var(--brand-main); position: relative; padding-inline-end: var(--space-32); }
.bubble-you::after { content: "\2713\2713"; position: absolute; inset-inline-end: var(--space-8); bottom: 3px; font-size: 12px; letter-spacing: -2px; color: var(--bg-light); opacity: .8; }
.bubble-error { border-radius: 12px; }
.demo-options, .demo-form { background: var(--bg-light); }
.demo-opt { border-radius: 999px; border-width: 1.5px; min-height: 44px; transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out); }
.demo-opt:hover:not(:disabled) { transform: translateY(-1px); }
.demo-input { border-radius: 999px; }
.demo-form .btn { border-radius: 999px; }
.wa-btn { border-radius: 999px; }
/* The screen before the demo starts */
.demo-start { gap: var(--space-8); text-align: center; }
.demo-start-name { margin: var(--space-4) 0 0; font: 600 20px/28px var(--font-head); }
.demo-preview { list-style: none; counter-reset: pv; margin: var(--space-8) 0; padding: 0; display: grid; gap: var(--space-8); text-align: start; }
.demo-preview li { counter-increment: pv; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-8); align-items: center; font-weight: 600; }
.demo-preview li::before { content: counter(pv); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-main); color: var(--bg-light); font-size: 14px; }
.demo-pick { margin: 0; color: var(--text-soft); }
.demo-starts .btn { min-height: 52px; padding-inline: var(--space-24); }
.demo-start .demo-avatar { animation: rise var(--dur-slow) var(--ease-out) both; }
.demo-preview li { animation: rise var(--dur-slow) var(--ease-out) both; }
.demo-preview li:nth-child(2) { animation-delay: .12s; } .demo-preview li:nth-child(3) { animation-delay: .24s; }
/* The result: a ghost card until it exists, then a card that builds itself */
.demo-empty { position: relative; padding: var(--space-16); border: 1px dashed var(--text-soft); border-radius: var(--radius-large); max-width: none; }
.demo-card { border-color: var(--brand-main); border-width: 1.5px; background: var(--bg-light); }
.demo-card.is-built { animation: rise var(--dur-slow) var(--ease-out) both; }
.demo-card.is-built .demo-temp-hot { animation: pop .5s cubic-bezier(.34, 1.45, .64, 1) .9s both; }
.demo-card.is-built .demo-answers > * { animation: rise var(--dur-slow) var(--ease-out) both; }
.demo-card.is-built .demo-factors li { animation: slide var(--dur-slow) var(--ease-out) both; animation-delay: calc(0.5s + var(--i, 0) * 90ms); }
.demo-score { font-feature-settings: "tnum" 1; }
.demo-factors li { display: flex; gap: var(--space-8); align-items: baseline; }
@keyframes slide { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
[dir="rtl"] .demo-card.is-built .demo-factors li { animation-name: slide-rtl; }
@keyframes slide-rtl { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
/* Get in touch, shown under the finished lead card */
.demo-interest { margin-top: var(--space-16); padding: var(--space-24); border-radius: var(--radius-large); background: var(--bg-dark); color: var(--bg-light); animation: rise var(--dur-slow) var(--ease-out) .4s both; }
.demo-interest-h { margin: 0 0 var(--space-8); font: 600 22px/28px var(--font-head); }
.demo-interest-b { margin: 0 0 var(--space-16); color: var(--line); }
.demo-interest-btn { background: var(--brand-accent); border-color: var(--brand-accent); color: var(--text-default); min-height: 48px; }
.demo-interest-btn:hover { background: var(--bg-light); border-color: var(--bg-light); }
@media (max-width: 959px) { .demo-chat { min-height: 480px; } .demo-result { order: 2; } }
/* Talk to us: hero link, floating button, dialog */
.talk-link { align-self: flex-start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--brand-main); font: 600 16px/24px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.talk-link:hover { color: var(--text-default); }
.talk-link:focus-visible { outline: 2px solid var(--brand-main); outline-offset: 3px; }
.talk-float { position: fixed; inset-inline-end: var(--space-16); bottom: var(--space-16); z-index: 30; min-height: 48px; padding-inline: var(--space-24); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
.talk-float.on { opacity: 1; transform: none; pointer-events: auto; }
.interest { width: min(32rem, calc(100vw - 2 * var(--space-16))); max-height: calc(100svh - 2 * var(--space-16)); overflow-y: auto; border: 1px solid var(--text-soft); border-radius: var(--radius-large); padding: var(--space-24); background: var(--bg-light); color: var(--text-default); }
.interest::backdrop { background: var(--bg-dark); opacity: .6; }
.interest[open] { animation: rise var(--dur-slow) var(--ease-out) both; }
.interest h2 { margin: 0 var(--space-32) var(--space-8) 0; font: 600 26px/32px var(--font-head); }
[dir="rtl"] .interest h2 { margin: 0 0 var(--space-8) var(--space-32); }
.interest-close { position: absolute; inset-block-start: var(--space-8); inset-inline-end: var(--space-8); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--text-default); cursor: pointer; border-radius: var(--radius-medium); }
.interest-close:hover { background: var(--line); }
.interest-close:focus-visible { outline: 2px solid var(--brand-main); }
.interest form { display: grid; gap: var(--space-16); margin-top: var(--space-16); }
.interest textarea { font: inherit; min-height: 88px; padding: var(--space-8) var(--space-16); border: 1px solid var(--text-soft); border-radius: var(--radius-medium); background: var(--bg-light); color: var(--text-default); resize: vertical; }
.interest .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.interest [hidden] { display: none !important; }
.interest-done { display: grid; gap: var(--space-8); justify-items: start; padding-top: var(--space-16); }
.interest-tick { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--brand-main); color: var(--bg-light); font-size: 24px; animation: pop .5s cubic-bezier(.34, 1.45, .64, 1) both; }
@media (max-width: 719px) { .interest { margin: auto 0 0; width: 100%; max-width: none; border-radius: var(--radius-large) var(--radius-large) 0 0; } .talk-float { inset-inline-end: var(--space-16); } }
@media (prefers-reduced-motion: reduce) { .talk-float, .talk-float.on { transition: none; } .demo-card.is-built *, .demo-start *, .demo-interest, .interest[open] { animation: none !important; } }

/* ============ 20.11.2026 tidy-up: fewer sections, each one fits a screen; phones have real phone proportions (9:19.5) ============ */
.trust-line { margin: var(--space-32) 0 0; max-width: 60rem; font-size: 14px; line-height: 22px; color: var(--text-soft); }
.trust-line strong { color: var(--text-default); }
.trust-line a { color: inherit; display: inline-flex; align-items: center; min-height: 44px; }
.trust-line .tag { vertical-align: middle; }
.problem-grid .quote p { font-size: 22px; line-height: 32px; }
@media (min-width: 960px) {
  .problem-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
  .problem-grid .quote p { font-size: 28px; line-height: 38px; }
  .problem-grid .stack, .problem-grid .bignum { height: 100%; }
  .problem-grid .bignum { justify-content: center; }
  .problem-grid .bignum strong { font-size: 72px; line-height: 80px; }
}
@media (min-width: 960px) and (min-height: 640px) {
  .hero, #problem, #questions, #contact { min-height: calc(100svh - 72px); display: grid; align-content: center; }
}

/* The phone: a modern handset is about 9 wide to 19.5 tall, with a rounded screen, a camera island and a home bar. */
.phone { --ph: min(calc(100svh - 128px), 700px); height: var(--ph); width: calc(var(--ph) * 9 / 19.5); max-height: none; max-width: 100%; aspect-ratio: auto; border-width: 10px; border-radius: 46px; position: relative; }
.phone::before, .demo-chat::before { content: ""; position: absolute; z-index: 5; inset-block-start: 8px; inset-inline-start: 50%; width: 28%; height: 22px; margin-inline-start: -14%; border-radius: 999px; background: var(--bg-dark); pointer-events: none; }
.phone::after, .demo-chat::after { content: ""; position: absolute; z-index: 5; inset-block-end: 6px; inset-inline-start: 50%; width: 34%; height: 4px; margin-inline-start: -17%; border-radius: 999px; background: var(--bg-dark); opacity: .55; pointer-events: none; }
.phone-bar { padding-top: calc(var(--u) * 9); }
.phone-body { padding-bottom: calc(var(--u) * 6); }
@media (min-width: 960px) { .story-on .has-story .story-stage .phone { height: var(--ph); width: calc(var(--ph) * 9 / 19.5); max-height: none; } }
@media (max-width: 959px) {
  .story-on .has-story .story-stage { height: 68svh; display: grid; place-items: center; }
  .story-on .has-story .story-stage .phone { --ph: min(calc(68svh - 8px), 640px); --u: calc(1cqw * 1.12); }
  .story-on .has-story .step { min-height: 26svh; }
}

/* The try-it demo is a phone too: same proportions, the conversation scrolls inside the screen. */
.demo-chat, .demo-chat.is-wa { position: relative; width: min(100%, 21rem, calc((100svh - 96px) * 9 / 19.5)); aspect-ratio: 9 / 19.5; height: auto; min-height: 0; max-height: none; margin-inline: auto; border-width: 10px; border-radius: 46px; }
.demo-chat .demo-head { padding-top: 34px; }
.demo-chat .demo-thread { flex: 1; min-height: 0; }
.demo-chat .demo-options { max-height: 30%; overflow-y: auto; }
.demo-chat .demo-form { padding-bottom: var(--space-16); }
@media (max-width: 959px) { .demo-chat, .demo-chat.is-wa { min-height: 0; width: min(100%, 21rem, calc((100svh - 96px) * 9 / 19.5)); } }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); } }
@media (min-width: 720px) and (max-width: 959px) { .hero-grid .score-card { max-width: 32rem; } }

/* How it works: a flow of four steps (no phone: the only phone on the page is the demo below it). */
.flow { list-style: none; margin: 0 0 var(--space-48); padding: 0; display: grid; gap: 0; }
.flow-step { position: relative; padding: 0 0 var(--space-32) 64px; }
.flow-step:last-child { padding-bottom: 0; }
.flow-step::before { content: ""; position: absolute; inset-inline-start: 19px; top: 40px; bottom: 0; width: 2px; background: var(--line); }
.flow-step:last-child::before { display: none; }
.flow-n { position: absolute; inset-inline-start: 0; top: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand-main); color: var(--bg-light); font: 600 18px/1 var(--font-head); }
.flow-step h3 { margin: 0; padding-top: 6px; font: 600 22px/28px var(--font-head); }
.flow-step p { margin: var(--space-8) 0 0; color: var(--text-soft); font-size: 16px; line-height: 24px; max-width: 30rem; }
.flow-step .flow-chip { margin-top: var(--space-16); padding-top: var(--space-8); border-top: 1px solid var(--line); color: var(--brand-main); font: 600 14px/20px var(--font-body); }
.flow-step:nth-child(3) .flow-chip { font: 600 26px/32px var(--font-head); color: var(--text-default); }
@media (min-width: 960px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-32); }
  .flow-step { padding: 64px 0 0 0; }
  .flow-step::before { inset-inline-start: 48px; inset-inline-end: calc(var(--space-32) * -1); top: 19px; bottom: auto; width: auto; height: 2px; }
  .flow-step h3 { padding-top: 0; }
}

/* Thanks page: "While you wait" demo callout */
.wait-card { background: var(--bg-dark); color: var(--bg-light); border-radius: var(--radius-large); padding: var(--space-32) var(--space-24); display: flex; flex-direction: column; gap: var(--space-16); align-items: flex-start; }
.wait-card h2 { color: inherit; margin: 0; }
.wait-card p { margin: 0; max-width: 40rem; color: inherit; }
.wait-card .wait-label { font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 14px; opacity: .85; }
.wait-card .wait-btn { background: var(--bg-light); border-color: var(--bg-light); color: var(--bg-dark); align-self: stretch; }
.wait-card .wait-btn:hover { background: transparent; color: var(--bg-light); }
@media (min-width: 720px) { .wait-card { padding: var(--space-48); } .wait-card .wait-btn { align-self: flex-start; } }
.page-hero { min-height: 0 !important; }
