/* Arena — competition-arena.com. Tokens mirror the Arena design system (Track + Floor). */
:root, [data-theme="track"] {
  --surface: #F7F7F3; --surface-raised: #FFFFFF; --surface-sunken: #ECECE6;
  --ink: #16181A; --ink-muted: #575C61; --line: #DCDDD8; --line-strong: #84898D;
  --field: #B8412B; --on-field: #FFFFFF; --on-field-muted: #FFEDE8; --lane: #9E3622;
  --action: #16181A; --on-action: #F7F7F3; --live: #B8412B;
  --sport: #1F5EA8; --on-sport: #FFFFFF; --card: #F2C200; --on-card: #16181A;
  --focus-ring: #16181A; --paint: rgba(255,255,255,.9);
  color-scheme: light;
}
[data-theme="floor"] {
  --surface: #141619; --surface-raised: #1D2024; --surface-sunken: #0E1012;
  --ink: #F3F4F1; --ink-muted: #A7ADB3; --line: #2C3137; --line-strong: #6B727A;
  --field: #1D2024; --on-field: #F3F4F1; --on-field-muted: #A7ADB3; --lane: #2A2F35;
  --action: #F3F4F1; --on-action: #141619; --live: #FFB21A;
  --focus-ring: #FFB21A; --paint: rgba(243,244,241,.85);
  color-scheme: dark;
}
:root {
  --font-display: Handjet, Rubik, sans-serif;
  --font-sans: Rubik, system-ui, sans-serif;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-24: 96px;
  --radius-sm: 4px; --radius-md: 8px; --radius-lg: 16px;
  --line-call: 2.5px; --line-lane: 2px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 17px/1.6 var(--font-sans); }
::selection { background: var(--ink); color: var(--surface); }
img, svg { max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: var(--line-lane); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 3px; border-radius: 2px; }
.field :focus-visible { outline-color: var(--on-field); }

.hj { font-family: var(--font-display); font-variation-settings: "ELSH" 2, "ELGR" 1.35; font-variant-numeric: tabular-nums; font-weight: 700; }
.led { font-family: var(--font-display); font-variation-settings: "ELSH" 10, "ELGR" 1.2; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--live); }
.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--action); color: var(--on-action); padding: 10px 14px; border-radius: var(--radius-md); z-index: 20; }
.skip:focus { top: 8px; }

