/* Yassine FX - design system, v2 (2026-09-24): the old site's language (light + dark themes,
   centred bold hero, orange accent) enhanced. Contract: UI-SPEC.md, amendment v2 at the top.
   Every colour, family and radius resolves to a token below. Logical properties throughout so
   [dir=rtl] mirrors for free. Arabic is never letter-spaced (it breaks the joins). */

/* ---------- tokens: light (default) ---------- */
:root {
  color-scheme: light;
  --bg: #FBF8F5;
  --bg-2: #F5EEE7;
  --surface: #FFFDFB;
  --surface-2: #F6F0EA;
  --ink: #14161B;
  --muted: #5B616D;
  --faint: #8A8F99;
  --line: rgba(20, 22, 27, .08);
  --line-2: rgba(20, 22, 27, .15);
  --grid: rgba(20, 22, 27, .045);
  --orange: #EC7025;
  --orange-2: #F58A45;
  --orange-soft: rgba(236, 112, 37, .10);
  --orange-ink: #BF4E14; /* orange as TEXT on the light ground: 4.6:1 (the fill orange is 2.9:1) */
  --on-orange: #1A0F07;
  --glow: rgba(236, 112, 37, .16);
  --up: #13925F;
  --down: #D63D42;
  --shadow: 0 1px 2px rgba(20, 22, 27, .04), 0 14px 36px -14px rgba(20, 22, 27, .16);
  --shadow-lg: 0 2px 4px rgba(20, 22, 27, .04), 0 40px 80px -30px rgba(20, 22, 27, .28);
  --rim: inset 0 1px 0 rgba(255, 255, 255, .9);
  --chart-bg: rgba(255, 253, 251, 1);

  --r1: 10px;
  --r2: 18px;
  --r3: 28px;
  --rp: 999px;

  --f-sans: 'Readex Pro', sans-serif;
  --f-mono: 'IBM Plex Mono', 'Readex Pro', monospace; /* Arabic in a mono slot falls back to Readex, not a system face */

  --t12: .75rem;
  --t14: .875rem;
  --t16: 1rem;
  --t18: 1.125rem;
  --t22: 1.375rem;
  --t30: clamp(1.5rem, 2.2vw, 1.875rem);
  --t44: clamp(2rem, 3.6vw, 2.75rem);
  --tdisp: clamp(2.75rem, 5.6vw, 5rem);

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

/* ---------- tokens: dark ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080B12;
  --bg-2: #0B0F18;
  --surface: #10151F;
  --surface-2: #151B27;
  --ink: #F2F0EC;
  --muted: #A1A7B3;
  --faint: #6F7583;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --grid: rgba(255, 255, 255, .04);
  --orange: #EF7A33;
  --orange-2: #FF944F;
  --orange-soft: rgba(239, 122, 51, .12);
  --orange-ink: #EF7A33;
  --glow: rgba(239, 122, 51, .22);
  --up: #2BC48A;
  --down: #F2585D;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 50px -24px rgba(0, 0, 0, .7);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 50px 110px -40px rgba(0, 0, 0, .85);
  --rim: inset 0 1px 0 rgba(255, 255, 255, .05);
  --chart-bg: rgba(16, 21, 31, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
html[lang="ar"] { font-size: 108%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  font-size: var(--t16);
  font-weight: 400;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] * { letter-spacing: 0 !important; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--orange); color: var(--on-orange); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 80; background: var(--orange); color: var(--on-orange);
  padding: 10px 14px; border-radius: var(--r1); text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.num, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- stage: the grid + light the old site was built on, refined ---------- */
.backdrop { position: absolute; inset: 0 0 auto; height: 1180px; z-index: -1; pointer-events: none; overflow: hidden; }
body:not([data-page="home"]) .backdrop { height: 760px; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 18%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 18%, #000 25%, transparent 78%);
}
.backdrop::after {
  content: ""; position: absolute; inset: -8% -10% auto; height: 900px;
  background: radial-gradient(ellipse 55% 45% at 50% 0%, var(--glow), transparent 70%);
}
@media (prefers-reduced-motion: no-preference) {
  .backdrop::after { animation: drift 18s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.06); } }
}
.ticker { border-block: 1px solid var(--line); min-height: 46px; background: color-mix(in srgb, var(--bg) 70%, transparent); }
.ticker .tradingview-widget-container { min-height: 46px; }
[data-tv] iframe { color-scheme: normal; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); }
html.menu-open .top, .top.stuck { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 72px; }
.brand { font-weight: 700; font-size: var(--t18); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 26px; height: 26px; border-radius: var(--rp); flex: none; position: relative;
  background: conic-gradient(from 200deg, var(--orange), var(--orange-2), var(--orange)); box-shadow: 0 0 0 4px var(--orange-soft); }
