/* ZaynApp — marketing site */

:root {
  --noir: #0d0908;
  --noir-2: #151010;
  --noir-3: #1f1715;
  --ivory: #f6efe6;
  --ivory-2: #eee4d6;
  --ink: #1a1311;
  --ink-2: #3d322d;
  --muted: #6e5f57;
  --subtle: #8a7a70;
  --line: rgb(26 19 17 / 0.12);
  --on-dark: #f4ece2;
  --on-dark-2: rgb(244 236 226 / 0.72);
  --on-dark-3: rgb(244 236 226 / 0.5);
  --line-dark: rgb(244 236 226 / 0.13);
  --wine: #7e3543;
  --wine-deep: #4a1822;
  --champagne: #dcc398;
  --gold: #a47c49;
  --foil: linear-gradient(100deg, #f6e8c9 0%, #d8b882 30%, #a8814f 52%, #e6cf9f 74%, #f8edd5 100%);

  --font-display: "Cormorant Garamond", "Amiri", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-arabic: "Noto Sans Arabic", "Jost", system-ui, sans-serif;
  --font-arabic-display: "Amiri", "Noto Sans Arabic", serif;

  --max: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.75rem);
  --nav: 76px;
  --ease: cubic-bezier(0.22, 0.68, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --statusbar: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 47'%3E%3Cg fill='%231b1412'%3E%3Ctext x='38' y='31' font-family='-apple-system,Segoe UI,Helvetica,Arial,sans-serif' font-size='16' font-weight='600'%3E9:41%3C/text%3E%3Crect x='294' y='26' width='3' height='5' rx='1'/%3E%3Crect x='299' y='23.5' width='3' height='7.5' rx='1'/%3E%3Crect x='304' y='21' width='3' height='10' rx='1'/%3E%3Crect x='309' y='18.5' width='3' height='12.5' rx='1'/%3E%3Ccircle cx='326' cy='30' r='1.7'/%3E%3Crect x='345' y='22' width='18.5' height='9' rx='2'/%3E%3Crect x='367.5' y='24.5' width='1.6' height='4' rx='.8'/%3E%3C/g%3E%3Cg fill='none' stroke='%231b1412' stroke-linecap='round'%3E%3Cpath stroke-width='2' d='M318.6 23.4a10.5 10.5 0 0 1 14.8 0M321.6 26.6a6.2 6.2 0 0 1 8.8 0'/%3E%3Crect x='342.5' y='19.5' width='23.5' height='14' rx='4' stroke-opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --lattice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23dcc398' stroke-width='.8'%3E%3Crect x='21' y='21' width='30' height='30'/%3E%3Crect x='21' y='21' width='30' height='30' transform='rotate(45 36 36)'/%3E%3Cpath d='M0 36h14.8M57.2 36H72M36 0v14.8M36 57.2V72'/%3E%3C/g%3E%3C/svg%3E");

  /* Aliases used by the legal pages */
  --cream: var(--ivory);
  --rose: var(--wine);
  --rose-deep: var(--wine-deep);
  --font-d: var(--font-display);
}

/* ── Base ── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html[lang="ar"] body {
  font-family: var(--font-arabic);
  line-height: 1.8;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 400;
}

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: rgb(220 195 152 / 0.35);
}

:lang(ar) {
  font-family: var(--font-arabic);
}

.shell {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  background: var(--ivory);
  color: var(--ink);
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* Film grain on dark surfaces */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background-image: var(--grain);
  opacity: 0.07;
  mix-blend-mode: overlay;
  pointer-events: none;
}

/* ── Type ── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.on-dark .eyebrow,
.eyebrow.on-dark {
  color: var(--champagne);
}

html[lang="ar"] .eyebrow {
  font-size: 0.875rem;
  letter-spacing: 0;
}

.display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.02;
  text-wrap: balance;
}

h2.display {
  font-size: clamp(2.75rem, 1.5rem + 3.7vw, 5.25rem);
}

.display .line {
  display: block;
}

html[lang="ar"] .display {
  font-family: var(--font-arabic-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.35;
}

html[lang="ar"] h2.display {
  font-size: clamp(2.25rem, 1.4rem + 2.6vw, 3.9rem);
}

.foil {
  padding-bottom: 0.06em;
  background: var(--foil);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Deeper foil for ivory backgrounds */
