/* DROOB marketing site.
   Layout concept: a school day on one page — the product's real screens carry each section,
   type and colour stay quiet around them; the results story is the one dark, loud band. */
:root {
  --paper: #f5f7fb;      /* page ground, cool off-white */
  --surface: #ffffff;    /* cards, frames */
  --ink: #0e1a33;        /* text */
  --muted: #56637b;      /* secondary text */
  --line: #dbe2ee;       /* hairlines */
  --brand: #0053bd;      /* the D-b mark */
  --brand-strong: #003f91;
  --brand-tint: #e5edfa;
  --mark: #ffb21e;       /* school-bus yellow: one highlight per screen */
  --ok: #1d8a4c;         /* «معتمد» green from the product */
  --band: #0b1630;       /* results band, dark in both themes */
  --band-ink: #eef3fc;
  --band-muted: #9fb0cc;
  --bezel: #0e1a33;
  --shadow: 0 1px 2px rgb(14 26 51 / 6%), 0 12px 32px -12px rgb(14 26 51 / 22%);
  --shadow-lg: 0 2px 6px rgb(14 26 51 / 8%), 0 30px 60px -20px rgb(14 26 51 / 35%);

  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(13px, 0.8rem + 0.1vw, 14px);
  --step-0: clamp(15px, 0.9rem + 0.2vw, 17px);
  --step-1: clamp(18px, 1rem + 0.5vw, 21px);
  --step-2: clamp(22px, 1.1rem + 1vw, 30px);
  --step-3: clamp(28px, 1.2rem + 2vw, 44px);
  --step-4: clamp(32px, 1.2rem + 3.2vw, 60px);

  --wrap: 1180px;
  --radius: 14px;
  --header-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0a1120; --surface: #111a2d; --ink: #e8eef8; --muted: #9daac0; --line: #22304a;
    --brand: #5a95ff; --brand-strong: #86b0ff; --brand-tint: #14244a; --mark: #ffc24d; --ok: #3ccf7f;
    --band: #060c19; --band-ink: #eef3fc; --band-muted: #9fb0cc; --bezel: #02060f;
    --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / 35%), 0 30px 60px -20px rgb(0 0 0 / 70%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0a1120; --surface: #111a2d; --ink: #e8eef8; --muted: #9daac0; --line: #22304a;
  --brand: #5a95ff; --brand-strong: #86b0ff; --brand-tint: #14244a; --mark: #ffc24d; --ok: #3ccf7f;
  --band: #060c19; --band-ink: #eef3fc; --band-muted: #9fb0cc; --bezel: #02060f;
  --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 12px 32px -12px rgb(0 0 0 / 60%);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / 35%), 0 30px 60px -20px rgb(0 0 0 / 70%);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
:lang(ar) body, body:lang(ar) { line-height: 1.8; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: var(--step-4); line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); line-height: 1.18; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: var(--step-1); line-height: 1.35; font-weight: 600; }
:lang(ar) h1, :lang(ar) h2 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--mark); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-family: var(--f-num); font-size: 1em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.big .num { font-family: inherit; }
[hidden] { display: none !important; }

.wrap {
  width: 100%; max-width: calc(var(--wrap) + 2 * 24px); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); } }