.brand-mark::after { content: ""; position: absolute; inset: 8px; border-radius: var(--rp); background: var(--bg); }
.nav { display: flex; gap: 2px; margin-inline-start: auto; }
.nav a { text-decoration: none; font-size: var(--t14); font-weight: 500; padding: 8px 14px; border-radius: var(--rp); color: var(--muted); transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--orange-soft); }
.nav a[aria-current="page"] { color: var(--orange-ink); background: var(--orange-soft); }
.langs { display: flex; border: 1px solid var(--line-2); border-radius: var(--rp); padding: 3px; background: var(--surface); }
.langs a { text-decoration: none; font-size: var(--t12); font-weight: 500; padding: 4px 10px; border-radius: var(--rp); color: var(--muted); transition: color .2s var(--ease), background-color .2s var(--ease); }
.langs a:hover { color: var(--ink); }
.langs a[aria-current="true"] { background: var(--ink); color: var(--bg); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--rp); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; transition: border-color .2s var(--ease), color .2s var(--ease); flex: none; }
.icon-btn:hover { border-color: var(--orange); color: var(--orange-ink); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.menu-btn { display: none; }
.menu-btn .i-close, .menu-btn[aria-expanded="true"] .i-menu { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.drawer { display: none; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px;
  border-radius: var(--rp); border: 1px solid transparent; font-weight: 500; font-size: var(--t16); text-decoration: none;
  cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease); }
.btn:active { transform: scale(.98); }
.btn-gold { background: var(--orange); color: var(--on-orange); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 10px 26px -10px var(--orange); }
.btn-gold:hover { background: var(--orange-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), 0 14px 34px -10px var(--orange); }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--orange); color: var(--on-orange); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: var(--t14); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link { text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s var(--ease); }
.link:hover { color: var(--orange-ink); }
.arrow::after { content: "→"; display: inline-block; margin-inline-start: 8px; transition: transform .25s var(--ease); }
[dir="rtl"] .arrow::after { content: "←"; }
a:hover .arrow::after, a.arrow:hover::after { transform: translateX(4px); }
[dir="rtl"] a:hover .arrow::after, [dir="rtl"] a.arrow:hover::after { transform: translateX(-4px); }

/* ---------- hero: centred, like the old site, carried by a real chart ---------- */
.hero { padding-block: clamp(40px, 6vw, 84px) clamp(56px, 7vw, 96px); text-align: center; }
.live-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: var(--rp);
  border: 1px solid var(--line-2); background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: var(--t14); color: var(--muted); margin: 0 0 26px; backdrop-filter: blur(8px); }
