/* fateengame.com. Tokens mirror the app's ColorTokens.swift; tactile surfaces mirror Tactile.swift:
   a face with an ink outline sitting on a hard slab that sinks when pressed. */

/* Latin faces, then Arabic faces for the same families: each page downloads only what it shows. */
@font-face { font-family: "Fateen Display"; src: url(/assets/fonts/bricolage-800.woff2?v=3c64d3bea364) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Fateen Display"; src: url(/assets/fonts/bricolage-700.woff2?v=b8dbc5578839) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Fateen Display"; src: url(/assets/fonts/alexandria-900.woff2?v=23f55584f7cd) format("woff2"); font-weight: 800; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Fateen Display"; src: url(/assets/fonts/alexandria-700.woff2?v=b66a69d09675) format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Fateen Text"; src: url(/assets/fonts/inter-400.woff2?v=20dc3ed67a90) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Fateen Text"; src: url(/assets/fonts/inter-600.woff2?v=ca7a85f02187) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2193, U+2212, U+2215; }
@font-face { font-family: "Fateen Text"; src: url(/assets/fonts/plexar-400.woff2?v=7c5ab85237d9) format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Fateen Text"; src: url(/assets/fonts/plexar-600.woff2?v=15cf4c00631d) format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }

:root {
  color-scheme: light dark;

  --canvas: #F6F4EE;
  --surface: #FFFFFF;
  --muted: #EFEDE8;
  --hairline: #DBD9D5;
  --grid: rgba(255, 255, 255, 0.7);

  --ink: #0A0A0A;
  --ink-2: #4D4D4D;
  --ink-3: #8C8880;
  --stroke: #0A0A0A;
  --edge: #0A0A0A;
  --action: #050505;
  --action-label: #FFFFFF;

  --brand: #FA541C;
  --brand-deep: #C23C0C;
  --brand-soft: #FFE4D6;
  --green: #00583D;
  --green-deep: #00382A;
  --green-soft: #D8F3E7;
  --success: #00A07A;
  --sun: #FFC53D;
  --sun-deep: #B86F00;
  --sun-soft: #FFF0C4;

  --easy-1: #00B88C;
  --easy-2: #00A07A;
  --easy-edge: #006B52;
  --medium-1: #FDBA34;
  --medium-2: #F39B11;
  --medium-edge: #B86F00;
  --hard-1: #F33A64;
  --hard-2: #DE0034;
  --hard-edge: #9A0024;

  /* The inverted band: ink in light mode, paper in dark mode. */
  --band: #0A0A0A;
  --on-band: #F6F4EE;
  --on-band-2: #B5B0A6;
  --band-surface: #1C1B19;
  --band-hairline: #2F2D29;
  --band-muted: #2B2926;
  --band-muted-ink: #7D786F;

  --glow-brand: rgba(250, 84, 28, 0.16);
  --glow-green: rgba(0, 88, 61, 0.11);

  --font-display: "Fateen Display", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-text: "Fateen Text", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-system: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius-card: 28px;
  --radius-control: 16px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #121110;
    --surface: #1C1B19;
    --muted: #2B2926;
    --hairline: #3A3733;
    --grid: rgba(255, 255, 255, 0.035);

    --ink: #F6F4EE;
    --ink-2: #B5B0A6;
    --ink-3: #7D786F;
    --stroke: #4A463F;
    --edge: #000000;
    --action: #F6F4EE;
    --action-label: #0A0A0A;

    --brand: #FF6A33;
    --brand-deep: #B8420F;
    --brand-soft: #3A2217;
    --green: #3CC08E;
    --green-deep: #1F7A57;
    --green-soft: #132A20;
    --sun-soft: #33290F;

    --band: #F6F4EE;
    --on-band: #0A0A0A;
    --on-band-2: #4D4D4D;
    --band-surface: #FFFFFF;
    --band-hairline: #DBD9D5;
    --band-muted: #EFEDE8;
    --band-muted-ink: #8C8880;

    --glow-brand: rgba(255, 106, 51, 0.13);
    --glow-green: rgba(60, 192, 142, 0.08);
  }
}

/* Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--canvas);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

:lang(ar) body, body:lang(ar) { line-height: 1.85; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
b, strong { font-weight: 600; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.04;
  text-wrap: balance;
}

:lang(ar) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }

::selection { background: var(--brand); color: #FFFFFF; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 10px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Arrows point the way the text reads. */
[dir="rtl"] .icon-flip { transform: scaleX(-1); }

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left));
  padding-right: max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--action);
  color: var(--action-label);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus { top: 16px; }

.scroll-sentinel { position: absolute; top: 0; width: 1px; height: 8px; pointer-events: none; }

/* Tactile controls */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-stroke: var(--stroke);
  --btn-edge: var(--edge);
  --btn-depth: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  margin-bottom: var(--btn-depth);
  padding: 0 24px;
  border: 2px solid var(--btn-stroke);
  border-radius: var(--radius-control);
  background: var(--btn-bg);
  color: var(--btn-fg);
  box-shadow: 0 var(--btn-depth) 0 var(--btn-edge);
  font: 700 1.0625rem/1 var(--font-display);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

