/* Business Blueprint landing. Tokens mirror the product (apps/web/src/styles.css). */
:root {
  --bg: #FAFAFA;
  --bg-tint: #F2F3F5;
  --surface: #FFFFFF;
  --text: #121214;
  --muted: #55585F;
  --line: #E3E4E8;
  --accent: #3B6FE0;
  --accent-ink: #2C5BC4;   /* accent used as text on light bg (AA) */
  --on-accent: #FFFFFF;
  --dot: rgba(18, 18, 20, .10);
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px -12px rgba(20, 30, 60, .18);
  --ok: #1D7A46;
  --err: #B42318;
  --before: #8A4B12;
  --radius: 14px;
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, "Segoe UI", Tahoma, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C0C0D; --bg-tint: #121214; --surface: #161618; --text: #EDEDED; --muted: #A2A5AD;
    --line: #26272B; --accent: #7EA6FF; --accent-ink: #9DBBFF; --on-accent: #0B0B0C;
    --dot: rgba(237, 237, 237, .09); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 60px -20px rgba(0,0,0,.8);
    --ok: #5BD08F; --err: #FF8A80; --before: #F0B37E; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0C0C0D; --bg-tint: #121214; --surface: #161618; --text: #EDEDED; --muted: #A2A5AD;
  --line: #26272B; --accent: #7EA6FF; --accent-ink: #9DBBFF; --on-accent: #0B0B0C;
  --dot: rgba(237, 237, 237, .09); --shadow: 0 1px 2px rgba(0,0,0,.4), 0 20px 60px -20px rgba(0,0,0,.8);
  --ok: #5BD08F; --err: #FF8A80; --before: #F0B37E; color-scheme: dark;
}
:root[lang="en"] { --font: "Inter", "IBM Plex Sans Arabic", system-ui, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.8; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
:root[lang="en"] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
.lead, .sec p { text-wrap: pretty; }
:root[lang="ar"] h1, :root[lang="ar"] h2, :root[lang="ar"] h3 { letter-spacing: 0; line-height: 1.45; }
p { margin: 0; }
a { color: var(--accent-ink); }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.wrap-wide { max-width: 1280px; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-block-end: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-family: "Inter", var(--font); white-space: nowrap; min-height: 44px; }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.nav { display: none; gap: 4px; margin-inline-start: 16px; }
.nav a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--bg-tint); }
.top-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; flex: none; }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; } :root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: block; } :root:not([data-theme="light"]) .i-moon { display: none; } }
.lang-btn { display: inline-flex; align-items: center; height: 44px; padding-inline: 12px; border-radius: 10px; border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .95rem; background: var(--surface); white-space: nowrap; }
.lang-btn:hover, .icon-btn:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.top-cta[hidden] { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent); font: inherit; font-weight: 600; font-size: 1rem; cursor: pointer; text-decoration: none; white-space: nowrap; transition: filter .15s, transform .15s; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: .9rem; border-radius: 10px; }