.live-pill b { color: var(--ink); font-weight: 500; }
.pulse { width: 8px; height: 8px; border-radius: var(--rp); background: var(--up); position: relative; flex: none; }
.pulse.off { background: var(--faint); }
@media (prefers-reduced-motion: no-preference) {
  .pulse:not(.off)::after { content: ""; position: absolute; inset: -4px; border-radius: var(--rp); border: 2px solid var(--up); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
  @keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
}
.display { font-size: var(--tdisp); line-height: 1.02; letter-spacing: -.035em; font-weight: 700; margin: 0 auto 24px; max-width: 13em; text-wrap: balance; }
html[lang="ar"] .display { line-height: 1.28; max-width: 15em; }
.display .hl { color: var(--orange-ink); }
.lede { font-size: var(--t18); line-height: 1.6; max-width: 36em; margin: 0 auto 34px; color: var(--muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.rooms { margin: 28px 0 0; font-size: var(--t14); color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.rooms a { text-decoration: none; color: var(--muted); transition: color .2s var(--ease); }
.rooms a:hover { color: var(--orange-ink); }
.rooms a + a::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: var(--rp); background: var(--line-2); margin-inline-end: 18px; vertical-align: middle; }

.stage { position: relative; max-width: 1060px; margin: clamp(48px, 6vw, 72px) auto 0; perspective: 1600px; text-align: start; }
.stage-chart { position: relative; border-radius: var(--r3); padding: 10px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg);
  transform-origin: 50% 0; }
.stage-chart::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--orange-soft), transparent 40%); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; }
.stage-bar { display: flex; align-items: center; gap: 8px; padding: 6px 8px 12px; }
.stage-bar i { width: 10px; height: 10px; border-radius: var(--rp); background: var(--line-2); }
.stage-bar span { margin-inline-start: 10px; font-size: var(--t12); color: var(--faint); font-family: var(--f-mono); }
.chart-frame { border-radius: var(--r2); overflow: hidden; background: var(--chart-bg); border: 1px solid var(--line); }
.chart-frame .tradingview-widget-container, .chart-frame .tradingview-widget-container__widget { height: 100%; }
.stage .chart-frame { height: clamp(320px, 38vw, 470px); }
.chart-cap { font-size: var(--t12); color: var(--faint); margin: 14px 0 0; text-align: center; }
.chart-cap a { color: inherit; text-decoration: none; }
.chart-cap a:hover { color: var(--ink); }
.float { position: relative; z-index: 2; border-radius: var(--r2); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.float-ticket { padding: 16px 18px; font-size: var(--t14); }
.float-clock { padding: 14px 16px; }
/* wide: the cards hang outside the chart, touching only its oldest candles (left) and the scale labels
   (right); physical sides, because the TradingView widget itself never mirrors in RTL */
@media (min-width: 1100px) {
  .stage { max-width: min(1060px, calc(100vw - 420px)); }
  .float { position: absolute; }
  .float-ticket { left: -200px; top: 180px; width: 260px; }
  .float-clock { right: -190px; top: 88px; width: 240px; }
}
@media (max-width: 1099px) {
  .stage-floats { display: grid; margin: 14px auto 0; max-width: 420px; }
  .float-clock { display: none; }
}
.float .ticket-top { padding-bottom: 10px; margin-bottom: 6px; }
.float .ticket-side { font-size: var(--t12); font-family: var(--f-mono); }
.float .tline { padding-block: 5px; }
.tline > span:first-child { white-space: nowrap; flex: none; }
.tline > span + span { text-align: end; }
.float h4 { margin: 0 0 10px; font-size: var(--t12); font-weight: 500; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mini-lane { display: grid; grid-template-columns: 78px 1fr; gap: 10px; align-items: center; font-size: var(--t12); padding: 4px 0; color: var(--muted); }
.mini-lane b { font-weight: 500; }
.mini-lane.on { color: var(--ink); }
.mini-lane.on b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: var(--rp); background: var(--up); margin-inline-end: 6px; vertical-align: middle; }
.mini-lane em { font-style: normal; font-family: var(--f-mono); text-align: end; color: var(--faint); }
.mini-lane.on em { color: var(--up); }

/* inner page head */
.phead { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 72px); text-align: center; }
.phead h1 { font-size: var(--tdisp); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 0 auto 20px; max-width: 14em; text-wrap: balance; }
html[lang="ar"] .phead h1 { line-height: 1.3; }
.phead .lede { margin-bottom: 30px; }
.kicker { font-style: italic; font-size: var(--t16); color: var(--muted); margin: 0 0 14px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t14); font-weight: 500; border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--rp); padding: 6px 14px; margin: 0 0 20px; }
.dot { width: 8px; height: 8px; border-radius: var(--rp); background: var(--orange); display: inline-block; }