:lang(ar) .btn { letter-spacing: 0; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-1px); box-shadow: 0 calc(var(--btn-depth) + 1px) 0 var(--btn-edge); }
}

.btn:active { transform: translateY(calc(var(--btn-depth) - 1px)); box-shadow: 0 1px 0 var(--btn-edge); }

.btn-ink {
  --btn-bg: var(--action);
  --btn-fg: var(--action-label);
  --btn-stroke: var(--action);
  --btn-edge: var(--brand);
}

.btn-sm {
  --btn-depth: 3px;
  height: 42px;
  padding: 0 16px;
  font-size: 0.95rem;
  border-radius: 13px;
}

.btn .icon { width: 20px; height: 20px; }

.store-badge {
  display: inline-block;
  border-radius: 12px;
  transition: transform 0.15s var(--ease-out);
}

.store-badge img { width: auto; height: 58px; }

.store-badges { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Google's badge carries its own clear space: drawn larger, it lines up with Apple's. */
.store-badge-play img { height: 86px; margin: -14px -13px; }

@media (hover: hover) {
  .store-badge:hover { transform: translateY(-2px); }
}

.store-soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  margin-bottom: 5px;
  padding: 0 20px;
  border: 2px dashed currentColor;
  border-radius: var(--radius-control);
  font: 700 1.0625rem/1 var(--font-display);
  white-space: nowrap;
}

.store-soon .icon { width: 20px; height: 20px; color: var(--brand); }

.keycap {
  --k1: var(--easy-1);
  --k2: var(--easy-2);
  --ke: var(--easy-edge);
  --kf: #FFFFFF;
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  height: 44px;
  margin-bottom: 4px;
  padding: 0 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--k1), var(--k2));
  box-shadow: 0 4px 0 var(--ke), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: var(--kf);
  font: 800 1.15rem/1 var(--font-display);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  transition: transform 0.12s var(--ease-out), box-shadow 0.12s var(--ease-out);
}

.keycap .icon { width: 1.05em; height: 1.05em; stroke-width: 3; }
.keycap-medium { --k1: var(--medium-1); --k2: var(--medium-2); --ke: var(--medium-edge); }
.keycap-hard { --k1: var(--hard-1); --k2: var(--hard-2); --ke: var(--hard-edge); }
.keycap-one { --k1: var(--brand); --k2: var(--brand); --ke: var(--brand-deep); }
.keycap-two { --k1: var(--green); --k2: var(--green); --ke: var(--green-deep); }
.keycap-used { --k1: var(--band-muted); --k2: var(--band-muted); --ke: var(--band-hairline); --kf: var(--band-muted-ink); box-shadow: 0 4px 0 var(--ke); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px;
  border: 2px solid var(--stroke);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--edge);
  color: var(--ink);
  font: 700 1rem/1 var(--font-display);
  white-space: nowrap;
}

.chip b { font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.chip .icon { width: 18px; height: 18px; }
.chip-green { background: var(--green); border-color: var(--stroke); color: #FFFFFF; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-one { background: var(--brand); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  transition: background-color 0.25s, box-shadow 0.25s;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
  box-shadow: 0 1px 0 var(--hairline);
}

.header-row { display: flex; align-items: center; gap: 20px; height: 76px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 800 1.55rem/1 var(--font-display);
  letter-spacing: -0.035em;
  text-decoration: none;
}

:lang(ar) .brand { letter-spacing: 0; font-size: 1.45rem; }

.brand-mark { width: 30px; height: 30px; }
.mark-tiles { fill: var(--ink); }
.mark-nuqta { fill: var(--brand); }

.header-nav { display: flex; gap: 2px; margin-inline-start: auto; }

.header-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}

.header-nav a:hover, .header-nav a[aria-current="page"] { color: var(--ink); background: var(--muted); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 0.95rem/1 var(--font-system);
  text-decoration: none;
  transition: border-color 0.15s;
}

.lang-switch:hover { border-color: var(--ink-3); }
.lang-switch .icon { width: 17px; height: 17px; color: var(--ink-2); }

@media (max-width: 820px) {
  .header-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .header-row { height: 68px; }
}

@media (max-width: 480px) {
  .header-row { gap: 8px; }
  .header-actions { gap: 8px; }
  .brand { gap: 8px; font-size: 1.35rem; }
  .brand-mark { width: 26px; height: 26px; }
  .lang-switch { height: 40px; padding: 0 12px; font-size: 0.9rem; }
  .lang-switch .icon { display: none; }
  .header-actions .btn-sm { height: 40px; padding: 0 13px; font-size: 0.9rem; }
}

@media (max-width: 359px) {
  .header-actions .btn-sm { display: none; }
}

/* Hero */

.hero {
  position: relative;
  padding: clamp(16px, 4vw, 48px) 0 clamp(56px, 8vw, 104px);
}