.foil-deep {
  background: linear-gradient(100deg, #b48a52 0%, #8a6232 38%, #c19b5f 66%, #8d6636 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.accent {
  color: var(--wine);
}

.lede {
  max-width: 34em;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  font-weight: 300;
  line-height: 1.7;
  text-wrap: pretty;
}

html[lang="ar"] .lede {
  font-weight: 400;
}

.on-dark .lede,
.finale .lede {
  color: rgb(244 236 226 / 0.78);
  font-weight: 400;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 54px;
  padding: 0 1.875rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--font-sans);
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

html[lang="ar"] .btn {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

.btn-gold {
  background: linear-gradient(180deg, #f0ddb6 0%, #d3b37d 100%);
  color: #1c130e;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.55),
    inset 0 -1px 0 rgb(120 84 40 / 0.25),
    0 12px 32px -12px rgb(214 182 130 / 0.55);
}

.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.6),
    inset 0 -1px 0 rgb(120 84 40 / 0.25),
    0 18px 40px -14px rgb(214 182 130 / 0.7);
}

.btn-line {
  border-color: var(--line-dark);
  color: var(--on-dark);
}

.btn-line:hover {
  border-color: rgb(244 236 226 / 0.4);
  background: rgb(244 236 226 / 0.06);
}

.btn-sm {
  min-height: 42px;
  padding: 0 1.25rem;
  font-size: 0.875rem;
}

.arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease);
}

.btn:hover .arrow {
  transform: translateX(3px);
}

[dir="rtl"] .arrow {
  transform: scaleX(-1);
}

[dir="rtl"] .btn:hover .arrow {
  transform: scaleX(-1) translateX(3px);
}

/* ── Navigation ── */

.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  height: var(--nav);
  color: var(--on-dark);
  transition:
    background-color 0.4s var(--ease),
    box-shadow 0.4s var(--ease),
    height 0.4s var(--ease);
}

.nav.is-scrolled,
.nav.is-open {
  background: rgb(13 9 8 / 0.9);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  box-shadow: 0 1px 0 var(--line-dark);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 3rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  color: var(--champagne);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  position: relative;
  padding-block: 0.75rem;
  color: var(--on-dark-2);
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0.45rem;
  height: 1px;
  background: var(--champagne);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.nav-links a:hover {
  color: var(--on-dark);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

.lang-switch {
  appearance: none;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--on-dark-2);
  font: 500 0.9375rem/1 var(--font-sans);
  cursor: pointer;
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.lang-switch:hover {
  background: rgb(244 236 226 / 0.07);
  color: var(--on-dark);
}

.menu-toggle {
  display: none;
  position: relative;
  appearance: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--on-dark);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  left: 13px;
  width: 18px;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.35s var(--ease);
}

.menu-toggle span:first-child {
  top: 18px;
}

.menu-toggle span:last-child {
  top: 24.5px;
}

.nav.is-open .menu-toggle span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav.is-open .menu-toggle span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.nav-sheet {
  display: none;
}

/* ── Phone ── */

.phone {
  --w: 300px;
  position: relative;
  flex: none;
  inline-size: var(--w);
  padding: calc(var(--w) * 0.011);
  border-radius: calc(var(--w) * 0.178);
  background: linear-gradient(
    150deg,
    #a39890 0%,
    #3f3734 16%,
    #1c1817 48%,
    #2f2926 74%,
    #a1958c 100%
  );
  box-shadow:
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    0 80px 120px -50px rgb(0 0 0 / 0.75),
    0 34px 60px -34px rgb(0 0 0 / 0.6);
}

/* Side buttons */
.phone::before,
.phone::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6d635d, #2a2523);
}

.phone::before {
  right: -2px;
  top: 25%;
  height: 11%;
}

.phone::after {
  left: -2px;
  top: 20%;
  height: 7%;
  box-shadow: 0 calc(var(--w) * 0.16) 0 #4a423e;
}

.screen {
  position: relative;
  overflow: hidden;
  border: calc(var(--w) * 0.028) solid #050404;
  border-radius: calc(var(--w) * 0.167);
  background: #050404;
}

/* Dynamic island */
.screen::after {
  content: "";
  position: absolute;
  top: calc(var(--w) * 0.024);
  left: 50%;
  z-index: 2;
  width: 31%;
  height: calc(var(--w) * 0.086);
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
}