/* ---------- session clock (signature element) ---------- */
.clock { padding-block: 0 clamp(56px, 7vw, 96px); }
.clock-card { border-radius: var(--r3); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: clamp(22px, 3.4vw, 44px); position: relative; overflow: hidden; }
.clock-card::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; height: 120%; background: radial-gradient(closest-side, var(--orange-soft), transparent); pointer-events: none; }
.clock-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 28px; margin-bottom: 16px; position: relative; z-index: 1; }
.clock-head h2 { font-size: var(--t30); line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -.02em; }
.clock-now { font-family: var(--f-mono); font-size: var(--t44); line-height: 1; margin: 0; text-align: end; }
.clock-now small { display: block; font-family: var(--f-sans); font-size: var(--t12); color: var(--muted); margin-top: 8px; }
.clock-intro { color: var(--muted); max-width: 44em; margin: 0 0 26px; position: relative; z-index: 1; }
.strip { position: relative; direction: ltr; border: 1px solid var(--line); border-radius: var(--r2); padding: 16px 16px 30px; background: var(--bg); z-index: 1; }
.lane { display: grid; grid-template-columns: 110px 1fr 64px; align-items: center; gap: 14px; height: 40px; }
.lane-name { font-size: var(--t14); font-weight: 500; direction: auto; }
.lane-track { position: relative; height: 10px; border-radius: var(--rp); background: var(--line); }
.lane-bar { position: absolute; top: 0; height: 100%; border-radius: var(--rp); background: var(--line-2); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.lane.is-open .lane-bar { background: var(--orange); box-shadow: 0 0 16px -2px var(--orange); }
.lane-state { font-family: var(--f-mono); font-size: var(--t12); color: var(--faint); text-align: end; }
.lane.is-open .lane-state { color: var(--orange-ink); }
.overlap { position: absolute; top: 10px; bottom: 26px; border-inline: 1px dashed color-mix(in srgb, var(--orange) 60%, transparent); background: var(--orange-soft); border-radius: 6px; pointer-events: none; }
.nowline { position: absolute; top: 6px; bottom: 22px; width: 2px; background: var(--ink); border-radius: 2px; pointer-events: none; transition: left .6s var(--ease); }
.nowline::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: var(--rp); background: var(--ink); }
.hours { position: absolute; bottom: 8px; left: 140px; right: 94px; height: 14px; font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.hours span { position: absolute; transform: translateX(-50%); }
.clock-status { margin: 20px 0 0; font-size: var(--t16); position: relative; z-index: 1; }
.clock-status b { color: var(--orange-ink); font-weight: 500; }

/* ---------- sections ---------- */
.sheet { position: relative; }
.sec { padding-block: clamp(64px, 8vw, 116px); }
.sec.alt { background: var(--bg-2); }
.sec:not(.alt) + .sec:not(.alt), .sec.alt + .sec.alt { padding-top: 0; }
.desk + .sheet > .sec:first-child { padding-top: clamp(16px, 2vw, 32px); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 4.5vw, 60px); }
.sec-head h2, .h2 { font-size: var(--t44); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 0 0 16px; text-wrap: balance; }
.sec-head p { margin: 0 auto; color: var(--muted); font-size: var(--t18); max-width: 40em; }
.label { display: inline-flex; align-items: center; gap: 8px; font-style: italic; font-size: var(--t14); color: var(--orange-ink); margin: 0 0 14px; }
.label::before { content: ""; width: 6px; height: 6px; border-radius: var(--rp); background: var(--orange); }
.h3 { font-size: var(--t22); line-height: 1.3; font-weight: 700; margin: 0 0 8px; letter-spacing: -.01em; }
.lede-ink { font-size: var(--t22); line-height: 1.5; margin: 0; }
.card { border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: clamp(22px, 2.6vw, 32px);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
a.card { text-decoration: none; display: block; }
a.card:hover { border-color: color-mix(in srgb, var(--orange) 45%, transparent); box-shadow: var(--shadow), 0 0 0 4px var(--orange-soft); }

/* ecosystem bento */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.bento > * { grid-column: span 6; }
.bento > :nth-child(1) { grid-column: span 7; }
.bento > :nth-child(2) { grid-column: span 5; }
.bento > :nth-child(3) { grid-column: span 5; }
.bento > :nth-child(4) { grid-column: span 7; }
.card.room { display: flex; flex-direction: column; gap: 10px; min-height: 250px; }
.room-meta { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: var(--t14); color: var(--muted); }
.room-meta b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); background: var(--orange-soft); border-radius: var(--rp); padding: 4px 12px; }
.room-n { font-family: var(--f-mono); font-size: var(--t12); color: var(--faint); }
.room h3 { font-size: var(--t30); letter-spacing: -.02em; margin: 0; font-weight: 700; }
.room p { margin: 0; color: var(--muted); max-width: 30em; }
.room .arrow { margin-inline-start: auto; font-size: var(--t14); font-weight: 500; color: var(--orange-ink); }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 28px; }
.facts span { display: inline-flex; align-items: center; gap: 10px; font-size: var(--t14); padding: 9px 16px; border-radius: var(--rp); border: 1px solid var(--line-2); background: var(--surface); }
.facts span::before { content: ""; width: 6px; height: 6px; border-radius: var(--rp); background: var(--orange); }

