/* BuzzBit Mind — site.css
   Direction B « La pièce » : bandeau nuit pétrole, page claire, orange pour les actions.
   Light / dark / auto, RTL via logical properties, prefers-reduced-motion. */

/* ---------- Fonts: self-hosted, 2 weights, swap ---------- */
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext-500-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/plus-jakarta-sans-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-arabic-500-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Sans Arabic'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/noto-sans-arabic-arabic-800-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/noto-sans-devanagari-devanagari-500-normal.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }
@font-face { font-family: 'Noto Sans Devanagari'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/noto-sans-devanagari-devanagari-800-normal.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B09; }

/* ---------- Design tokens ---------- */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF; --soft: #F2F6F5; --card: #FFFFFF; --text: #0A2A31; --muted: #4A5E64;
  --border: #E0E7E4; --strong: #BFCDCA; --money: #C9520F; --mind: #0B767D; --night2: #041C23;
  --chip: rgba(11, 118, 125, 0.08); --tile: #E3F4F2; --dot-off: #7D9196; --focus: #0B767D;
  --shadow: 0 1px 2px rgba(6, 38, 46, 0.05), 0 12px 32px rgba(6, 38, 46, 0.08);
  --warn-bg: #FFF4E8; --warn-border: #F3D0AC; --warn-icon: #C9520F;
  /* constant brand colours (identical in both themes) */
  --cta: #FF8A2E; --cta-hover: #FF9B4B; --cta-ink: #06262E; --dot-on: #FF8A2E; --dot-on-stroke: #D2571A;
  --n-text: #EAF4F4; --n-muted: #B5CDD0; --n-accent: #8AF5E9; --n-money: #FFA35C; --n-mind: #5FE0D6; --n-tile: #062A33;
  /* typography */
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --lh-body: 1.6; --lh-head: 1.12; --lh-display: 1.04; --tr-head: -0.02em; --tr-display: -0.035em;
  --gutter: clamp(18px, 4.5vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #06161B; --soft: #0A2128; --card: #0C2730; --text: #E7F0F0; --muted: #9CB2B7;
    --border: #18404A; --strong: #2A5C66; --money: #FFA35C; --mind: #5FE0D6; --night2: #020B0E;
    --chip: rgba(95, 224, 214, 0.10); --tile: #0F3A3E; --dot-off: #5D7C82; --focus: #8AF5E9;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.35);
    --warn-bg: rgba(255, 138, 46, 0.08); --warn-border: rgba(255, 138, 46, 0.30); --warn-icon: #FFA35C;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #06161B; --soft: #0A2128; --card: #0C2730; --text: #E7F0F0; --muted: #9CB2B7;
  --border: #18404A; --strong: #2A5C66; --money: #FFA35C; --mind: #5FE0D6; --night2: #020B0E;
  --chip: rgba(95, 224, 214, 0.10); --tile: #0F3A3E; --dot-off: #5D7C82; --focus: #8AF5E9;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(0, 0, 0, 0.35);
  --warn-bg: rgba(255, 138, 46, 0.08); --warn-border: rgba(255, 138, 46, 0.30); --warn-icon: #FFA35C;
}
/* An explicit "light" choice also opts out of the browser's forced darkening. */
:root[data-theme="light"] { color-scheme: only light; }