.shot {
  background: var(--sb, #f4ebe3);
}

/* Status bar sits above the screenshot, in its top colour */
.shot::before {
  content: "";
  display: block;
  aspect-ratio: 390 / 47;
  background: var(--statusbar) center / 100% 100% no-repeat;
}

.shot img {
  inline-size: 100%;
  block-size: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  object-position: top;
}

/* ── Hero ── */

.hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: max(760px, 100svh);
  overflow: hidden;
  background: var(--noir);
  color: var(--on-dark);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 40%;
  filter: blur(1.5px) saturate(1.05);
  animation: hero-zoom 2.8s var(--ease-out) both;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgb(13 9 8 / 0.94) 0%,
      rgb(13 9 8 / 0.82) 36%,
      rgb(13 9 8 / 0.5) 62%,
      rgb(13 9 8 / 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgb(13 9 8 / 0.6) 0%,
      rgb(13 9 8 / 0) 24%,
      rgb(13 9 8 / 0) 66%,
      rgb(13 9 8 / 1) 100%
    );
}

[dir="rtl"] .hero-media::after {
  background:
    linear-gradient(
      270deg,
      rgb(13 9 8 / 0.94) 0%,
      rgb(13 9 8 / 0.82) 36%,
      rgb(13 9 8 / 0.5) 62%,
      rgb(13 9 8 / 0.62) 100%
    ),
    linear-gradient(
      180deg,
      rgb(13 9 8 / 0.6) 0%,
      rgb(13 9 8 / 0) 24%,
      rgb(13 9 8 / 0) 66%,
      rgb(13 9 8 / 1) 100%
    );
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 3rem;
  align-items: center;
  padding-block: calc(var(--nav) + 2rem) 2rem;
}

.hero .eyebrow {
  margin-bottom: 2rem;
}

.hero h1 {
  margin-bottom: 2rem;
  font-size: clamp(3.4rem, 1.4rem + 5.7vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.028em;
}

html[lang="ar"] .hero h1 {
  font-size: clamp(2.9rem, 1.4rem + 4.3vw, 5.6rem);
  line-height: 1.25;
}

.hero .lede {
  max-width: 31em;
  margin-bottom: 2.75rem;
  color: rgb(244 236 226 / 0.84);
  font-weight: 400;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem;
}

.hero-note {
  margin-top: 1.5rem;
  color: var(--on-dark-3);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.hero-visual {
  --px: 0;
  --py: 0;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

.hero-glow {
  position: absolute;
  width: 560px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(220 190 140 / 0.32),
    rgb(126 53 67 / 0.12) 55%,
    transparent
  );
  filter: blur(10px);
}

/* Parallax uses `translate`, entrances use `transform`, so they compose */
.hero-visual .phone {
  --w: clamp(250px, min(22vw, 33vh), 318px);
  translate: calc(var(--px) * -10px) calc(var(--py) * -8px);
  transition: translate 0.6s var(--ease-out);
  animation: phone-in 1.6s var(--ease-out) 0.35s both;
}

.live-chip {
  position: absolute;
  bottom: 16%;
  inset-inline-start: -4%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1.25rem 0.875rem 0.875rem;
  border: 1px solid rgb(244 236 226 / 0.16);
  border-radius: 20px;
  background: rgb(22 15 13 / 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.8);
  translate: calc(var(--px) * -22px) calc(var(--py) * -16px);
  transition: translate 0.6s var(--ease-out);
  animation: chip-in 1.2s var(--ease-out) 1.2s both;
}

[dir="rtl"] .live-chip {
  padding: 0.875rem 0.875rem 0.875rem 1.25rem;
}

.ring {
  width: 40px;
  height: 40px;
  transform: rotate(-90deg);
}

.ring circle {
  fill: none;
  stroke-width: 2;
}

.ring-track {
  stroke: rgb(244 236 226 / 0.14);
}

.ring-bar {
  stroke: var(--champagne);
  stroke-linecap: round;
  stroke-dasharray: 113.1;
  animation: ring 30s linear infinite;
}

.chip-title {
  display: block;
  color: var(--on-dark);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.3;
}

.chip-sub {
  display: block;
  color: var(--on-dark-2);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.hero-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--line-dark);
  margin: 0;
  list-style: none;
}

.hero-strip li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--on-dark-2);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.hero-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--champagne);
  box-shadow: 0 0 12px rgb(220 195 152 / 0.8);
}

/* Entrance */
.rise {
  animation: rise 1.1s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 110ms + 250ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
  }
}