.hero-glow {
  position: absolute;
  inset: -120px 0 0;
  background:
    radial-gradient(640px 520px at 88% 8%, var(--glow-brand), transparent 70%),
    radial-gradient(700px 560px at 0% 100%, var(--glow-green), transparent 70%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

[dir="rtl"] .hero-glow {
  background:
    radial-gradient(640px 520px at 12% 8%, var(--glow-brand), transparent 70%),
    radial-gradient(700px 560px at 100% 100%, var(--glow-green), transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 14px;
  border: 1.5px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.eyebrow-dot { width: 9px; height: 9px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

.hero-title {
  margin-top: 22px;
  font-size: clamp(3.1rem, 1.1rem + 6.6vw, 7.1rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

:lang(ar) .hero-title { font-size: clamp(2.6rem, 1rem + 5.2vw, 5.8rem); line-height: 1.52; letter-spacing: 0; }

.hero-title .line { display: block; }
.hero-title .line > span { display: inline-block; }

.hero-title .word {
  display: inline-block;
  margin-inline: -0.04em 0.02em;
  padding: 0.02em 0.16em 0.08em;
  border: 0.045em solid var(--stroke);
  border-radius: 0.2em;
  background: #FA541C;
  box-shadow: 0 0.08em 0 var(--edge);
  color: #FFFFFF;
  transform: rotate(-2.5deg);
}

:lang(ar) .hero-title .word { padding: 0 0.2em 0.06em; }

.define {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  max-width: 34rem;
  margin-top: 28px;
  padding: 12px 18px;
  border-inline-start: 4px solid var(--brand);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.5;
}

.define b { color: var(--ink); font: 800 1.12rem/1.3 var(--font-display); letter-spacing: -0.01em; }
.define i { color: var(--brand); font-size: 0.88rem; font-weight: 600; }
:lang(ar) .define i { font-style: normal; }

.hero-lead {
  max-width: 34rem;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1rem + 0.35vw, 1.25rem);
  text-wrap: pretty;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 30px; }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 600;
}

.hero-facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero-facts .icon { width: 17px; height: 17px; color: var(--success); stroke-width: 2.6; }

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  padding: 28px 0;
}

.hero-stage::before, .hero-stage::after {
  content: "";
  position: absolute;
  border: 3px solid var(--stroke);
  box-shadow: 0 10px 0 var(--edge);
}

/* The logo's tiles, blown up behind the phone: the orange nuqta and a green tile. */
.hero-stage::before {
  top: 4%;
  inset-inline-end: 2%;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 22%;
  background: #FA541C;
  transform: rotate(45deg) scale(0.92);
  box-shadow: 8px 8px 0 var(--edge);
}

[dir="rtl"] .hero-stage::before { box-shadow: -8px 8px 0 var(--edge); }

.hero-stage::after {
  bottom: 6%;
  inset-inline-start: 4%;
  width: 40%;
  aspect-ratio: 1;
  border-radius: 28%;
  background: var(--green);
  transform: rotate(-9deg);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(318px, 74vw);
  aspect-ratio: 603 / 1311;
  padding: 9px;
  border-radius: 54px;
  background: #0A0A0A;
  box-shadow:
    inset 0 0 0 1.5px #3A3733,
    0 2px 0 1px #0A0A0A,
    0 40px 70px -24px rgba(10, 10, 10, 0.55);
  transform: rotate(-3deg);
}

[dir="rtl"] .phone { transform: rotate(3deg); }

.phone img {
  width: 100%;
  height: 100%;
  border-radius: 45px;
  object-fit: cover;
  background: var(--canvas);
}

.floaters { position: absolute; inset: 0; z-index: 2; pointer-events: none; }

.floater {
  --r: 0deg;
  position: absolute;
  transform: rotate(var(--r));
}

.f-hard { --r: -14deg; top: 13%; inset-inline-start: 3%; min-width: 92px; height: 62px; font-size: 1.6rem; border-radius: 18px; }
.f-medium { --r: 11deg; top: 55%; inset-inline-end: 1%; min-width: 88px; height: 60px; font-size: 1.5rem; border-radius: 18px; }
.f-score { --r: -5deg; bottom: 17%; inset-inline-start: -2%; }
.f-points {
  --r: 8deg;
  top: 35%;
  inset-inline-start: 9%;
  padding: 8px 14px;
  border: 2px solid var(--stroke);
  border-radius: 12px;
  background: var(--sun);
  box-shadow: 0 4px 0 var(--edge);
  color: #0A0A0A;
  font: 800 1.2rem/1 var(--font-display);
}
.f-bomb { --r: 6deg; bottom: 5%; inset-inline-end: 8%; }

/* Category tapes */

.tapes {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(150px, 15vw, 196px);
  overflow: clip;
}

.tape {
  position: absolute;
  left: -4%;
  right: -4%;
  overflow: hidden;
  padding: 15px 0;
  border-block: 3px solid var(--stroke);
}

.tape-ink { z-index: 2; background: var(--band); color: var(--on-band); transform: rotate(-2.2deg); }
.tape-brand { z-index: 1; background: #FA541C; color: #0A0A0A; transform: rotate(2deg); }

.tape-track { display: flex; width: max-content; animation: tape 48s linear infinite; }
.tape-brand .tape-track { animation-duration: 62s; animation-direction: reverse; }

.tape ul { display: flex; margin: 0; padding: 0; list-style: none; }

.tape li {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-inline-end: 40px;
  font: 800 clamp(1.45rem, 1rem + 1.5vw, 2.25rem)/1.1 var(--font-display);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

:lang(ar) .tape li { letter-spacing: 0; line-height: 1.4; }

.tape li::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-radius: 0.08em;
  background: #FA541C;
  transform: rotate(45deg);
}

.tape-brand li::after { background: #0A0A0A; }

@keyframes tape { to { transform: translateX(-50%); } }
@keyframes tape-rtl { to { transform: translateX(50%); } }
[dir="rtl"] .tape-track { animation-name: tape-rtl; }

/* Sections */

.section { position: relative; padding: clamp(72px, 10vw, 132px) 0; }

.section-head { max-width: 48rem; margin-bottom: clamp(36px, 5vw, 60px); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font: 700 1rem/1 var(--font-display);
}

.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: currentColor; transform: rotate(45deg); }

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(2.3rem, 1.2rem + 3.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

:lang(ar) .section-head h2 { font-size: clamp(2rem, 1.1rem + 3vw, 3.7rem); line-height: 1.38; letter-spacing: 0; }

.section-lead {
  max-width: 40rem;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  text-wrap: pretty;
}

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  --tone: var(--brand-soft);
  --tone-ink: var(--brand);
  display: flex;
  flex-direction: column;
  overflow: clip;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--edge);
}

.step-green { --tone: var(--green-soft); --tone-ink: var(--green); }
.step-sun { --tone: var(--sun-soft); --tone-ink: var(--sun); }

.step-copy { padding: 26px 26px 24px; }

.step-num {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 4px;
  border: 2px solid var(--stroke);
  border-radius: 14px;
  background: var(--tone-ink);
  box-shadow: 0 4px 0 var(--edge);
  color: #FFFFFF;
  font: 800 1.3rem/1 var(--font-display);
}

.step-sun .step-num { color: #0A0A0A; }
.step h3 { margin-top: 20px; font-size: 1.65rem; letter-spacing: -0.03em; }
.step p { margin-top: 10px; color: var(--ink-2); }

.step-shot {
  position: relative;
  height: 320px;
  margin-top: auto;
  padding: 26px 26px 0;
  overflow: hidden;
  border-top: 2px solid var(--stroke);
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.55), transparent 60%),
    var(--tone);
}

.step-shot img {
  width: min(100%, 290px);
  height: auto;
  margin-inline: auto;
  border: 7px solid #0A0A0A;
  border-bottom: 0;
  border-radius: 36px 36px 0 0;
  box-shadow: 0 20px 40px -16px rgba(10, 10, 10, 0.45);
}

/* The reveal happens at the bottom of the screen, so this phone hangs from the top. */
.step-sun .step-shot { display: flex; align-items: flex-end; padding: 0 26px 26px; }
.step-sun .step-shot img { border: 7px solid #0A0A0A; border-top: 0; border-radius: 0 0 36px 36px; }

/* The board band */

.band { background: var(--band); color: var(--on-band); }
.band .section-lead { color: var(--on-band-2); }

.tiers-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}

.tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.tier-legend li { display: flex; align-items: center; gap: 12px; }

.tier-options { display: grid; gap: 12px; }

.option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1.5px solid var(--band-hairline);
  border-radius: 20px;
  background: var(--band-surface);
}

.option-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--sun);
  color: #0A0A0A;
}

