/* Alarmah site. Plain CSS, no build step. Tokens first; everything below uses them. */

@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted-latin.woff2") format("woff2");
  font-weight: 400 800; font-display: swap;
  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: "Plex Arabic"; src: url("fonts/plexar-400.woff2") format("woff2"); font-weight: 400; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plexar-600.woff2") format("woff2"); font-weight: 500 600; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/plexar-700.woff2") format("woff2"); font-weight: 700 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  color-scheme: light;
  /* Brand colours, taken flat from the app icon */
  --orange: #ff6a3d;
  --magenta: #d6336c;
  --amber: #ffb054;
  --night: #17151b;
  --on-bright: #17151b;   /* ink on orange / amber / magenta fields */
  --on-night: #f3f3f4;

  /* Light theme */
  --bg: #f4f3f1;
  --surface: #e9e7e4;
  --surface-2: #dedbd7;
  --ink: #16151a;
  --muted: #57535c;
  --accent: #ff6a3d;
  --accent-ink: #17151b;
  --link: var(--ink);

  --font: "Schibsted Grotesk", "Plex Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Arabic", Tahoma, sans-serif;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-giant: clamp(3.25rem, 1rem + 8vw, 9.5rem);

  --margin: clamp(16px, 4vw, 48px);
  --max: 1400px;
  --radius: 24px;
  --gap: 8px;
  --section: clamp(96px, 12vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f0e12; --surface: #1a181e; --surface-2: #25222a;
    --ink: #f4f2ef; --muted: #aaa5ae; --link: var(--ink);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f0e12; --surface: #1a181e; --surface-2: #25222a;
  --ink: #f4f2ef; --muted: #aaa5ae; --link: var(--ink);
}

/* Arabic: Plex leads, and display type is set looser, since tight tracking breaks joined letters */
:lang(ar) { --font: "Plex Arabic", "Schibsted Grotesk", -apple-system, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--step-body); line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
:lang(ar) body, body:lang(ar) { letter-spacing: 0; line-height: 1.7; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.045em; line-height: 0.95; text-wrap: balance; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.2; font-weight: 700; }
button { font: inherit; color: inherit; }
::selection { background: var(--orange); color: var(--on-bright); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; z-index: 50; text-decoration: none; font-weight: 600; }
.skip:focus { top: 8px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--margin); }

/* ---------- Buttons: one shape, fully round ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: var(--step-body); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: #ff7f57; }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink); opacity: .9; }
.btn svg { width: 20px; height: 20px; flex: none; }
.textlink { font-weight: 600; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.textlink span { transition: transform .18s var(--ease); display: inline-block; }
.textlink:hover span { transform: translateX(4px); }
:dir(rtl) .textlink span, [dir="rtl"] .textlink span { transform: scaleX(-1); }
[dir="rtl"] .textlink:hover span { transform: scaleX(-1) translateX(4px); }

/* ---------- Bar ---------- */
.bar { position: sticky; top: 0; z-index: 30; background: var(--bg); }
.bar__in { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 32px); height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.bar nav { display: flex; gap: clamp(12px, 2vw, 28px); margin-inline-start: auto; }
.bar nav a, .bar__lang { text-decoration: none; font-weight: 600; font-size: 1rem; padding: 8px 2px; }
.bar nav a:hover, .bar__lang:hover { color: var(--link); }
.bar__tools { display: flex; align-items: center; gap: 6px; }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 0;
  background: transparent; cursor: pointer; transition: background-color .15s; }
.iconbtn:hover { background: var(--surface); }
.iconbtn svg { width: 22px; height: 22px; }
.bar .btn { min-height: 44px; padding: 0 18px; font-size: 1rem; }
.theme-dark-only { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-dark-only { display: block; } :root:not([data-theme="light"]) .theme-light-only { display: none; } }
:root[data-theme="dark"] .theme-dark-only { display: block; }
:root[data-theme="dark"] .theme-light-only { display: none; }
@media (max-width: 900px) { .bar nav { display: none; } .bar__tools { margin-inline-start: auto; } }
@media (max-width: 420px) { .bar .btn { display: none; } }