@keyframes hero-zoom {
  from {
    opacity: 0;
    transform: scale(1.12);
  }
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: translateY(70px) scale(0.96);
  }
}

@keyframes chip-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.94);
  }
}

@keyframes ring {
  from {
    stroke-dashoffset: 0;
  }

  to {
    stroke-dashoffset: 113.1;
  }
}

/* ── Sections ── */

.section {
  position: relative;
  padding-block: clamp(5.5rem, 11vw, 10rem);
}

.on-dark {
  color: var(--on-dark);
}

.center-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 50rem;
  margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}

.center-head .eyebrow {
  margin-bottom: 1.75rem;
}

.center-head h2 {
  margin-bottom: 1.5rem;
}

/* Statement + numerals */

.intro {
  padding-block: clamp(6rem, 12vw, 10rem) clamp(5rem, 10vw, 8rem);
  text-align: center;
}

.intro .eyebrow {
  margin-bottom: 2.25rem;
}

.statement {
  max-width: 21em;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.3rem + 2.3vw, 3.6rem);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.18;
  text-wrap: balance;
}

html[lang="ar"] .statement {
  font-family: var(--font-arabic-display);
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.75rem);
  letter-spacing: 0;
  line-height: 1.6;
}

.numerals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: clamp(4rem, 8vw, 6.5rem) auto 0;
  max-width: 64rem;
}

.numeral {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 1.5rem;
}

.numeral + .numeral {
  border-inline-start: 1px solid var(--line);
}

.numeral-pre,
.numeral-cap {
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.numeral-pre {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

html[lang="ar"] .numeral-pre {
  font-size: 0.875rem;
  letter-spacing: 0;
}

.numeral-n {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  margin: 0.75rem 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(4.25rem, 2.6rem + 4vw, 7.5rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1;
}

.numeral-n small {
  font-size: 0.32em;
  font-weight: 400;
  letter-spacing: 0.04em;
}

html[lang="ar"] .numeral-n small {
  font-family: var(--font-arabic);
  font-size: 0.24em;
}

.numeral-n small:empty {
  display: none;
}

/* How it works */

.how {
  background: var(--ivory-2);
}

.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.how-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 60px 100px -60px rgb(60 30 20 / 0.55);
}

.how-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  transform: scale(1.06);
  transition: transform 1.8s var(--ease-out);
}

.how-media.is-in img,
.how-media:not(.is-pending) img {
  transform: none;
}

.how-media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgb(255 250 240 / 0.45);
  border-radius: 20px;
  pointer-events: none;
}

.how-body .eyebrow {
  margin-bottom: 1.75rem;
}

.how-body h2 {
  margin-bottom: 3rem;
}

.how-steps {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.how-steps li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.roman {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border: 1px solid rgb(164 124 73 / 0.42);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1;
}

html[lang="ar"] .roman {
  font-family: var(--font-arabic);
  font-size: 1.0625rem;
}

.how-steps h3 {
  margin: 0.2rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
}

html[lang="ar"] .how-steps h3 {
  font-family: var(--font-arabic-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
}

.how-steps p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

html[lang="ar"] .how-steps p {
  font-weight: 400;
}

.how-note {
  margin-top: 1.75rem;
  color: var(--subtle);
  font-size: 0.875rem;
}

/* Product story */

.story {
  overflow: clip;
  background: var(--noir);
}

.story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 75% 45%, rgb(126 53 67 / 0.28), transparent 70%),
    radial-gradient(40% 35% at 20% 10%, rgb(220 195 152 / 0.08), transparent 70%);
}

.story-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.story-head .eyebrow {
  margin-bottom: 1.75rem;
}

.story-head h2 {
  margin-bottom: 1.5rem;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 74vh;
  padding-block: 2rem;
  opacity: 0.24;
  transition: opacity 0.7s var(--ease);
}

.story-step.is-active {
  opacity: 1;
}

.story-index {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  color: var(--champagne);
  font-size: 0.75rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.24em;
}

