/* Ruled waitlist — an instrument, not a template.
 * Near-monochrome surfaces; one acid-lime signal colour that only marks what is live. */

/* ---------- Tokens ---------- */
:root {
  /* Light: warm greige paper with ink. */
  --bg: #e4dfd4;
  --bg-deep: #d6d0c2;
  --surface: rgb(242 239 232 / 0.82);
  --surface-sunken: #dcd6ca;
  --ink: #16150f;
  --ink-2: #4f4b42;
  --ink-3: #8a8477;
  --line: rgb(22 21 15 / 0.12);
  --line-strong: rgb(22 21 15 / 0.24);
  --accent: #d9f059;
  --signal: #4f5e00;          /* accent as text on paper */
  --btn-bg: #16150f;
  --btn-ink: #d9f059;
  --wave: rgb(22 21 15 / 0.38);
  --glow: rgb(140 128 100 / 0.22);
  --danger: #b4302a;
  --grain-opacity: 0.09;
  --card-shadow: 0 1px 0 rgb(255 255 255 / 0.6) inset, 0 30px 60px -30px rgb(60 50 30 / 0.35), 0 8px 18px -10px rgb(60 50 30 / 0.2);
  --title-blend: difference;
  --title-ink: #faf4e3;
  --tile-bg: #ebe7de;
  --glass: rgb(250 248 242 / 0.74);
  --glass-ink: #16150f;
  --glass-sub: rgb(22 21 15 / 0.6);
  --glass-line: rgb(255 255 255 / 0.6);
  --chip-bg: #16150f;
  --chip-ink: #d9f059;        /* difference blend → #16150f ink on the paper, warm white over the puck */

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;

  --title-size: clamp(2.6rem, 0.4rem + 4.2vw, 5rem);
  --gutter: clamp(1rem, 0.4rem + 2.6vw, 3rem);
  --space-tight: 0.5rem;
  --space-snug: 0.875rem;
  --space-base: 1.25rem;
  --space-roomy: 2rem;
  --space-section: clamp(2.5rem, 1.5rem + 4vw, 5rem);

  --radius-control: 16px;
  --radius-card: 30px;

  --rotate-ms: 5200ms;
  --duration-fast: 160ms;
  --duration-normal: 320ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);

  color-scheme: light;
}

/* Light is the default for everyone; dark is opt-in via the theme toggle. */
:root[data-theme="dark"] {
  --bg: #0a0a0d;
  --bg-deep: #050507;
  --surface: rgb(19 20 23 / 0.78);
  --surface-sunken: #060609;
  --ink: #f7f7f7;
  --ink-2: #a6a6a6;
  --ink-3: #6b6b6b;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);
  --signal: #d9f059;
  --btn-bg: #d9f059;
  --btn-ink: #0d0f05;
  --wave: rgb(217 240 89 / 0.5);
  --glow: rgb(217 240 89 / 0.14);
  --danger: #f25c4f;
  --grain-opacity: 0.06;
  --card-shadow: 0 1px 0 rgb(255 255 255 / 0.05) inset, 0 40px 80px -30px rgb(0 0 0 / 0.8);
  --title-blend: normal;
  --title-ink: #f7f7f7;
  --tile-bg: #101114;
  --glass: rgb(14 14 18 / 0.62);
  --glass-ink: #f7f7f7;
  --glass-sub: rgb(255 255 255 / 0.62);
  --glass-line: rgb(255 255 255 / 0.12);
  --chip-bg: #d9f059;
  --chip-ink: #0d0f05;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 40%, var(--bg-deep) 100%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  transition: background-color var(--duration-normal), color var(--duration-normal);
}
:lang(ar) { --font-display: "Noto Kufi Arabic", system-ui, sans-serif; --font-body: "Noto Kufi Arabic", system-ui, sans-serif; }
:lang(ar) * { letter-spacing: 0 !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 6px; }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: calc(var(--space-base) + env(safe-area-inset-top, 0px)) var(--gutter) var(--space-base);
  position: relative; z-index: 10;
}
.wordmark {
  font-family: "Unbounded", system-ui, sans-serif; font-weight: 800;
  font-size: 1.05rem; letter-spacing: 0.2em; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.wordmark-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 28%, transparent);
}
.controls { display: flex; align-items: center; gap: 0.5rem; }