/* ---------- Hero: two tones split at the middle ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100svh - 72px); }
.hero__text { display: flex; flex-direction: column; justify-content: flex-end; gap: 0;
  padding: 48px var(--margin) clamp(40px, 6vw, 88px); padding-inline-start: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); }
.hero h1 { font-size: clamp(2.75rem, 1rem + 5vw, 6rem); }

.hero__lead { margin-top: 36px; font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 36px; }
.hero__note { margin-top: 22px; color: var(--muted); font-size: 1rem; }
.hero__stage { background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px; padding: 40px var(--margin); position: relative; overflow: hidden; }
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__stage { padding: 32px var(--margin) 28px; }
  .hero__text { padding: 40px var(--margin) 44px; }
  .hero__lead { margin-top: 20px; }
  .hero__actions { margin-top: 26px; }
}

/* ---------- The ring screen fragment (data-ui) ---------- */
.ring { --w: min(340px, 78vw); width: var(--w); aspect-ratio: 9 / 19; position: relative; border-radius: calc(var(--w) * .14);
  overflow: hidden; background: #000; color: #fff; isolation: isolate; font-family: var(--font);
  -webkit-user-select: none; user-select: none; }
@media (max-width: 860px) { .ring { --w: min(300px, 70vw); } }
.ring__media { position: absolute; inset: 0; z-index: -2; }
.ring__media video, .ring__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.6s ease; }
.ring__media .is-off { opacity: 0; }
.ring::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0,0,0,.28); }
.ring__top { position: absolute; top: 7%; inset-inline: 0; text-align: center; }
.ring__label { font-size: calc(var(--w) * .045); font-weight: 600; opacity: .9; }
.ring__time { font-size: calc(var(--w) * .27); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-top: 2%; font-variant-numeric: tabular-nums; }
.ring__date { font-size: calc(var(--w) * .045); opacity: .85; }
.ring__wp { position: absolute; top: 42%; inset-inline: 0; text-align: center; font-size: calc(var(--w) * .038); font-weight: 600; opacity: .85; }
.ring__sheet { position: absolute; inset-inline: 5%; bottom: 4%; grid-template-columns: minmax(0, 1fr); background: rgba(18,17,22,.82); border-radius: calc(var(--w) * .085);
  padding: calc(var(--w) * .055); display: grid; gap: calc(var(--w) * .03); }
.ring__step { display: flex; justify-content: space-between; font-size: calc(var(--w) * .038); font-weight: 600; color: #cfcad3; }
.ring__step b { color: var(--orange); font-weight: 700; }
.ring__q { font-size: calc(var(--w) * .095); font-weight: 700; letter-spacing: -0.02em; text-align: center; font-variant-numeric: tabular-nums; direction: ltr; }
.ring__q.is-text { font-size: calc(var(--w) * .05); line-height: 1.35; letter-spacing: 0; text-align: start; direction: inherit; }
.ring__q .typed { color: var(--orange); }
.ring__form { display: flex; gap: 8px; }
.ring__form input { flex: 1; min-width: 0; width: 0; height: calc(var(--w) * .14); border-radius: calc(var(--w) * .045); border: 1px solid rgba(255,255,255,.2); /* taste-skill-ignore: form field inside data-ui */
  background: rgba(255,255,255,.1); color: #fff; font: inherit; font-size: calc(var(--w) * .05); padding: 0 12px; text-align: center; }
.ring__form input::placeholder { color: rgba(255,255,255,.5); }
.ring__form input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }
.ring__form button { height: calc(var(--w) * .14); padding: 0 calc(var(--w) * .05); border: 0; border-radius: calc(var(--w) * .045);
  background: var(--orange); color: var(--on-bright); font-weight: 700; font-size: calc(var(--w) * .045); cursor: pointer; }
.ring__form button:active { transform: scale(.97); }
.ring__msg { font-size: calc(var(--w) * .038); color: #cfcad3; text-align: center; min-height: 1.4em; }
.ring.is-wrong .ring__sheet { animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ring.is-done .ring__q { color: #8ef0b0; }
.tick { display: inline-block; width: .9em; height: .9em; vertical-align: -0.1em; }
.ring__bars { display: flex; gap: 4px; }
.ring__bars i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); }
.ring__bars i.on { background: var(--orange); }
.ring.is-ringing .ring__time { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.03); } }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 420px; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 5px; border-radius: 999px; border: 0;
  background: var(--bg); font-weight: 600; font-size: .9375rem; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