.story-index::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.story-step h3 {
  margin-bottom: 1rem;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.6rem + 2.4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

html[lang="ar"] .story-step h3 {
  font-family: var(--font-arabic-display);
  font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
  letter-spacing: 0;
  line-height: 1.4;
}

.story-step p {
  max-width: 26em;
  color: var(--on-dark-2);
  font-size: 1.0625rem;
  font-weight: 300;
}

html[lang="ar"] .story-step p {
  font-weight: 400;
}

.story-mobile {
  display: none;
}

.story-sticky {
  position: sticky;
  top: max(calc(var(--nav) + 1rem), calc(50vh - 350px));
  display: grid;
  place-items: center;
  height: 700px;
}

.story-glow {
  position: absolute;
  width: 620px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(closest-side, rgb(220 190 140 / 0.2), transparent 70%),
    var(--lattice) center / 72px 72px;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 30%, transparent 100%);
  opacity: 0.55;
}

.story-sticky .phone {
  --w: clamp(270px, 22vw, 310px);
}

.screen-stack {
  display: grid;
}

.screen-stack .shot {
  grid-area: 1 / 1;
  opacity: 0;
  transform: scale(1.03);
  transition:
    opacity 0.6s var(--ease),
    transform 0.9s var(--ease-out);
}

.screen-stack .shot.is-active {
  opacity: 1;
  transform: none;
}

.story-dots {
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  display: grid;
  gap: 0.75rem;
  transform: translateY(-50%);
}

.story-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgb(244 236 226 / 0.25);
  transition:
    background-color 0.4s var(--ease),
    transform 0.4s var(--ease);
}

.story-dots span.is-active {
  background: var(--champagne);
  transform: scale(1.5);
}

/* Standard (why) */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.why-grid li {
  padding: 2.75rem 2.25rem 3rem;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.5s var(--ease);
}

.why-grid li:not(:nth-child(3n)) {
  border-inline-end: 1px solid var(--line);
}

.why-grid li:hover {
  background: rgb(255 255 255 / 0.45);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgb(164 124 73 / 0.38);
  border-radius: 50%;
  color: var(--gold);
  transition:
    background-color 0.5s var(--ease),
    color 0.5s var(--ease);
}

.why-grid li:hover .why-icon {
  background: var(--ink);
  color: var(--champagne);
}

.why-icon svg {
  width: 24px;
  height: 24px;
}

.why-grid h3 {
  margin-bottom: 0.625rem;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.15;
}

html[lang="ar"] .why-grid h3 {
  font-family: var(--font-arabic-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.5;
}

.why-grid p {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
}

html[lang="ar"] .why-grid p {
  font-weight: 400;
}

/* Clinics */

.clinics {
  overflow: clip;
  background: radial-gradient(120% 90% at 85% 15%, #5c1f2c 0%, #3a111a 45%, #1f080e 100%);
}

.clinics-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.clinics .eyebrow {
  margin-bottom: 1.75rem;
}

.clinics h2 {
  margin-bottom: 1.5rem;
}

.clinic-points {
  margin: 2.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line-dark);
  list-style: none;
}

.clinic-points li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line-dark);
}

.clinic-points .num {
  padding-top: 0.15rem;
  color: var(--champagne);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.2;
}

.clinic-points h3 {
  margin-bottom: 0.25rem;
  color: var(--on-dark);
  font-size: 1.0625rem;
  font-weight: 500;
}

.clinic-points p {
  color: var(--on-dark-2);
  font-size: 0.9375rem;
  font-weight: 300;
}

html[lang="ar"] .clinic-points p {
  font-weight: 400;
}

.clinics-visual {
  position: relative;
  padding-block: 2rem 5rem;
  padding-inline-start: 18%;
}

.clinics-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 4 / 5;
  box-shadow: 0 60px 120px -50px rgb(0 0 0 / 0.7);
}

.clinics-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 50%;
}

.clinics-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, transparent 40%, rgb(31 8 14 / 0.55));
}

.clinics-visual .phone {
  position: absolute;
  z-index: 2;
}

.clinics-visual .phone-a {
  --w: clamp(150px, 13vw, 190px);
  inset-inline-start: 0;
  bottom: 20%;
}

.clinics-visual .phone-b {
  --w: clamp(170px, 15vw, 216px);
  inset-inline-start: 22%;
  bottom: 0;
}

/* Finale */

.finale {
  overflow: hidden;
  padding-block: 0 clamp(5rem, 10vw, 8rem);
  background: var(--noir);
  color: var(--on-dark);
  text-align: center;
}

.finale-media {
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: min(70vw, 640px);
}

.finale-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 60%;
  opacity: 0.55;
}