/* segmented tabs */
.seg-wrap { display: flex; justify-content: center; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px; border: 1px solid var(--line-2); border-radius: var(--rp); background: var(--surface); margin-bottom: 30px; box-shadow: var(--shadow); }
.seg button { border: 0; background: transparent; padding: 9px 18px; border-radius: var(--rp); font-size: var(--t14); font-weight: 500; cursor: pointer; color: var(--muted); transition: color .2s var(--ease), background-color .25s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--orange); color: var(--on-orange); }
.panel { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); border-radius: var(--r3); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 44px); }
.panel[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .panel:not([hidden]) { animation: fadeup .45s var(--ease); } @keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } } }
.panel h3 { font-size: var(--t30); margin: 0 0 12px; font-weight: 700; letter-spacing: -.02em; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 11px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: var(--rp); background: var(--orange-soft) no-repeat center / 10px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%23EC7025' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); margin-top: .2em; }
.req { border-radius: var(--r2); background: var(--bg); border: 1px solid var(--line); padding: 24px; align-self: start; text-align: center; }
.req p { margin: 0 0 18px; font-size: var(--t22); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 16px; }
.calc-in { display: grid; gap: 26px; align-content: start; }
.fld label, .fld .lbl { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t14); font-weight: 500; margin-bottom: 12px; }
.fld output, .fld .val { font-family: var(--f-mono); color: var(--orange-ink); }
input[type="range"] { width: 100%; accent-color: var(--orange); height: 28px; }
.calc-out { display: grid; gap: 20px; align-content: start; background: var(--bg); }
.out-k { font-size: var(--t14); color: var(--muted); margin: 0 0 4px; }
.out-v { font-family: var(--f-mono); font-size: var(--t44); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
.out-v.neg { color: var(--down); }
.calc-note { font-size: var(--t12); color: var(--faint); margin: 0; }
.calc .seg { margin: 0; box-shadow: none; background: var(--bg); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.steps li { border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: 26px; position: relative; overflow: hidden; }
.step-n { font-family: var(--f-mono); font-size: 2.6rem; line-height: 1; font-weight: 400; display: block; margin-bottom: 18px; color: var(--orange-ink); letter-spacing: -.04em; }
.steps h3 { font-size: var(--t18); margin: 0 0 8px; font-weight: 700; line-height: 1.35; }
.steps p { margin: 0; color: var(--muted); }

/* mission (problem / approach) */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.duo h3 { font-size: var(--t18); margin: 0 0 18px; font-weight: 700; }
.duo .card.is-good { border-color: color-mix(in srgb, var(--up) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--up) 6%, transparent), transparent 60%), var(--surface); }
.xl { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.xl li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; }
.xl li b { display: block; font-weight: 500; }
.xl li span { color: var(--muted); font-size: var(--t14); }
.xl li::before { content: ""; width: 22px; height: 22px; border-radius: var(--rp); margin-top: .15em; background: var(--line) no-repeat center / 9px; }
.xl.bad li::before { background-color: color-mix(in srgb, var(--down) 12%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%23D63D42' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }
.xl.good li::before { background-color: color-mix(in srgb, var(--up) 14%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%2313925F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* audience */
.aud { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.aud-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.aud-list li { font-size: var(--t18); line-height: 1.45; padding: 16px 20px; border-radius: var(--r1); background: var(--bg); border: 1px solid var(--line); }
.aud-not { margin: 18px 0 0; font-weight: 500; color: var(--down); }

/* broker + platforms */
.broker { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 16px; align-items: stretch; }
.plain { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.plain li { padding-inline-start: 20px; position: relative; }
.plain li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; border-radius: var(--rp); background: var(--orange); }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.tool { padding: 18px; border-radius: var(--r1); border: 1px solid var(--line); background: var(--bg); display: grid; gap: 6px; }
.tool-mark { font-weight: 700; }
.tool p { margin: 0; color: var(--muted); font-size: var(--t14); }

/* FAQ (native details) */
.faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.faq details { border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); transition: border-color .3s var(--ease); }
.faq details[open] { border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 22px; font-size: var(--t16); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 26px; height: 26px; border-radius: var(--rp); display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-ink); font-family: var(--f-mono); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .ans { margin: 0; padding: 0 22px 22px; color: var(--muted); }
.faq details[hidden] { display: none; }
.faq.one { grid-template-columns: 1fr; max-width: 860px; margin-inline: auto; }

/* final CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: var(--r3); padding: clamp(36px, 6vw, 80px) clamp(22px, 5vw, 64px); text-align: center; border: 1px solid var(--line-2);
  background: radial-gradient(ellipse 60% 80% at 50% 0%, var(--glow), transparent 70%), var(--surface); box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%); }
.cta-band > * { position: relative; }
.cta-band h2 { font-size: var(--t44); line-height: 1.08; letter-spacing: -.03em; font-weight: 700; margin: 0 auto 14px; max-width: 16em; }
.cta-band p { color: var(--muted); margin: 0 auto 28px; max-width: 34em; }
.cta-band form { max-width: 520px; margin-inline: auto; }
.inline-form { display: flex; gap: 8px; padding: 6px; border-radius: var(--rp); border: 1px solid var(--line-2); background: var(--bg); }
.inline-form input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 46px; padding: 0 16px; }
.inline-form input:focus { outline: none; }
.inline-form:focus-within { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field { width: 100%; min-height: 50px; padding: 0 16px; border-radius: var(--r1); border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font-size: var(--t16); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.field:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
select.field { appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238A8F99' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px; background-position: right 16px center; }
[dir="rtl"] select.field { background-position: left 16px center; }
.form-note { font-size: var(--t12); color: var(--faint); margin: 12px 0 0; }
.form-note a { color: inherit; }
.msg { font-size: var(--t14); margin: 12px 0 0; min-height: 1.5em; }
.msg.err { color: var(--down); }
.msg.ok { color: var(--up); }

/* offers */
.offers { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.offers > * { flex: 0 1 calc((100% - 32px) / 3); min-width: 0; }
.offers.two > * { flex-basis: calc((100% - 16px) / 2); }
.offer { border-radius: var(--r3); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: 30px; display: flex; flex-direction: column; gap: 12px; position: relative; transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.offer:hover { border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.offer[hidden] { display: none; }
.offer.is-main { border-color: var(--orange); box-shadow: var(--shadow-lg), 0 0 0 4px var(--orange-soft); }
.offer-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.offer-name { font-size: var(--t22); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.badge { font-size: var(--t12); font-weight: 500; border-radius: var(--rp); padding: 4px 11px; background: var(--orange); color: var(--on-orange); white-space: nowrap; }
.badge.soft { background: var(--orange-soft); color: var(--orange-ink); }
.price { font-size: var(--t44); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 8px 0 0; }
.cond { font-size: var(--t14); color: var(--muted); margin: 0; }
.offer .checks { margin: 8px 0 auto; padding-top: 18px; border-top: 1px solid var(--line); }
.offer .btn { margin-top: 18px; }
/* a card with no feature list (academy page) still pins its button to the bottom, so a row lines up */
.offer .cond:has(+ .btn) { margin-bottom: 18px; }
.offer .cond + .btn { margin-top: auto; }
.note { font-size: var(--t12); color: var(--faint); margin-top: 22px; text-align: center; }

/* signal ticket */
.ticket-wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.ticket { border-radius: var(--r2); padding: 24px; font-family: var(--f-mono); font-size: var(--t14); direction: ltr; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.ticket-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); margin-bottom: 12px; }
.ticket-pair { font-size: var(--t18); font-weight: 500; display: inline-flex; align-items: center; gap: 10px; }
.ticket-pair::before { content: ""; width: 10px; height: 10px; border-radius: var(--rp); background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.ticket-side { color: var(--up); font-weight: 500; padding: 3px 10px; border-radius: var(--rp); background: color-mix(in srgb, var(--up) 12%, transparent); }
.tline { display: flex; justify-content: space-between; gap: 14px; padding-block: 7px; }
.tline span:first-child { color: var(--muted); font-family: var(--f-sans); }
.tline .sl { color: var(--down); }
.tline .tp { color: var(--up); }
.ticket-why { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line-2); font-family: var(--f-sans); color: var(--muted); line-height: 1.55; direction: auto; }
.ticket-ex { display: inline-block; margin-top: 12px; font-family: var(--f-sans); font-size: var(--t12); color: var(--faint); font-style: italic; }
html[lang="ar"] .ticket-ex { font-style: normal; }

.minis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mini { border-radius: var(--r2); overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); height: 230px; }
.mini .tradingview-widget-container, .mini .tradingview-widget-container__widget { height: 100%; }

.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cols3 > div { border-radius: var(--r2); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: 26px; }
.cols3 p { color: var(--muted); margin: 0; }
.cols3 p + p { margin-top: 14px; }
.incl { max-width: 880px; margin: 22px auto 0; }
.incl .checks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 24px; }
.cols3 .step-n { font-size: 2.4rem; }
.nots { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nots li { padding: 16px 18px 16px 18px; padding-inline-start: 46px; position: relative; border-radius: var(--r1); background: var(--bg); border: 1px solid var(--line); }
.nots li::before { content: ""; position: absolute; inset-inline-start: 16px; top: 1.15em; width: 18px; height: 18px; border-radius: var(--rp); background: color-mix(in srgb, var(--down) 12%, transparent) no-repeat center / 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1 1l8 8M9 1L1 9' stroke='%23D63D42' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); }

.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 16px; align-items: stretch; }
.split > .h2, .split > div > .h2 { text-align: start; }
.box { border-radius: var(--r3); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: clamp(24px, 3vw, 40px); }
.box.dark { background: radial-gradient(ellipse 80% 70% at 100% 0%, var(--glow), transparent 70%), var(--surface); border-color: color-mix(in srgb, var(--orange) 35%, transparent); }
.box h3 { margin-top: 0; }
.big-n { font-size: var(--t44); font-weight: 700; letter-spacing: -.03em; line-height: 1; margin: 0 0 10px; }

/* join form */
.join { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.progress { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; position: sticky; top: 104px; }
.progress li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; padding: 10px 0; color: var(--faint); }
.progress li .pn { font-family: var(--f-mono); width: 36px; height: 36px; border-radius: var(--rp); border: 1px solid var(--line-2); display: grid; place-items: center; font-size: var(--t14); background: var(--surface); transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.progress li[aria-current="step"] { color: var(--ink); font-weight: 500; }
.progress li[aria-current="step"] .pn { background: var(--orange); color: var(--on-orange); border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.progress li.done .pn { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.fstep { border-radius: var(--r3); border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); padding: clamp(24px, 3.4vw, 44px); margin: 0; min-width: 0; }
.fstep[hidden] { display: none; }
@media (prefers-reduced-motion: no-preference) { .fstep:not([hidden]) { animation: fadeup .4s var(--ease); } }
.fstep h2 { font-size: var(--t30); margin: 0 0 6px; font-weight: 700; letter-spacing: -.02em; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; margin-top: 24px; }
.grid2 .full { grid-column: 1 / -1; }
.fl { display: grid; gap: 8px; }
.fl > span { font-size: var(--t14); font-weight: 500; }
.fl > span i { font-style: normal; font-weight: 400; color: var(--faint); }
.hint { font-size: var(--t12); color: var(--faint); margin: 0; }
.opts { display: grid; gap: 10px; margin-top: 20px; }
.opt { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; border-radius: var(--r2); border: 1px solid var(--line-2); padding: 18px; cursor: pointer; background: var(--bg); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease); }
.opt:hover { border-color: var(--line-2); background: var(--surface); }
.opt:has(input:checked) { border-color: var(--orange); background: var(--surface); box-shadow: 0 0 0 4px var(--orange-soft); }
.opt input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.opt b { display: block; font-weight: 700; }
.opt small { color: var(--muted); font-size: var(--t14); }
.next-list { display: grid; gap: 12px; margin: 20px 0 0; }
.next { border-radius: var(--r2); border: 1px solid var(--line-2); padding: 20px; display: grid; gap: 14px; background: var(--bg); }
.next[hidden] { display: none; }
.next p { margin: 0; }
.next .btn { justify-self: start; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; margin-top: 24px; font-size: var(--t14); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); }
.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; }
.done h2 { font-size: var(--t44); }
.done .cta-row { justify-content: center; }

/* hub (login) */
.hub { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hub .box { display: flex; flex-direction: column; gap: 10px; }
.hub .box .btn { margin-top: auto; align-self: start; }
.hub-foot { text-align: center; margin-top: 32px; }

/* prose (blog, legal) */
.prose { max-width: 44em; margin-inline: auto; }
.prose h2 { font-size: var(--t30); line-height: 1.25; margin: 2.2em 0 .6em; font-weight: 700; letter-spacing: -.02em; }
.prose p { margin: 0 0 1.15em; font-size: var(--t18); }
.prose .meta { font-size: var(--t14); color: var(--faint); margin-bottom: 2.2em; }
.posts { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.post-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; text-decoration: none; }
.post-card h2 { font-size: var(--t30); margin: 0 0 8px; font-weight: 700; letter-spacing: -.02em; }
.post-card p { margin: 0; color: var(--muted); }
.post-card .arrow { color: var(--orange-ink); font-weight: 500; }

/* tournaments */
.empty { border-radius: var(--r3); border: 1px dashed var(--line-2); padding: clamp(28px, 5vw, 56px); background: var(--surface); text-align: center; max-width: 860px; margin-inline: auto; }
.empty h2 { font-size: var(--t30); margin: 0 0 12px; font-weight: 700; letter-spacing: -.02em; }
.empty p { margin: 0 auto 26px; color: var(--muted); max-width: 36em; }
.empty form { max-width: 520px; margin-inline: auto; }

/* floating Telegram launcher (replaces the old site's chat bubble) */
.tg-fab { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 60; display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 8px 8px 8px 18px; border-radius: var(--rp); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: var(--t14); font-weight: 500;
  transition: transform .3s var(--ease), border-color .3s var(--ease); }
[dir="rtl"] .tg-fab { padding: 8px 18px 8px 8px; }
.tg-fab:hover { border-color: var(--orange); transform: translateY(-2px); }
.tg-fab .tg-ico { width: 40px; height: 40px; border-radius: var(--rp); display: grid; place-items: center; background: var(--orange); color: var(--on-orange); flex: none; }
.tg-fab .tg-ico svg { width: 20px; height: 20px; }

/* footer */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 92px) 36px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 4fr) repeat(4, minmax(0, 2fr)); gap: 32px; }
.foot h4 { font-size: var(--t14); font-weight: 700; margin: 0 0 14px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { text-decoration: none; font-size: var(--t14); color: var(--muted); transition: color .2s var(--ease); }
.foot ul a:hover { color: var(--orange-ink); }
.foot-tag { color: var(--muted); font-size: var(--t14); margin: 14px 0 20px; max-width: 26em; }
.foot-legal { border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; display: grid; gap: 8px; font-size: var(--t12); color: var(--faint); }
.foot-legal p { margin: 0; max-width: 72em; }
.tg-link { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 500; font-size: var(--t14); }
.tg-link svg { width: 18px; height: 18px; color: var(--orange-ink); }
.tg-link:hover { color: var(--orange-ink); }

/* inner-page details (were inline styles in v1) */
.steps .step-n + p { color: var(--ink); font-size: var(--t18); line-height: 1.45; margin: 0; }
.steps p + p { margin-top: 14px; }
.offers.two { max-width: 880px; margin-inline: auto; }
.box .cta-row { justify-content: flex-start; margin-top: 22px; }
.box-note { margin: 22px 0 0; color: var(--muted); }
.prose .more { margin-top: 2.4em; }
.fstep > .muted { margin: 0; }
.done .cta-row { margin-top: 20px; }

/* reveal: one orchestrated entrance, transform + opacity only */
@media (prefers-reduced-motion: no-preference) {
  .js .rv { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
  .js .stage-chart { transform: rotateX(14deg) translateY(30px) scale(.97); opacity: 0; transition: transform .7s var(--ease) .15s, opacity .7s var(--ease) .15s; }
  .js .stage.in .stage-chart { transform: none; opacity: 1; }
  .js .float { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease) .55s, transform .6s var(--ease) .55s; }
  .js .stage.in .float { opacity: 1; transform: none; }
  /* site.js adds .booted first thing; if it never runs, nothing may stay hidden */
  .js:not(.booted) .rv, .js:not(.booted) .stage-chart, .js:not(.booted) .float { animation: rvshow .01s 4s forwards; }
  @keyframes rvshow { to { opacity: 1; transform: none; } }
}
/* view-transition theme switch: a circle grows from the toggle */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav, .top-login { display: none; }
  .menu-btn { display: grid; }
  .langs { margin-inline-start: auto; }
  .drawer { display: block; position: fixed; inset: 72px 0 0 0; background: var(--bg); z-index: 45; padding: 24px var(--gut); transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s; overflow-y: auto; }
  .drawer.open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .drawer a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: var(--t22); font-weight: 500; }
  .drawer .btn { margin-top: 24px; width: 100%; border-bottom: 0; font-size: var(--t18); }
  .offers > * { flex-basis: calc((100% - 16px) / 2); }
  .minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .steps.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .panel, .calc, .aud, .broker, .ticket-wrap, .split, .join, .duo, .faq { grid-template-columns: 1fr; }
  .bento > * { grid-column: 1 / -1 !important; }
  .steps { grid-template-columns: 1fr; }
  .cols3, .hub { grid-template-columns: 1fr; }
  .progress { position: static; grid-template-columns: repeat(3, auto); justify-content: start; gap: 14px; }
  .progress li { grid-template-columns: 36px; }
  .progress li span:last-child { display: none; }
  .post-card { grid-template-columns: 1fr; }
  .room { min-height: 0; }
}
@media (max-width: 600px) {
  .top .wrap { gap: 8px; }
  .brand-name { font-size: var(--t16); }
  .top .btn-sm { display: none; }
  .minis, .tools, .grid2, .incl .checks { grid-template-columns: 1fr; }
  .offers > *, .offers.two > * { flex-basis: 100%; }
  .stage-floats { max-width: none; }
  .inline-form { flex-direction: column; border-radius: var(--r2); }
  .inline-form .btn { width: 100%; }
  .lane { grid-template-columns: 74px 1fr 48px; gap: 8px; }
  .hours span:nth-child(2n) { display: none; }
  .rooms { gap: 8px 22px; }
  .rooms a + a::before { display: none; }
  .hours { left: 98px; right: 72px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { flex: 1 1 auto; }
  .tg-fab { padding: 6px; }
  .tg-fab .tg-label { display: none; }
  .clock-now { text-align: start; }
}

/* 2026-09-28 testimonials: a swipeable strip of his team's phone videos (9:16), native player, one plays at a time */
.testi { position: relative; }
.testi-strip { display: flex; gap: clamp(12px, 1.6vw, 20px); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0; padding: 4px 2px 14px;
  list-style: none; overscroll-behavior-x: contain; scrollbar-width: thin; }
.testi-card { position: relative; flex: 0 0 clamp(200px, 21vw, 250px); scroll-snap-align: start; }
.testi-card video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: var(--surface-2);
  border: 1px solid var(--line-2); border-radius: var(--r2); box-shadow: var(--shadow); }
.testi-dur { position: absolute; top: 10px; inset-inline-end: 10px; font-size: var(--t12); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-2); border-radius: var(--rp); padding: 2px 8px; pointer-events: none; }
.testi-nav { position: absolute; top: calc(50% - 7px); translate: 0 -50%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--rp); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.testi-prev { inset-inline-start: -10px; }
.testi-next { inset-inline-end: -10px; }   /* not .prev/.next: .next is the site's card class */
.testi-nav:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
[dir="rtl"] .testi-nav svg { transform: scaleX(-1); }
.testi-play { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; display: grid; place-items: center; z-index: 1;
  border: 1px solid var(--line-2); border-radius: var(--rp); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg);
  cursor: pointer; transition: transform .25s var(--ease); }
.testi-play svg { margin-inline-start: 3px; }
.testi-play:hover { transform: scale(1.06); }
.testi-play:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.testi-play[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .testi-play { transition: none; } .testi-play:hover { transform: none; } }
.testi-risk { text-align: center; color: var(--faint); font-size: var(--t12); margin: 18px auto 0; max-width: 44em; }
@media (max-width: 720px) { .testi-nav { display: none; } .testi-card { flex-basis: 68vw; } }