/* ---------- header ---------- */
.top { position: absolute; inset-inline: 0; top: 0; z-index: 5; color: var(--on-field); }
.top .wrap { display: flex; align-items: center; gap: var(--space-6); padding-block: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand span { font-size: 30px; line-height: 1; letter-spacing: .05em; }
.nav { display: flex; gap: var(--space-6); margin-inline-start: auto; align-items: center; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; padding-block: 6px; border-bottom: var(--line-lane) solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.theme { display: inline-flex; border: 1.5px solid var(--paint); border-radius: var(--radius-md); overflow: hidden; }
.theme button { font: 600 13px/1 var(--font-sans); color: inherit; background: none; border: 0; padding: 9px 12px; cursor: pointer; }
.theme button[aria-pressed="true"] { background: var(--on-field); color: var(--field); }
[data-theme="floor"] .theme button[aria-pressed="true"] { color: var(--surface); }
@media (max-width: 860px) { .nav .hide-sm { display: none; } }
@media (max-width: 520px) { .nav { gap: var(--space-3); } .brand span { font-size: 26px; } .theme button { padding: 8px 9px; } }

/* ---------- hero: the field ---------- */
.field { background: var(--field); color: var(--on-field); position: relative; overflow: hidden; }
.hero { padding-block: calc(var(--space-24) + var(--space-8)) var(--space-16); isolation: isolate; }
.markings { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.markings svg { width: 100%; height: 100%; display: block; }
.markings .p { fill: none; stroke: var(--paint); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: .55; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-12); align-items: center; }
.hero h1 { margin: 0; font-size: clamp(64px, 10.5vw, 148px); line-height: .86; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
[lang="ar"] .hero h1 { text-transform: none; letter-spacing: 0; line-height: 1.05; font-size: clamp(60px, 9vw, 128px); }
.hero .lede { margin: var(--space-6) 0 0; max-width: 34ch; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; color: var(--on-field); }
.status { display: inline-flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); font-size: 14px; font-weight: 500; color: var(--on-field-muted); }
.status::before { content: ""; width: 22px; border-top: var(--line-call) dashed currentColor; }

/* ---------- pilot form ---------- */
.pilot { margin-top: var(--space-8); display: grid; gap: var(--space-3); max-width: 520px; }
.pilot .row { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.pilot input[type="email"], .pilot select {
  flex: 1 1 220px; min-height: 52px; border-radius: var(--radius-md); border: 1.5px solid var(--line-strong);
  background: var(--surface-raised); color: var(--ink); font: 400 16px/1.2 var(--font-sans); padding: 0 var(--space-4);
}
.field .pilot input[type="email"], .field .pilot select { border-color: transparent; }
.pilot select { flex: 0 1 180px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 36px; }
[dir="rtl"] .pilot select { background-position: 20px 50%, 14px 50%; }
.btn { min-height: 52px; border-radius: var(--radius-md); border: 1.5px solid transparent; font: 600 16px/1 var(--font-sans); padding: 0 var(--space-6); cursor: pointer; background: var(--action); color: var(--on-action); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); }
.btn:hover { box-shadow: inset 0 0 0 99px color-mix(in srgb, var(--on-action) 12%, transparent); }
.btn:active { transform: translateY(1px); }
.btn[aria-busy="true"] { cursor: progress; opacity: .85; }
.field .btn { background: var(--on-field); color: var(--field); }
[data-theme="floor"] .field .btn { color: var(--surface); }
.pilot .note { font-size: 13px; line-height: 1.5; color: var(--ink-muted); margin: 0; }
.field .pilot .note { color: var(--on-field-muted); }
.call { display: inline-flex; align-items: center; gap: var(--space-2); font: 600 14px/1.3 var(--font-sans); }
.call::before { content: ""; flex: none; width: 22px; border-top: var(--line-call) solid currentColor; }
.call.prov::before { border-top-style: dashed; }
.call.live { color: var(--live); } .call.live::before { border-top-style: dotted; border-top-width: 4px; }
.call.card { background: var(--card); color: var(--on-card); padding: 6px 12px 6px 10px; border-radius: var(--radius-sm); }
.call.card::before { width: 10px; height: 14px; border: 1.5px solid currentColor; border-radius: 2px; }
.pilot [data-msg]:empty { display: none; }
.hp { position: absolute; inset-inline-start: -9999px; }

/* ---------- phone mockup ---------- */
.device { justify-self: center; width: min(320px, 100%); aspect-ratio: 9 / 19; background: #0c0d0e; border-radius: 44px; padding: 11px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.45); }
.screen { height: 100%; border-radius: 34px; overflow: hidden; background: var(--surface); color: var(--ink); display: flex; flex-direction: column; container-type: inline-size; }
.screen .sbar { display: flex; justify-content: space-between; font: 600 12px/1 var(--font-sans); padding: 16px 22px 0; }
.screen .top-field { background: var(--field); color: var(--on-field); padding: 0 0 18px; display: grid; gap: 10px; }
[data-theme="track"] .screen .top-field { background: var(--field); }
[data-theme="floor"] .screen .top-field { background: var(--surface-raised); }
.screen .pad { padding: 0 20px; display: grid; gap: 10px; }
.screen .lbl { font-size: 12px; line-height: 1.3; font-weight: 500; color: var(--on-field-muted); }
.screen .big { font-size: 36cqw; line-height: .82; }
.lane { position: relative; height: 26px; border-block: var(--line-lane) solid var(--on-field); background: var(--lane); }
.lane i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--on-field-muted); opacity: .7; }
.lane b { position: absolute; top: 5px; bottom: 5px; width: 14px; border-radius: var(--radius-sm); background: var(--on-field); inset-inline-start: var(--at, 50%); transform: translateX(-50%); }
[dir="rtl"] .lane b { transform: translateX(50%); }
.screen .body { padding: 14px 20px; display: grid; gap: 10px; font-size: 13px; line-height: 1.4; }
.screen .est { border: var(--line-call) dashed var(--line-strong); border-radius: var(--radius-md); padding: 10px; display: grid; gap: 4px; }
.screen .est .call { font-size: 12px; color: var(--ink-muted); }
.screen .cta { margin: auto 16px 18px; background: var(--action); color: var(--on-action); border-radius: var(--radius-md); text-align: center; font: 600 14px/1 var(--font-sans); padding: 14px; }
.example { display: block; text-align: center; margin-top: var(--space-3); font-size: 12px; color: var(--on-field-muted); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .device { width: min(290px, 82vw); }
}

/* ---------- sections ---------- */
section { padding-block: var(--space-24); }
.sec-head { display: grid; gap: var(--space-4); max-width: 760px; margin-bottom: var(--space-12); }
.sec-head h2 { margin: 0; font-size: clamp(44px, 6vw, 80px); line-height: .9; letter-spacing: .02em; text-transform: uppercase; text-wrap: balance; }
[lang="ar"] .sec-head h2 { text-transform: none; letter-spacing: 0; line-height: 1.1; }
.sec-head p { margin: 0; max-width: 60ch; color: var(--ink-muted); font-size: 19px; text-wrap: pretty; }
.field .sec-head p { color: var(--on-field-muted); }

/* how it works: four lanes */
.lanes { list-style: none; margin: 0; padding: 0; border-top: var(--line-lane) solid var(--ink); }
.lanes li { display: grid; grid-template-columns: 96px minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); align-items: center; padding-block: var(--space-8); border-bottom: var(--line-lane) solid var(--ink); }
.lanes .n { font-size: 88px; line-height: .8; }
.lanes h3 { margin: 0 0 var(--space-2); font: 600 24px/1.25 var(--font-sans); }
.lanes p { margin: 0; color: var(--ink-muted); max-width: 46ch; }
.lanes .demo { justify-self: end; width: min(100%, 400px); }
.well { margin: 0; background: var(--surface-sunken); border-radius: var(--radius-sm); padding: var(--space-4); font: 400 14px/1.6 var(--font-sans); white-space: pre-wrap; direction: ltr; text-align: left; }
.metrics { display: flex; gap: var(--space-8); }
.metrics div { display: grid; gap: 2px; }
.metrics span { font-size: 13px; color: var(--ink-muted); }
.metrics strong { font-size: 52px; line-height: .9; font-weight: 700; }
.ask { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: var(--space-3); }
.ask strong { font: 600 18px/1.3 var(--font-sans); }
.ask .btns { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.ask .b { border-radius: var(--radius-md); padding: 11px 14px; font: 600 14px/1 var(--font-sans); border: 1.5px solid var(--line-strong); }
.ask .b.p { background: var(--action); color: var(--on-action); border-color: var(--action); }
.mini-lane { background: var(--field); color: var(--on-field); border-radius: var(--radius-md); padding: var(--space-4); display: grid; gap: var(--space-3); }
.mini-lane .lbl { font-size: 13px; color: var(--on-field-muted); }
@media (max-width: 860px) {
  .lanes li { grid-template-columns: 64px minmax(0, 1fr); }
  .lanes .n { font-size: 64px; }
  .lanes .demo { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
}

/* comparable: leaderboard on the field */
.compare .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.board { list-style: none; margin: 0; padding: 0; border-radius: var(--radius-md); overflow: hidden; border: var(--line-lane) solid var(--on-field); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--space-3); }
.board-head .t { font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
.board-head .led { font-size: 34px; line-height: 1; }
.board li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: var(--space-4); align-items: center; padding: 10px var(--space-4); border-bottom: var(--line-lane) solid var(--on-field); }
.board li:last-child { border-bottom: 0; }
.board li[aria-current="true"] { background: var(--lane); }
.board .ln { font-size: 30px; line-height: 1; }
.board .who { font-weight: 500; }
.board .div { font-size: 13px; color: var(--on-field-muted); }
.board .res { font-size: 30px; line-height: 1; }
.board .res.led { color: var(--on-field); }
.compare .example { text-align: start; }
.compare ul.points { margin: var(--space-8) 0 0; padding: 0; list-style: none; display: grid; gap: var(--space-4); }
.compare ul.points li { display: grid; grid-template-columns: 22px 1fr; gap: var(--space-3); align-items: baseline; }
.compare ul.points li::before { content: ""; border-top: var(--line-call) solid var(--on-field); transform: translateY(-4px); }
@media (max-width: 900px) { .compare .wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) { .board li { grid-template-columns: 32px minmax(0, 1fr) auto; } .board .div { display: none; } }

/* honest calls */
.calls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: var(--line-lane) solid var(--ink); }
.calls > div { padding: var(--space-8) var(--space-6) var(--space-8) 0; display: grid; gap: var(--space-3); align-content: start; }
[dir="rtl"] .calls > div { padding: var(--space-8) 0 var(--space-8) var(--space-6); }
.calls > div + div { border-inline-start: var(--line-lane) solid var(--ink); padding-inline-start: var(--space-6); }
.calls .call { font-size: 17px; }
.calls p { margin: 0; color: var(--ink-muted); }
.calls .ex { font-size: 14px; color: var(--ink); background: var(--surface-sunken); border-radius: var(--radius-sm); padding: var(--space-3); }
@media (max-width: 860px) {
  .calls { grid-template-columns: minmax(0, 1fr); }
  .calls > div, [dir="rtl"] .calls > div { padding: var(--space-6) 0; }
  .calls > div + div { border-inline-start: 0; border-top: var(--line-lane) solid var(--ink); padding-inline-start: 0; }
}