/* Script-specific typography */
html:lang(ar) { --font: 'Plus Jakarta Sans', 'Noto Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif; }
html:lang(hi) { --font: 'Plus Jakarta Sans', 'Noto Sans Devanagari', 'Nirmala UI', Mangal, system-ui, sans-serif; }
html:lang(zh) { --font: 'Plus Jakarta Sans', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', system-ui, sans-serif; }
html:lang(ar), html:lang(hi) { --lh-body: 1.8; --lh-head: 1.42; --lh-display: 1.32; --tr-head: 0; --tr-display: 0; }
html:lang(zh) { --lh-body: 1.75; --lh-head: 1.3; --lh-display: 1.22; --tr-head: 0; --tr-display: 0; }
html:lang(ar) *, html:lang(hi) * { letter-spacing: 0 !important; }
/* Chinese headings: break at punctuation rather than inside words */
html:lang(zh) h1, html:lang(zh) h2, html:lang(zh) .big, html:lang(zh) .lv-sub, html:lang(zh) .level-sub { word-break: keep-all; overflow-wrap: anywhere; }
html:lang(ar) body { font-size: 1.0625rem; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-weight: 500; font-size: 1rem; line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3 { font-weight: 800; }
strong, b { font-weight: 800; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .on-night :focus-visible { outline-color: var(--n-accent); }
.skip {
  position: absolute; z-index: 100; inset-inline-start: 12px; top: 12px; padding: 10px 16px; border-radius: 10px;
  background: var(--cta); color: var(--cta-ink); font-weight: 800; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }
.wrap { max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.flip-rtl { flex-shrink: 0; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
section[id] { scroll-margin-top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
  border-radius: 14px; border: 0; font-weight: 800; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.25;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn svg { flex-shrink: 0; }
.btn-cta { background: var(--cta); color: var(--cta-ink); }
.btn-cta:hover { background: var(--cta-hover); transform: translateY(-1px); }
.btn-glow { box-shadow: 0 10px 30px rgba(255, 138, 46, 0.35); }
.btn-ghost { border: 1.5px solid rgba(234, 244, 244, 0.42); color: #FFFFFF; background: transparent; }
.btn-ghost:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.06); }
.btn-outline { border: 1.5px solid var(--strong); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--mind); }
.btn-sm { min-height: 46px; padding: 0 16px; border-radius: 12px; font-size: .95rem; }
.btn-soon {
  min-height: 50px; padding: 0 20px; border-radius: 14px; border: 1.5px dashed rgba(234, 244, 244, 0.42);
  background: transparent; color: var(--n-muted); cursor: not-allowed;
}
.link-more {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 800; font-size: .95rem;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--strong); text-decoration-thickness: 2px;
}
.link-more:hover { text-decoration-color: var(--mind); }
@media (forced-colors: active) { .btn, .hbtn, .lang-card, .level-card, .tile { border: 1px solid CanvasText; } }

/* ---------- Night band (header + hero) ---------- */
.night { position: relative; isolation: isolate; color: var(--n-text);
  background: radial-gradient(ellipse at 62% 32%, #0E4B58 0%, #08313B 38%, #041C23 72%, #020B0E 100%); }
.night-level { background: radial-gradient(ellipse at 70% 20%, #0E4B58 0%, #08313B 40%, #041C23 75%, #020B0E 100%); }
.night-deco { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.night-deco .dots { position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(140, 230, 225, 0.15) 1.2px, transparent 1.6px); background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, #000 58%, transparent 100%); }
.night-deco .glow { position: absolute; width: 760px; height: 760px; inset-inline-end: -180px; top: -200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 150, 60, 0.20) 0%, rgba(255, 150, 60, 0) 62%); }
.market-line { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(90px, 11vw, 160px); }
.market-line .area { fill: rgba(95, 224, 214, 0.07); }
.market-line .line { fill: none; stroke: var(--n-mind); stroke-width: 2.2; stroke-linejoin: round; }

/* Header: sits on top of the first night section of <main> */
:root { --header-h: 72px; }
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 30; color: var(--n-text); }
.site-header .bar { max-width: 1200px; margin-inline: auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; flex-shrink: 1; min-width: 0; border-radius: 8px; }
.brand img { width: clamp(150px, 42vw, 214px); height: auto; }
.main-nav { display: none; }
.main-nav a { color: var(--n-text); text-decoration: none; font-size: .95rem; padding: 8px 2px; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--cta); }
.tools { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; min-width: 44px; padding: 0 10px;
  border-radius: 12px; border: 1px solid rgba(234, 244, 244, 0.28); background: rgba(255, 255, 255, 0.04);
  color: var(--n-text); font-size: .88rem; font-weight: 800; text-decoration: none; cursor: pointer; list-style: none;
  transition: background-color .15s ease, border-color .15s ease;
}
.hbtn:hover { background: rgba(255, 255, 255, 0.10); border-color: rgba(234, 244, 244, 0.5); }
.hbtn-yt { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.hbtn-yt:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.hbtn .label { display: none; }
.hbtn-tt { display: none; }
@media (min-width: 600px) { .hbtn-tt { display: inline-flex; } }
@media (min-width: 1000px) {
  .main-nav { display: flex; gap: 26px; margin-inline-start: 26px; }
  .hbtn { padding: 0 12px; }
  .hbtn .label { display: inline; }
}
/* Theme toggle: the icon follows <html data-theme>, no JS needed for the first paint */
.theme-btn .i-light, .theme-btn .i-dark { display: none; }
:root[data-theme="light"] .theme-btn .i-auto, :root[data-theme="dark"] .theme-btn .i-auto { display: none; }
:root[data-theme="light"] .theme-btn .i-light { display: block; }
:root[data-theme="dark"] .theme-btn .i-dark { display: block; }

/* Language menu (works without JS thanks to <details>) */
.lang-menu { position: relative; }
.lang-menu > summary { list-style: none; }
.lang-menu > summary::-webkit-details-marker { display: none; }
.lang-menu .chev { transition: transform .15s ease; }
.lang-menu[open] .chev { transform: rotate(180deg); }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; min-width: 200px; margin: 0; padding: 6px; list-style: none;
  border-radius: 14px; background: #0B2F38; border: 1px solid rgba(234, 244, 244, 0.18); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.lang-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px;
  border-radius: 10px; color: var(--n-text); text-decoration: none; font-weight: 800;
}
.lang-list a:hover { background: rgba(255, 255, 255, 0.08); }
.lang-list a[aria-current] { color: var(--cta); }
.lang-list .code { color: var(--n-muted); font-size: .78rem; font-weight: 800; }

/* Hero */
.hero { position: relative; padding-block: calc(var(--header-h) + clamp(18px, 4vw, 64px)) clamp(118px, 14vw, 190px); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 4vw, 56px); }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(95, 224, 214, 0.12); border: 1px solid rgba(95, 224, 214, 0.28); color: var(--n-accent); font-size: .85rem; font-weight: 800;
}
.hero h1 { font-size: clamp(2.45rem, 5.6vw, 4.7rem); line-height: var(--lh-display); letter-spacing: var(--tr-display); color: #FFFFFF; text-wrap: balance; }
html:lang(hi) .hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.7rem); }
.w-money { color: var(--n-money); }
.w-mind { color: var(--n-mind); }
.lede { font-size: clamp(1.03rem, 1.4vw, 1.18rem); line-height: 1.65; color: var(--n-muted); max-width: 36em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.tt-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--n-accent); font-weight: 800; font-size: .95rem; text-decoration: none; }
.tt-link:hover span { text-decoration: underline; text-underline-offset: 4px; }
.coins { flex: 1 1 340px; min-width: 0; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.coins-art { position: relative; width: min(100%, 320px); aspect-ratio: 1 / 0.86; }
@media (min-width: 700px) { .coins-art { width: min(100%, 420px); } }
.coins-ring { position: absolute; inset: 6% 10%; border-radius: 50%; border: 1px dashed rgba(140, 230, 225, 0.25); }
.coins-dollar { position: absolute; width: 46%; top: 0; inset-inline-end: 0; transform: rotate(10deg); mix-blend-mode: screen; }
.coins-badge { 
  position: absolute; 
  width: 60%; 
  bottom: 0; 
  inset-inline-start: 4%; 
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.5)); 
  opacity: 0.75; 
}
.bit { position: absolute; border-radius: 3px; }
.bit-1 { inset-inline-start: 2%; top: 18%; width: 14px; height: 14px; background: #FF8A2E; transform: rotate(16deg); box-shadow: 0 0 18px rgba(255, 138, 46, 0.7); }
.bit-2 { inset-inline-start: 36%; top: 6%; width: 9px; height: 9px; background: #5FE0D6; transform: rotate(-12deg); border-radius: 2px; }
.bit-3 { inset-inline-end: 6%; bottom: 22%; width: 11px; height: 11px; background: #FF8A2E; transform: rotate(30deg); box-shadow: 0 0 14px rgba(255, 138, 46, 0.6); border-radius: 2px; }
.bit-4 { inset-inline-end: 30%; bottom: 6%; width: 7px; height: 7px; background: #FFE9BF; transform: rotate(8deg); border-radius: 2px; }
.coins figcaption { color: var(--n-muted); font-size: .95rem; font-weight: 800; letter-spacing: .02em; text-align: center; }
@media (prefers-reduced-motion: no-preference) {
  .coins-badge { animation: bb-rise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .coins-dollar { animation: bb-flip 1.15s cubic-bezier(.2, .7, .2, 1) .08s both; }
  .bit { animation: bb-pop .7s cubic-bezier(.3, 1.4, .5, 1) both; }
  .bit-2 { animation-delay: .25s; } .bit-3 { animation-delay: .4s; } .bit-4 { animation-delay: .55s; }
}
@keyframes bb-rise { from { transform: translateY(22px) scale(.95); } }
@keyframes bb-flip { from { transform: translateY(-16px) rotate(-38deg) scale(.88); } }
@keyframes bb-pop { from { transform: scale(0); } }

/* ---------- Home sections ---------- */
.statement { padding-block: clamp(56px, 8vw, 112px) clamp(40px, 6vw, 80px); }
.statement .wrap { max-width: 980px; display: flex; flex-direction: column; gap: 18px; }
.statement .big { font-weight: 800; font-size: clamp(1.75rem, 4.2vw, 3.1rem); line-height: var(--lh-head); letter-spacing: var(--tr-head); text-wrap: balance; }
.statement .big em { font-style: normal; color: var(--money); }
.statement .sub { color: var(--muted); font-size: 1.1rem; line-height: 1.6; }

.section-head { display: flex; flex-direction: column; gap: 8px; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: var(--lh-head); letter-spacing: var(--tr-head); }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* Path: vertical stepper on mobile, 3 columns on desktop */
.path-section { padding-block: clamp(44px, 6vw, 88px); background: var(--soft); border-block: 1px solid var(--border); }
.path-section .wrap { display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.path { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: flex; gap: 14px; }
.step-marker { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.step-num {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--cta); font-weight: 800; color: var(--text);
}
.step-rail { flex-grow: 1; width: 3px; min-height: 24px; background: linear-gradient(180deg, #FF8A2E, #2FC6CB); }
.step:last-child .step-rail { background: transparent; }
.level-card {
  flex-grow: 1; min-width: 0; margin-bottom: 18px; display: flex; flex-direction: column; gap: 10px; padding: 20px;
  border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.level-card h3 { font-size: 1.35rem; line-height: 1.2; }
.lv-sub { font-weight: 800; color: var(--mind); }
.level-card p { color: var(--muted); line-height: 1.6; flex-grow: 1; }
.level-card .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 2px; }
.dots { flex-shrink: 0; }
[dir="rtl"] .dots { transform: scaleX(-1); }
.dots .on { fill: var(--dot-on); stroke: var(--dot-on-stroke); }
.dots .off { fill: none; stroke: var(--dot-off); }
.on-night .dots .off, .night .dots .off { stroke: rgba(234, 244, 244, 0.55); }
@media (min-width: 900px) {
  .path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; position: relative; }
  .path::before { content: ""; position: absolute; top: 27px; inset-inline: 16%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #FF8A2E, #2FC6CB); }
  [dir="rtl"] .path::before { background: linear-gradient(270deg, #FF8A2E, #2FC6CB); }
  .step { flex-direction: column; align-items: center; gap: 18px; position: relative; }
  .step-num { width: 56px; height: 56px; font-size: 1.3rem; box-shadow: 0 0 0 6px var(--soft); }
  .step-rail { display: none; }
  .level-card { align-self: stretch; margin-bottom: 0; padding: 24px; border-radius: 20px; gap: 12px; }
  .level-card h3 { font-size: 1.55rem; }
}

/* Library bento */
.library { padding-block: clamp(56px, 7vw, 104px); }
.library .wrap { display: flex; flex-direction: column; gap: 28px; }
.bento { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile-lib { grid-column: span 2; } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile-lib { grid-column: span 2; grid-row: span 2; } }
.tile { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--border); }
.tile-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--chip); color: var(--mind); }
.tile h3 { font-size: 1.08rem; line-height: 1.3; }
.tile p { color: var(--muted); line-height: 1.55; }
.tile-langs { background: var(--tile); }
.tile-langs .tile-icon { background: var(--card); }
.tile-langs p { color: var(--text); font-weight: 800; line-height: 1.75; }
.tile-langs .sep { color: var(--muted); }
.tile-lib {
  position: relative; overflow: hidden; isolation: isolate; justify-content: space-between; gap: 22px;
  padding: clamp(22px, 3vw, 34px); background: var(--n-tile); color: var(--n-text); border: 0;
}
.tile-lib::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(140, 230, 225, 0.13) 1.2px, transparent 1.6px); background-size: 20px 20px; }
.tile-lib .lib-title { color: #FFFFFF; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.6rem); line-height: 1.32; }
.stats { display: flex; flex-wrap: wrap; gap: 18px 40px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-weight: 800; font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1; letter-spacing: -.03em; color: var(--n-money); }
.stat + .stat .stat-num { color: var(--n-mind); }
.stat-label { color: var(--n-muted); font-weight: 800; }
.name-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.name-chips li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(234, 244, 244, 0.16); color: var(--n-text); font-weight: 800; font-size: .92rem; line-height: 1.5; }
.name-chips .more { color: var(--n-muted); }

/* PDF guide */
.guide { padding-block: 0 clamp(56px, 7vw, 104px); }
.guide-card {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(28px, 5vw, 56px); padding: clamp(26px, 4vw, 52px); border-radius: 28px; color: var(--n-text);
  background: linear-gradient(135deg, #0C4552 0%, #062A33 55%, #041C23 100%);
}
.guide-card::before { content: ""; position: absolute; z-index: -1; width: 440px; height: 440px; inset-inline-start: -120px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 138, 46, 0.28), rgba(255, 138, 46, 0) 65%); }
.cover-wrap { flex: 0 1 230px; min-width: 0; margin-inline: auto; display: flex; justify-content: center; padding-block: 6px; }
.cover {
  position: relative; width: 190px; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px 14px 14px 6px; background: #FBFAF6;
  box-shadow: 0 26px 44px rgba(0, 0, 0, 0.45); transform: rotate(4deg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px;
}
[dir="rtl"] .cover { border-radius: 14px 6px 6px 14px; transform: rotate(-4deg); }
.cover::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 12px; background: linear-gradient(90deg, rgba(6, 42, 51, 0.16), rgba(6, 42, 51, 0)); }
[dir="rtl"] .cover::before { background: linear-gradient(270deg, rgba(6, 42, 51, 0.16), rgba(6, 42, 51, 0)); }
.cover .cover-ph { display: flex; flex-direction: column; align-items: center; gap: 12px; width: 100%; }
.cover .cover-badge { width: 46%; }
.cover .cover-brand { color: #0A2A31; font-weight: 800; font-size: 1rem; line-height: 1.2; text-align: center; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.cover .cover-tag { color: #0B767D; font-weight: 800; font-size: .72rem; letter-spacing: .16em; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.cover .cover-bar { width: 34px; height: 4px; border-radius: 2px; background: #FF8A2E; }
.cover .cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.chip-n { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: rgba(95, 224, 214, 0.12); color: var(--n-accent); font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.guide-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: var(--lh-head); letter-spacing: var(--tr-head); color: #FFFFFF; }
.guide-copy .desc { color: var(--n-muted); line-height: 1.6; }
.bullets { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bullets li { display: flex; align-items: baseline; gap: 10px; }
.bullets li::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--cta); flex-shrink: 0; transform: translateY(-1px); }
.guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 6px; }
.price { font-weight: 800; font-size: 1.4rem; color: #FFFFFF; }
.notify-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--n-accent); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; }
.guide-note { color: var(--n-muted); font-size: .86rem; }

/* Subscribe */
.subscribe { padding-block: 0 clamp(48px, 6vw, 88px); }
.subscribe .wrap { max-width: 900px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.subscribe .sub-badge { width: 84px; height: 84px; filter: drop-shadow(0 10px 20px rgba(6, 38, 46, 0.25)); }
.subscribe h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: var(--lh-head); letter-spacing: var(--tr-head); text-wrap: balance; }
.subscribe p { color: var(--muted); font-size: 1.05rem; }
.subscribe .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* Disclaimer */
.warn-section { padding-block: 0 clamp(48px, 6vw, 80px); }
.warn { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px; border-radius: 16px; background: var(--warn-bg); border: 1px solid var(--warn-border); }
.warn > svg { flex-shrink: 0; margin-top: 2px; color: var(--warn-icon); }
.warn .warn-body { display: flex; flex-direction: column; gap: 4px; }
.warn p { color: var(--muted); line-height: 1.6; font-size: .95rem; }
.warn strong { color: var(--text); }

/* Footer */
.site-footer { background: var(--night2); color: var(--n-text); }
.site-footer .wrap { padding-block: clamp(40px, 5vw, 64px) 28px; display: flex; flex-direction: column; gap: 32px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 32px 48px; justify-content: space-between; }
.foot-brand { flex: 1 1 260px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-brand img { width: 204px; }
.foot-brand p { color: #A9C4C7; max-width: 22em; }
.foot-social { display: flex; gap: 8px; }
.foot-social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(234, 244, 244, 0.22); color: var(--n-text); }
.foot-social a:hover { border-color: var(--cta); color: var(--cta); }
.foot-cols { flex: 2 1 480px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.foot-col h2 { font-size: .8rem; letter-spacing: .12em; color: var(--n-accent); text-transform: uppercase; margin-bottom: 6px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 34px; color: var(--n-text); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom { border-top: 1px solid rgba(234, 244, 244, 0.14); padding-top: 20px; color: #A9C4C7; font-size: .85rem; }

/* ---------- Level pages ---------- */
.level-hero { position: relative; }
.level-hero .inner { max-width: 760px; margin-inline: auto; padding: calc(var(--header-h) + 14px) var(--gutter) clamp(108px, 16vw, 150px); display: flex; flex-direction: column; gap: 18px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: var(--n-muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: rgba(181, 205, 208, 0.6); }
.crumbs a { color: var(--n-muted); text-underline-offset: 3px; }
.crumbs [aria-current] { color: #FFFFFF; font-weight: 800; }
.progress { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.progress a { display: flex; flex-direction: column; gap: 8px; padding-block: 4px; text-decoration: none; border-radius: 6px; }
.progress .bar { height: 6px; border-radius: 3px; background: rgba(234, 244, 244, 0.18); }
.progress .done .bar, .progress .current .bar { background: var(--cta); }
.progress .current .bar { box-shadow: 0 0 14px rgba(255, 138, 46, 0.6); }
.progress .name { font-size: .72rem; font-weight: 800; letter-spacing: .08em; color: var(--n-muted); overflow-wrap: anywhere; }
.progress .current .name { color: #FFFFFF; }
.progress a:hover .name { color: #FFFFFF; }
.level-meta { display: flex; align-items: center; gap: 10px; color: var(--n-muted); font-size: .92rem; font-weight: 800; }
.level-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 2px; }
.level-num { font-weight: 800; font-size: clamp(2.9rem, 12vw, 5rem); line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgba(95, 224, 214, 0.65); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
@supports not (-webkit-text-stroke: 1px #000) { .level-num { color: rgba(95, 224, 214, 0.45); } }
.level-title h1 { font-size: clamp(2.05rem, 8.6vw, 4rem); line-height: 1.05; letter-spacing: -.02em; color: #FFFFFF; overflow-wrap: anywhere; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.level-sub { font-weight: 800; font-size: 1.3rem; line-height: 1.35; color: var(--n-mind); }
.level-intro { font-size: 1.08rem; line-height: 1.65; color: var(--n-muted); }
.level-hero .btn { align-self: flex-start; margin-top: 6px; }

.level-main { max-width: 760px; margin-inline: auto; padding: clamp(40px, 6vw, 64px) var(--gutter) 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 60px); }
.block { display: flex; flex-direction: column; gap: 16px; }
.block h2 { font-size: clamp(1.5rem, 4vw, 2rem); line-height: var(--lh-head); letter-spacing: var(--tr-head); }
.items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.item { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); }
.item::before { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--cta); transform: rotate(12deg); }
.item h3 { font-size: 1.08rem; line-height: 1.3; }
.item p { color: var(--muted); line-height: 1.6; }
.who { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.who li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--soft); border: 1px solid var(--border); line-height: 1.55; }
.who li svg { flex-shrink: 0; margin-top: 2px; color: var(--mind); }
.who-note { color: var(--muted); font-weight: 800; }
.quote {
  padding: 20px 22px; border-inline-start: 4px solid var(--cta); background: var(--soft);
  border-start-end-radius: 16px; border-end-end-radius: 16px; font-weight: 800; font-size: 1.1rem; line-height: 1.5;
}
.gain { position: relative; overflow: hidden; isolation: isolate; padding: 22px; border-radius: 18px; background: var(--n-tile); color: var(--n-text); }
.gain::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle, rgba(140, 230, 225, 0.13) 1.2px, transparent 1.6px); background-size: 18px 18px; }
.gain .gain-label { display: block; color: var(--n-mind); font-size: 1.1rem; line-height: 1.35; margin-bottom: 6px; }
.gain p { font-weight: 800; font-size: 1.15rem; line-height: 1.45; }
.end-ctas { display: flex; flex-direction: column; gap: 14px; }
.end-ctas .btn { align-self: flex-start; }
.next-card {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: 20px; background: var(--card);
  border: 1.5px solid var(--strong); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease;
}
.next-card:hover { border-color: var(--mind); transform: translateY(-1px); }
.next-num { font-weight: 800; font-size: 2.2rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--mind); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
@supports not (-webkit-text-stroke: 1px #000) { .next-num { color: var(--mind); } }
.next-text { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.next-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.next-name { font-weight: 800; font-size: 1.15rem; }
.next-sub { font-weight: 800; color: var(--mind); }
.level-warn { margin-bottom: 0; }
.level-page .site-footer { margin-top: clamp(48px, 7vw, 80px); }

/* ---------- Standalone night pages: language chooser, 404 ---------- */
.page-night { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--night2); }
.page-night > main { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-night > main > .night { flex: 1 0 auto; }
.chooser { width: 100%; max-width: 940px; margin-inline: auto; padding: clamp(34px, 6vw, 72px) var(--gutter) clamp(40px, 6vw, 64px); display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.chooser .badge { width: 104px; height: 104px; filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.45)); }
.chooser h1 img { width: min(300px, 78vw); }
.chooser .slogan { font-weight: 800; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.25; color: #FFFFFF; text-wrap: balance; }
.choose-line { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; color: var(--n-muted); font-weight: 800; font-size: .92rem; }
.suggest { margin-top: 2px; }
.lang-grid { list-style: none; margin: 6px 0 0; padding: 0; width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 12px; }
.lang-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 92px; padding: 18px 20px; height: 100%;
  border-radius: 16px; border: 1px solid rgba(234, 244, 244, 0.18); background: rgba(255, 255, 255, 0.04);
  color: #FFFFFF; text-decoration: none; text-align: start; transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}
.lang-card:hover { border-color: var(--cta); background: rgba(255, 138, 46, 0.08); transform: translateY(-1px); }
.lang-card.is-suggested { border-color: var(--cta); background: rgba(255, 138, 46, 0.1); }
.lang-card .name { font-weight: 800; font-size: 1.25rem; line-height: 1.3; }
.lang-card .tag { color: var(--n-muted); font-size: .92rem; line-height: 1.5; }
.about { width: 100%; max-width: 760px; margin-top: 18px; padding: 22px; border-radius: 18px; text-align: start;
  background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(234, 244, 244, 0.14); display: flex; flex-direction: column; gap: 10px; }
.about h2 { font-size: 1.05rem; color: #FFFFFF; }
.about p { color: var(--n-muted); line-height: 1.65; font-size: .95rem; }
.about .about-warn { color: #FFFFFF; }
.mini-foot { padding: 22px var(--gutter) 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; color: #A9C4C7; font-size: .88rem; text-align: center; }
.mini-foot a { color: var(--n-text); display: inline-flex; align-items: center; min-height: 36px; text-underline-offset: 3px; }
.big-404 { font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; color: transparent; -webkit-text-stroke: 2px rgba(95, 224, 214, 0.7); font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
@supports not (-webkit-text-stroke: 1px #000) { .big-404 { color: rgba(95, 224, 214, 0.5); } }
.nf-title { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.2; color: #FFFFFF; }
.nf-text { color: var(--n-muted); font-size: 1.05rem; }
.lang-inline { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.lang-inline a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--n-text); font-weight: 800; text-decoration: none; border: 1px solid rgba(234, 244, 244, 0.16); }
.lang-inline a:hover { border-color: var(--cta); }

/* ---------- Legal page ---------- */
.legal-hero .inner { max-width: 820px; margin-inline: auto; padding: calc(var(--header-h) + 18px) var(--gutter) 46px; display: flex; flex-direction: column; gap: 12px; }
.legal-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; letter-spacing: -.02em; color: #FFFFFF; }
.legal-hero p { color: var(--n-muted); }
.prose { max-width: 820px; margin-inline: auto; padding: clamp(32px, 5vw, 56px) var(--gutter) clamp(40px, 6vw, 72px); display: flex; flex-direction: column; gap: 26px; }
.prose h2 { font-size: 1.35rem; line-height: 1.3; }
.prose section { display: flex; flex-direction: column; gap: 10px; }
.prose p, .prose li { color: var(--muted); line-height: 1.7; }
.prose a { color: var(--mind); font-weight: 800; text-underline-offset: 3px; }
.prose hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 10px 0; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.fields > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 18px; padding: 12px 16px; background: var(--card); }
.fields > div + div { border-top: 1px solid var(--border); }
@media (min-width: 640px) { .fields > div { grid-template-columns: 220px minmax(0, 1fr); } }
.fields dt { font-weight: 800; color: var(--text); }
.fields dd { color: var(--muted); overflow-wrap: anywhere; }
.todo { display: inline-block; padding: 1px 8px; border-radius: 6px; background: var(--warn-bg); border: 1px dashed var(--warn-icon); color: var(--text); font-weight: 800; font-size: .9rem; }
.legal-page .site-footer { margin-top: 0; }

/* Redirect stubs (legacy root level pages) */
.stub { max-width: 640px; margin: 0 auto; padding: 48px var(--gutter); display: flex; flex-direction: column; gap: 16px; text-align: center; align-items: center; }
.stub p { color: var(--n-muted); }

@media print {
  .night-deco, .site-header .tools, .skip, .market-line { display: none !important; }
  .night, .site-footer, .tile-lib, .guide-card, .gain { background: #FFFFFF !important; color: #000000 !important; }
}
