/* Al-Rawi Cube landing page. Noir + lantern gold, RTL Arabic, full prefers-reduced-motion support.
 * Fonts: the app's bundled OFL fonts. ../fonts/ when served by FastAPI (/landing/static/fonts) or from the
 * self-contained build (make landing-dist); the second URL works when the repo root is served as-is. */
@font-face {
  font-family: "Reem Kufi";
  src: url("../fonts/ReemKufi.ttf") format("truetype"), url("../../PlotTwist/assets/fonts/ReemKufi.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Cairo";
  src: url("../fonts/Cairo.ttf") format("truetype"), url("../../PlotTwist/assets/fonts/Cairo.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --midnight: #0D0B14;
  --surface: #1A1624;
  --ink: #241E33;
  --parchment: #F2E6CF;
  --on-parchment: #2B2118;
  --gold: #D4A94F;
  --gold-soft: #E9C877;
  --teal: #5FB3B3;
  --crimson: #B3263E;
  --amber: #E39B3F;
  --text: #EDE6DA;
  --muted: #9A91A8;
  --line: rgba(212, 169, 79, 0.22);
  --radius: 20px;
  --radius-lg: 28px;
  --gutter: 16px;
  --max: 1180px;
  --display: "Reem Kufi", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --body: "Cairo", "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
  --cube: clamp(168px, 28vw, 250px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--midnight);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.3; margin: 0 0 .4em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 3.7vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); color: var(--gold-soft); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 .8em; }
a { color: inherit; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.tiny { font-size: .82rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------------ ambient fog + embers */
.ambient { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.fog {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(40px); opacity: .5;
  background: radial-gradient(circle, rgba(95, 179, 179, .10), transparent 65%);
  animation: drift 38s ease-in-out infinite alternate;
}
.fog--a { top: -25vmax; right: -20vmax; }
.fog--b { bottom: -30vmax; left: -25vmax; background: radial-gradient(circle, rgba(212, 169, 79, .10), transparent 65%); animation-duration: 46s; }
.embers span {
  position: absolute; bottom: -10px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 2px rgba(233, 200, 119, .7);
  animation: rise linear infinite; opacity: 0;
}
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.08); } }
@keyframes rise {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  15% { opacity: .9; }
  100% { transform: translateY(-105vh) translateX(var(--sway, 30px)); opacity: 0; }
}

/* ------------------------------------------------------------------ layout */
.topbar, main, .footer { position: relative; z-index: 1; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold); }
.brand__mark { width: 38px; height: 38px; filter: drop-shadow(0 0 8px rgba(212, 169, 79, .55)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.2; }
.brand__text b { font-family: var(--display); font-size: 1.35rem; color: var(--text); }
.brand__text small { color: var(--gold); font-size: .85rem; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }

main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section > h2, .section > p { text-align: center; }
.section > p.muted { max-width: 640px; margin: 0 auto 28px; }

/* ------------------------------------------------------------------ buttons, badges */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 1rem var(--body); padding: 12px 22px; min-height: 48px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn--gold { background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: #1b1408; box-shadow: 0 8px 28px -10px rgba(212, 169, 79, .8); }
.btn--gold:hover { box-shadow: 0 10px 34px -8px rgba(233, 200, 119, .95); }
.btn--ghost { background: rgba(255, 255, 255, .04); color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; }
.badges li, .badge {
  padding: 4px 12px; border-radius: 999px; font-size: .88rem; border: 1px solid var(--line);
  background: rgba(212, 169, 79, .08); color: var(--gold-soft);
}
.badge--verified { border-color: rgba(95, 179, 179, .55); background: rgba(95, 179, 179, .12); color: var(--teal); white-space: nowrap; }

/* ------------------------------------------------------------------ hero */
.hero { padding: 8px 0 clamp(48px, 7vw, 80px); }
.switcher {
  display: flex; gap: 8px; padding: 6px; margin: 4px auto 28px; width: fit-content; max-width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto;
}
.switcher button {
  display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; white-space: nowrap;
  font: 700 .98rem var(--body); color: var(--muted); background: transparent; padding: 10px 18px; border-radius: 999px;
  transition: background .25s, color .25s, box-shadow .25s;
}
.switcher button small { display: none; font-weight: 400; color: inherit; opacity: .85; }
.switcher button[aria-checked="true"] {
  background: linear-gradient(180deg, #2c2440, #211b30); color: var(--gold-soft);
  box-shadow: inset 0 0 0 1px rgba(212, 169, 79, .55), 0 6px 22px -10px rgba(212, 169, 79, .8);
}
@media (min-width: 760px) { .switcher button small { display: inline; } }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.eyebrow { color: var(--teal); font-weight: 700; letter-spacing: .02em; margin-bottom: 6px; }
.lead { font-size: 1.12rem; color: #d9d0c3; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__copy [data-slot] { transition: opacity .35s ease; }
.hero.is-switching .hero__copy [data-slot] { opacity: 0; }

.hero__stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 24px 0 0; }
.spotlight {
  position: absolute; top: -40px; left: 50%; width: 360px; height: 420px; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 160deg, rgba(233, 200, 119, .32) 180deg, transparent 200deg);
  filter: blur(6px); opacity: 0; transition: opacity .6s ease; pointer-events: none;
}
.hero__stage[data-state="reveal"] .spotlight { opacity: 1; }

/* ------------------------------------------------------------------ the 3D cube */
.scene {
  width: var(--cube); height: var(--cube); perspective: 1000px; margin: 40px 0 76px; position: relative;
  cursor: grab; touch-action: none;
}
.scene.dragging { cursor: grabbing; }
.cube {
  --half: calc(var(--cube) / 2);
  --rx: -18deg; --ry: 32deg;
  position: relative; width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
}
.face {
  position: absolute; inset: 0; border-radius: 22px;
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, .07), transparent 60%),
    linear-gradient(160deg, #2a2236, #17131f 70%);
  border: 1px solid rgba(212, 169, 79, .35);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .4), inset 0 -18px 40px rgba(0, 0, 0, .45);
}
.face--front { transform: translateZ(var(--half)); }
.face--back { transform: rotateY(180deg) translateZ(var(--half)); }
.face--right { transform: rotateY(90deg) translateZ(var(--half)); }
.face--left { transform: rotateY(-90deg) translateZ(var(--half)); }
.face--top { transform: rotateX(90deg) translateZ(var(--half)); background: linear-gradient(160deg, #332a42, #1d1827); }
.face--bottom { transform: rotateX(-90deg) translateZ(var(--half)); background: #0f0c15; }
.grille {
  position: absolute; inset: 16%; border-radius: 14px; opacity: .6;
  background: radial-gradient(circle, rgba(212, 169, 79, .35) 1.4px, transparent 1.8px) 0 0 / 12px 12px;
}
.mics { position: absolute; inset: 0; display: grid; place-items: center; }
.mics i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #090710; box-shadow: inset 0 1px 2px #000; }
.mics i:nth-child(1) { transform: translate(-36px, 0); } .mics i:nth-child(2) { transform: translate(36px, 0); }
.mics i:nth-child(3) { transform: translate(0, -36px); } .mics i:nth-child(4) { transform: translate(0, 36px); }
.halo {
  position: absolute; inset: 22%; border-radius: 50%; border: 2px solid rgba(212, 169, 79, .35);
  box-shadow: 0 0 18px rgba(212, 169, 79, .25); transition: border-color .4s, box-shadow .4s;
}
.cube[data-state="listening"] .halo { border-color: var(--teal); box-shadow: 0 0 34px rgba(95, 179, 179, .85); }
.cube[data-state="thinking"] .halo { border-color: var(--amber); box-shadow: 0 0 30px rgba(227, 155, 63, .8); }
.cube[data-state="reveal"] .halo { border-color: var(--gold-soft); box-shadow: 0 0 44px rgba(233, 200, 119, .95); }

.led {
  position: absolute; inset: 12%; display: grid; grid-template-columns: repeat(9, 1fr); gap: 5%; padding: 7%;
  border-radius: 16px; background: radial-gradient(120% 120% at 50% 30%, #0d0a14, #050408);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .04);
}
.led i { display: block; border-radius: 50%; background: rgba(255, 255, 255, .045); aspect-ratio: 1; }
.led i.on {
  --tone: var(--gold);
  background: var(--tone); opacity: var(--l, 1);
  box-shadow: 0 0 6px var(--tone), 0 0 12px color-mix(in srgb, var(--tone) 50%, transparent);
  animation-delay: var(--d, 0ms);
}
.led i.on.teal { --tone: var(--teal); }
.led i.on.amber { --tone: var(--amber); }
.cube[data-state="idle"] .led i.on { animation: breathe 3.4s ease-in-out infinite; }
.cube[data-state="listening"] .led i.on { animation: ripple 1.25s ease-out infinite; animation-delay: var(--d); }
.cube[data-state="thinking"] .led i.on { animation: orbit 1.2s linear infinite; animation-delay: var(--d); }
.cube[data-state="speaking"] .led i.on { animation: talk .46s ease-in-out infinite alternate; animation-delay: var(--d); }
.cube[data-state="reveal"] .led i.on { animation: flare 2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes ripple { 0% { opacity: .15; transform: scale(.7); } 40% { opacity: 1; transform: scale(1.1); } 100% { opacity: .2; transform: scale(.8); } }
@keyframes orbit { 0% { opacity: 1; } 35%, 100% { opacity: .12; } }
@keyframes talk { from { opacity: .3; transform: scaleY(.6); } to { opacity: 1; transform: scaleY(1.15); } }
@keyframes flare { 0%, 100% { filter: brightness(.9); } 50% { filter: brightness(1.6); } }

.wave { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; height: 8%; align-items: flex-end; opacity: 0; transition: opacity .3s; }
.wave i { width: 3px; height: 30%; border-radius: 2px; background: var(--gold); animation: talk .5s ease-in-out infinite alternate; }
.wave i:nth-child(2n) { animation-delay: .12s; } .wave i:nth-child(3n) { animation-delay: .25s; }
.cube[data-state="speaking"] .wave { opacity: .9; }

.cube-shadow {
  position: absolute; bottom: -44px; left: 50%; width: 120%; height: 30px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent); filter: blur(2px);
}
.cube[data-state="listening"] ~ .cube-shadow { background: radial-gradient(closest-side, rgba(95, 179, 179, .35), transparent); }

.states { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.states__title { color: var(--muted); font-size: .85rem; }
.states__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.states__list button {
  font: 600 .85rem var(--body); color: var(--muted); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; cursor: pointer; min-height: 34px;
}
.states__list button[aria-pressed="true"] { color: var(--midnight); background: var(--gold); border-color: var(--gold); }
.cube-status { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; margin: 0; }
.cube-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.hero__stage[data-state="listening"] .cube-status .dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero__stage[data-state="thinking"] .cube-status .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ------------------------------------------------------------------ demo */
.demo {
  margin-top: clamp(28px, 4vw, 44px); padding: clamp(18px, 3vw, 30px); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(36, 30, 51, .9), rgba(26, 22, 36, .9));
  border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9);
}
.demo h2 { margin-bottom: .2em; }
.chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 16px 0; }
.chip {
  text-align: start; font: 600 .98rem var(--body); color: var(--text); cursor: pointer;
  background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: flex-start; transition: border-color .2s, transform .15s, background .2s;
}
.chip:hover { border-color: var(--gold); background: rgba(212, 169, 79, .07); }
.chip:active { transform: scale(.98); }
.chip .chip__icon { font-size: 1.3rem; line-height: 1.4; }
.chip small { display: block; color: var(--gold); font-weight: 700; font-size: .78rem; }
.ask { display: flex; gap: 10px; flex-wrap: wrap; }
.ask input {
  flex: 1 1 240px; min-height: 50px; padding: 10px 16px; border-radius: 999px; font: 1rem var(--body);
  color: var(--text); background: #120f1a; border: 1px solid var(--line);
}
.ask input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(95, 179, 179, .25); }
#mic.listening { border-color: var(--teal); color: var(--teal); }
.dialogue { min-height: 96px; margin: 16px 0 6px; display: flex; flex-direction: column; gap: 10px; }
.bubble { margin: 0; padding: 12px 16px; border-radius: 18px; max-width: 92%; }
.bubble--q { align-self: flex-start; background: rgba(95, 179, 179, .12); border: 1px solid rgba(95, 179, 179, .35); }
.bubble--a { align-self: flex-end; background: var(--parchment); color: var(--on-parchment); font-weight: 600; box-shadow: 0 10px 30px -14px rgba(233, 200, 119, .6); }
.bubble--a.refused { background: #3a1e27; color: #f1d3da; border: 1px solid rgba(179, 38, 62, .6); }
.bubble--a .caret { display: inline-block; width: 2px; height: 1em; background: currentColor; margin-inline-start: 2px; vertical-align: -2px; animation: breathe .9s steps(2) infinite; }
.note { margin: 0; color: var(--gold-soft); font-size: .95rem; }

/* ------------------------------------------------------------------ problem */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; }
.card { border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); position: relative; overflow: hidden; }
.card ul { margin: 0; padding-inline-start: 1.2em; }
.card li { margin-bottom: .4em; }
.card--cold { background: linear-gradient(180deg, #15131c, #101016); color: #b9b3c4; filter: saturate(.6); }
.card--cold h3 { color: #8f9ab0; }
.card--warm { background: radial-gradient(120% 120% at 50% 0%, rgba(212, 169, 79, .18), transparent 60%), var(--surface); }
.card--warm h3 { color: var(--gold-soft); }
.card__art { height: 110px; position: relative; margin-bottom: 14px; }
.art-phones i {
  position: absolute; bottom: 10px; width: 34px; height: 60px; border-radius: 8px; background: #1d2230;
  box-shadow: 0 0 22px rgba(120, 160, 255, .35), inset 0 0 0 2px #2b3346;
}
.art-phones i:nth-child(1) { right: 20%; transform: rotate(-8deg); }
.art-phones i:nth-child(2) { right: 45%; } .art-phones i:nth-child(3) { right: 70%; transform: rotate(9deg); }
.art-circle { display: grid; place-items: center; }
.mini-cube {
  width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(160deg, #3a2f4a, #1b1624);
  border: 1px solid var(--gold); box-shadow: 0 0 30px rgba(233, 200, 119, .7); position: relative; z-index: 1;
}
.art-circle i { position: absolute; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); opacity: .8; }
.art-circle i:nth-of-type(1) { transform: translate(-70px, 0); } .art-circle i:nth-of-type(2) { transform: translate(70px, 0); }
.art-circle i:nth-of-type(3) { transform: translate(0, -42px); } .art-circle i:nth-of-type(4) { transform: translate(0, 42px); }

/* ------------------------------------------------------------------ worlds */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 22px; }
.tab {
  display: flex; align-items: center; gap: 8px; cursor: pointer; font: 700 1rem var(--body); color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px; min-height: 48px;
}
.tab[aria-selected="true"] { color: var(--midnight); background: var(--gold); border-color: var(--gold); }
.world { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(18px, 3vw, 30px); }
.world__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.world__head > div { flex: 1 1 260px; }
.world__icon { font-size: 2.2rem; line-height: 1; }
.world__body { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; }
.parchment {
  background: linear-gradient(180deg, #f5ead6, var(--parchment)); color: var(--on-parchment); border-radius: var(--radius);
  padding: 22px; box-shadow: inset 0 0 0 1px rgba(43, 33, 24, .15), 0 18px 40px -24px rgba(233, 200, 119, .6);
}
.parchment .muted { color: #6f5f4b; }
.parchment h4 { font-size: 1.35rem; margin-bottom: .2em; }
.kicker { color: var(--gold); font-weight: 700; font-size: .85rem; margin: 0 0 6px; }
.parchment .kicker { color: #8b6a2a; }
.samples { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.samples li { padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border-inline-start: 3px solid var(--teal); }
.world__question { font-weight: 700; color: var(--gold-soft); }
.options { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 12px; }
.options li { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.secret { color: #f1d3da; background: rgba(179, 38, 62, .16); border: 1px solid rgba(179, 38, 62, .45); padding: 8px 12px; border-radius: 12px; font-size: .92rem; }
.review { color: var(--teal); font-weight: 700; font-size: .92rem; }
.review.pending { color: var(--amber); }
.sources summary { cursor: pointer; color: var(--muted); }
.sources ul { margin: 6px 0 0; padding-inline-start: 1.2em; color: var(--muted); font-size: .9rem; }

/* ------------------------------------------------------------------ how */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px 22px; }
.step::before {
  counter-increment: step; content: counter(step, arabic-indic); position: absolute; top: -16px; inset-inline-start: 22px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--gold); color: var(--midnight); font-weight: 800;
}
.step__icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; inset-inline-end: -14px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 12px var(--teal);
}

/* ------------------------------------------------------------------ editions */
.edition-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 10px; }
.edition-card {
  display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.edition-card.is-active { border-color: var(--gold); box-shadow: 0 24px 60px -30px rgba(212, 169, 79, .9); transform: translateY(-4px); }
.edition-card__flag { font-size: 2rem; }
.edition-card ul { margin: 0; padding-inline-start: 1.2em; }
.edition-card .price { color: var(--gold-soft); font-weight: 700; margin-top: auto; }
.edition-card .actions { display: flex; flex-direction: column; gap: 8px; }

/* ------------------------------------------------------------------ modal + footer */
.modal {
  width: min(560px, calc(100vw - 32px)); border: 1px solid var(--gold); border-radius: var(--radius-lg);
  background: var(--surface); color: var(--text); padding: 26px;
}
.modal::backdrop { background: rgba(5, 4, 8, .75); backdrop-filter: blur(3px); }
.modal__links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.modal form { margin-top: 10px; }
.footer { max-width: var(--max); margin: 0 auto; padding: 30px var(--gutter) 46px; color: var(--muted); text-align: center; font-size: .9rem; border-top: 1px solid var(--line); }
.noscript { padding: 20px; text-align: center; }

/* ------------------------------------------------------------------ responsive */
/* ------------------------------------------------------------------ no-JS: everything is pre-rendered */
.no-js .js-only { display: none !important; }
.no-js .chip { cursor: default; }
.cube-hint { text-align: center; margin: 0 0 6px; }

/* ------------------------------------------------------------------ when the gathering happens (hero) */
.hooks { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.hooks li::before { content: "✦"; color: var(--gold); margin-inline-end: 8px; }

/* ------------------------------------------------------------------ a night with the Rawi */
.beats { list-style: none; counter-reset: beat; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.beat {
  position: relative; counter-increment: beat; padding: 26px 20px 20px; border-radius: var(--radius-lg);
  background: radial-gradient(120% 90% at 50% 0%, rgba(212, 169, 79, .12), transparent 62%), var(--surface);
  border: 1px solid var(--line);
}
.beat::before {
  content: counter(beat, arabic-indic); position: absolute; top: 14px; inset-inline-end: 18px;
  font-family: var(--display); font-size: 2.4rem; line-height: 1; color: rgba(212, 169, 79, .28);
}
.beat__icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.beat h3 { color: var(--gold-soft); }
.beat p { margin: 0; }

/* ------------------------------------------------------------------ FAQ */
.faq__list { max-width: 780px; margin: 26px auto 0; display: grid; gap: 10px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; }
.faq__item summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1.2; }
.faq__item[open] summary::after { content: "–"; }
.faq__item summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 6px; }
.faq__item p { color: var(--muted); margin: 0 0 16px; }
.edition-card__link { color: var(--gold-soft); font-size: .9rem; text-align: center; }

@media (max-width: 980px) {
  .beats { grid-template-columns: repeat(2, 1fr); }
  .hooks { justify-items: center; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; }
  .hero__copy .badges, .hero__copy .cta-row { justify-content: center; }
  .lead { margin-inline: auto; }
  .world__body { grid-template-columns: 1fr; }
  .steps, .edition-cards { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 640px) {
  .beats { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .contrast { grid-template-columns: 1fr; }
  .nav { width: 100%; justify-content: center; }
  .switcher { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; border-radius: 22px; }
  .switcher button {
    flex-direction: column; gap: 0; padding: 8px 4px; border-radius: 18px; white-space: normal;
    font-size: .82rem; line-height: 1.3; text-align: center;
  }
  .ask .btn { flex: 1 1 auto; }
}

/* ------------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .embers { display: none; }
  .led i.on { opacity: var(--l, 1); }
}
.reduced-motion *, .reduced-motion *::before, .reduced-motion *::after { animation: none !important; transition: none !important; }
.reduced-motion .embers { display: none; }