.lang select {
  appearance: none; -webkit-appearance: none;
  font: 600 0.8125rem/1 var(--font-body); color: var(--ink);
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  height: 40px; padding: 0 2.1rem 0 0.95rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-size: 5px 5px; background-repeat: no-repeat;
  background-position: calc(100% - 17px) 17px, calc(100% - 12px) 17px;
  transition: border-color var(--duration-fast), background-color var(--duration-fast);
}
[dir="rtl"] .lang select { padding: 0 0.95rem 0 2.1rem; background-position: 12px 17px, 17px 17px; }
.lang select:hover { border-color: var(--ink-2); }
.lang option { color: #16150f; background: #f2efe8; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), border-color var(--duration-fast), background-color var(--duration-fast);
}
.icon-btn:hover { border-color: var(--ink-2); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.icon-btn:active { transform: scale(0.94); }
#theme-toggle svg { transition: transform var(--duration-normal) var(--ease-out); }
#theme-toggle:hover svg { transform: rotate(180deg); }

/* ---------- Stage ---------- */
main { flex: 1; }

/* The hero fills the first screen; the FAQ follows below it. */
/* Desktop hero is two columns (story left, waitlist right) so the showcase
 * below is at least half visible on first load. */
.stage {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto auto 1fr;
  column-gap: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(0.5rem, 2vw, 2rem) var(--gutter) var(--space-roomy);
  position: relative;
  width: 100%;
  max-width: 1600px;
  margin-inline: auto;
  overflow-x: clip;
}

.kicker {
  grid-column: 1 / 8; grid-row: 1;
  display: flex; align-items: center; gap: 0.85rem; margin: 0 0 var(--space-snug);
  font: 600 0.75rem/1 var(--font-display); letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-2); position: relative; z-index: 3;
}
.kicker-index { color: var(--signal); font-variant-numeric: tabular-nums; }
.kicker-rule { width: 3rem; height: 1px; background: var(--line-strong); }

/* Giant rotating feature title. Every title shares one grid cell, so the block
 * is always as tall as the longest one and nothing below it ever jumps. */
.feature-titles {
  grid-column: 1 / 8; grid-row: 2;
  display: grid; position: relative; z-index: 3;
  mix-blend-mode: var(--title-blend);
  pointer-events: none;
}
.ft {
  grid-area: 1 / 1; margin: 0; visibility: hidden;
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--title-size); line-height: 0.98; letter-spacing: -0.035em;
  color: var(--title-ink);
}
.ft-line { display: block; }
.ft.is-active, .ft.is-leaving { visibility: visible; }
.ft .w { display: inline-block; overflow: hidden; vertical-align: top; padding-block: 0.06em 0.12em; margin-block: -0.06em -0.12em; }
.ft .wi { display: inline-block; transform: translateY(112%); }
.ft.is-active .wi { transform: none; transition: transform 900ms var(--ease-out) calc(var(--i) * 70ms + 120ms); }
.ft.is-leaving .wi { transform: translateY(-112%); transition: transform 420ms var(--ease-in) calc(var(--i) * 30ms); }
:lang(ar) .ft { line-height: 1.35; font-size: calc(var(--title-size) * 0.92); }

/* ---------- Puck ---------- */
.puck {
  grid-column: 8 / -1; grid-row: 1 / 5;
  justify-self: center; align-self: center;
  width: clamp(190px, 16vw, 270px); aspect-ratio: 1;
  position: relative; z-index: 1;
  margin-top: -1.5rem;
  animation: bob 7s ease-in-out infinite;
}
.puck::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow), transparent);
}
.puck svg { width: 100%; height: 100%; display: block; position: relative; overflow: visible; }
.puck-shadow { fill: #000; opacity: 0.35; filter: blur(14px); }
.puck-live { stroke: var(--accent); opacity: 0.7; transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
.glyphs { stroke: var(--accent); }
.glyph { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.7) rotate(-12deg); transition: opacity 260ms, transform 600ms var(--ease-out); }
.puck[data-active="0"] .glyph[data-i="0"],
.puck[data-active="1"] .glyph[data-i="1"],
.puck[data-active="2"] .glyph[data-i="2"],
.puck[data-active="3"] .glyph[data-i="3"] { opacity: 1; transform: none; transition-delay: 180ms; }
.wave { fill: none; stroke: var(--wave); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; opacity: 0; animation: wave 3.6s var(--ease-out) infinite; }
.wave:nth-child(2) { animation-delay: 1.2s; }
.wave:nth-child(3) { animation-delay: 2.4s; }
.puck.is-tapped svg { animation: tap 520ms var(--ease-out); }

@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.48); opacity: 0; } }
@keyframes tap { 30% { transform: scale(0.955); } }

