/* Hamla marketing site. Tokens mirror app/src/index.css and DESIGN.md:
   warm paper, ink, one vermilion for the next move, tones for meaning,
   hairlines, 18px cards, shadows only on floating things. Logical properties only. */

:root {
  --bg: #f7f6f3;
  --card: #ffffff;
  --muted: #f2f0ec;
  --surface-2: #eeebe6;
  --panel-2: #fbfaf8;
  --fg: #111111;
  --ink-2: #4a4843;
  --ink-3: #5e5b55;
  --line: #e6e3dd;
  --line-strong: #cfcac1;
  --input: #d9d5ce;
  --primary: #d2361f;
  --primary-ink: #b8301b;
  --on-primary: #ffffff;
  --inverse: #111111;
  --inverse-fg: #f7f6f3;
  --inverse-muted: #c9c6c0;
  --inverse-card: #1c1c1c;
  --inverse-line: #2e2e2e;
  --inverse-accent: #f4a08f;
  --dot: rgba(17, 17, 17, 0.09);
  --tone-good: #d3f0dc;   --tone-good-ink: #14532d;
  --tone-warn: #f4f1b8;   --tone-warn-ink: #5b4a00;
  --tone-info: #dce8ff;   --tone-info-ink: #1e3a8a;
  --tone-violet: #e6deff; --tone-violet-ink: #4c1d95;
  --tone-rose: #ffdce3;   --tone-rose-ink: #9f1239;
  --tone-bad: #ffe1db;    --tone-bad-ink: #9a2412;
  --tone-neutral: #f2f0ec; --tone-neutral-ink: #4a4843;
  --shadow-float: 0 12px 32px -12px rgb(17 17 17 / 0.22), 0 2px 6px -2px rgb(17 17 17 / 0.08);
  --shadow-lift: 0 30px 60px -36px rgb(17 17 17 / 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --sans: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-card: 18px;
  --r-panel: 24px;
  --wrap: 1240px;
  --gutter: 32px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f0f0e; --card: #181816; --muted: #23221f; --surface-2: #201f1c; --panel-2: #1b1b19;
    --fg: #f2f0ec; --ink-2: #c9c6c0; --ink-3: #a8a49d; --line: #2a2926; --line-strong: #3d3b37; --input: #3a3935;
    --primary: #e5533f; --primary-ink: #f06a55; --on-primary: #ffffff;
    --inverse: #ece9e3; --inverse-fg: #111111; --inverse-muted: #4a4843; --inverse-card: #e0dcd4; --inverse-line: #cfcac1; --inverse-accent: #b8301b;
    --dot: rgba(242, 240, 236, 0.07);
    --tone-good: #13301f;   --tone-good-ink: #8ddca8;
    --tone-warn: #35300c;   --tone-warn-ink: #eedc76;
    --tone-info: #172446;   --tone-info-ink: #aec6ff;
    --tone-violet: #281c48; --tone-violet-ink: #cfbcff;
    --tone-rose: #3b1320;   --tone-rose-ink: #ffa8bd;
    --tone-bad: #3f1610;    --tone-bad-ink: #ffa08f;
    --tone-neutral: #262522; --tone-neutral-ink: #c9c6c0;
    --shadow-float: 0 12px 32px -12px rgb(0 0 0 / 0.6), 0 2px 6px -2px rgb(0 0 0 / 0.4);
    --shadow-lift: 0 30px 60px -30px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f0f0e; --card: #181816; --muted: #23221f; --surface-2: #201f1c; --panel-2: #1b1b19;
  --fg: #f2f0ec; --ink-2: #c9c6c0; --ink-3: #a8a49d; --line: #2a2926; --line-strong: #3d3b37; --input: #3a3935;
  --primary: #e5533f; --primary-ink: #f06a55; --on-primary: #ffffff;
  --inverse: #ece9e3; --inverse-fg: #111111; --inverse-muted: #4a4843; --inverse-card: #e0dcd4; --inverse-line: #cfcac1; --inverse-accent: #b8301b;
  --dot: rgba(242, 240, 236, 0.07);
  --tone-good: #13301f;   --tone-good-ink: #8ddca8;
  --tone-warn: #35300c;   --tone-warn-ink: #eedc76;
  --tone-info: #172446;   --tone-info-ink: #aec6ff;
  --tone-violet: #281c48; --tone-violet-ink: #cfbcff;
  --tone-rose: #3b1320;   --tone-rose-ink: #ffa8bd;
  --tone-bad: #3f1610;    --tone-bad-ink: #ffa08f;
  --tone-neutral: #262522; --tone-neutral-ink: #c9c6c0;
  --shadow-float: 0 12px 32px -12px rgb(0 0 0 / 0.6), 0 2px 6px -2px rgb(0 0 0 / 0.4);
  --shadow-lift: 0 30px 60px -30px rgb(0 0 0 / 0.7);
  color-scheme: dark;
}

[hidden] { display: none !important; }
/* Ad pictures keep their own colours in both themes (they are pictures, not UI). */
.ap-good { background: #d3f0dc; color: #111111; } .ap-violet { background: #e6deff; color: #111111; } .ap-info { background: #dce8ff; color: #111111; } .ap-warn { background: #f4f1b8; color: #111111; } .ap-rose { background: #ffdce3; color: #111111; }

/* ── Base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--sans); font-size: 17px; line-height: 1.7;
  overflow-x: clip; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--primary-ink); }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[lang="en"] .d, html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] .h1, html[lang="en"] .h2 { letter-spacing: -0.02em; }
.sr { position: absolute !important; 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: 16px; top: -60px; z-index: 50; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; color: var(--bg); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 0.9em; }
.ltr { direction: ltr; unicode-bidi: isolate; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.h1 { font-size: clamp(40px, 6vw, 80px); line-height: 1.15; }
.h2 { font-size: clamp(30px, 4vw, 54px); line-height: 1.2; }
.h3 { font-size: clamp(24px, 2.6vw, 36px); line-height: 1.28; }
.h4 { font-size: 22px; line-height: 1.4; font-weight: 700; }
.h5 { font-size: 18px; line-height: 1.45; font-weight: 700; }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 700px; }
.eyebrow { font-size: 15px; font-weight: 700; color: var(--primary-ink); }
.muted { color: var(--ink-3); }
.ink2 { color: var(--ink-2); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.accent { color: var(--primary); }
.center { text-align: center; margin-inline: auto; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.grow { flex: 1 1 auto; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.b {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none;
  border: 1px solid transparent; transition: transform 160ms var(--ease), background-color 160ms var(--ease), border-color 160ms var(--ease);
  white-space: nowrap;
}
.b:active { transform: scale(0.98); }
.b-ink { background: var(--fg); color: var(--bg); }
.b-ink:hover { color: var(--bg); background: color-mix(in srgb, var(--fg) 86%, var(--bg)); }
.b-line { background: var(--card); color: var(--fg); border-color: var(--input); }
.b-line:hover { color: var(--fg); border-color: var(--fg); }
.b-accent { background: var(--primary); color: var(--on-primary); font-weight: 700; }
.b-accent:hover { color: var(--on-primary); background: var(--primary-ink); }
.b-ghost { background: transparent; color: var(--fg); padding-inline: 12px; }
.b-lg { min-height: 52px; font-size: 17px; padding: 12px 26px; }
.b-sq { border-radius: 12px; }
.b-inv { background: var(--inverse-fg); color: var(--inverse); }
.b-inv:hover { color: var(--inverse); background: color-mix(in srgb, var(--inverse-fg) 88%, var(--inverse)); }
.b-inv-line { color: var(--inverse-fg); border-color: var(--inverse-muted); background: transparent; }
.b-inv-line:hover { color: var(--inverse-fg); border-color: var(--inverse-fg); }
.arrow { flex: none; }
[dir="rtl"] .arrow { transform: scaleX(-1); }

/* ── Pills and tones ─────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.t-good { background: var(--tone-good); color: var(--tone-good-ink); }
.t-warn { background: var(--tone-warn); color: var(--tone-warn-ink); }
.t-info { background: var(--tone-info); color: var(--tone-info-ink); }
.t-violet { background: var(--tone-violet); color: var(--tone-violet-ink); }
.t-rose { background: var(--tone-rose); color: var(--tone-rose-ink); }
.t-bad { background: var(--tone-bad); color: var(--tone-bad-ink); }
.t-neutral { background: var(--tone-neutral); color: var(--tone-neutral-ink); }
.t-ink { background: var(--fg); color: var(--bg); }
.t-accent { background: var(--primary); color: var(--on-primary); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; background: var(--muted); border-radius: 999px; padding: 6px 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ── Header ───────────────────────────────────────────────────────────── */
.hd { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fg); flex: none; }
.logo:hover { color: var(--fg); }
.logo b { font-family: var(--display); font-weight: 800; font-size: 23px; line-height: 1; }
.logo .beta { font-size: 12px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; line-height: 18px; }
.logo-sq { fill: var(--fg); }
.logo-dot { fill: var(--bg); }
.nav { display: flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav > a, .menu > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; }
.nav > a:hover, .menu > summary:hover { background: var(--muted); color: var(--fg); }
.nav [aria-current="page"] { color: var(--fg); font-weight: 700; }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary svg { transition: transform 160ms var(--ease); }
.menu[open] > summary svg { transform: rotate(180deg); }
.menu-panel { position: absolute; inset-inline-start: 0; top: calc(100% + 8px); min-width: 300px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-float); padding: 8px; display: grid; gap: 2px; z-index: 45; }
.menu-panel a { display: flex; flex-direction: column; gap: 0; padding: 10px 12px; border-radius: 10px; text-decoration: none; min-height: 44px; justify-content: center; }
.menu-panel a:hover { background: var(--muted); color: var(--fg); }
.menu-panel a b { font-weight: 700; font-size: 15px; }
.menu-panel a span { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.hd-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lang { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--input); border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; }
.lang:hover { border-color: var(--fg); color: var(--fg); }
.signin { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 15px; font-weight: 500; text-decoration: none; }
.burger { display: none; position: static; }
.burger > summary { list-style: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--input); border-radius: 12px; cursor: pointer; }
.burger > summary::-webkit-details-marker { display: none; }
.burger-panel { position: absolute; inset-inline: 0; top: 72px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-float); padding: 12px 16px 20px; max-height: calc(100dvh - 72px); overflow-y: auto; }
.burger-panel .grp { padding: 10px 0; border-bottom: 1px solid var(--line); }
.burger-panel .grp:last-child { border-bottom: 0; }
.burger-panel .grp-t { font-size: 13px; color: var(--ink-3); padding: 4px 4px; }
.burger-panel a { display: flex; align-items: center; min-height: 44px; padding: 0 4px; text-decoration: none; font-weight: 600; }
.burger-panel .row { padding-top: 12px; }
.burger-panel .row a { justify-content: center; }