/* Hero */
.hero { position: relative; padding-block: 48px 32px; text-align: center; isolation: isolate; }
.hero::before { /* canvas dot grid, like the product */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 95%); mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 95%);
}
.hero-copy { max-width: 840px; }
.eyebrow { display: inline-block; font-size: .875rem; font-weight: 600; line-height: 1.5; color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 12%, transparent); padding: 5px 14px; border-radius: 999px; margin-block-end: 18px; }
h1 { font-size: clamp(2.1rem, 1.2rem + 4.2vw, 4rem); font-weight: 700; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); margin-block: 18px 28px; max-width: 700px; margin-inline: auto; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: .92rem; color: var(--muted); }
.chips li { display: inline-flex; align-items: center; gap: 6px; }
.chips svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Waitlist form */
.waitlist { max-width: 560px; margin-inline: auto; }
.field-row { display: flex; flex-direction: column; gap: 10px; }
.field-row input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 1rem; }
.field-row input::placeholder { color: var(--muted); opacity: 1; }
.field-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field-row input[aria-invalid="true"] { border-color: var(--err); }
/* Email is LTR in both languages; in Arabic keep it visually at the start (right) of the field. */
:root[lang="ar"] .field-row input[type="email"] { text-align: right; }
.form-msg { font-size: .95rem; margin-block-start: 10px; }
.form-msg:empty { display: none; }
.form-msg:focus { outline: none; }
.form-msg.is-err { color: var(--err); }
.form-msg.is-ok { color: var(--ok); font-weight: 600; font-size: 1.05rem; }
.micro { font-size: .875rem; color: var(--muted); margin-block-start: 12px; }
.waitlist.done .field-row, .waitlist.done .micro { display: none; }
.thanks { margin-block-start: 16px; text-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 18px; }
.thanks[hidden] { display: none; }
.share-label, .role legend { font-weight: 600; font-size: .95rem; color: var(--text) !important; margin-block-end: 10px; padding: 0; }
.share-row, .role-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn, .role-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; font-size: .95rem; cursor: pointer; }
.share-btn:hover, .role-chip:hover { border-color: var(--accent); }
.share-wa { border-color: color-mix(in srgb, #25D366 60%, var(--line)); }
.role { border: 0; margin: 0; padding: 0; }
.role-chip[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.role-chip:disabled { cursor: default; }
.role-chip:disabled:not([aria-pressed="true"]) { opacity: .55; }
.role-msg { font-size: .9rem; color: var(--muted); margin-block-start: 8px; }
.role-msg:empty { display: none; }

/* Screenshots */
.shot { position: relative; display: block; width: 100%; margin: 0; padding: 0; border: 0; overflow: hidden; background-color: var(--bg-tint); background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 18px 18px; }
.shot-desk { aspect-ratio: 16 / 10; }
.shot-claude { aspect-ratio: 1800 / 667; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.shot-hero { aspect-ratio: 16 / 10; }
/* Phones: the hero is a portrait phone capture (show its top part); the wide Claude result shows its first stages. */
@media (max-width: 639px) {
  .shot-hero { aspect-ratio: 4 / 5; }
  .shot-hero img { object-position: 50% 30%; }
  .shot-claude { aspect-ratio: 4 / 3; }
  .shot-claude img { object-position: left center; }
  .pin { width: 24px; height: 24px; font-size: .78rem; }
  /* Shorter page on phones: the sticky CTA replaces the mid-page buttons. */
  .sec { padding-block: 48px; }
  .mid-cta, .zoom-hint { display: none; }
  .spot { margin-block-end: 44px; }
  .grid-feat li { padding: 16px 18px; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
  .grid-feat li svg { grid-row: span 2; margin: 2px 0 0; width: 24px; height: 24px; }
  .grid-feat li h3 { margin-block-end: 2px; }
  .cmp th, .cmp td { padding-block: 8px; }
  .cmp tbody th { padding-block: 12px 10px; }
}
.shot-framed { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
button.zoomable { cursor: zoom-in; }
button.zoomable:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.browser { margin: 40px 0 0; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding-inline: 14px; border-block-end: 1px solid var(--line); direction: ltr; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-url { flex: 0 1 320px; height: 20px; margin-inline: auto; border-radius: 6px; background: var(--bg-tint); }

/* Numbered callouts on screenshots. The UI in the captures is LTR, so pins use physical left/top. */
.annot { position: relative; margin: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #FFB020; color: #1A1200; font: 700 .9rem/1 "Inter", var(--font); box-shadow: 0 0 0 3px rgba(0,0,0,.55), 0 4px 14px rgba(0,0,0,.4); pointer-events: none; }
.legend { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: pin; display: grid; gap: 10px; }
.legend li { counter-increment: pin; display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: .98rem; }
.legend li::before { content: counter(pin); flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-block-start: 2px; border-radius: 50%; background: #FFB020; color: #1A1200; font: 700 .8rem/1 "Inter", var(--font); }

/* Sections */
.sec { padding-block: 64px; }
.sec-tint { background: var(--bg-tint); border-block: 1px solid var(--line); }
.sec h2 { font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); font-weight: 700; max-width: 800px; margin-block-end: 14px; }
.sec h2 + .ba, .sec h2 + .steps, .sec h2 + .tabs, .sec h2 + details { margin-block-start: 32px; }
.sec-sub { max-width: 760px; font-size: 1.08rem; margin-block-end: 32px; }
.sec h3 { font-size: 1.125rem; font-weight: 600; margin-block-end: 6px; }
.sec p { color: var(--muted); }
.mid-cta { margin-block-start: 36px; }

/* Demo tabs */
.tablist { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 14px; background: var(--bg-tint); border: 1px solid var(--line); margin-block-end: 18px; }
.sec-tint .tablist { background: var(--surface); }
[role="tab"] { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-weight: 600; font-size: .98rem; cursor: pointer; }
[role="tab"]:hover { color: var(--text); }
[role="tab"][aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.sec-tint [role="tab"][aria-selected="true"] { background: var(--accent); color: var(--on-accent); box-shadow: none; }
.tab-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-ink); font: 700 .78rem/1 "Inter", var(--font); }
[aria-selected="true"] .tab-n { background: var(--accent); color: var(--on-accent); }
.demo-panel[hidden] { display: none; }
.demo-panel:not([hidden]) { animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.demo-cap { margin-block-start: 14px; font-size: 1.02rem; color: var(--text) !important; }

/* Before / after */
.ba { display: grid; gap: 12px; }
.ba-head { display: none; }
.ba-row { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.ba-row p { padding: 18px 20px; }
.ba-before { color: var(--muted) !important; }
.ba-after { color: var(--text) !important; background: color-mix(in srgb, var(--accent) 7%, var(--surface)); border-block-start: 1px solid var(--line); }
.ba-tag { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .02em; margin-block-end: 4px; }
.ba-before .ba-tag { color: var(--before); }
.ba-after .ba-tag { color: var(--accent-ink); }

/* Claude */
.claude-flow { display: grid; gap: 14px; justify-items: center; }
.bubble { width: 100%; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; border-start-start-radius: 6px; padding: 18px 20px; box-shadow: var(--shadow); }
.bubble-label, .result-label { font-size: .8rem; font-weight: 700; color: var(--accent-ink) !important; margin-block-end: 6px; }
.bubble-text { color: var(--text) !important; font-size: 1.08rem; }
.flow-arrow { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.claude-result { width: 100%; margin: 0; }
.result-label { display: block; text-align: center; margin-block-end: 10px; }
.claude-how { margin-block-start: 22px; max-width: 760px; }

/* Features */
.zoom-hint { font-size: .95rem; margin-block-end: 36px; }
.spot { display: grid; gap: 24px; align-items: center; margin-block-end: 56px; }
.spot-text h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 700; margin-block-end: 12px; }
.spot-text p { font-size: 1.05rem; }
.note { font-size: .9rem !important; margin-block-start: 10px; }
.grid-feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.grid-feat li { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.grid-feat svg { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-block-end: 12px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 24px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-n { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-family: "Inter", var(--font); }
.ea-note { margin-block-start: 32px; max-width: 760px; padding: 16px 18px; border-inline-start: 3px solid var(--accent); background: var(--surface); border-radius: 0 10px 10px 0; color: var(--text) !important; }
:root[dir="rtl"] .ea-note { border-radius: 10px 0 0 10px; }

/* Who tabs */
.who-panel { max-width: 760px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.who-panel[hidden] { display: none; }
.who-panel h3 { font-size: 1.3rem; margin-block-end: 10px; }

/* Comparison */
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cmp { width: 100%; border-collapse: collapse; font-size: .97rem; }
.cmp th, .cmp td { padding: 14px 16px; text-align: start; vertical-align: top; border-block-end: 1px solid var(--line); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-block-end: 0; }
.cmp thead th { font-size: .85rem; color: var(--muted); font-weight: 600; background: var(--bg-tint); }
.cmp tbody th { font-weight: 600; color: var(--text); }
.cmp td { color: var(--muted); }
.cmp .is-bb { color: var(--text); font-weight: 600; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.cmp thead .is-bb { color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.cmp td svg { width: 16px; height: 16px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -2px; margin-inline-end: 6px; }
@media (max-width: 759px) {
  /* Each row becomes a card: the need, then Business Blueprint, then the three alternatives. */
  .cmp-wrap { border: 0; background: none; border-radius: 0; overflow: visible; }
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; }
  .cmp tr { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-block-end: 12px; overflow: hidden; }
  .cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-block-end: 1px solid var(--line); }
  .cmp tr > :last-child { border-block-end: 0 !important; }
  .cmp td { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; }
  .cmp td::before { content: attr(data-label); color: var(--muted); font-weight: 400; flex: none; max-width: 45%; }
  .cmp td.is-bb::before { color: var(--accent-ink); font-weight: 600; }
  .cmp td { text-align: end; }
  /* The three alternatives sit side by side under the Business Blueprint line. */
  .cmp tr { display: grid; grid-template-columns: repeat(3, 1fr); }
  .cmp tbody th, .cmp td.is-bb { grid-column: 1 / -1; }
  .cmp td svg { display: none; }
  .cmp td:not(.is-bb) { display: block; text-align: start; font-size: .85rem; line-height: 1.5; padding: 8px 10px; border-block-end: 0 !important; }
  .cmp td:not(.is-bb) + td:not(.is-bb) { border-inline-start: 1px solid var(--line); }
  .cmp td:not(.is-bb)::before { display: block; max-width: none; font-size: .75rem; margin-block-end: 2px; }
}

/* FAQ */
.faq > * { max-width: 820px; }
.faq details { border-block-end: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding-block: 18px; padding-inline-end: 32px; font-weight: 600; font-size: 1.075rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { /* physical borders on purpose: a down chevron must not mirror in RTL */ content: ""; position: absolute; inset-inline-end: 6px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding-block-end: 18px; }

/* Final CTA */
.final { position: relative; isolation: isolate; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(var(--dot) 1.2px, transparent 1.3px); background-size: 22px 22px; }
.final-in { display: grid; gap: 40px; align-items: center; }
.final-text > p { margin-block-end: 24px; }
.final .waitlist { margin-inline: 0; }
.phone { display: none; margin: 0 auto; width: 280px; border-radius: 36px; padding: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.phone img { border-radius: 27px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; background: var(--bg-tint); }

.foot { border-block-start: 1px solid var(--line); padding-block: 28px; }
.foot-in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.foot p { color: var(--muted); font-size: .9rem; }
.foot-links { display: flex; gap: 16px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Sticky CTA (phones only) */
.sticky-cta { position: fixed; inset-inline: 0; bottom: 0; z-index: 60; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-block-start: 1px solid var(--line); }
.sticky-cta .btn { width: 100%; }
.sticky-cta[hidden] { display: none; }
body.has-sticky .foot { padding-block-end: 96px; }

/* Lightbox */
.lightbox { width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); overflow: auto; }
.lightbox::backdrop { background: rgba(0,0,0,.78); }
.lightbox img { width: 100%; height: auto; cursor: zoom-out; }
.lightbox[open] { display: block; }
.lb-close { position: fixed; top: max(12px, 3vh); inset-inline-end: max(12px, 2vw); z-index: 2; box-shadow: var(--shadow); }
/* Phones: show the screenshot larger and let the visitor pan it sideways. */
@media (max-width: 639px) { .lightbox img { width: 960px; max-width: none; } }

/* < 480: keep the three demo tabs on one row (the third used to wrap alone onto a second line) */
@media (max-width: 479px) {
  .demo .tablist { display: flex; flex-wrap: nowrap; width: 100%; }
  .demo [role="tab"] { flex: 1 1 auto; justify-content: center; padding: 0 8px; gap: 5px; font-size: .92rem; }
  .demo .tab-n { width: 18px; height: 18px; font-size: .7rem; }
}
/* < 420: keep the header to mark + toggles + CTA */
@media (max-width: 419px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wrap { padding-inline: 16px; }
  .top-in { gap: 8px; }
  .lang-btn { padding-inline: 10px; }
}
/* >= 640 */
@media (min-width: 640px) {
  .field-row { flex-direction: row; }
  .grid-feat { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: none !important; }
  body.has-sticky .foot { padding-block-end: 28px; }
}
/* >= 900 */
@media (min-width: 900px) {
  .nav { display: flex; }
  .hero { padding-block: 80px 48px; }
  .sec { padding-block: 96px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .steps li { flex-direction: column; }
  .spot { grid-template-columns: 4fr 7fr; gap: 48px; margin-block-end: 88px; }
  .spot-rev { grid-template-columns: 7fr 4fr; }
  .spot-rev .spot-text { order: 2; }
  .grid-feat { grid-template-columns: repeat(4, 1fr); }
  .ba-head { display: grid; grid-template-columns: 1fr 1fr; gap: 0; font-weight: 700; font-size: .9rem; padding-inline: 21px; }
  .ba-head span:first-child { color: var(--before); }
  .ba-head span:last-child { color: var(--accent-ink); padding-inline-start: 20px; }
  .ba-row { grid-template-columns: 1fr 1fr; }
  .ba-after { border-block-start: 0; border-inline-start: 1px solid var(--line); }
  .ba-tag { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .final-in { grid-template-columns: 1fr auto; gap: 64px; }
  .phone { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* About (who is behind it) and privacy page prose */
.about { max-width: 720px; }
.about h2, .prose h2 { margin-block: 0 12px; }
.about-name { font-size: 1.125rem; margin-block: 0 8px; }
.about-contact { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.about-contact li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.about-contact span { color: var(--muted); min-width: 7.5em; }
.about-contact a { color: var(--accent-ink, var(--text)); font-weight: 600; text-underline-offset: 3px; }
.prose { max-width: 720px; }
.prose h1 { margin-block: 0 6px; }
.prose h2 { font-size: 1.125rem; margin-block: 28px 8px; }
.prose p { color: var(--text); line-height: 1.75; margin-block: 0 12px; }
.prose-date { color: var(--muted); font-size: .9rem; }