/* ---------- Feature line ---------- */
.feature-lines {
  grid-column: 1 / 7; grid-row: 3;
  display: grid; align-self: start; justify-self: start; width: min(100%, 32rem);
  margin-top: var(--space-base);
  position: relative; z-index: 3;
}
.fl {
  grid-area: 1 / 1; margin: 0; max-width: 34ch;
  font-size: clamp(1.05rem, 0.95rem + 0.35vw, 1.25rem); line-height: 1.45; font-weight: 500;
  color: var(--ink-2);
  opacity: 0; transform: translateY(10px);
  transition: opacity 300ms, transform 600ms var(--ease-out);
}
.fl.is-active { opacity: 1; transform: none; transition-delay: 280ms; }

/* ---------- Waitlist card ---------- */
.card {
  grid-column: 1 / -1; grid-row: 5;
  align-self: center;
  margin-top: 0;
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.5rem) clamp(1.25rem, 3vw, 2.5rem) clamp(1.25rem, 2.6vw, 2.25rem);
  background: var(--surface);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  position: relative; z-index: 2;
}
.card-eyebrow {
  display: flex; align-items: center; gap: 0.6rem; margin: 0 0 var(--space-snug);
  font: 600 0.72rem/1.2 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-2);
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: live 2.4s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }

.tagline {
  margin: 0 0 var(--space-tight);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.35rem, 0.95rem + 1.3vw, 2rem); line-height: 1.12; letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede { margin: 0 0 var(--space-roomy); color: var(--ink-2); max-width: 40ch; }

.signup { display: flex; gap: 0.5rem; position: relative; }
.signup[hidden] { display: none; }
.signup input[type="email"] {
  flex: 1; min-width: 0; height: 58px; padding: 0 1.15rem;
  font: 500 1rem/1 var(--font-body); color: var(--ink);
  background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--radius-control);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
}
.signup input::placeholder { color: var(--ink-3); }
.signup input:hover { border-color: var(--line-strong); }
.signup input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.signup input[aria-invalid="true"] { border-color: var(--danger); }
[dir="rtl"] .signup input[type="email"] { direction: ltr; text-align: right; }
[dir="rtl"] .signup input[type="email"]:focus, [dir="rtl"] .signup input[type="email"]:not(:placeholder-shown) { text-align: left; }

.submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  height: 58px; padding: 0 1.4rem; flex: none;
  font: 700 1rem/1 var(--font-body); color: var(--btn-ink); background: var(--btn-bg);
  border: 0; border-radius: var(--radius-control); cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out), opacity var(--duration-fast);
}
.submit svg { transition: transform var(--duration-normal) var(--ease-out); }
[dir="rtl"] .submit svg { transform: scaleX(-1); }
.submit:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn-bg) 80%, transparent); }
.submit:hover svg { transform: translateX(3px); }
[dir="rtl"] .submit:hover svg { transform: scaleX(-1) translateX(3px); }
.submit:active { transform: translateY(0) scale(0.97); }
.submit[aria-busy="true"] { opacity: 0.7; cursor: progress; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.joined { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; min-height: 58px; }
.joined[hidden] { display: none; }
.joined svg { color: var(--btn-ink); background: var(--btn-bg); border-radius: 50%; padding: 6px; width: 36px; height: 36px; flex: none; }
.joined p { margin: 0; font-weight: 600; flex: 1 1 14rem; }
.link-btn { background: none; border: 0; padding: 0.25rem 0; font: 600 0.875rem/1.2 var(--font-body); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

.status { margin: var(--space-tight) 0 0; min-height: 1.4em; font-size: 0.9rem; font-weight: 600; }
.status[data-tone="error"] { color: var(--danger); }
.note { margin: 0; font-size: 0.8125rem; color: var(--ink-3); }

/* ---------- Feature rail ---------- */
.rail {
  grid-column: 1 / 8; grid-row: 4;
  align-self: end;
  display: flex; align-items: center; gap: 1rem;
  margin-top: var(--space-roomy);
  position: relative; z-index: 3;
}
.rail-items { flex: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.5rem, 1.5vw, 1.25rem); }
.rail-item {
  display: flex; flex-direction: column; gap: 0.6rem; align-items: stretch; text-align: start;
  padding: 0.5rem 0; background: none; border: 0; cursor: pointer; color: var(--ink-3);
  font: 600 0.72rem/1.2 var(--font-display); letter-spacing: 0.16em; text-transform: uppercase;
  transition: color var(--duration-fast);
}
.rail-item:hover, .rail-item[aria-current="true"] { color: var(--ink); }
.rail-item .num { color: var(--signal); margin-inline-end: 0.5rem; }
.rail-item .track { display: block; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.rail-item .fill { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left center; }
[dir="rtl"] .rail-item .fill { transform-origin: right center; }
.rail-item.is-done .fill { transform: scaleX(1); opacity: 0.35; }
.rail-item[aria-current="true"] .fill { animation: fill var(--rotate-ms) linear forwards; }
.rail.is-paused .rail-item[aria-current="true"] .fill { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.rail-toggle .i-play { display: none; }
.rail-toggle[aria-pressed="true"] .i-play { display: block; }
.rail-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Footer ---------- */
.footer {
  display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
  padding: var(--space-base) var(--gutter) calc(var(--space-base) + env(safe-area-inset-bottom, 0px));
  font-size: 0.8125rem; color: var(--ink-3);
  max-width: 1600px; width: 100%; margin-inline: auto;
}
.footer-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* ---------- Showcase (photo bento) ---------- */
.showcase {
  width: 100%; max-width: 1600px; margin-inline: auto;
  padding: var(--space-section) var(--gutter) calc(var(--space-section) * 0.6);
  border-top: 1px solid var(--line);
  position: relative; z-index: 3;
}
.showcase-head { margin-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.showcase-title {
  margin: 0; max-width: 18ch; text-wrap: balance;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.4vw, 4.25rem); line-height: 1; letter-spacing: -0.035em;
}
:lang(ar) .showcase-title { line-height: 1.35; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.4vw, 1.25rem); }
.tile {
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(0.7rem, 1.1vw, 0.95rem);
  background: var(--tile-bg); border: 1px solid var(--line); border-radius: 30px;
  transition: transform var(--duration-normal) var(--ease-out), box-shadow var(--duration-normal) var(--ease-out);
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -30px rgb(0 0 0 / 0.45); }
.tile--media-first .tile-media { order: -1; }
.tile-copy { padding: 0.6rem 0.6rem 0.8rem; }
.tile-num { margin: 0 0 0.6rem; font: 600 0.7rem/1 var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); }
.tile h3 {
  margin: 0 0 0.6rem; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.35rem, 0.9rem + 1vw, 1.9rem); line-height: 1.04; letter-spacing: -0.03em;
}
:lang(ar) .tile h3 { line-height: 1.4; }
.tile-copy p:last-child { margin: 0; color: var(--ink-2); }
.tile-media { position: relative; margin: 0; aspect-ratio: 1; border-radius: 22px; overflow: hidden; background: var(--surface-sunken); }
.tile-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.tile:hover .tile-media img { transform: scale(1.045); }