.option-icon .icon { width: 22px; height: 22px; }
.option h3 { font-size: 1.15rem; letter-spacing: -0.02em; }
.option p { margin-top: 4px; color: var(--on-band-2); font-size: 0.98rem; }

.mini-board {
  display: grid;
  padding: clamp(14px, 2.2vw, 24px) clamp(14px, 2.2vw, 24px) clamp(8px, 1.4vw, 14px);
  border: 1.5px solid var(--band-hairline);
  border-radius: 30px;
  background: var(--band-surface);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
}

.mb-row { display: grid; gap: 8px; padding: 10px 0 12px; border-bottom: 1px solid var(--band-hairline); }
.mb-row:last-child { border-bottom: 0; }
.mb-cat { color: var(--on-band); font: 700 1rem/1.2 var(--font-display); }

.mb-cells { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(5px, 0.8vw, 9px); }

.mb-cells .keycap {
  width: 100%;
  min-width: 0;
  height: clamp(34px, 3.6vw, 46px);
  padding: 0;
  border-radius: clamp(10px, 1.2vw, 14px);
  font-size: clamp(0.85rem, 0.62rem + 0.7vw, 1.15rem);
}

@media (hover: hover) {
  .mb-cells .keycap:hover { transform: translateY(3px); box-shadow: 0 1px 0 var(--ke); }
}

/* Lifelines */