/* consent */
.consent .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: start; }
.rows { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-2) var(--space-6); }
.crow { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow label { flex: 1; display: grid; gap: 2px; cursor: pointer; }
.crow label strong { font: 600 17px/1.3 var(--font-sans); }
.crow label span { font-size: 14px; color: var(--ink-muted); }
.switch { appearance: none; width: 52px; height: 30px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface-sunken); position: relative; cursor: pointer; flex: none; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3.5px; inset-inline-start: 4px; width: 20px; height: 20px; border-radius: 999px; background: var(--ink-muted); }
.switch[aria-checked="true"] { background: var(--action); border-color: var(--action); }
.switch[aria-checked="true"]::after { inset-inline-start: 25px; background: var(--on-action); }
@media (max-width: 900px) { .consent .wrap { grid-template-columns: minmax(0, 1fr); } }

/* languages and themes */
.dual .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.dual .devices { display: flex; gap: var(--space-6); justify-content: center; }
.dual .device { width: min(250px, 46%); border-radius: 36px; padding: 9px; }
.dual .device .screen { border-radius: 28px; }
.themes { display: flex; gap: var(--space-3); flex-wrap: wrap; margin-top: var(--space-6); }
.swatch { border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); padding: var(--space-3) var(--space-4); display: flex; gap: var(--space-3); align-items: center; cursor: pointer; font: 600 15px/1.2 var(--font-sans); text-align: start; }
.swatch[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.swatch svg { width: 40px; height: 40px; flex: none; }
.swatch small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-muted); }
@media (max-width: 900px) { .dual .wrap { grid-template-columns: minmax(0, 1fr); } }