[dir="rtl"] .chip { padding: 0 5px 0 14px; }
.chip img { width: 30px; height: 30px; border-radius: 999px; object-fit: cover; }
.chip:hover { transform: translateY(-2px); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- Section frame ---------- */
.sec { padding-block: var(--section) 0; }
.sec__head { display: grid; gap: 20px; margin-bottom: 56px; max-width: 760px; }
.sec__head h2 { font-size: var(--step-head); }
.sec__head p { font-size: var(--step-lead); line-height: 1.4; max-width: 44ch; }

/* ---------- Missions: list + pinned fragment ---------- */
.missions { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.mlist { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.mbtn { width: 100%; text-align: start; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
  padding: 16px 22px; border-radius: var(--radius); border: 0; background: var(--surface); cursor: pointer;
  transition: background-color .2s, transform .2s var(--ease); }
.mbtn:hover { transform: translateX(4px); }
[dir="rtl"] .mbtn:hover { transform: translateX(-4px); }
.mbtn strong { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.mbtn span { grid-column: 1; color: var(--muted); font-size: 1rem; line-height: 1.4; }
.mbtn[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.mbtn[aria-selected="true"] span { color: inherit; opacity: .78; }
.mbtn svg { grid-row: 1 / span 2; grid-column: 2; width: 22px; height: 22px; opacity: 0; transition: opacity .2s; }
[dir="rtl"] .mbtn svg { transform: scaleX(-1); }
.mbtn[aria-selected="true"] svg { opacity: 1; }
.mstage { position: sticky; top: 96px; background: var(--night); border-radius: var(--radius); min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; padding: clamp(24px, 4vw, 56px); overflow: hidden; color: var(--on-night); }
.mstage__note { width: min(380px, 100%);
  font-size: 1rem; color: #c8c3cc; max-width: 46ch; }
@media (max-width: 900px) {
  .missions { grid-template-columns: 1fr; }
  .mlist { grid-template-columns: 1fr 1fr; }
  .mbtn { padding: 14px 16px; grid-template-columns: 1fr; }
  .mbtn span { display: none; }
  .mbtn svg { display: none; }
  .mstage { position: relative; top: 0; min-height: 0; }
}

/* mission panels share the phone-sheet look */
.mp { width: min(380px, 100%); background: #221f27; border-radius: 30px; padding: 26px; display: grid; gap: 18px; color: #fff; }
.mp[hidden] { display: none; }
.mp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; color: #cfcad3; font-size: .9375rem; }
.mp__head b { color: #fff; font-size: 1.125rem; }
.mp__big { font-size: 2.75rem; font-weight: 800; letter-spacing: -0.03em; text-align: center; font-variant-numeric: tabular-nums; direction: ltr; }
.mp__sentence { font-size: 1.375rem; line-height: 1.4; font-weight: 600; }
.mp__sentence .typed { color: var(--orange); }
.mp__sentence .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--orange); vertical-align: -0.15em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mp__field { height: 52px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; padding: 0 16px; font-size: 1.0625rem; color: #e9e6ec; overflow: hidden; white-space: nowrap; }
.keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; direction: ltr; }
.keys span { height: 48px; border-radius: 14px; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.25rem; font-weight: 600; }
.keys span.hot { background: var(--orange); color: var(--on-bright); }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.grid4 i { aspect-ratio: 1; border-radius: 14px; background: rgba(255,255,255,.1); }
.grid4 i.on { background: var(--orange); animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.meter { display: grid; place-items: center; }
.meter svg { width: 200px; height: 200px; }
.meter__num { position: absolute; text-align: center; }
.meter__wrap { position: relative; display: grid; place-items: center; }
.meter__num b { display: block; font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; direction: ltr; }
.meter__num span { color: #cfcad3; font-size: .9375rem; }
.bar-prog { height: 10px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; }
.bar-prog i { display: block; height: 100%; background: var(--orange); border-radius: 10px; }
[dir="rtl"] .bar-prog i { margin-inline-start: 0; }
.cam { position: relative; aspect-ratio: 4 / 5; border-radius: 20px; overflow: hidden; background: #2b2a30; }
.cam svg { width: 100%; height: 100%; }
.cam__box { position: absolute; border: 3px solid #8ef0b0; border-radius: 14px; }
.cam__tag { position: absolute; background: #8ef0b0; color: #0d2216; font-weight: 700; font-size: .875rem; padding: 4px 10px; border-radius: 999px; }
.mp__ok { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #8ef0b0; }
.mp__ok::before { content: ""; width: 10px; height: 10px; border-radius: 999px; background: #8ef0b0; }

/* ---------- Showcase: the Extra loud toggle at poster size ---------- */
.loud { position: relative; min-height: 92svh; overflow: hidden; background: var(--night); color: var(--on-night);
  transition: background-color .5s var(--ease), color .5s var(--ease); margin-top: var(--section); }
.loud.is-on { background: var(--orange); color: var(--on-bright); }
.loud__text { position: relative; z-index: 2; padding-top: clamp(48px, 8vw, 112px); display: grid; gap: 22px; }
.loud h2 { font-size: var(--step-head); max-width: 14ch; }
.loud__text p { max-width: 40ch; font-size: var(--step-lead); line-height: 1.4; }
.loud__facts { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; font-size: var(--step-body); max-width: 40ch; }
.loud__facts li { display: flex; gap: 12px; }
.loud__facts li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: .55em; border-radius: 999px; background: currentColor; }
.bigtoggle { position: absolute; inset-inline-end: -5vw; bottom: 9vh; font-size: clamp(36px, 7.2vw, 118px);
  display: grid; gap: .35em; justify-items: start; z-index: 1; }
.bigtoggle__row { display: flex; align-items: center; gap: .6em; background: rgba(255,255,255,.08); padding: .45em .5em .45em .7em; border-radius: .7em; }
[dir="rtl"] .bigtoggle__row { padding: .45em .7em .45em .5em; }
.loud.is-on .bigtoggle__row { background: rgba(23,21,27,.1); }
.bigtoggle__label { font-weight: 700; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.bigtoggle__txt { display: grid; }
.bigtoggle__sub { display: block; white-space: nowrap; font-size: .3em; font-weight: 600; letter-spacing: 0; opacity: .8; margin-top: .4em; }
.switch { position: relative; width: 2.1em; height: 1.25em; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  background: #3b3840; transition: background-color .3s var(--ease); flex: none; }
.switch::after { content: ""; position: absolute; top: .1em; left: .1em; width: 1.05em; height: 1.05em; border-radius: 999px; background: #fff;
  transition: transform .35s var(--ease); }
.switch[aria-checked="true"] { background: #34c759; }
.switch[aria-checked="true"]::after { transform: translateX(.85em); }
.switch:focus-visible { outline-width: 4px; outline-offset: 6px; border-radius: 999px; }
.vol { display: flex; align-items: center; gap: .3em; font-size: .4em; padding-inline-start: .4em; }
.vol i { width: .3em; border-radius: .2em; background: currentColor; opacity: .25; transition: opacity .3s, height .3s; }
.vol i:nth-child(1) { height: .5em; } .vol i:nth-child(2) { height: .8em; } .vol i:nth-child(3) { height: 1.1em; }
.vol i:nth-child(4) { height: 1.4em; } .vol i:nth-child(5) { height: 1.7em; } .vol i:nth-child(6) { height: 2em; } .vol i:nth-child(7) { height: 2.3em; }
.vol i.on { opacity: 1; }
@media (max-width: 760px) {
  .loud { min-height: 86svh; }
  .bigtoggle .switch { order: -1; }
  .bigtoggle { font-size: 15vw; inset-inline-end: auto; inset-inline-start: var(--margin); bottom: 6vh; width: 130vw; }
}

/* ---------- Wallpapers ---------- */
.walls__top { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.walls__top h2 { font-size: var(--step-head); }
.walls__top p { font-size: var(--step-lead); line-height: 1.4; max-width: 40ch; }
.walls { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); list-style: none; margin: 0; padding: 0; }
.wall { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 9 / 16; background: var(--night); color: #fff; }
.wall video, .wall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.wall:hover video, .wall:hover img { transform: scale(1.06); }
.wall figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 48px 16px 16px; background: linear-gradient(transparent, rgba(0,0,0,.6)); /* taste-skill-ignore: neutral scrim over the video */ }
.wall figcaption b { display: block; font-size: 1.125rem; font-weight: 700; }
.wall figcaption span { font-size: .875rem; opacity: .9; }
.wall__over { position: absolute; top: 14%; inset-inline: 10px; text-align: center; font-weight: 800; font-size: clamp(1rem, 1.6vw, 1.5rem); letter-spacing: -0.02em; }
.wall__call { position: absolute; top: 12%; inset-inline: 0; text-align: center; }
.wall__call b { display: block; font-size: clamp(1.1rem, 1.8vw, 1.6rem); }
.wall__call span { font-size: .875rem; opacity: .85; }
.walls__own { margin-top: var(--gap); display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap); }
.own { background: var(--surface); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: grid; gap: 12px; align-content: center; }
.own h3 { font-size: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); }
.own p { max-width: 52ch; }
.tones { background: var(--surface); border-radius: var(--radius); padding: 20px; display: grid; gap: 4px; align-content: center; }
.tones__row { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: 14px; font-weight: 600; font-size: 1rem; }
.tones__row.sel { background: var(--bg); }
.tones__row.sel::after { content: ""; width: 12px; height: 7px; border-left: 3px solid var(--orange); border-bottom: 3px solid var(--orange); transform: rotate(-45deg) translateY(-2px); }
.tones__cap { color: var(--muted); font-size: .875rem; font-weight: 600; padding: 4px 14px; }
@media (max-width: 1000px) {
  .walls__top { grid-template-columns: 1fr; }
  .walls { grid-template-columns: repeat(3, 1fr); }
  .walls__own { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .walls { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Feature cells: staggered checkerboard ---------- */
.cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.cell { background: var(--surface); border-radius: var(--radius); min-height: 440px; display: flex; flex-direction: column; overflow: hidden; }
.cell__t { padding: 28px; display: grid; gap: 10px; }
.cell__t h3 { font-size: 1.375rem; letter-spacing: -0.025em; line-height: 1.1; }
.cell__t p { font-size: 1rem; line-height: 1.5; }
.cell__f { margin-top: auto; padding: 0 28px; display: flex; }
.cell--flip { flex-direction: column-reverse; }
.cell--flip .cell__f { margin-top: 0; margin-bottom: auto; padding-top: 28px; }
.cell--flip .cell__t { margin-top: auto; }
/* fragments inside cells */
.ui { background: #fff; color: #17151b; border-radius: 18px; font-size: 15px; line-height: 1.35; width: 100%; letter-spacing: -0.005em; }
:root[data-theme="dark"] .ui { background: #2a2730; color: #f4f2ef; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ui { background: #2a2730; color: #f4f2ef; } }
.ui--dock-b { border-radius: 18px 18px 0 0; }
.ui--dock-t { border-radius: 0 0 18px 18px; }
.ui__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; }
.ui__row + .ui__row { border-top: 1px solid rgba(127,127,127,.18); } /* taste-skill-ignore: list separators inside data-ui */
.ui__row small { color: #66616b; font-size: 13px; }
:root[data-theme="dark"] .ui__row small { color: #b3aeb8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ui__row small { color: #b3aeb8; } }
.ui__title { font-weight: 700; font-size: 17px; padding: 18px 18px 6px; }
.ui__pill { background: var(--orange); color: var(--on-bright); font-weight: 700; padding: 10px 16px; border-radius: 999px; text-align: center; }
.ui__tag { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.ui__dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800; flex: none; }
.ui__seg { display: flex; background: rgba(127,127,127,.16); border-radius: 10px; padding: 3px; gap: 3px; }
.ui__seg span, .ui__seg button { flex: 1; text-align: center; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 14px; border: 0; background: transparent; cursor: pointer; }
.ui__seg .on, .ui__seg [aria-pressed="true"] { background: #fff; color: #17151b; }
.dialog .ui__seg [aria-pressed="true"] { background: var(--night); color: #fff; }
.ui__check { width: 22px; height: 22px; border-radius: 999px; background: #34c759; color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.ui__count { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.banner { background: rgba(255,255,255,.92); color: #17151b; border-radius: 20px; padding: 12px 14px; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; font-size: 14px; }
.banner img { width: 38px; height: 38px; border-radius: 9px; grid-row: span 2; }
.banner b { display: flex; justify-content: space-between; font-size: 14px; }
.banner b small { font-weight: 500; color: #6b6670; }
.lockbg { width: 100%; border-radius: 18px 18px 0 0; padding: 18px 14px 28px; background: #2b2730 url("media/galaxy.webp") center 30% / cover; display: grid; gap: 8px; }
.lockbg__time { color: #fff; text-align: center; font-size: 52px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.speech { background: var(--night); color: #f4f2ef; border-radius: 18px 18px 18px 4px; padding: 16px 18px; font-size: 16px; line-height: 1.45; }
[dir="rtl"] .speech { border-radius: 18px 18px 4px 18px; }
.speech + .speech { margin-top: 8px; }
.wave { display: flex; gap: 3px; align-items: center; height: 22px; margin-bottom: 8px; }
.wave i { width: 3px; border-radius: 3px; background: var(--orange); animation: wv 1s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: -.3s; } .wave i:nth-child(3n) { animation-delay: -.6s; }
@keyframes wv { 0%, 100% { height: 6px; } 50% { height: 22px; } }
@media (max-width: 1000px) {
  .cells { grid-template-columns: 1fr; gap: 6px; }
  .cell, .cell--flip { min-height: 0; flex-direction: column; }
  .cell--flip .cell__f { padding-top: 0; margin-bottom: 0; margin-top: auto; }
  .cell--flip .cell__t { margin-top: 0; }
  .cell__f { padding-top: 8px; }
  .cell:nth-child(even) .cell__f { padding-inline: 48px 0; }
  .cell:nth-child(odd) .cell__f { padding-inline: 0 48px; }
  .cell .ui { border-radius: 18px 18px 0 0; }
}

/* ---------- How a morning goes: four fields ---------- */
.morning { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--section); }
.field { min-height: 84svh; position: relative; padding: clamp(24px, 2.4vw, 40px) clamp(20px, 2vw, 32px); display: flex; flex-direction: column; }
.field:nth-child(1) { background: var(--amber); color: var(--on-bright); }
.field:nth-child(2) { background: var(--orange); color: var(--on-bright); }
.field:nth-child(3) { background: var(--magenta); color: #fff; }
.field:nth-child(4) { background: var(--night); color: var(--on-night); }
.field h2 { font-size: clamp(1.6rem, 1rem + 1.6vw, 2.5rem); max-width: 10ch; }
.field__card { margin-top: 38%; margin-inline: auto; width: min(270px, 100%); transition: transform .15s var(--ease); }
.field:first-child .field__card { margin-top: calc(38% - 2.2em); }
.field:hover .field__card { transform: translateY(-6px); }
.field__say { margin-top: auto; font-size: clamp(1.25rem, .9rem + 1vw, 1.75rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; max-width: 16ch; padding-top: 32px; }
:lang(ar) .field__say { letter-spacing: 0; line-height: 1.4; }
.acard { background: #fff; color: #17151b; border-radius: 22px; padding: 18px; display: grid; gap: 10px; font-size: 14px; }
.acard__time { font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
[dir="rtl"] .acard__time { text-align: end; }
.acard__label { font-weight: 600; color: #57535c; }
.acard__row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid #ece9e6; /* taste-skill-ignore: inside data-ui card */ }
.acard__row span:first-child { color: #6b6670; }
.acard__row b { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.acard__empty { color: #a29da6; font-weight: 500; }
.acard__state { justify-self: start; font-weight: 700; font-size: 13px; padding: 5px 10px; border-radius: 999px; background: #ece9e6; }
.acard__state.is-ring { background: var(--orange); color: var(--on-bright); }
.acard__state.is-ok { background: #d8f6e2; color: #135a2c; }
.mini { display: inline-block; flex: none; width: 18px; height: 18px; border-radius: 5px; background: #2b2730 url("media/galaxy.webp") center / cover; }
@media (max-width: 1000px) {
  .morning { grid-template-columns: 1fr 1fr; }
  .field { min-height: 64svh; }
}
@media (max-width: 620px) {
  .morning { grid-template-columns: 1fr; }
  .field { min-height: 0; padding: 32px 20px 48px; flex-direction: column; }
  .field__say { order: -1; margin-top: 0; padding-top: 0; font-size: 1.5rem; max-width: 22ch; }
  .field h2 { order: -2; margin-bottom: 16px; font-size: 1.5rem; max-width: none; }
  .field__card, .field:first-child .field__card { margin: 32px 0 0; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq__head { position: sticky; top: 96px; display: grid; gap: 20px; }
.faq__head h2 { font-size: clamp(2.25rem, 1rem + 3vw, 4rem); }
.faq__head p { max-width: 30ch; }
.faq__head a { color: var(--link); font-weight: 600; }
.qa { display: grid; gap: var(--gap); }
.qa details { background: var(--surface); border-radius: var(--radius); transition: background-color .25s var(--ease), color .25s; }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 18px 26px; font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.3; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline-offset: -3px; border-radius: var(--radius); }
.plus { position: relative; width: 16px; height: 16px; flex: none; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 6.5px; width: 16px; height: 3px; border-radius: 3px; background: currentColor; transition: transform .25s var(--ease); }
.plus::after { transform: rotate(90deg); }
.qa details[open] { background: var(--accent); color: var(--accent-ink); }
.qa details[open] .plus::after { transform: rotate(0); }
.qa .ans { padding: 0 26px 26px; max-width: 60ch; display: grid; gap: 12px; }
.qa .ans ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
.qa details[open] a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.qa summary:hover { opacity: .85; }
@media (max-width: 900px) {
  .faq { grid-template-columns: 1fr; }
  .faq__head { position: static; }
  .faq__head h2 { font-size: 2.5rem; }
  .qa { gap: 6px; }
  .qa summary { font-size: 1.125rem; min-height: 64px; padding: 16px 20px; }
  .qa .ans { padding: 0 20px 22px; font-size: 1rem; }
}

/* ---------- CTA: new alarm already open ---------- */
.cta { background: var(--accent); color: var(--accent-ink); min-height: 90svh; margin-top: var(--section); display: flex; }
.cta__in { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: center; padding-block: 64px; flex: 1; }
.cta__text { align-self: end; display: grid; gap: 22px; padding-bottom: 16px; }
.cta h2 { font-size: clamp(3.5rem, 1rem + 6.4vw, 7.5rem); line-height: .9; }
:lang(ar) .cta h2 { line-height: 1.15; }
.cta__text p { font-size: var(--step-lead); max-width: 34ch; line-height: 1.4; }
.dialog { background: #fff; color: #17151b; border-radius: 28px; padding: 24px; display: grid; gap: 16px; width: min(440px, 100%); justify-self: center;
  box-shadow: 0 30px 80px rgba(60, 20, 5, .28); /* taste-skill-ignore: the open dialog floats */ font-size: 15px; }
.dialog__bar { display: flex; justify-content: space-between; align-items: center; font-weight: 600; color: #c2401a; }
.dialog__bar b { color: #17151b; font-size: 17px; }
.dialog__time { display: block; width: 100%; min-width: 0; font: inherit; font-size: 64px; font-weight: 700; letter-spacing: -0.03em; text-align: center; border: 0;
  background: #f4f3f1; border-radius: 18px; padding: 10px; color: #17151b; font-variant-numeric: tabular-nums; direction: ltr; }
.dialog__time:focus { outline: 3px solid var(--orange); outline-offset: 2px; }
.dialog label { display: grid; gap: 6px; font-weight: 600; color: #57535c; font-size: 13px; }
.dialog input[type="text"] { font: inherit; font-size: 17px; color: #17151b; padding: 12px 14px; border-radius: 14px; border: 1px solid #dedbd7; background: #fff; }
.dialog input[type="text"]:focus { outline: 3px solid var(--orange); outline-offset: 1px; }
.dialog .ui__seg { background: #eeece9; }
.dialog .ui__seg button { color: #17151b; }
.dialog .btn { width: 100%; background: var(--night); color: #fff; min-height: 56px; }
.dialog .btn:hover { background: #2b2830; }
.dialog__fine { text-align: center; color: #6b6670; font-size: 13px; }
@media (max-width: 860px) {
  .cta { min-height: 84svh; }
  .cta__in { grid-template-columns: minmax(0, 1fr); padding-block: 48px; gap: 36px; align-items: start; }
  .cta__text { align-self: start; padding-bottom: 0; }
  .cta h2 { font-size: 13vw; }
}

/* ---------- Footer of tiles ---------- */
.foot { padding: 12px max(12px, calc((100vw - var(--max)) / 2 + var(--margin) - 24px)); display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
.tile { background: var(--surface); border-radius: var(--radius); padding: 24px; min-height: 220px; display: flex; flex-direction: column; gap: 14px; }
.tile--say { grid-column: span 4; }
.tile--say p:first-child { font-size: 1.5rem; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; max-width: 24ch; }
.tile--say p:last-child { margin-top: auto; font-size: var(--step-small); color: var(--muted); }
.tile--nav { grid-column: span 3; }
.tile--nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tile--nav a { text-decoration: none; font-weight: 600; }
.tile--nav a:hover { color: var(--link); }
.tile--time { grid-column: span 2; }
.tile--time b { font-size: 2.25rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: auto; }
.tile--time span { color: var(--muted); font-size: 1rem; }
.tile--mail { grid-column: span 3; }
.tile--mail a { margin-top: auto; font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.tile--word { grid-column: span 8; background: var(--ink); color: var(--bg); min-height: 320px; display: grid; place-items: center; overflow: hidden; }
.tile--word span { font-size: clamp(4rem, 12vw, 11rem); font-weight: 800; letter-spacing: -0.06em; line-height: .8; }
.tile--go { grid-column: span 4; background: var(--accent); color: var(--accent-ink); min-height: 320px; text-decoration: none; position: relative; transition: transform .2s var(--ease); }
.tile--go:hover { transform: translateY(-4px); }
.tile--go b { font-size: 1.75rem; line-height: 1.15; letter-spacing: -0.02em; max-width: 12ch; }
.tile--go svg { position: absolute; inset-inline-end: 24px; bottom: 24px; width: 72px; height: 72px; transition: transform .2s var(--ease); }
[dir="rtl"] .tile--go svg { transform: scaleX(-1); }
.tile--go:hover svg { transform: translate(6px, -6px); }
[dir="rtl"] .tile--go:hover svg { transform: scaleX(-1) translate(6px, -6px); }
@media (max-width: 900px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
  .tile { padding: 20px; min-height: 160px; }
  .tile--word { grid-column: 1 / -1; order: -2; min-height: 160px; }
  .tile--word span { font-size: 22vw; }
  .tile--go { grid-column: 1 / -1; order: -1; min-height: 200px; }
  .tile--nav, .tile--mail, .tile--time, .tile--say { grid-column: span 1; }
  .tile--say { grid-column: 1 / -1; }
}

/* ---------- Document pages: support, privacy, terms ---------- */
.dochero { padding-block: clamp(40px, 6vw, 96px) clamp(40px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: stretch; }
.dochero h1 { font-size: var(--step-giant); line-height: .9; }
:lang(ar) .dochero h1 { line-height: 1.15; }
.dochero p { font-size: var(--step-lead); line-height: 1.4; max-width: 38ch; }
.dochero .meta { font-size: 1rem; color: var(--muted); margin-top: 12px; }
.dochero__text { display: grid; gap: 28px; align-self: end; }
.docart { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--night) center / cover no-repeat;
  display: flex; align-items: flex-end; padding: clamp(16px, 2.4vw, 28px); }
.docart .ui { position: relative; max-width: 380px; margin-inline-start: auto; }
.doc { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 5vw, 80px); align-items: start; padding-bottom: max(var(--section), 160px); }
.doc__side { position: sticky; top: 96px; }
.toc { display: grid; gap: 4px; }
.toc a { text-decoration: none; padding: 8px 14px; border-radius: 12px; font-weight: 600; font-size: 1rem; color: var(--muted); }
.toc a:hover { background: var(--surface); color: var(--ink); }
.prose { max-width: 70ch; display: grid; gap: 18px; }
.prose h2 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem); margin-top: 40px; letter-spacing: -0.03em; line-height: 1.05; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose ul { margin: 0; padding-inline-start: 22px; display: grid; gap: 10px; }
.prose a { color: var(--link); }
.prose strong { font-weight: 700; }
.summary { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); display: grid; gap: 14px; }
.summary h2 { margin: 0; font-size: 1.5rem; }
.summary ul { padding-inline-start: 22px; }
.summary a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 1rem; }
.dtable th, .dtable td { text-align: start; vertical-align: top; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--surface-2); }
[dir="rtl"] .dtable th, [dir="rtl"] .dtable td { padding: 14px 0 14px 12px; }
.dtable th { color: var(--muted); font-weight: 600; font-size: .9375rem; }
.dtable td:first-child { font-weight: 700; white-space: nowrap; }
@media (max-width: 640px) {
  .dtable thead { display: none; }
  .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; }
  .dtable tr { padding: 14px 0; border-bottom: 1px solid var(--surface-2); }
  .dtable td { border: 0; padding: 2px 0; white-space: normal; }
}
.contact { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gap); margin-bottom: var(--section); }
.contact__mail { background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); padding: clamp(28px, 4vw, 56px); display: grid; gap: 18px; align-content: space-between; min-height: 340px; }
.contact__mail a { font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; overflow-wrap: anywhere; }
.contact__mail p { max-width: 40ch; }
.contact__tips { background: var(--surface); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); display: grid; gap: 14px; align-content: start; }
.contact__tips h2 { font-size: 1.5rem; letter-spacing: -0.02em; }
.contact__tips ul { margin: 0; padding-inline-start: 20px; display: grid; gap: 8px; }
@media (max-width: 900px) {
  .dochero, .doc, .contact { grid-template-columns: minmax(0, 1fr); }
  .docart { min-height: 300px; }
  .doc__side { position: static; }
  .toc { display: flex; flex-wrap: wrap; gap: 6px; }
  .toc a { background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 999px; font-size: .9375rem; }
  .dochero h1 { font-size: 3.5rem; }
}

/* ---------- 404 ---------- */
.lost { min-height: calc(100svh - 72px); display: grid; grid-template-columns: 1fr 1fr; }
.lost__text { display: grid; align-content: end; gap: 22px; padding: 48px var(--margin) 80px; padding-inline-start: max(var(--margin), calc((100vw - var(--max)) / 2 + var(--margin))); }
.lost__text h1 { font-size: var(--step-giant); line-height: .9; }
.lost__text .ar { font-family: "Plex Arabic", var(--font); }
.lost__text p { font-size: var(--step-lead); max-width: 34ch; line-height: 1.4; }
.lost__stage { background: var(--night); display: grid; place-items: center; color: #fff; overflow: hidden; position: relative; }
.lost__stage video, .lost__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .7; }
.lost__clock { position: relative; font-size: clamp(5rem, 14vw, 13rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .lost { grid-template-columns: 1fr; } .lost__stage { order: -1; min-height: 40svh; } }

@media (max-width: 640px) {
  .hero__lead, .sec__head p, .loud__text p, .loud__facts, .field__say, .faq__head p, .own p, .cta__text p, .walls__top p, .dochero p, .qa .ans, .prose { max-width: none; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* ---------- Motion layer ---------- */
.js [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(min(var(--i, 0), 6) * 80ms); }
.js [data-reveal].in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] > * { opacity: 1; transform: none; }
}
@media print { .bar, .foot, .cta, .hero__stage { display: none; } body { background: #fff; color: #000; } }