section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; gap: 14px; max-width: 760px; margin-block-end: clamp(32px, 5vw, 56px); }
.sec-head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.eyebrow {
  font: 600 var(--step--1)/1.2 var(--f-body); color: var(--brand);
  letter-spacing: .08em; text-transform: uppercase;
}
:lang(ar) .eyebrow { letter-spacing: 0; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 var(--step-0)/1.2 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, transform .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 20px -10px var(--brand); }
.btn-primary:hover { background: var(--brand-strong); transform: translateY(-1px); }
:root[data-theme="dark"] .btn-primary, .btn-primary { color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn { white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arr { transition: transform .2s; }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .btn .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }

/* header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-head.scrolled { border-bottom-color: var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo .mark { width: 34px; height: 34px; color: var(--brand); }
.logo b { font: 700 22px/1 var(--f-display); letter-spacing: .02em; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--brand-tint); }
.head-actions { display: flex; align-items: center; gap: 10px; }
.lang { font: 600 15px/1 var(--f-body); color: var(--ink); text-decoration: none; padding: 10px 12px; border-radius: 999px; }
.lang:hover { background: var(--brand-tint); }
.site-head .btn { min-height: 42px; padding: 9px 18px; font-size: 15px; }
@media (max-width: 960px) { .nav { display: none; } .head-actions { margin-inline-start: auto; } }
@media (max-width: 420px) { .site-head .btn { padding-inline: 14px; } .logo b { font-size: 20px; } }

/* hero */
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(56px, 8vw, 104px); position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 78%; z-index: -1;
  background:
    radial-gradient(60% 70% at 85% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%),
    linear-gradient(to bottom, var(--brand-tint), transparent);
  opacity: .9;
}
.hero-copy { display: grid; gap: 22px; max-width: 880px; }
.hero-copy h1 em { font-style: normal; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--mark) 55%, transparent) 62%, color-mix(in srgb, var(--mark) 55%, transparent) 92%, transparent 92%); padding-inline: 2px; }
.hero-copy p { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.promises { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-block: clamp(32px, 5vw, 52px) clamp(40px, 6vw, 72px); max-width: 880px; }
.promise {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; display: grid; gap: 4px; align-content: start;
}
.promise .big { font: 700 clamp(30px, 2rem + 1vw, 42px)/1 var(--f-display); color: var(--brand); display: flex; align-items: baseline; gap: 6px; }
.promise .big small { font: 600 var(--step-0)/1 var(--f-body); color: var(--ink); }
.promise .lbl { color: var(--muted); font-size: var(--step--1); line-height: 1.5; }
@media (max-width: 640px) { .promises { grid-template-columns: 1fr; } .promise { grid-template-columns: auto 1fr; align-items: center; gap: 14px; } }

/* device frames */
.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, var(--ink)); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-inline-start: 12px; flex: 1; max-width: 340px; font: 500 12px/1 var(--f-body); color: var(--muted); background: var(--paper); border-radius: 999px; padding: 6px 12px; direction: ltr; text-align: center; }
.browser img, .browser video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #eef1f7; }
.phone {
  border-radius: 34px; padding: 9px; background: var(--bezel); box-shadow: var(--shadow-lg);
  position: relative; aspect-ratio: 540 / 1168;
}
.phone::before { content: ""; position: absolute; top: 15px; left: 50%; translate: -50% 0; width: 26%; height: 14px; border-radius: 999px; background: var(--bezel); z-index: 2; opacity: .92; }
.phone img, .phone video { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 26px; background: #eef1f7; }

.hero-visual { position: relative; margin-inline: auto; max-width: 1040px; padding-block-end: 4%; }
.hero-visual .browser { position: relative; z-index: 2; }
.float { position: absolute; z-index: 3; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1), opacity .8s; }
.float-a { width: 19%; inset-inline-start: -6%; bottom: -2%; }
.float-b { width: 17%; inset-inline-end: -5%; top: 12%; }
.float-c { width: 34%; inset-inline-end: 12%; bottom: -9%; rotate: -3deg; }
.float-c img { border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.js .hero-visual:not(.in) .float-a { transform: translate(28%, -8%) scale(.92); opacity: 0; }
.js .hero-visual:not(.in) .float-b { transform: translate(-30%, 6%) scale(.92); opacity: 0; }
.js .hero-visual:not(.in) .float-c { transform: translate(-6%, -22%) scale(.94); opacity: 0; }
[dir="rtl"].js .hero-visual:not(.in) .float-a, .js [dir="rtl"] .hero-visual:not(.in) .float-a { transform: translate(-28%, -8%) scale(.92); }
.hero-visual.in .float-b { transition-delay: .12s; }
.hero-visual.in .float-c { transition-delay: .24s; }
@media (max-width: 760px) {
  .hero-visual { padding-block-end: 22%; }
  .float-a { width: 30%; inset-inline-start: -2%; bottom: 0; }
  .float-b { display: none; }
  .float-c { width: 56%; inset-inline-end: -2%; bottom: 2%; }
}

/* features grid */
.features { background: var(--surface); border-block: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tile { background: var(--surface); padding: 24px 22px; display: grid; align-content: start; gap: 12px; min-height: 172px; position: relative; outline-offset: -3px; }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.tile .ic svg { width: 24px; height: 24px; }
.tile h3 { font-size: 17px; }
.tile p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.tile .new { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; font: 600 11px/1 var(--f-body); color: var(--ink); background: color-mix(in srgb, var(--mark) 70%, transparent); padding: 5px 8px; border-radius: 999px; letter-spacing: .04em; }
@media (hover: hover) and (pointer: fine) {
  .tile p { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; }
  .tile:hover p, .tile:focus-within p, .tile:focus p { opacity: 1; transform: none; }
  .tile { transition: background-color .25s; }
  .tile:hover, .tile:focus { background: color-mix(in srgb, var(--brand-tint) 55%, var(--surface)); }
  .tile .ic { transition: background-color .25s, color .25s; }
  .tile:hover .ic, .tile:focus .ic { background: var(--brand); color: #fff; }
}
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile { min-height: 0; padding: 18px 16px; } }
@media (max-width: 400px) { .tile h3 { font-size: 16px; } .tile p { font-size: 14px; } }
.sec-cta { margin-block-start: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.sec-cta .note { color: var(--muted); font-size: var(--step--1); }

/* list + screen (sections 3 and 5) */
.showcase { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.showcase.mirror { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.showcase.mirror .screen { order: -1; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: p; }
.point button {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; width: 100%;
  padding: 16px 18px; border-radius: 12px; cursor: pointer; border: 1px solid transparent; transition: background-color .2s, border-color .2s;
}
.point button:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }
.point .dot { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); margin-top: 2px; }
.point .dot svg { width: 18px; height: 18px; }
.point .t { font: 600 17px/1.4 var(--f-display); color: var(--ink); }
.point .d { color: var(--muted); font-size: 15px; line-height: 1.6; }
.point .fix { display: none; color: var(--ink); font-size: 14px; margin-top: 6px; }
.point .fix b { color: var(--brand); font-weight: 600; }
.point .bar { grid-column: 2; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 10px; display: none; }
.point .bar i { display: block; height: 100%; width: 0; background: var(--brand); }
.point.on button { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.point.on .dot { background: var(--brand); color: #fff; }
.point.on .fix, .point.on .bar { display: block; }
.point:not(.on) button:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.screen { position: relative; }
.screen .browser video, .screen .browser img { aspect-ratio: 16 / 10; }
.screen .phone { width: min(340px, 78%); margin-inline: auto; }
.screen .tagline { margin-block-start: 14px; text-align: center; color: var(--muted); font-size: var(--step--1); }
.play-toggle {
  position: absolute; inset-block-end: 12px; inset-inline-end: 12px; z-index: 4; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--ink); display: grid; place-items: center; cursor: pointer;
}
.play-toggle svg { width: 16px; height: 16px; }
.screen .phone .play-toggle { inset-block-end: 22px; inset-inline-end: 22px; }
.points-note { margin-block-start: 16px; padding: 14px 18px; border-radius: 12px; background: var(--brand-tint); color: var(--ink); font-size: 15px; display: flex; gap: 12px; align-items: flex-start; }
.points-note svg { width: 22px; height: 22px; flex: none; color: var(--brand); margin-top: 2px; }
@media (max-width: 900px) {
  .showcase, .showcase.mirror { grid-template-columns: 1fr; }
  .showcase .screen, .showcase.mirror .screen { order: -1; }
  .point .d { font-size: 14px; }
}

/* stacking flows (section 4) */
.flows { background: linear-gradient(to bottom, var(--paper), var(--brand-tint)); }
.stack { display: grid; gap: 28px; }
.flow:nth-child(1) { --i: 0; } .flow:nth-child(2) { --i: 1; } .flow:nth-child(3) { --i: 2; } .flow:nth-child(4) { --i: 3; } .flow:nth-child(5) { --i: 4; }
.flow {
  position: sticky; top: calc(var(--header-h) + 20px + var(--i) * 16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(20px, 3vw, 44px); align-items: center;
  padding: clamp(22px, 3vw, 40px); transform-origin: top center;
}
.flow .tag { font: 600 var(--step--1)/1 var(--f-num); color: var(--brand); }
.flow h3 { font-size: var(--step-2); margin-block: 10px 18px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 15px; line-height: 1.55; }
.steps li::before { content: attr(data-n); font: 600 12px/26px var(--f-num); width: 26px; height: 26px; text-align: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.steps li:last-child::before { background: var(--ok); color: #fff; }
.flow figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #eef1f7; }
.flow figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.roles { margin-block-start: 28px; display: flex; gap: 14px; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.roles svg { width: 22px; height: 22px; color: var(--brand); flex: none; }
.roles b { color: var(--ink); }
@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; top: calc(var(--header-h) + 12px + var(--i) * 10px); padding: 20px; border-radius: 18px; }
  .flow h3 { margin-block: 6px 12px; }
  .flow figure img { aspect-ratio: 16 / 9; }
  .steps li { font-size: 14px; }
}

/* results story (section 6) — dark in both themes */
.story { background: var(--band); color: var(--band-ink); position: relative; overflow: hidden; }
.story::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, rgb(255 255 255 / 5%) 31px 32px);
}
.story .wrap { position: relative; }
.story h2, .story h3 { color: var(--band-ink); }
.story .eyebrow { color: var(--mark); }
.story .sec-head p { color: var(--band-muted); }
.story-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgb(255 255 255 / 10%); border-radius: 16px; overflow: hidden; }
.stat { background: var(--band); padding: 22px 18px; display: grid; gap: 8px; align-content: start; }
.stat .big { font: 700 clamp(30px, 1.6rem + 2vw, 52px)/1 var(--f-display); color: #fff; }
.stat .big.y { color: var(--mark); }
.stat b { font-weight: 600; font-size: 15px; }
.stat .d { color: var(--band-muted); font-size: 14px; line-height: 1.5; }
.clock { margin-block: 26px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--band-muted); }
.clock .t { font: 600 18px/1 var(--f-num); color: #fff; background: rgb(255 255 255 / 8%); border: 1px solid rgb(255 255 255 / 14%); padding: 8px 12px; border-radius: 10px; }
.clock .line { flex: 1 1 60px; height: 2px; min-width: 40px; background: linear-gradient(to right, rgb(255 255 255 / 25%), var(--mark)); border-radius: 2px; }
[dir="rtl"] .clock .line { background: linear-gradient(to left, rgb(255 255 255 / 25%), var(--mark)); }
.clock .day { flex-basis: 100%; }
.story .steps li { color: var(--band-ink); }
.story .steps li::before { background: rgb(255 255 255 / 10%); color: #fff; }
.story .steps li:last-child::before { background: var(--mark); color: #0b1630; }
.docs { position: relative; padding-block: 2% 30%; padding-inline: 6% 0; }
.docs img { border-radius: 10px; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 70%); }
.docs .doc-card { width: 50%; rotate: 3deg; margin-inline-start: auto; margin-inline-end: 8%; }
.docs .doc-success { position: absolute; width: 74%; inset-inline-start: 0; bottom: 2%; rotate: -2deg; }
.story .sec-cta .btn-ghost { color: var(--band-ink); border-color: rgb(255 255 255 / 25%); }
.story .sec-cta .btn-ghost:hover { border-color: var(--mark); color: var(--mark); }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .docs { max-width: 560px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { grid-template-columns: auto 1fr; align-items: center; gap: 4px 16px; }
  .stat .big { grid-row: span 2; min-width: 3.4em; }
}

/* demo form (section 7) */
.demo-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.demo-copy { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 32px); }
.demo-copy p { color: var(--muted); font-size: var(--step-1); }
.demo-copy ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.demo-copy li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.demo-copy li svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 3px; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(20px, 3vw, 36px); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 14px; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); font: 400 16px/1.3 var(--f-body);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); background: var(--surface); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #d43c3c; }
.field .err { color: #d43c3c; font-size: 13px; min-height: 0; }
.field input[type="tel"] { direction: ltr; text-align: start; }
[dir="rtl"] .field input[type="tel"] { text-align: right; }
.consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 4px; }
.form-foot .msg { font-size: 14px; color: #d43c3c; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.thanks { display: grid; gap: 14px; justify-items: start; padding: 12px 0; }
.thanks .ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.thanks .ok svg { width: 28px; height: 28px; }
.thanks h3 { font-size: var(--step-2); }
.thanks p { color: var(--muted); }
@media (max-width: 900px) { .demo-grid { grid-template-columns: 1fr; } .demo-copy { position: static; } }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } .form-foot .btn { width: 100%; } }

/* FAQ */
.faq { background: var(--surface); border-block-start: 1px solid var(--line); }
.faq-list { max-width: 860px; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 20px; font: 600 var(--step-0)/1.45 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); transition: rotate .25s; }
.faq summary .pm svg { width: 14px; height: 14px; }
.faq details[open] summary .pm { rotate: 45deg; }
.faq details p { padding: 0 20px 20px; color: var(--muted); max-width: 70ch; }

/* footer */
.site-foot { background: var(--band); color: var(--band-muted); padding-block: 56px 32px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-foot .logo { color: #fff; }
.site-foot .logo .mark { color: #fff; }
.site-foot h4 { margin: 0 0 12px; font: 600 14px/1.3 var(--f-body); color: #fff; letter-spacing: .04em; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-foot a { color: var(--band-muted); text-decoration: none; }
.site-foot a:hover { color: #fff; }
.foot-about p { margin-block-start: 14px; max-width: 36ch; }
.foot-base { margin-block-start: 40px; padding-block-start: 20px; border-top: 1px solid rgb(255 255 255 / 10%); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }

/* thank-you page */
.ty { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.ty .thanks { justify-items: center; max-width: 520px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .hero-visual:not(.in) .float { transform: none !important; opacity: 1 !important; }
  .flow { position: relative; top: auto; }
}