/* later */
.later .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--line-lane) solid var(--ink); }
.later .grid > div { padding: var(--space-6) var(--space-6) 0 0; display: grid; gap: var(--space-2); align-content: start; }
.later .grid > div + div { border-inline-start: var(--line-lane) solid var(--ink); padding-inline-start: var(--space-6); }
.later h3 { margin: 0; font-size: 34px; line-height: 1; text-transform: uppercase; letter-spacing: .03em; }
[lang="ar"] .later h3 { text-transform: none; letter-spacing: 0; line-height: 1.2; }
.later p { margin: 0; color: var(--ink-muted); }
@media (max-width: 760px) { .later .grid { grid-template-columns: minmax(0, 1fr); } .later .grid > div + div { border-inline-start: 0; border-top: var(--line-lane) solid var(--ink); padding: var(--space-6) 0 0; } .later .grid > div { padding-bottom: var(--space-6); } }

/* final call */
.final { padding-block: var(--space-24); text-align: start; }
.final h2 { margin: 0; font-size: clamp(56px, 9vw, 128px); line-height: .86; letter-spacing: .02em; text-transform: uppercase; max-width: 12ch; }
[lang="ar"] .final h2 { text-transform: none; letter-spacing: 0; line-height: 1.1; }
.final p.lede { margin: var(--space-6) 0 0; max-width: 46ch; font-size: 19px; color: var(--on-field-muted); }