.life-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.life {
  --t: var(--brand);
  --t-fg: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 20px;
  border: 2px solid var(--stroke);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 5px 0 var(--edge);
  transition: transform 0.18s var(--ease-out), box-shadow 0.18s var(--ease-out);
}

@media (hover: hover) {
  .life:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 9px 0 var(--edge); }
  [dir="rtl"] .life:hover { transform: translateY(-4px) rotate(0.6deg); }
}

.life-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 12px;
  border: 2px solid var(--stroke);
  border-radius: 16px;
  background: var(--t);
  box-shadow: 0 3px 0 var(--edge);
  color: var(--t-fg);
}

.life-icon .icon { width: 25px; height: 25px; }
.life h3 { font-size: 1.3rem; letter-spacing: -0.02em; }
.life p { flex: 1; color: var(--ink-2); font-size: 0.97rem; line-height: 1.55; }
:lang(ar) .life p { line-height: 1.8; }

.life-when {
  align-self: flex-start;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
}

.tone-sun { --t: var(--sun); --t-fg: #0A0A0A; }
.tone-hard { --t: var(--hard-2); }
.tone-sky { --t: #2F6FEB; }
.tone-green { --t: var(--green); }
.tone-lilac { --t: #7A4DF0; }
.tone-easy { --t: var(--easy-2); }
.tone-brand { --t: #FA541C; }
.tone-medium { --t: var(--medium-1); --t-fg: #0A0A0A; }

/* Features */

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }

.feature {
  display: flex;
  flex-direction: column;
  grid-column: span 6;
  padding: 26px;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--edge);
}

.feature-lang, .feature-account { grid-column: span 7; }
.feature-phones, .feature-media { grid-column: span 5; }

.feature h3 { font-size: 1.55rem; letter-spacing: -0.03em; }
.feature p { max-width: 32rem; margin-top: 8px; color: var(--ink-2); }

.feature-art {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: 190px;
  margin-bottom: 24px;
  border-radius: 20px;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--muted);
  background-size: 24px 24px, 24px 24px, auto;
}

.glyph {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 3px solid var(--stroke);
  border-radius: 32px;
  box-shadow: 0 8px 0 var(--edge);
  font: 800 3.2rem/1 var(--font-display);
}

.glyph-ar { z-index: 1; background: #FA541C; color: #FFFFFF; transform: rotate(-8deg) translateX(10px); line-height: 1.4; }
.glyph-en { background: var(--action); color: var(--action-label); transform: rotate(7deg) translateX(-10px); letter-spacing: -0.04em; }
[dir="rtl"] .glyph-ar { transform: rotate(8deg) translateX(-10px); }
[dir="rtl"] .glyph-en { transform: rotate(-7deg) translateX(10px); }

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 70px;
  height: 70px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  font-size: 32px;
  line-height: 1;
}

.feature-phones .avatar + .avatar { margin-inline-start: -16px; }
.avatar-more { color: #0A0A0A; font: 800 1.15rem/1 var(--font-display); }

.av-sunset { background: linear-gradient(135deg, #FFE1D2, #FFB896); }
.av-mint { background: linear-gradient(135deg, #D6F5E8, #9FE3C6); }
.av-sky { background: linear-gradient(135deg, #DCEBFF, #A9CBFF); }
.av-lilac { background: linear-gradient(135deg, #EDE4FF, #C9B4FF); }
.av-sand { background: linear-gradient(135deg, #F7ECD8, #E5CFA4); }
.av-rose { background: linear-gradient(135deg, #FFE0E8, #FFB0C4); }

.media-tile {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 3px solid var(--stroke);
  border-radius: 26px;
  box-shadow: 0 6px 0 var(--edge);
  color: #FFFFFF;
}

.media-tile .icon { width: 40px; height: 40px; }
.media-tile + .media-tile { margin-inline-start: -8px; }
.media-image { background: #2F6FEB; transform: rotate(-9deg); }
.media-audio { z-index: 1; background: #7A4DF0; transform: translateY(-12px); }
.media-video { background: #FA541C; transform: rotate(9deg); }

.name-field {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(100%, 340px);
  height: 76px;
  padding: 0 16px;
  border: 2px solid #FA541C;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 5px 0 #FA541C;
}

.name-field .avatar { width: 50px; height: 50px; border: 0; font-size: 26px; }
.name-text { color: var(--ink); font: 700 1.6rem/1 var(--font-display); letter-spacing: -0.02em; }
.caret { width: 3px; height: 32px; margin-inline-start: -8px; border-radius: 2px; background: #FA541C; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Closing call to action */

.cta {
  position: relative;
  overflow: clip;
  padding: clamp(84px, 12vw, 160px) 0;
  border-top: 3px solid var(--stroke);
  background: #FA541C;
  color: #0A0A0A;
}

.cta-tiles {
  position: absolute;
  top: 50%;
  inset-inline-end: max(var(--gutter), calc((100% - var(--maxw)) / 2));
  width: min(400px, 34vw);
  transform: translateY(-50%) rotate(-7deg);
  pointer-events: none;
}

[dir="rtl"] .cta-tiles { transform: translateY(-50%) rotate(7deg) scaleX(-1); }

.cta-mark { overflow: visible; filter: drop-shadow(0 14px 0 rgba(10, 10, 10, 0.22)); }
.cta-mark .mark-tiles { fill: #0A0A0A; }
.cta-mark .mark-nuqta { fill: #F6F4EE; stroke: #0A0A0A; stroke-width: 22; }

.cta-inner { position: relative; }
.cta-inner > * { max-width: min(100%, 44rem); }
@media (min-width: 601px) { .cta-inner { padding-inline-end: min(400px, 34vw); } }

.cta-title {
  max-width: 11ch;
  font-size: clamp(3.2rem, 0.9rem + 7.6vw, 8.4rem);
  line-height: 0.9;
  letter-spacing: -0.055em;
}

:lang(ar) .cta-title { max-width: 12ch; font-size: clamp(2.7rem, 0.8rem + 6vw, 6.6rem); line-height: 1.4; letter-spacing: 0; }

.cta-body { max-width: 32rem; margin-top: 24px; color: rgba(10, 10, 10, 0.82); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); text-wrap: pretty; }
.cta-actions { margin-top: 34px; }
.cta .store-soon { color: #0A0A0A; }
.cta .store-soon .icon { color: #0A0A0A; }

/* Footer */

.site-footer {
  padding: 72px 0 calc(36px + env(safe-area-inset-bottom));
  background: #0A0A0A;
  color: #F6F4EE;
}

@media (prefers-color-scheme: dark) {
  .site-footer { border-top: 1px solid #2B2926; }
}

.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; }

.brand-reversed { color: #F6F4EE; }
.brand-reversed .mark-tiles { fill: #F6F4EE; }
.brand-reversed .mark-nuqta { fill: #FA541C; }

.footer-brand p { max-width: 22rem; margin-top: 16px; color: #B5B0A6; }

.footer-mail {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 20px;
  padding-bottom: 3px;
  border-bottom: 2px solid #FA541C;
  color: #F6F4EE;
  font-weight: 600;
  text-decoration: none;
}

.footer-mail .icon { width: 18px; height: 18px; color: #FA541C; }

.footer-col h2 {
  margin-bottom: 14px;
  color: #7D786F;
  font: 600 0.85rem/1.2 var(--font-text);
  letter-spacing: 0.04em;
}

.footer-col a {
  display: block;
  width: fit-content;
  padding: 6px 0;
  color: #F6F4EE;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-col a:hover { color: #FF6A33; }
.footer-col a[aria-current="page"] { color: #FF6A33; }
.footer-col a:lang(ar), .footer-col a:lang(en) { font-family: var(--font-system); }

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 40px;
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid #2B2926;
  color: #7D786F;
  font-size: 0.82rem;
  line-height: 1.6;
}

.footer-legal p:last-child { max-width: 46rem; }

/* Pages with a single column: join, not found, legal, support */

.page-hero { position: relative; padding: clamp(28px, 6vw, 72px) 0 clamp(28px, 4vw, 48px); }

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 1.4rem + 4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

:lang(ar) .page-hero h1 { font-size: clamp(2.3rem, 1.3rem + 3.4vw, 4rem); line-height: 1.3; letter-spacing: 0; }

.page-hero .lead { max-width: 40rem; margin-top: 18px; color: var(--ink-2); font-size: 1.15rem; text-wrap: pretty; }
.updated { margin-top: 16px; color: var(--ink-3); font-size: 0.92rem; font-weight: 600; }

.legal-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 780px);
  justify-content: start;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.toc { position: sticky; top: 100px; }
.toc h2 { margin-bottom: 12px; color: var(--ink-3); font: 600 0.85rem/1.2 var(--font-text); letter-spacing: 0.04em; }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; counter-reset: toc; }

.toc a {
  display: block;
  padding: 7px 12px;
  border-radius: 10px;
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.4;
  text-decoration: none;
}

.toc a:hover { background: var(--muted); color: var(--ink); }

.prose {
  padding: clamp(24px, 4vw, 48px);
  border: 2px solid var(--stroke);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: 0 6px 0 var(--edge);
}

.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.2em; padding-top: 0.2em; font-size: 1.6rem; letter-spacing: -0.03em; scroll-margin-top: 110px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul { padding-inline-start: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--brand); }
.prose a { color: var(--ink); text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.callout {
  padding: 16px 18px;
  border-inline-start: 4px solid var(--brand);
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--ink) !important;
}

.contact-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 2.4em;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--muted);
}

.contact-card h2, .contact-card h3 { margin: 0; font-size: 1.2rem; }
.contact-card p { margin-top: 4px; color: var(--ink-2); }

@media (max-width: 900px) {
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Support */

.faq-group + .faq-group { margin-top: 44px; }
.faq-group > h2 { margin-bottom: 16px; font-size: 1.5rem; letter-spacing: -0.03em; }

.faq {
  border: 2px solid var(--stroke);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 4px 0 var(--edge);
}

.faq + .faq { margin-top: 12px; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font: 700 1.1rem/1.35 var(--font-display);
  letter-spacing: -0.01em;
  list-style: none;
  cursor: pointer;
}

:lang(ar) .faq summary { letter-spacing: 0; line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }

.faq summary .icon {
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 8px;
  background: var(--muted);
  transition: transform 0.2s var(--ease-out);
}

.faq[open] summary .icon { transform: rotate(180deg); }
.faq-body { padding: 0 20px 20px; color: var(--ink-2); }
.faq-body > * + * { margin-top: 0.8em; }
.faq-body ol, .faq-body ul { margin-bottom: 0; padding-inline-start: 1.3em; }
.faq-body li + li { margin-top: 0.35em; }
:lang(ar) :is(.faq-body, .prose) ol { list-style-type: arabic-indic; }
.faq-body a { color: var(--ink); text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq-body strong { color: var(--ink); }

.support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.help-card {
  position: sticky;
  top: 100px;
  padding: 26px;
  border: 2px solid var(--stroke);
  border-radius: var(--radius-card);
  background: #FA541C;
  box-shadow: 0 6px 0 var(--edge);
  color: #0A0A0A;
}

.help-card h2 { font-size: 1.6rem; letter-spacing: -0.03em; }
.help-card p { margin-top: 10px; color: rgba(10, 10, 10, 0.8); }
.help-card .btn { width: 100%; margin-top: 20px; --btn-bg: #0A0A0A; --btn-fg: #FFFFFF; --btn-stroke: #0A0A0A; --btn-edge: #0A0A0A; box-shadow: 0 5px 0 rgba(10, 10, 10, 0.35); }
.help-card .mail { display: block; margin-top: 12px; font-weight: 600; text-align: center; overflow-wrap: anywhere; }
.help-card .small { margin-top: 16px; padding-top: 16px; border-top: 1.5px solid rgba(10, 10, 10, 0.18); font-size: 0.92rem; }

@media (max-width: 900px) {
  .support-grid { grid-template-columns: 1fr; }
  .help-card { position: static; }
}

/* Join */

.join {
  position: relative;
  padding: clamp(24px, 6vw, 72px) 0 clamp(64px, 9vw, 110px);
}

.join-card {
  position: relative;
  max-width: 600px;
  margin-inline: auto;
  padding: clamp(24px, 5vw, 44px);
  border: 2px solid var(--stroke);
  border-radius: 34px;
  background: var(--surface);
  box-shadow: 0 8px 0 var(--edge);
  text-align: center;
}

.join-card .eyebrow { background: var(--brand-soft); border-color: transparent; color: var(--brand-deep); }
@media (prefers-color-scheme: dark) { .join-card .eyebrow { color: var(--brand); } }
.join-card h1 { margin-top: 18px; font-size: clamp(2.4rem, 1.6rem + 3vw, 3.6rem); line-height: 1; letter-spacing: -0.045em; }
:lang(ar) .join-card h1 { line-height: 1.3; letter-spacing: 0; }
.join-card .lead { max-width: 30rem; margin: 14px auto 0; color: var(--ink-2); font-size: 1.1rem; }

.ticket {
  margin-top: 28px;
  padding: 22px 16px 18px;
  border: 2px solid var(--stroke);
  border-radius: 24px;
  background: #FA541C;
  box-shadow: 0 5px 0 var(--edge);
}

.ticket-label { color: rgba(255, 255, 255, 0.9); font-size: 0.85rem; font-weight: 600; }

.code {
  display: flex;
  justify-content: center;
  gap: clamp(5px, 1.6vw, 10px);
  margin-top: 12px;
  font: 800 clamp(1.6rem, 1rem + 3vw, 2.4rem)/1 var(--font-display);
  direction: ltr;
}

.code b {
  display: grid;
  place-items: center;
  width: clamp(40px, 11vw, 60px);
  height: clamp(52px, 13vw, 72px);
  border: 2px solid #0A0A0A;
  border-radius: clamp(10px, 2.4vw, 16px);
  background: #FFFFFF;
  box-shadow: 0 4px 0 #0A0A0A;
  color: #0A0A0A;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.18);
  color: #FFFFFF;
  font: 600 0.95rem/1 var(--font-text);
  cursor: pointer;
}

.copy-btn:hover { background: rgba(10, 10, 10, 0.28); }
.copy-btn .icon { width: 17px; height: 17px; }
.copy-btn .done { display: none; }
.copy-btn.is-done .done { display: block; }
.copy-btn.is-done .todo { display: none; }

.join-actions { display: grid; gap: 12px; margin-top: 26px; }
.join-actions .btn { width: 100%; height: 60px; font-size: 1.15rem; }

.join-steps { margin-top: 30px; padding-top: 26px; border-top: 1.5px dashed var(--hairline); text-align: start; }
.join-steps h2 { font-size: 1.25rem; text-align: center; letter-spacing: -0.02em; }

.join-steps ol { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: step; }

.join-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink-2);
  counter-increment: step;
}

.join-steps li::before {
  content: counter(step);
  display: grid;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--muted);
  color: var(--ink);
  font: 800 1rem/1 var(--font-display);
}

:lang(ar) .join-steps li::before { content: counter(step, arabic-indic); }
.join-steps li b { color: var(--ink); }
.join-store { display: flex; justify-content: center; margin-top: 22px; }
.join-note { margin-top: 20px; color: var(--ink-3); font-size: 0.9rem; }

/* Not found */

.nf { padding: clamp(40px, 8vw, 110px) 0 clamp(80px, 10vw, 140px); text-align: center; }

.nf-keys { display: flex; justify-content: center; gap: 12px; }
.nf-keys .keycap { min-width: 84px; height: 84px; border-radius: 22px; font-size: 2.4rem; }
.nf-keys .keycap:nth-child(1) { transform: rotate(-8deg); }
.nf-keys .keycap:nth-child(3) { transform: rotate(8deg); }
.nf h1 { max-width: 16ch; margin: 36px auto 0; font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.2rem); letter-spacing: -0.045em; }
.nf p { margin-top: 14px; color: var(--ink-2); font-size: 1.15rem; }
.nf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* Layout breakpoints */

@media (max-width: 1080px) {
  .life-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 40rem; }
  .hero-stage { min-height: 0; padding: 20px 0 30px; }
  .tiers-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .step { display: grid; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .feature, .feature-lang, .feature-account, .feature-phones, .feature-media { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .hero-actions { gap: 12px; }
  .hero-actions > * { flex: 1 1 auto; }
  .hero-actions .btn { width: 100%; }
  .store-badge img { height: 54px; }
  .store-badge-play img { height: 80px; margin: -13px -12px; }
  .phone { width: min(280px, 72vw); border-radius: 46px; padding: 8px; }
  .phone img { border-radius: 38px; }
  .f-hard { min-width: 74px; height: 50px; font-size: 1.3rem; top: 8%; inset-inline-start: 0; }
  .f-medium { min-width: 70px; height: 48px; font-size: 1.2rem; inset-inline-end: 0; }
  .f-score { inset-inline-start: 0; height: 42px; font-size: 0.9rem; padding: 0 14px; }
  .f-bomb { height: 42px; font-size: 0.9rem; padding: 0 14px; inset-inline-end: 2%; }
  .f-points { inset-inline-start: 2%; font-size: 1rem; }
  .life-grid { grid-template-columns: 1fr; }
  .life { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 4px; padding: 18px; }
  .life-icon { grid-row: span 3; margin-bottom: 0; }
  .life-when { justify-self: start; margin-top: 6px; }
  .step-shot { height: 280px; }
  .feature { padding: 20px; }
  .feature-art { min-height: 160px; }
  .glyph { width: 96px; height: 96px; border-radius: 26px; font-size: 2.6rem; }
  .avatar { width: 58px; height: 58px; font-size: 27px; }
  .media-tile { width: 78px; height: 78px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .cta { padding-top: 64px; }
  .cta-tiles { position: relative; top: auto; inset-inline-end: auto; width: 112px; margin: 0 0 28px var(--gutter); transform: rotate(-7deg); }
  [dir="rtl"] .cta-tiles { margin: 0 var(--gutter) 28px 0; transform: rotate(7deg) scaleX(-1); }
}

/* Motion */

@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { animation: rise 0.9s var(--ease-out) both; }
  .hero-title .line:nth-child(2) > span { animation-delay: 0.08s; }
  .hero-title .line:nth-child(3) > span { animation-delay: 0.16s; }
  .define, .hero-lead, .hero-actions, .hero-facts, .eyebrow { animation: rise 0.9s var(--ease-out) 0.24s both; }
  .phone { animation: phone-in 1.1s var(--ease-out) 0.1s both; }
  .hero-stage::before { animation: pop-diamond 0.9s var(--spring) 0.35s both; }
  .hero-stage::after { animation: pop-tile 0.9s var(--spring) 0.45s both; }
  .floater { animation: pop 0.7s var(--spring) both, bob 5.5s ease-in-out infinite alternate; }
  .f-hard { animation-delay: 0.6s, 1.3s; }
  .f-points { animation-delay: 0.7s, 0.4s; }
  .f-medium { animation-delay: 0.8s, 2s; }
  .f-score { animation-delay: 0.9s, 0.8s; }
  .f-bomb { animation-delay: 1s, 1.6s; }

  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 24%;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tape-track, .caret { animation: none; }
}

@keyframes rise { from { opacity: 0; translate: 0 26px; } }
@keyframes reveal { from { opacity: 0; translate: 0 34px; } }
@keyframes phone-in { from { opacity: 0; translate: 0 40px; scale: 0.94; } }
@keyframes pop { from { opacity: 0; scale: 0.4; } }
@keyframes pop-diamond { from { opacity: 0; scale: 0.6; } }
@keyframes pop-tile { from { opacity: 0; scale: 0.6; } }
@keyframes bob { to { translate: 0 -10px; } }