.finale-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--noir) 0%,
    rgb(13 9 8 / 0.25) 35%,
    rgb(13 9 8 / 0.6) 70%,
    var(--noir) 100%
  );
}

.finale-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(6rem, 12vw, 9rem);
}

.card-stage {
  --rx: 0;
  --ry: 0;
  margin-bottom: clamp(3rem, 6vw, 4.5rem);
  perspective: 1400px;
}

.member-card {
  position: relative;
  width: clamp(290px, 34vw, 430px);
  aspect-ratio: 1.586;
  border-radius: 22px;
  transform: rotateX(calc(10deg + var(--ry) * -8deg)) rotateY(calc(-14deg + var(--rx) * 10deg))
    rotateZ(3deg);
  transform-style: preserve-3d;
  transition: transform 0.8s var(--ease-out);
  animation: card-float 7s ease-in-out infinite;
}

.mc-face {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 7% 7.5%;
  overflow: hidden;
  border: 1px solid rgb(220 195 152 / 0.34);
  border-radius: inherit;
  background:
    var(--lattice) center / 48px 48px,
    radial-gradient(120% 90% at 0% 0%, rgb(255 236 200 / 0.12), transparent 50%),
    linear-gradient(135deg, #2c1e20 0%, #130d0e 48%, #261a1b 100%);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.14),
    0 60px 100px -40px rgb(0 0 0 / 0.9),
    0 0 80px -20px rgb(220 195 152 / 0.25);
  text-align: start;
}

.mc-face::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgb(19 13 14 / 0.94) 20%,
    rgb(19 13 14 / 0.8) 60%,
    rgb(19 13 14 / 0.94)
  );
}

/* Light sweeping across the foil */
.mc-face::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgb(255 240 210 / 0.16) 48%,
    rgb(255 240 210 / 0.05) 53%,
    transparent 60%
  );
  animation: sheen 6s var(--ease) infinite;
}

.mc-top,
.mc-bottom,
.mc-emblem {
  position: relative;
  z-index: 1;
}