@media (max-width: 1100px) {
  .nav, .hd-end .signin, .hd-end .lang, .hd-end .cta-top { display: none; }
  .burger { display: block; }
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.dots { background-image: radial-gradient(var(--dot) 1px, transparent 1px); background-size: 18px 18px; }
.hero { padding: 56px 0 72px; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; padding-inline-end: 16px; font-size: 14px; font-weight: 600; }
.hero h1 { max-width: 1180px; font-size: clamp(38px, 5.2vw, 72px); }
.hero .lead { margin-inline: auto; }
.page-hero { padding: 64px 0 56px; }
.page-hero .h1 { font-size: clamp(36px, 4.8vw, 66px); }
.page-hero .lead { margin-top: 18px; }
.page-hero .row { margin-top: 28px; }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { opacity: 0.6; }

/* Describe-your-brand box */
.brief { width: 100%; max-width: 780px; background: var(--card); border: 1px solid var(--input); border-radius: var(--r-panel); padding: 16px; display: flex; flex-direction: column; gap: 12px; text-align: start; box-shadow: var(--shadow-lift); }
.brief label { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.brief textarea { width: 100%; border: 0; resize: none; font-size: 19px; line-height: 1.7; background: transparent; padding: 0; min-height: 3.4em; }
.brief textarea:focus-visible { outline: none; }
.brief:focus-within { border-color: var(--fg); }
.brief .row { gap: 8px; }
.examples { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.chip { min-height: 44px; border-radius: 999px; padding: 0 16px; font-size: 14px; background: var(--card); color: var(--fg); border: 1px solid var(--input); display: inline-flex; align-items: center; gap: 8px; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.chip:hover { border-color: var(--fg); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip small { font-size: 13px; opacity: 0.75; }

.demo-steps { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; font-size: 14px; color: var(--ink-3); min-height: 24px; }
.demo-steps li { display: inline-flex; align-items: center; gap: 6px; }
.demo-steps li[data-state="done"] { color: var(--tone-good-ink); }
.demo-steps li[data-state="now"] { color: var(--fg); font-weight: 700; }
.demo-steps li[data-state="now"] .dot { background: var(--primary); }
.demo-note { font-size: 13px; color: var(--ink-3); }

.outs { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; text-align: start; max-width: 1060px; }
.out { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: flex; flex-direction: column; gap: 10px; transition: opacity 240ms var(--ease); }
.out[data-busy="true"] { opacity: 0.45; }
.out .pill { align-self: flex-start; font-size: 12px; }
.plan-row { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.plan-row > span:first-child { flex: 0 0 72px; color: var(--ink-3); }
.plan-row > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.meter { flex: 0 0 64px; height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; display: block; }
.meter > i { display: block; height: 100%; background: var(--fg); border-radius: 6px; transform-origin: var(--from, right) center; }
[dir="ltr"] .meter > i { --from: left; }
.sizes { display: flex; gap: 8px; align-items: flex-end; }
.mini { border-radius: 8px; padding: 6px; font-family: var(--display); font-weight: 800; font-size: 9px; line-height: 1.35; overflow: hidden; }
.copy-p { font-size: 14px; }
.checks { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.checks span { background: var(--muted); border-radius: 6px; padding: 2px 8px; display: inline-flex; gap: 4px; align-items: center; }

/* ── Frames ───────────────────────────────────────────────────────────── */
.bf { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lift); }
.bf-bar { display: flex; align-items: center; gap: 8px; height: 38px; padding-inline: 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); direction: ltr; }
.bf-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.bf-url { margin-inline: auto; font-size: 12px; color: var(--ink-3); background: var(--muted); border-radius: 999px; padding: 2px 14px; font-family: var(--mono); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf img { width: 100%; }
.shot-cap { font-size: 14px; color: var(--ink-3); margin-top: 12px; text-align: center; }
.phone { width: 300px; max-width: 100%; border-radius: 44px; border: 10px solid var(--fg); background: var(--card); overflow: hidden; box-shadow: var(--shadow-lift); position: relative; }
.phone::before { content: ""; position: absolute; top: 8px; inset-inline-start: 50%; transform: translateX(-50%); width: 84px; height: 22px; background: var(--fg); border-radius: 999px; z-index: 2; }
[dir="rtl"] .phone::before { transform: translateX(50%); }
.phone img { width: 100%; }
.phone-in { padding: 40px 16px 18px; min-height: 560px; display: flex; flex-direction: column; gap: 12px; }

/* ── Sections ─────────────────────────────────────────────────────────── */
.sec { padding: 96px 0; }
.sec-tight { padding: 64px 0; }
.sec-head { display: flex; flex-direction: column; gap: 16px; max-width: 860px; margin-bottom: 40px; }
.sec-head.center { align-items: center; text-align: center; }
.sec-head .lead { margin-inline: inherit; }
.bt { border-top: 1px solid var(--line); }
.band { background: var(--inverse); color: var(--inverse-fg); border-radius: 40px 40px 0 0; padding: 104px 0; }
.band .lead, .band .muted { color: var(--inverse-muted); }
.band .eyebrow { color: var(--inverse-accent); }
.band a:hover { color: var(--inverse-accent); }
.band-after { margin-top: -40px; border-radius: 40px 40px 0 0; background: var(--bg); position: relative; }
.band-card { background: var(--inverse-card); border: 1px solid var(--inverse-line); border-radius: var(--r-panel); padding: 28px; }
.band-end { border-radius: 40px 40px 0 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card-lg { border-radius: var(--r-panel); padding: 32px; }
.card-ink { background: var(--inverse); color: var(--inverse-fg); border-color: var(--inverse); }
.card-ink .muted, .card-ink .ink2 { color: var(--inverse-muted); }
.card-tone { border: 1px solid transparent; }
.card-dash { border-style: dashed; border-color: var(--line-strong); }
a.card { text-decoration: none; display: block; transition: transform 200ms var(--ease), border-color 200ms var(--ease); }
a.card:hover { transform: translateY(-1px); border-color: var(--line-strong); color: inherit; }
.card .stack { --gap: 10px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.grid { display: grid; gap: var(--gap, 16px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 56px; align-items: center; }
.split.even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split.wide-end { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr); }
.split.wide-start { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.split.rev > :first-child { order: 2; }
.ticks { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { flex: none; margin-top: 5px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: 15px; }
.more:hover { text-decoration: underline; }

/* Problem band */
.broken { background: var(--inverse-line); border-radius: 18px; height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; direction: ltr; }
.broken span { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: 14px; color: var(--inverse-muted); opacity: 0.7; }
.broken span + span { font-size: 20px; letter-spacing: 8px; opacity: 0.5; }
.exact { background: #d3f0dc; color: #111111; border-radius: 18px; height: 240px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; padding: 0 32px; }
.exact b { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.3; }

/* Dialect switcher */
.dialect { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--muted); border-radius: 14px; }
.seg button { min-height: 44px; border: 0; background: transparent; border-radius: 10px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--ink-3); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--card); color: var(--fg); box-shadow: 0 0 0 1px var(--line); }
.band .seg { background: var(--inverse-card); }
.band .seg button { color: var(--inverse-muted); }
.band .seg button[aria-pressed="true"] { background: var(--inverse-fg); color: var(--inverse); box-shadow: none; }
.adcard { background: var(--card); color: var(--fg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; max-width: 420px; width: 100%; }
.adcard-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.adcard-av { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; background: var(--tone-good); color: var(--tone-good-ink); flex: none; }
.adcard-top b { display: block; font-size: 14px; line-height: 1.3; }
.adcard-top small { font-size: 12px; color: var(--ink-3); }
.adcard-text { padding: 0 14px 12px; font-size: 15px; white-space: pre-line; min-height: 5.1em; }
.adcard-pic { color: #111111; padding: 22px; min-height: 210px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.adcard-pic b { font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1.35; }
.adcard-pic .pill { align-self: flex-start; background: #111111; color: #ffffff; }
.adcard-foot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--muted); }
.adcard-foot span { flex: 1 1 auto; min-width: 0; line-height: 1.35; }
.adcard-foot b { display: block; font-size: 14px; }
.adcard-foot small { font-size: 12px; color: var(--ink-3); }
.adcard-foot em { font-style: normal; flex: none; background: var(--surface-2); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.swap { transition: opacity 200ms var(--ease); }
.swap.out-fade { opacity: 0; }
.voice-notes { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.band .voice-notes svg { stroke: var(--tone-good); }
.voice-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }

/* Stacked phase cards */
.phases { display: flex; flex-direction: column; gap: 20px; }
.phase { position: sticky; top: calc(96px + var(--i, 0) * 16px); border-radius: 32px; padding: 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; border: 1px solid color-mix(in srgb, var(--fg) 6%, transparent); }
.phase .h3 { margin: 4px 0; }
.phase p { font-size: 18px; }
.phase .ph-tag { font-size: 14px; padding: 4px 14px; align-self: flex-start; }
.ph-good { background: var(--tone-good); } .ph-good .ph-tag { background: var(--tone-good-ink); color: var(--tone-good); }
.ph-info { background: var(--tone-info); } .ph-info .ph-tag { background: var(--tone-info-ink); color: var(--tone-info); }
.ph-warn { background: var(--tone-warn); } .ph-warn .ph-tag { background: var(--tone-warn-ink); color: var(--tone-warn); }
.ph-rose { background: var(--tone-rose); } .ph-rose .ph-tag { background: var(--tone-rose-ink); color: var(--tone-rose); }
.ph-violet { background: var(--tone-violet); } .ph-violet .ph-tag { background: var(--tone-violet-ink); color: var(--tone-violet); }
.inner { background: var(--card); border-radius: 16px; padding: 16px 18px; }
.truth { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.truth .pill { font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.hook { display: flex; align-items: center; gap: 12px; font-size: 16px; }
.hook > span:first-child { flex: 1 1 auto; min-width: 0; }
.hook .meter { flex-basis: 96px; height: 8px; }
.hook b { flex: 0 0 30px; text-align: end; }
.hook.cut > span:first-child { color: var(--ink-3); text-decoration: line-through; }
.hook.cut .meter > i { background: var(--primary); }
.hook.cut b { color: var(--primary-ink); }
.frames { display: flex; gap: 14px; align-items: flex-end; justify-content: center; flex-wrap: wrap; }
.frame { display: flex; flex-direction: column; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; }
.frame > div { border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.frame > div b { font-family: var(--display); font-weight: 800; font-size: 13px; line-height: 1.3; }
.frame > div i { flex: 1 1 auto; border-radius: 8px; }
.safe { position: absolute; top: 26px; bottom: 34px; inset-inline: 6px; border: 1.5px dashed color-mix(in srgb, var(--tone-warn-ink) 60%, transparent); border-radius: 8px; }
.rate { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rate button { min-height: 44px; border: 1px solid transparent; background: var(--card); border-radius: 12px; padding: 0 16px; font-size: 15px; font-weight: 600; }
.rate button.yes { background: var(--fg); color: var(--bg); }
.swipe { position: relative; width: 240px; height: 280px; margin-inline: auto; }
.swipe > div { position: absolute; inset: 0; border-radius: 20px; }
.swipe .under { background: color-mix(in srgb, var(--card) 55%, transparent); transform: rotate(-4deg); inset: 14px 14px 0; }
.swipe .top { background: var(--card); padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-float); }
.swipe .top b { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1.35; }
.swipe .top i { flex: 1 1 auto; background: var(--tone-rose); border-radius: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl caption { text-align: start; font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 12px 0 8px; }
.tbl th, .tbl td { text-align: start; padding: 12px 0; border-bottom: 1px solid var(--surface-2); vertical-align: middle; }
.tbl thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; padding: 8px 0; }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl-wide { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-panel); background: var(--card); }
.tbl-wide .tbl { min-width: 640px; font-size: 17px; }
.tbl-wide .tbl th, .tbl-wide .tbl td { padding: 18px 28px; border-bottom-color: var(--surface-2); }
.tbl-wide .tbl thead th { padding: 18px 28px; border-bottom: 1px solid var(--line); font-size: 14px; }
.tbl-wide .tbl tbody th { font-weight: 700; }
.note-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; background: var(--bg); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }

/* Real ads */
.ads-rail { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ad-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ad-fig img { border-radius: 14px; border: 1px solid var(--line); background: var(--muted); width: 100%; }
.ad-fig figcaption { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ad-fig figcaption .pill { font-size: 11px; padding: 1px 8px; }

/* Arena */
.arena { display: flex; flex-direction: column; gap: 18px; }
.arena-row { display: flex; align-items: center; gap: 12px; }
.arena-row > span { flex: 0 0 72px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.cells { flex: 1 1 auto; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.cells i { aspect-ratio: 4 / 5; border-radius: 6px; background: var(--line); }
.cells i.w { background: var(--fg); }
.cells i.top { background: var(--primary); }
.cells i.g { background: var(--tone-good); } .cells i.n { background: var(--tone-info); } .cells i.v { background: var(--tone-violet); } .cells i.y { background: var(--tone-warn); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-family: var(--display); font-weight: 700; font-size: 20px; display: flex; gap: 16px; align-items: center; justify-content: space-between; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 26px; color: var(--ink-3); flex: none; transition: transform 160ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--ink-2); }

/* CTA band + footer */
.cta-band { background: var(--inverse); color: var(--inverse-fg); padding: 104px 0 96px; border-radius: 40px 40px 0 0; margin-top: 24px; }
.cta-band .hero-in { gap: 22px; }
.cta-band .lead { color: var(--inverse-muted); margin-inline: auto; }
.cta-band .accent { color: var(--inverse-accent); }
.ft { background: var(--inverse); color: var(--inverse-muted); border-top: 1px solid var(--inverse-line); padding: 48px 0 104px; font-size: 15px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 32px; }
.ft b.t { color: var(--inverse-fg); font-weight: 700; display: block; margin-bottom: 8px; }
.ft a { color: var(--inverse-muted); text-decoration: none; display: flex; align-items: center; min-height: 32px; }
.ft a:hover { color: var(--inverse-fg); text-decoration: underline; }
.ft .logo { color: var(--inverse-fg); }
.ft .logo-sq { fill: var(--inverse-fg); }
.ft .logo-dot { fill: var(--inverse); }
.ft-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--inverse-line); font-size: 13px; }
.mbar { display: none; }

/* Forms */
.form { display: grid; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 13px; color: var(--ink-3); font-weight: 400; }
.input, .field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 48px; border: 1px solid var(--input); border-radius: 12px; background: var(--card); padding: 10px 14px; font-size: 16px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--primary); outline-offset: 1px; border-color: var(--fg); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks-row { display: flex; flex-wrap: wrap; gap: 8px; }
.checkchip { position: relative; }
.checkchip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.checkchip span { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--input); background: var(--card); font-size: 15px; }
.checkchip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.checkchip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }
.form-msg { border-radius: 14px; padding: 14px 16px; font-size: 15px; }
.form-msg[hidden] { display: none; }
.req { color: var(--primary-ink); }

/* Range + estimator */
.range { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; }
.range input[type="range"] { grid-column: 1 / -1; width: 100%; accent-color: var(--fg); min-height: 44px; }
.range output { font-family: var(--display); font-weight: 700; font-size: 20px; }
.big-num { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 7vw, 88px); line-height: 1; }

/* Prose (legal) */
.prose { max-width: 760px; }
.prose h2 { font-size: 24px; line-height: 1.4; margin: 40px 0 12px; font-weight: 700; }
.prose h3 { font-size: 19px; margin: 24px 0 8px; font-weight: 700; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.draft { background: var(--tone-warn); color: var(--tone-warn-ink); border-radius: 14px; padding: 14px 18px; font-weight: 600; }

/* Stepper (how it works) */
.story { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; align-items: start; }
.stepper { position: sticky; top: 104px; list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.stepper a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--ink-3); font-weight: 600; min-height: 44px; }
.stepper a .n { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex: none; }
.stepper a[aria-current="step"] { color: var(--fg); background: var(--card); box-shadow: 0 0 0 1px var(--line); }
.stepper a[aria-current="step"] .n { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.stepper a.done .n { background: var(--tone-good); color: var(--tone-good-ink); border-color: transparent; }
.chapter { padding: 8px 0 88px; display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 96px; }
.chapter + .chapter { border-top: 1px solid var(--line); padding-top: 64px; }
.chapter .pill { align-self: flex-start; }

/* Round board */
.board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.bcard { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--card); transition: opacity 280ms var(--ease), transform 280ms var(--ease), border-color 280ms var(--ease); }
.bcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.bcard .bmeta { padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; }
.bcard .bmeta .meter { flex: 1 1 auto; height: 5px; }
.bcard .bmeta .meter > i { width: 0; transition: width 600ms var(--ease); }
.bcard .bmeta b { flex: 0 0 24px; text-align: end; }
.bcard .verdict { position: absolute; top: 8px; inset-inline-start: 8px; opacity: 0; transition: opacity 240ms var(--ease); font-size: 11px; }
.bcard[data-state="cut"] { opacity: 0.4; }
.bcard[data-state="cut"] .meter > i { background: var(--primary); }
.bcard[data-state="pick"] { border-color: var(--fg); }
.bcard[data-state="pick"] .verdict, .bcard[data-state="cut"] .verdict { opacity: 1; }

/* Calendar */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { font-size: 12px; color: var(--ink-3); text-align: center; padding-bottom: 4px; }
.cal-d { min-height: 92px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.cal-d > small { color: var(--ink-3); font-size: 11px; }
.cal-d.off { background: transparent; border-style: dashed; }
.post { border-radius: 8px; padding: 4px 6px; font-size: 11px; font-weight: 700; line-height: 1.35; animation: pop 260ms var(--ease) both; }
.post small { display: block; font-weight: 500; opacity: 0.9; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.mix { display: flex; height: 10px; border-radius: 6px; overflow: hidden; }
.mix i { display: block; height: 100%; transition: flex-basis 320ms var(--ease); }

/* Chart */
.chart { width: 100%; height: auto; }
.chart .avg { stroke: var(--fg); stroke-dasharray: 6 6; stroke-width: 2; }
.chart .bar { transition: height 320ms var(--ease), y 320ms var(--ease); }
.chart text { font-family: var(--sans); font-size: 13px; fill: var(--ink-3); }

/* Notebook */
.notebook { display: flex; flex-direction: column; gap: 10px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: start; }
.note .claim { font-size: 16px; }
.note .src { font-size: 13px; color: var(--ink-3); grid-column: 1 / 2; }
.note .acts { display: flex; gap: 6px; grid-row: 1 / span 2; grid-column: 2; align-items: center; }
.note .acts button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 40px; min-width: 44px; border-radius: 10px; border: 1px solid var(--input); background: var(--card); padding: 0 12px; font-size: 14px; font-weight: 600; }
.note textarea { grid-column: 1 / -1; width: 100%; min-height: 72px; border: 1px solid var(--input); border-radius: 12px; padding: 10px 12px; background: var(--bg); font-size: 15px; }
.note[data-state="ok"] { border-color: color-mix(in srgb, var(--tone-good-ink) 40%, var(--line)); }
.note[data-state="fixed"] { border-color: var(--fg); }

/* Approval phone */
.appr-ad { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.appr-ad img { width: 100%; }
.appr-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.appr-btns button { min-height: 48px; border-radius: 12px; border: 1px solid var(--input); background: var(--card); font-weight: 700; font-size: 15px; }
.appr-btns button[aria-pressed="true"].ok { background: var(--tone-good); color: var(--tone-good-ink); border-color: transparent; }
.appr-btns button[aria-pressed="true"].chg { background: var(--tone-warn); color: var(--tone-warn-ink); border-color: transparent; }
.appr-status { font-size: 13px; color: var(--ink-3); min-height: 20px; }

/* Switch (paused) */
.switch { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; border: 0; background: transparent; padding: 0; font-weight: 700; }
.switch .track { width: 52px; height: 30px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background-color 200ms var(--ease); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--card); transition: inset-inline-start 200ms var(--ease); box-shadow: 0 1px 2px rgb(0 0 0 / 0.2); }
.switch[aria-checked="true"] .track { background: var(--tone-good-ink); }
.switch[aria-checked="true"] .track::after { inset-inline-start: 25px; }
.confirm { border: 1px solid var(--fg); border-radius: 16px; padding: 18px; background: var(--card); box-shadow: var(--shadow-float); }
.confirm[hidden] { display: none; }

/* Market strip */
.year { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.year > div { border-radius: 10px; background: var(--card); border: 1px solid var(--line); min-height: 120px; padding: 8px 6px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
.year > div > small { color: var(--ink-3); font-size: 11px; }
.year .ev { border-radius: 6px; padding: 3px 6px; font-weight: 700; font-size: 11px; line-height: 1.35; }
.money { display: flex; gap: 12px; flex-wrap: wrap; }

/* Reveal */
.js .rv { opacity: 0; transform: translateY(8px); transition: opacity 320ms var(--ease), transform 320ms var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rise { animation: rise 320ms var(--ease) both; }
.r2 { animation-delay: 80ms; } .r3 { animation-delay: 160ms; } .r4 { animation-delay: 240ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.grow-bar { animation: grow 320ms var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ads-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-grid > :first-child { grid-column: 1 / -1; }
  .board { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stepper { position: sticky; top: 72px; z-index: 5; flex-direction: row; overflow-x: auto; background: color-mix(in srgb, var(--bg) 94%, transparent); padding: 8px 0; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .stepper::-webkit-scrollbar { display: none; }
  .stepper a { white-space: nowrap; }
}
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .sec { padding: 64px 0; }
  .band, .cta-band { padding: 72px 0; border-radius: 28px 28px 0 0; }
  .band-after { margin-top: -28px; border-radius: 28px 28px 0 0; }
  .g2, .g3, .g4, .split, .split.even, .split.wide-end, .split.wide-start, .dialect, .faq, .outs { grid-template-columns: minmax(0, 1fr); }
  .split.rev > :first-child { order: 0; }
  .split, .faq { gap: 32px; }
  .phase { position: relative; top: auto; grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 24px; border-radius: 24px; }
  .hero { padding: 36px 0 56px; }
  .page-hero { padding: 40px 0 40px; }
  .ads-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-lg { padding: 24px; }
  .band-card { padding: 20px; }
  .year { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cal-d { min-height: 72px; padding: 4px; }
  .post { font-size: 10px; padding: 3px 4px; }
  .post small { display: none; }
  .mbar { display: flex; position: fixed; inset-inline: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 96%, transparent); border-top: 1px solid var(--line); padding: 10px 16px; gap: 10px; align-items: center; backdrop-filter: blur(8px); }
  .js .mbar { transform: translateY(110%); transition: transform 240ms var(--ease); }
  .js .mbar.show { transform: none; }
  .scroller { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .scroller::-webkit-scrollbar { display: none; }
  .scroller > * { flex: none; }
  .mbar span { flex: 1 1 auto; font-size: 14px; font-weight: 600; }
  .hide-sm { display: none !important; }
  .brief textarea { font-size: 17px; }
  .faq summary { font-size: 18px; }
  .tbl-wide .tbl th, .tbl-wide .tbl td, .tbl-wide .tbl thead th { padding: 14px 16px; }
  .exact { padding: 0 20px; }
  .broken span { letter-spacing: 8px; }
}
@media (max-width: 520px) {
  .h1 { font-size: 38px; }
  .cells { gap: 3px; }
  .arena-row > span { flex-basis: 52px; }
  .sizes .mini:nth-child(4) { display: none; }
  .b-lg { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}
@media print {
  .hd, .ft, .mbar, .cta-band { display: none; }
}

/* Hero demo: real photo ads, the Arabic set by the page on top of the photo. */
.adset { display: flex; gap: 10px; align-items: flex-end; justify-content: center; }
.ad { position: relative; margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #e9e5dc; }
.ad-feed { width: 60%; aspect-ratio: 4 / 5; }
.ad-story { width: 36%; aspect-ratio: 9 / 16; }
.ad img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 260ms var(--ease); }
.ad img.swapping { opacity: 0.35; }
.ad-txt { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 6px; padding: 10px; color: #111111; }
.ad-brand { align-self: flex-start; background: rgba(255, 255, 255, 0.86); border-radius: 999px; padding: 2px 8px; font-size: 10px; font-weight: 600; }
.ad-h { font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.35; text-wrap: balance; text-shadow: 0 0 14px rgba(255, 255, 255, 0.75), 0 0 2px rgba(255, 255, 255, 0.6); }
.ad-story .ad-h { font-size: 11px; }
.ad-cta { margin-top: auto; align-self: flex-start; background: #111111; color: #ffffff; border-radius: 999px; padding: 4px 10px; font-size: 10px; font-weight: 600; }
.ad-story .ad-cta { margin-bottom: 14px; }
.ad-size { position: absolute; bottom: 6px; left: 8px; font-size: 9px; color: #111111; background: rgba(255, 255, 255, 0.8); border-radius: 6px; padding: 1px 5px; }
.ad-note { margin: 0; font-size: 12px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .ad img { transition: none; } }