footer { padding-block: var(--space-12); border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); align-items: center; }
footer .brand { color: var(--ink); }
footer .brand span { font-size: 24px; }
footer nav { display: flex; gap: var(--space-6); margin-inline-start: auto; }

/* motion: one moment — the lane marker runs to its result */
@media (prefers-reduced-motion: no-preference) {
  .switch::after { transition: inset-inline-start 160ms cubic-bezier(.2,0,0,1); }
  .js .run b { inset-inline-start: 0; transition: inset-inline-start 900ms cubic-bezier(.16,1,.3,1); }
  .js .run.go b { inset-inline-start: var(--at); }
  .led.blink { animation: blink 1.6s steps(2, jump-none) infinite; }
  @keyframes blink { 50% { opacity: .6; } }
}

/* privacy page */
.doc { padding-block: calc(var(--space-24) + var(--space-8)) var(--space-16); }
.doc h1 { font-size: clamp(48px, 7vw, 88px); line-height: .9; margin: 0 0 var(--space-8); text-transform: uppercase; letter-spacing: .02em; }
[lang="ar"] .doc h1 { text-transform: none; letter-spacing: 0; line-height: 1.1; }
.doc .prose { max-width: 66ch; }
.doc h2 { font: 600 22px/1.3 var(--font-sans); margin: var(--space-8) 0 var(--space-2); }
.doc p, .doc li { color: var(--ink); }
.doc.hero-mini { padding-block: calc(var(--space-24) + var(--space-4)) var(--space-8); }

/* fixes after first preview */
.field .led { color: var(--on-field); }
[data-theme="floor"] .field .led { color: var(--live); }
[data-theme="floor"] .field .pilot input[type="email"], [data-theme="floor"] .field .pilot select { border-color: var(--line-strong); background: var(--surface); }
.hero .lede, .hero .status, .hero .pilot .note { background: var(--field); box-shadow: 0 0 0 6px var(--field); }
.wk-h { font: 600 12px/1 var(--font-sans); color: var(--ink-muted); margin-top: 4px; }
.wk { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding-block: 7px; border-top: 1px solid var(--line); font-size: 12.5px; }
.wk span:first-child { color: var(--ink-muted); }
.wk .hj { font-size: 20px; line-height: 1; }
@media (max-width: 520px) { .dual .devices .device + .device { display: none; } .dual .device { width: min(260px, 80%); } }