/* Frosted app-UI overlays */
.ov {
  position: absolute; inset-inline-start: 12px; bottom: 12px; width: min(80%, 250px);
  padding: 0.85rem 0.9rem; border-radius: 18px;
  background: var(--glass); color: var(--glass-ink);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.5);
  font-size: 0.8rem; line-height: 1.3;
  transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
}
.ov p { margin: 0; }
.ov-block { top: 12px; bottom: auto; }
.ov-compete { inset-inline-start: auto; inset-inline-end: 12px; width: min(72%, 220px); padding: 0.7rem 0.75rem; }
.ov-compete .ov-board li { padding: 0.22rem 0.45rem; }
.ov-compete .ov-pill { margin-top: 0.5rem; }
.ov-wake { top: 12px; bottom: auto; inset-inline-start: auto; inset-inline-end: 12px; width: auto; min-width: 160px; }
.ov-puck { inset-inline-start: auto; inset-inline-end: 12px; display: flex; align-items: center; gap: 0.75rem; width: auto; max-width: calc(100% - 24px); }
.ov-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.ov-strong { font-weight: 700; font-size: 0.95rem; }
.ov .ov-sub { color: var(--glass-sub); margin-top: 0.15rem; }
.ov-badge { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--chip-bg); color: var(--chip-ink); flex: none; }
.ov-badge--live { background: var(--accent); color: #0d0f05; }
.ov .ov-pill { margin-top: 0.7rem; display: inline-block; padding: 0.35rem 0.65rem; border-radius: 999px; background: var(--chip-bg); color: var(--chip-ink); font-weight: 700; font-size: 0.72rem; }
.ov-apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 5px; margin-top: 0.6rem; }
.ov-apps i { aspect-ratio: 1; border-radius: 8px; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.2); }
.ov-apps i:nth-child(1) { background: linear-gradient(135deg, #ff5f6d, #ffc371); }
.ov-apps i:nth-child(2) { background: linear-gradient(135deg, #4e54c8, #8f94fb); }
.ov-apps i:nth-child(3) { background: linear-gradient(135deg, #11998e, #38ef7d); }
.ov-apps i:nth-child(4) { background: linear-gradient(135deg, #fc466b, #3f5efb); }
.ov-apps i:nth-child(5) { background: linear-gradient(135deg, #f7971e, #ffd200); }
.ov-apps i:nth-child(6) { background: linear-gradient(135deg, #232526, #606c88); }
.ov .ov-time { font-family: "Unbounded", system-ui, sans-serif; font-weight: 800; font-size: 2rem; line-height: 1; letter-spacing: -0.03em; }
.ov .ov-check { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.55rem; font-weight: 700; }
.ov-check .ov-badge { width: 22px; height: 22px; }
.mini-puck {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 38% 30%, #3a3c42, #121216 70%);
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / 0.12), 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 45%, transparent);
}
.ov-board { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.ov-board li { display: grid; grid-template-columns: 1.4rem 1fr auto; align-items: center; padding: 0.35rem 0.5rem; border-radius: 10px; }
.ov-board li span { font-weight: 800; color: var(--glass-sub); }
.ov-board li em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.ov-board li.is-me { background: var(--accent); color: #0d0f05; }
.ov-board li.is-me span { color: #0d0f05; }

/* Overlays slide in as each card scrolls into view (only when JS opts in). */
.bento.will-reveal .ov { opacity: 0; transform: translateY(14px) scale(0.98); }
.bento.will-reveal .tile.is-in .ov { opacity: 1; transform: none; transition-delay: 150ms; }

/* ---------- FAQ ---------- */
.faq {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 1.75rem); row-gap: var(--space-roomy);
  width: 100%; max-width: 1600px; margin-inline: auto;
  padding: var(--space-section) var(--gutter);
  border-top: 1px solid var(--line);
  position: relative; z-index: 3;
}
.faq-head { grid-column: 1 / 5; align-self: start; position: sticky; top: var(--space-roomy); }
.faq-kicker {
  margin: 0 0 var(--space-snug); text-transform: uppercase;
  font: 600 0.75rem/1 var(--font-display); letter-spacing: 0.22em; color: var(--signal);
}
.faq-title {
  margin: 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.4rem, 1rem + 4.4vw, 5.5rem); line-height: 0.95; letter-spacing: -0.035em;
}
:lang(ar) .faq-title { line-height: 1.3; }
.faq-list { grid-column: 6 / -1; border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: clamp(1.1rem, 0.8rem + 1vw, 1.6rem) 0;
  font-weight: 700; font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.35rem); line-height: 1.3;
  transition: color var(--duration-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--signal); }
.faq-item summary:focus-visible { outline-offset: 6px; }
.faq-icon {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  transition: transform var(--duration-normal) var(--ease-out), background-color var(--duration-fast), border-color var(--duration-fast);
}
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px;
  background: currentColor; border-radius: 2px; transform: translate(-50%, -50%);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--duration-normal) var(--ease-out); }
.faq-item[open] .faq-icon { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p {
  margin: 0; padding: 0 3.5rem clamp(1.1rem, 0.8rem + 1vw, 1.6rem) 0;
  color: var(--ink-2); max-width: 62ch; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
}
[dir="rtl"] .faq-item p { padding: 0 0 clamp(1.1rem, 0.8rem + 1vw, 1.6rem) 3.5rem; }

@media (min-width: 901px) {
  .topbar { padding-block: 1.25rem; }
  .stage { padding-top: clamp(0.25rem, 1vw, 1.25rem); padding-bottom: clamp(1.75rem, 1rem + 1.5vw, 2.5rem); }
  .rail { margin-top: 1.5rem; }
  .card {
    margin-top: clamp(1.25rem, 0.75rem + 1vw, 2rem);
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(2rem, 4vw, 4rem); align-items: center;
    padding: clamp(1.1rem, 0.8rem + 0.8vw, 1.6rem) clamp(1.5rem, 1rem + 2vw, 2.75rem);
  }
  .card > .card-eyebrow { grid-column: 1; grid-row: 1; }
  .card > .tagline { grid-column: 1; grid-row: 2; font-size: clamp(1.25rem, 0.8rem + 0.85vw, 1.75rem); margin-bottom: 0.3rem; }
  .card > .card-eyebrow { margin-bottom: 0.45rem; }
  .card > .lede { grid-column: 1; grid-row: 3; margin: 0; font-size: 0.95rem; max-width: 46ch; }
  .card > .signup, .card > .joined { grid-column: 2; grid-row: 1 / 3; align-self: end; }
  .card > .status { grid-column: 2; grid-row: 3; align-self: start; }
  .card > .note { grid-column: 2; grid-row: 3; align-self: end; }
  .feature-lines { margin-top: 1.25rem; }
  .showcase { padding-top: clamp(1.75rem, 0.75rem + 2vw, 3rem); }
  .showcase-head { margin-bottom: clamp(1.25rem, 0.75rem + 1vw, 2rem); }
  .showcase-head .faq-kicker { margin: 0 0 0.6rem; }
  .showcase-title { font-size: clamp(1.8rem, 0.8rem + 2.2vw, 3.2rem); max-width: none; }
  .bento { gap: clamp(1rem, 1.6vw, 1.5rem); }
  .tile-media { aspect-ratio: 4 / 3; }
  .tile { gap: 1rem; padding: clamp(0.8rem, 1.2vw, 1.1rem); }
  .tile-copy { padding: 0.7rem 0.7rem 0.6rem; }
  .tile h3 { font-size: clamp(1.25rem, 0.8rem + 0.9vw, 1.7rem); }
  .tile-copy p:last-child { font-size: 0.95rem; line-height: 1.45; }
}

/* Shorter laptop screens: tighten the hero and the photos so half the showcase fits on load. */
@media (min-width: 901px) and (max-height: 820px) {
  .topbar { padding-block: 0.75rem; }
  .stage { padding-top: 0; }
  .card { padding: 1.4rem 1.75rem 1.1rem; }
  .card-eyebrow { margin-bottom: 0.5rem; }
  .lede { margin-bottom: 1.1rem; }
  .signup input[type="email"], .submit { height: 52px; }
  .rail { margin-top: 1rem; }
  .fl { font-size: 1rem; }
  .tagline { font-size: 1.45rem; }
  :lang(ar) .ft { line-height: 1.25; }
  .showcase { padding-top: 1.5rem; }
  .showcase-head { margin-bottom: 1rem; }
}

/* ---------- Tablet & phone ---------- */
@media (max-width: 900px) {
  :root { --title-size: clamp(2.6rem, 0.4rem + 7.2vw, 8.25rem); }
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .card { align-self: auto; margin-top: clamp(1.5rem, 1rem + 2vw, 2.75rem); }
  .puck { grid-area: auto; }
  .feature-lines { margin-top: 0; }
  .rail { align-self: auto; }
  .kicker, .feature-titles, .feature-lines, .card, .rail { grid-column: 1; grid-row: auto; }
  .puck {
    position: absolute; inset-inline-end: -7vw; top: -1.25rem;
    width: min(42vw, 260px); margin: 0;
  }
  /* Keep the feature line below the puck: the title block is at least as tall as the puck's reach. */
  .feature-titles { min-height: calc(min(42vw, 260px) - 3rem); align-content: start; }
  .feature-lines { justify-self: start; width: auto; max-width: 30ch; margin: var(--space-base) 0 0; padding: 0; }
  .card { max-width: none; }
  .rail { margin-top: var(--space-roomy); }
  .rail-item { letter-spacing: 0.1em; }
  .stage { min-height: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq-head, .faq-list { grid-column: 1; position: static; }
  .faq-item p { padding-inline-end: 0; }
  [dir="rtl"] .faq-item p { padding-inline-start: 0; }
}
@media (max-width: 480px) {
  :root { --title-size: clamp(2.35rem, 11vw, 3.2rem); }
  .signup { flex-direction: column; }
  .signup input[type="email"] { flex: none; width: 100%; }
  .submit { width: 100%; }
  .rail-item .label { display: none; }
  .lang select { padding-inline-end: 1.9rem; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile--media-first .tile-media { order: 0; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .puck, .puck-live, .wave, .live-dot, .puck.is-tapped svg { animation: none; }
  .tile, .tile-media img, .ov { transition: none; }
  .tile:hover, .tile:hover .tile-media img { transform: none; }
  .wave { opacity: 0; }
  .ft .wi, .ft.is-active .wi, .ft.is-leaving .wi { transition: none; }
  .ft.is-leaving { visibility: hidden; }
  .fl, .fl.is-active, .glyph { transition: opacity 200ms; transform: none; }
  /* The rail fill keeps animating: it is the visible timer, not decoration. */
}