.mc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc-brand {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.mc-tier,
.mc-bottom {
  color: rgb(220 195 152 / 0.85);
  font-size: clamp(0.5625rem, 0.9vw, 0.6875rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.mc-emblem {
  align-self: center;
  justify-self: center;
  width: 22%;
  color: var(--champagne);
  opacity: 0.9;
}

.mc-bottom {
  display: flex;
  justify-content: space-between;
}

.mc-bottom span:last-child {
  letter-spacing: 0.18em;
}

.finale h2 {
  margin: 1.75rem 0 1.25rem;
}

.finale .lede {
  margin-inline: auto;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.875rem;
  margin: 2.75rem 0 1.75rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-width: 200px;
  min-height: 64px;
  padding: 0.5rem 1.5rem;
  border: 1px solid rgb(220 195 152 / 0.4);
  border-radius: 16px;
  background: rgb(244 236 226 / 0.04);
  color: var(--on-dark);
  text-align: start;
  text-decoration: none;
  transition:
    border-color 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.store:hover {
  border-color: var(--champagne);
  background: rgb(244 236 226 / 0.08);
}

.store svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--champagne);
}

.store span {
  display: grid;
  line-height: 1.2;
}

.store small {
  color: var(--on-dark-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.store strong {
  font-size: 1.125rem;
  font-weight: 500;
}

.store[aria-disabled="true"] {
  cursor: default;
}

.fineprint {
  color: var(--on-dark-3);
  font-size: 0.875rem;
}

@keyframes card-float {
  50% {
    translate: 0 -10px;
  }
}

@keyframes sheen {
  0%,
  35% {
    transform: translateX(-40%);
  }

  75%,
  100% {
    transform: translateX(40%);
  }
}

/* ── Footer ── */

.footer {
  padding-block: clamp(4rem, 8vw, 6rem) 2.25rem;
  border-top: 1px solid var(--line-dark);
  background: var(--noir-2);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer .brand {
  margin-bottom: 1.5rem;
  color: var(--on-dark);
}

.footer-brand p {
  max-width: 34em;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

html[lang="ar"] .footer-brand p {
  font-weight: 400;
}

.footer-brand .footer-scope {
  color: var(--on-dark);
  font-weight: 400;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.footer-nav h3,
.license h3 {
  margin-bottom: 1.25rem;
  color: var(--champagne);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

html[lang="ar"] .footer-nav h3,
html[lang="ar"] .license h3 {
  font-size: 0.875rem;
  letter-spacing: 0;
}

.footer-nav ul {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.footer-nav a:hover {
  color: var(--on-dark);
}

.license {
  padding-block: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.license-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
}

.license h3 {
  margin: 0;
}

.license-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--on-dark);
  font-size: 0.8125rem;
}

.license-badge svg {
  width: 14px;
  height: 14px;
  color: var(--champagne);
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2.5rem;
  margin: 0;
}

.license-grid dt {
  margin-bottom: 0.25rem;
  color: var(--on-dark-3);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.license-grid dd {
  margin: 0;
  color: var(--on-dark);
  font-size: 0.875rem;
  font-weight: 300;
}

html[lang="ar"] .license-grid dd {
  font-weight: 400;
}

.dd-ar {
  display: block;
  margin-top: 0.15rem;
  color: var(--on-dark-2);
  font-family: var(--font-arabic);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 2rem;
  color: var(--on-dark-3);
  font-size: 0.8125rem;
}

/* ── Scroll reveal (only applied to content below the fold) ── */

.reveal {
  transition:
    opacity 1.1s var(--ease-out),
    transform 1.1s var(--ease-out),
    filter 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.is-pending {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
}

/* ── Responsive ── */

@media (min-width: 901px) and (max-height: 820px) {
  .hero-layout {
    padding-top: calc(var(--nav) + 1rem);
  }

  .hero h1 {
    font-size: clamp(3.2rem, min(11vh, 6.4vw), 7.4rem);
    margin-bottom: 1.5rem;
  }

  .hero .eyebrow {
    margin-bottom: 1.5rem;
  }

  .hero .lede {
    margin-bottom: 2rem;
  }

  .hero-visual {
    min-height: 560px;
  }

  .hero-visual .phone {
    --w: clamp(240px, 36vh, 300px);
  }
}

@media (max-width: 1100px) {
  .nav-shell {
    gap: 2rem;
  }

  .nav-links {
    gap: 1.75rem;
  }

  .hero-strip {
    grid-template-columns: repeat(2, auto);
    justify-content: start;
    column-gap: 3rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid li:not(:nth-child(3n)) {
    border-inline-end: 0;
  }

  .why-grid li:nth-child(odd) {
    border-inline-end: 1px solid var(--line);
  }
}

@media (max-width: 900px) {
  .nav-links,
  .nav-end .btn {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-sheet {
    display: block;
    position: absolute;
    inset-inline: 0;
    top: var(--nav);
    padding: 0.25rem var(--gutter) 1.75rem;
    border-bottom: 1px solid var(--line-dark);
    background: var(--noir);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
      opacity 0.3s var(--ease),
      transform 0.35s var(--ease),
      visibility 0s linear 0.35s;
  }

  .nav.is-open .nav-sheet {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition:
      opacity 0.3s var(--ease),
      transform 0.35s var(--ease),
      visibility 0s;
  }

  .nav-sheet a:not(.btn) {
    display: flex;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid var(--line-dark);
    color: var(--on-dark);
    font-family: var(--font-display);
    font-size: 1.625rem;
    font-weight: 400;
    text-decoration: none;
  }

  html[lang="ar"] .nav-sheet a:not(.btn) {
    font-family: var(--font-arabic-display);
    font-size: 1.375rem;
  }

  .nav-sheet .btn {
    width: 100%;
    margin-top: 1.5rem;
  }

  .hero {
    min-height: 0;
  }

  .hero-media::after,
  [dir="rtl"] .hero-media::after {
    background: linear-gradient(
      180deg,
      rgb(13 9 8 / 0.82) 0%,
      rgb(13 9 8 / 0.72) 45%,
      rgb(13 9 8 / 0.55) 70%,
      rgb(13 9 8 / 1) 100%
    );
  }

  .hero-layout,
  .how-layout,
  .story-grid,
  .clinics-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-layout {
    gap: 2rem;
    padding-bottom: 1rem;
  }

  .hero-visual {
    min-height: 0;
    padding-block: 1.5rem 2rem;
  }

  .hero-visual .phone {
    --w: min(64vw, 290px);
  }

  .hero-glow {
    width: 120%;
  }

  .live-chip {
    inset-inline-start: 0;
    bottom: 10%;
  }

  .numerals {
    grid-template-columns: minmax(0, 1fr);
    max-width: 22rem;
  }

  .numeral {
    padding-block: 2rem;
  }

  .numeral + .numeral {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .how-media {
    aspect-ratio: 5 / 4;
  }

  /* Story: a swipeable row of phones, no sticky stage */
  .story-stage {
    display: none;
  }

  .story-steps {
    display: flex;
    gap: 1.25rem;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0.5rem var(--gutter) 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .story-steps::-webkit-scrollbar {
    display: none;
  }

  .story-step {
    flex: 0 0 min(78%, 320px);
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    opacity: 1;
    scroll-snap-align: start;
  }

  .story-step h3,
  html[lang="ar"] .story-step h3 {
    font-size: 2.125rem;
  }

  .story-step p {
    font-size: 1rem;
  }

  .story-mobile {
    display: grid;
    order: -1;
    justify-items: start;
    margin-bottom: 2rem;
  }

  .story-mobile .phone {
    --w: min(60vw, 250px);
  }

  .clinics-visual {
    padding-inline-start: 12%;
  }

  .clinics-visual .phone-a {
    --w: min(34vw, 180px);
  }

  .clinics-visual .phone-b {
    --w: min(38vw, 200px);
  }

  .footer-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .license-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .hero-strip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 1.25rem;
  }

  .hero-strip li {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
  }

  .hero-cta .btn {
    flex: 1 1 auto;
  }

  .why-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .why-grid li,
  .why-grid li:nth-child(odd) {
    padding-inline: 0;
    border-inline-end: 0;
  }

  .why-grid li:hover {
    background: none;
  }

  .license-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .store {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .reveal.is-pending {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .ring-bar {
    stroke-dashoffset: 28;
  }
}

/* ── Legal pages ── */

.legal-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(13 9 8 / 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(18px);
  backdrop-filter: saturate(1.4) blur(18px);
  color: var(--on-dark);
}

.legal-nav .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--nav);
}

.legal-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.legal-actions .back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.9rem;
  color: var(--on-dark-2);
  font-size: 0.9375rem;
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.legal-actions .back:hover {
  color: var(--on-dark);
}

.legal-page {
  min-height: 100vh;
  padding: clamp(3.5rem, 8vw, 6rem) 0 6rem;
  color: var(--ink);
}

.legal-wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.legal-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  margin: 0 0 1.5rem;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.legal-kicker::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

html[dir="rtl"] .legal-kicker {
  font-size: 0.875rem;
  letter-spacing: 0;
}

.legal-page h1 {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 1.6rem + 3.6vw, 4.25rem);
  font-weight: 300;
  letter-spacing: -0.022em;
  line-height: 1.02;
}

.legal-lede {
  margin: 0 0 2.25rem;
  color: var(--muted);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.7;
}

.legal-lede strong {
  color: var(--ink);
  font-weight: 500;
}

.legal-callout {
  margin: 0 0 2.75rem;
  padding: 1.5rem 1.75rem;
  border: 1px solid rgb(164 124 73 / 0.3);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.4);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-callout strong {
  color: var(--wine);
  font-weight: 500;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 3.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-toc a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.875rem;
  text-decoration: none;
  transition:
    border-color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.legal-toc a:hover {
  border-color: rgb(164 124 73 / 0.5);
  background: rgb(255 255 255 / 0.5);
}

.legal-page h2 {
  margin: 3.5rem 0 1rem;
  font-family: var(--font-display);
  font-size: 2.125rem;
  font-weight: 400;
  letter-spacing: -0.012em;
  line-height: 1.12;
  scroll-margin-top: calc(var(--nav) + 1.5rem);
}

.legal-page h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--ink-2);
  font-size: 1.0625rem;
  font-weight: 500;
}

.legal-page section {
  scroll-margin-top: calc(var(--nav) + 1.5rem);
}

.legal-page p,
.legal-page li {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

.legal-page ul {
  margin: 0 0 1rem;
  padding-inline-start: 1.2rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-meta {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 0.875rem;
}

[data-legal-lang][hidden] {
  display: none !important;
}

html[dir="rtl"] .legal-page h1,
html[dir="rtl"] .legal-page h2 {
  font-family: var(--font-arabic-display);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

html[dir="rtl"] .legal-page p,
html[dir="rtl"] .legal-page li,
html[dir="rtl"] .legal-lede {
  font-weight: 400;
}

@media (max-width: 480px) {
  .legal-actions .back {
    padding-inline: 0.5rem;
  }
}
