/* ============================================================
   Qissa marketing site, night register
   Palette from design/tokens.json. Midnight ground, one gold accent,
   bone text. Ornament composed from authored motifs only.
   All motion is transform/opacity; full static fallback below.
   ============================================================ */

:root {
  --midnight:        #11142F;
  --midnight-deep:   #0C0E24;
  --midnight-raised: #1B1F44;
  --gold:            #D9A63F;
  --gold-soft:       #E9C77B;
  --bone:            #F5EFE0;
  --bone-dim:        rgba(245, 239, 224, 0.68);
  /* the quietest text tone. 0.56 clears WCAG AA for small text: 5.6:1 on
     midnight, 5.7:1 on midnight-deep, 5.25:1 on midnight-raised. It was
     0.42 (3.69:1) until 2026-10-22. Hairlines use --hair, never this. */
  --bone-faint:      rgba(245, 239, 224, 0.56);
  --hair:            rgba(217, 166, 63, 0.55);
  --hair-faint:      rgba(217, 166, 63, 0.22);

  /* the app's own faces (QFont, ios/Qissa/Design/Tokens/Tokens.swift).
     Alegreya Sans sets smaller than Inter did, so every 12 to 17px size
     went up 1px with the switch (2026-10-23). */
  --ff-display: "Fraunces 9pt Soft", Georgia, "Times New Roman", serif;
  --ff-ui: "Alegreya Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ff-urdu: "Noto Nastaliq Urdu", serif;

  --wrap: 1120px;
  --wrap-narrow: 680px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { background: var(--midnight); scroll-behavior: smooth; overflow-x: clip; scroll-padding-top: 84px; }

body {
  margin: 0;
  /* no ground of its own: html carries the midnight, so the fixed star
     field (.night-sky, z-index -1) can show through */
  background: transparent;
  color: var(--bone);
  font-family: var(--ff-ui);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip, not hidden: hidden would make body a scroll container and break
     every position: sticky on the page (the header and the pinned phone) */
  overflow-x: clip;
}

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

a { color: var(--gold-soft); text-decoration: none; }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }

/* ---------- shared type ranks ---------- */
.eyebrow {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}
.eyebrow.center { text-align: center; }

.brand-urdu, .wordmark-urdu, .pillar-urdu { font-family: var(--ff-urdu); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 20, 47, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.scrolled {
  background: rgba(12, 14, 36, 0.9);
  border-bottom-color: var(--hair-faint);
  box-shadow: 0 14px 34px -22px rgba(0, 0, 0, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.35s var(--ease);
}
.site-header.scrolled .header-inner { padding-top: 10px; padding-bottom: 10px; }

/* reading progress: one gold hairline, scaled on the compositor */
.scroll-progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 100;
  background: var(--gold);
  color: var(--midnight);
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
}
.skip-link:focus { top: 12px; }
.brand { display: flex; align-items: baseline; gap: 12px; }
.brand-latin {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: var(--bone);
}
.brand-urdu { font-size: 22px; color: var(--gold); line-height: 2; }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  font-size: 15px;
  color: var(--bone-dim);
  letter-spacing: 0.01em;
  transition: color 0.25s var(--ease);
}
.site-nav a:hover { color: var(--bone); }
.site-nav a[aria-current="true"] { color: var(--gold-soft); }
.site-nav a[data-nav] { position: relative; padding: 4px 0; }
.site-nav a[data-nav]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease);
}
.site-nav a[data-nav]:hover::after,
.site-nav a[data-nav][aria-current="true"]::after { transform: scaleX(1); }
.nav-cta {
  color: var(--midnight) !important;
  background: var(--gold);
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.nav-cta:hover {
  background: var(--gold-soft);
  transform: translateY(-1px);
  box-shadow: 0 8px 26px -8px rgba(217, 166, 63, 0.65);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 64px 0 24px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -8% -4% 0;
  z-index: -3;
  /* Production ground: a lamplit midnight, no raster. The deployed site never
     requests the local-only textile. */
  background:
    radial-gradient(90% 70% at 74% 12%, rgba(40, 46, 104, 0.85) 0%, rgba(17, 20, 47, 0) 62%),
    radial-gradient(60% 50% at 12% 88%, rgba(217, 166, 63, 0.07) 0%, rgba(217, 166, 63, 0) 70%);
  will-change: transform;
}
/* local showing only (site.js adds the class for ?textile) */
.has-textile .hero-bg {
  background:
    radial-gradient(130% 90% at 72% 8%, rgba(27, 31, 68, 0.9) 0%, rgba(17, 20, 47, 0) 60%),
    url("assets-local/hero-courtyard.jpg");
  background-size: cover;
  background-position: 62% 18%;
  opacity: 0.22;
  filter: saturate(0.7) brightness(0.72);
}

/* mirror-work: one large authored rosette turning very slowly behind the phone */
.hero-rosette {
  position: absolute;
  z-index: -2;
  top: 50%;
  right: max(-140px, calc(50% - 760px));
  width: 760px;
  height: 760px;
  margin-top: -380px;
  pointer-events: none;
  will-change: transform;
}
.hero-rosette::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/motifs/rosette-gold.svg") center / contain no-repeat;
  opacity: 0.075;
  animation: slow-turn 180s linear infinite;
}
@keyframes slow-turn { to { transform: rotate(360deg); } }
/* the hero phone rises into place by transform only: it is painted, at full
   opacity, from the first frame. backwards fill, so the tilt's inline
   transform takes over once it lands. */
.hero-rise { animation: hero-rise 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s backwards; }
@keyframes hero-rise { from { transform: translateY(28px); } }
.hero-rise .device-screen::before { animation: gleam 1.6s var(--ease) 0.7s both; }

/* a pool of lamplight that trails the cursor (site.js moves it) */
.hero-glow {
  position: absolute;
  z-index: -2;
  top: -260px; left: -260px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 199, 123, 0.13), rgba(233, 199, 123, 0));
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
  will-change: transform;
}
.hero-glow.on { opacity: 1; }
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(17,20,47,0.35) 0%, rgba(17,20,47,0.2) 30%, rgba(17,20,47,0.85) 85%, var(--midnight) 100%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: center;
  min-height: min(620px, 72vh);
}

.wordmark { margin: 4px 0 14px; line-height: 1; }
.wordmark-latin {
  display: block;
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(54px, 9vw, 96px);
  letter-spacing: -0.02em;
  color: var(--bone);
  line-height: 0.98;
}
.wordmark-urdu {
  display: block;
  font-size: clamp(34px, 6vw, 58px);
  color: var(--gold);
  line-height: 2.1;
  /* sits directly under the Latin wordmark, on the same left edge */
  text-align: left;
  margin-top: -0.28em;
}

.hero-headline {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--bone);
}
.hero-headline em {
  font-style: italic;
  color: var(--gold);
  font-weight: 500;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 34em;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trial-note { margin: 0; font-size: 15px; color: var(--bone-faint); letter-spacing: 0.02em; }

/* App Store badge */
/* Apple's rules, from the App Store Marketing Guidelines: artwork unmodified,
   never angled or animated, at least 40px tall, clear space of a quarter of
   its height on every side. So this one stays perfectly still. */
.store-badge {
  display: inline-block;
  margin: 12px;
  line-height: 0;
}
.store-badge img { height: 48px; width: auto; }
.hero-cta .store-badge { margin-left: 0; }

/* ---------- device frame ---------- */
.hero-device { display: flex; justify-content: center; perspective: 1400px; }
.device {
  position: relative;
  padding: 11px;
  border-radius: 40px;
  background: linear-gradient(155deg, #26294f 0%, #15183a 55%, #0e1030 100%);
  box-shadow:
    0 0 0 1.5px rgba(217, 166, 63, 0.4),
    0 40px 80px -30px rgba(0, 0, 0, 0.8),
    0 10px 30px -10px rgba(0, 0, 0, 0.6);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease);
  will-change: transform;
  /* the frame owns its size; the renders inside are 2x for sharp screens */
  width: min(300px, 76vw);
}
.hero-device .device { width: min(322px, 78vw); }
.device-screen {
  border-radius: 30px;
  overflow: hidden;
  background: var(--midnight-deep);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
}
.device-screen img { width: 100%; height: auto; display: block; }

/* A render that is a scroll-cut of a taller card: fade the bottom so the cut
   reads as "more below", never as a broken screenshot. */
.device-screen.scroll-cut { position: relative; }
.device-screen.scroll-cut::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 110px;
  background: linear-gradient(to bottom,
    rgba(7, 9, 26, 0) 0%,
    rgba(7, 9, 26, 0.9) 72%,
    var(--midnight-deep) 100%);
  pointer-events: none;
}
/* ---------- swinging pendant ---------- */
.pendant {
  position: absolute;
  top: 0;
  right: 11%;
  z-index: 4;
  transform-origin: top center;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: swing 5.2s ease-in-out infinite;
}
.pendant-chain {
  width: 1.5px;
  height: 46px;
  background: linear-gradient(var(--hair), rgba(217,166,63,0.15));
}
.pendant-rosette {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
}
@keyframes swing {
  0%, 100% { transform: rotate(-7deg); }
  50% { transform: rotate(7deg); }
}

/* ---------- gold hairline rule with specular sweep ---------- */
.hairline-rule {
  position: relative;
  height: 1px;
  margin: 48px auto 0;
  max-width: var(--wrap);
  background: linear-gradient(90deg, transparent, var(--hair) 18%, var(--hair) 82%, transparent);
  overflow: hidden;
}
.hairline-rule::after {
  content: "";
  position: absolute;
  top: 0; left: -30%;
  width: 30%; height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-soft), transparent);
  animation: specular 6s ease-in-out infinite;
}
@keyframes specular {
  0% { transform: translateX(-120%); }
  55%, 100% { transform: translateX(560%); }
}

/* ---------- composed vine divider (authored motif, tiled) ---------- */
.vine-divider {
  height: 40px;
  margin: 58px auto 10px;
  max-width: 560px;
  background-image: url("assets/motifs/vine-gold.svg");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 120px 40px; /* exact repeat unit, never stretched */
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

/* ============================================================
   WAITLIST
   One outlined panel, because the whole panel is the thing you act on.
   Email and the button carry the weight; the optional phone question sits
   quieter underneath so it never looks required.
   ============================================================ */
.waitlist { padding: 64px 0 24px; }
.waitlist-inner {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 64px;
  align-items: center;
}
.waitlist-head {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--bone);
}
.waitlist-sub {
  font-size: 19px;
  line-height: 1.65;
  color: var(--bone-dim);
  max-width: 26em;
  margin: 0;
}
.waitlist-panel {
  padding: 36px 36px 32px;
  border: 1px solid var(--hair);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(27, 31, 68, 0.72), rgba(27, 31, 68, 0.38));
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

.wl-fields { display: grid; gap: 18px; }
.wl-field label {
  display: block;
  font-size: 16px;
  line-height: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bone);
}
.wl-optional { font-weight: 400; color: var(--bone-faint); }
.wl-field input,
.wl-field textarea {
  display: block;
  width: 100%;
  min-height: 58px;
  margin: 8px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--hair);
  border-radius: 14px;
  background: rgba(12, 14, 36, 0.55);
  color: var(--bone);
  caret-color: var(--gold);
  font-family: var(--ff-ui);
  font-size: 18px; /* 16px or more: iOS zooms the page on anything smaller */
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wl-field input::placeholder, .wl-field textarea::placeholder { color: var(--bone-faint); opacity: 1; }
.wl-field input:hover, .wl-field textarea:hover { border-color: var(--gold); }
.wl-field input:focus, .wl-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 166, 63, 0.28); }
.wl-field input:focus-visible, .wl-field textarea:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 166, 63, 0.45); }
.wl-field input[aria-invalid="true"], .wl-field textarea[aria-invalid="true"] { border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(233, 199, 123, 0.3); }
/* the message box: room for a few lines, grows only downward */
.wl-field textarea { min-height: 148px; resize: vertical; line-height: 1.55; }
/* browser autofill would otherwise paint a pale box on the night ground */
.wl-field input:-webkit-autofill,
.wl-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bone);
  -webkit-box-shadow: 0 0 0 100px var(--midnight-deep) inset;
  caret-color: var(--gold);
}

.wl-platform { margin: 0; padding: 0; border: 0; min-width: 0; }
.wl-platform legend {
  padding: 0;
  font-size: 16px;
  line-height: 22px;
  color: var(--bone-dim);
}
.wl-choices { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.wl-choice { position: relative; flex: 1 1 0; min-width: 88px; }
/* the radio stays in the page for keyboards and screen readers; the pill is its face */
.wl-choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.wl-choice span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  font-size: 17px;
  line-height: 1.2;
  color: var(--bone-dim);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background-color 0.25s var(--ease);
}
.wl-choice input:hover + span { border-color: var(--gold); color: var(--bone); }
.wl-choice input:checked + span {
  border-color: var(--gold);
  background: rgba(217, 166, 63, 0.14);
  color: var(--bone);
}
.wl-choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }
/* the honeypot: off screen for people, still in the form for bots */
.wl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.waitlist-form { position: relative; }
.wl-hint, .wl-error { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--bone-dim); }
.wl-error { color: var(--gold-soft); font-weight: 500; }

.waitlist button.btn-gold,
.contact button.btn-gold {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 19px 34px;
  font-size: 19px;
  border: 0;
  cursor: pointer;
  font-family: var(--ff-ui);
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
}
.btn-gold:focus-visible { outline: 2px solid var(--bone); outline-offset: 4px; border-radius: 999px; }
.waitlist button.btn-gold[disabled], .contact button.btn-gold[disabled] { opacity: 0.7; cursor: progress; transform: none; box-shadow: none; }

.wl-status { margin: 0; font-size: 17px; line-height: 1.55; color: var(--bone); }
.wl-status:not(:empty) {
  margin-top: 20px;
  padding-left: 14px;
  border-left: 1px solid var(--gold);
}
.wl-consent {
  margin: 22px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--bone-dim);
  max-width: 38em;
}
.wl-consent a, .hero-waitlist a { text-decoration: underline; text-underline-offset: 3px; }

/* Endpoint not set, scripts off: nothing here can submit, so say so instead. */
.wl-closed { display: none; margin: 0; font-size: 18px; color: var(--bone); }
html:not(.js) .waitlist-form[action=""] .wl-fields,
html:not(.js) .waitlist-form[action=""] .wl-submit,
html:not(.js) .waitlist-form[action=""] .wl-consent { display: none; }
html:not(.js) .waitlist-form[action=""] .wl-closed { display: block; }

.wl-done:focus { outline: none; }
.wl-done-head {
  font-family: var(--ff-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--gold-soft);
}
.wl-done p { margin: 0; font-size: 18px; line-height: 1.65; color: var(--bone-dim); max-width: 30em; }
.wl-done strong { color: var(--bone); font-weight: 500; overflow-wrap: anywhere; }

/* the two short calls that point at the form */
.hero-waitlist { margin: 18px 0 0; font-size: 17px; }
/* the scripts-off page the waitlist function answers with */
.wl-back { margin: 30px 0 0; }

/* ============================================================
   CONTACT
   The waitlist's panel and fields, last thing before the footer.
   ============================================================ */
.contact {
  padding: 96px 0 104px;
  border-top: 1px solid var(--hair-faint);
}
.contact-mail { margin: 26px 0 0; font-size: 17px; line-height: 1.6; color: var(--bone-dim); }
.contact-mail a {
  display: inline-flex;
  align-items: center;
  min-height: 44px; /* 44pt tap height */
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.contact-mail a:hover { color: var(--bone); }

/* ============================================================
   STORY
   ============================================================ */
.story { padding: 70px 0 88px; }
.story-lead {
  font-family: var(--ff-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--bone);
  margin: 0 0 28px;
}
.story-body {
  font-size: 18px;
  line-height: 1.7;
  color: var(--bone-dim);
  margin: 0 0 20px;
}

/* ============================================================
   PILLARS
   ============================================================ */
.pillars { padding: 20px 0 100px; }
.pillar-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 36px;
  border-top: 1px solid var(--hair-faint);
}
.pillar {
  padding: 34px 26px 10px;
  border-left: 1px solid var(--hair-faint);
}
.pillar:first-child { border-left: none; }
.pillar-rank {
  font-family: var(--ff-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.75;
}
.pillar-urdu {
  font-size: 40px;
  color: var(--gold);
  line-height: 2;
  margin: 10px 0 0;
  font-weight: 400;
}
.pillar-translit {
  font-family: var(--ff-display); /* no Alegreya italic shipped: fonts.css */
  font-style: italic;
  font-size: 16px;
  color: var(--bone-faint);
  margin: 0 0 6px;
}
.pillar-name {
  font-family: var(--ff-display);
  font-size: 22px;
  color: var(--bone);
  margin: 0 0 12px;
}
.pillar-desc {
  font-size: 16px;
  line-height: 1.55;
  color: var(--bone-dim);
  margin: 0;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features { padding: 10px 0 40px; overflow-x: clip; }
.scrolly { position: relative; }

/* stacked layout: phone width, reduced motion, scripts off. Text, then its
   own phone; on a wide screen the sides alternate. */
.step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 70px 0;
}
.step:nth-child(2) .step-text { order: 2; }
.step-device {
  position: relative;
  display: flex;
  justify-content: center;
}
.scrolly-stage { display: none; }

.feature-head {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  color: var(--bone);
}
.feature-body {
  font-size: 18px;
  line-height: 1.68;
  color: var(--bone-dim);
  margin: 0 0 22px;
  max-width: 34em;
}
/* halo: the authored rosette, turning slowly behind each phone */
.step-device::before,
.stage-device::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: min(560px, 128%);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: url("assets/motifs/rosette-gold.svg") center / contain no-repeat;
  opacity: 0.06;
  animation: slow-turn 150s linear infinite;
  pointer-events: none;
}
.step:nth-child(2) .step-device::before { animation-direction: reverse; }
.step-device .device, .stage-device .device { z-index: 1; }

/* ---------- the pinned phone (wide screens, motion allowed, scripts on) ----------
   The stage column is as tall as the three steps; the phone inside it is
   sticky, so it stays put while the steps scroll past. site.js marks the
   step crossing the middle of the viewport and shows its screen. */
@media (min-width: 921px) and (prefers-reduced-motion: no-preference) {
  .js .scrolly {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
  .js .step {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 78vh;
    padding: 40px 0;
  }
  .js .step-device { display: none; }
  .js .step-text {
    position: relative;
    padding-left: 30px;
  }
  /* a hairline down the side of each step; the one you are on draws in gold */
  .js .step-text::before,
  .js .step-text::after {
    content: "";
    position: absolute;
    left: 0; top: 4px; bottom: 4px;
    width: 1px;
    background: var(--hair-faint);
  }
  .js .step-text::after {
    background: var(--gold);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.7s var(--ease);
  }
  .js .step.is-active .step-text::after { transform: scaleY(1); }

  .js .scrolly-stage { display: block; position: relative; }
  .js .stage-device {
    position: sticky;
    top: max(96px, calc(50vh - 280px));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 20px 0 40px;
    perspective: 1400px;
  }
}
.stage-screen { aspect-ratio: 620 / 1102; }
.stage-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 0.45s var(--ease), transform 0.8s var(--ease);
}
.stage-screen img.is-active { opacity: 1; transform: none; }
.stage-screen.flash::before { animation: gleam 1.3s var(--ease) both; }
.stage-dots {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage-dots li {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 1px solid var(--hair);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}
.stage-dots li.is-active { background: var(--gold); transform: scale(1.15); }

/* the correction, side by side: theirs, then ours */
.coach-compare { margin: 30px 0 0; max-width: 34em; }
.coach-line {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--hair-faint);
}
.coach-line:last-child { border-bottom: 1px solid var(--hair-faint); }
.coach-line dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bone-faint);
}
.coach-line dd { margin: 0; font-size: 18px; line-height: 1.5; }
.coach-them dd { color: var(--bone-faint); text-decoration: line-through; text-decoration-color: rgba(245, 239, 224, 0.3); }
.coach-us dt { color: var(--gold); }
.coach-us dd { font-family: var(--ff-display); font-style: italic; font-size: 19px; color: var(--bone); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 30px 0 110px; }
.faq-head {
  font-family: var(--ff-display);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 34px;
  color: var(--bone);
}
.faq-list { border-top: 1px solid var(--hair-faint); }
.faq-list details { border-bottom: 1px solid var(--hair-faint); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 2px;
  font-size: 18px;
  font-weight: 500;
  color: var(--bone);
  transition: color 0.25s var(--ease);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--gold-soft); }
.faq-list summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }
/* a plus that turns into a cross */
.faq-list summary::after {
  content: "";
  flex: 0 0 auto;
  width: 14px; height: 14px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 1.5px 100% no-repeat;
  transition: transform 0.35s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--gold-soft); }
.faq-list details p {
  margin: 0;
  padding: 0 44px 24px 2px;
  font-size: 18px;
  line-height: 1.68;
  color: var(--bone-dim);
  animation: faq-open 0.45s var(--ease);
}
.faq-list details p a { text-decoration: underline; text-underline-offset: 3px; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   GET / FINAL CTA
   ============================================================ */
.get {
  position: relative;
  padding: 104px 0 118px;
  text-align: center;
  background: var(--midnight-deep);
  border-top: 1px solid var(--hair-faint);
  overflow: hidden;
}
.get-ornament {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(217,166,63,0.12) 0%, rgba(217,166,63,0) 70%);
  pointer-events: none;
}
.get .wrap { position: relative; z-index: 1; }
/* a flower opening behind the last line, the way a right answer blooms in the app */
.get-bloom {
  position: absolute;
  z-index: 0;
  top: 50%; left: 50%;
  width: min(520px, 110vw);
  height: auto;
  margin: 0;
  translate: -50% -50%;
  pointer-events: none;
}
.js .reveal.bloom {
  opacity: 0;
  transform: scale(0.35) rotate(-70deg);
  transition: opacity 1.2s var(--ease), transform 1.7s cubic-bezier(0.34, 1.36, 0.5, 1);
}
.reveal.bloom, .js .reveal.bloom.in { opacity: 0.1; transform: none; }

.btn-gold {
  display: inline-block;
  padding: 16px 34px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--midnight);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  box-shadow: 0 0 0 0 rgba(217, 166, 63, 0);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.btn-gold:hover {
  background: var(--gold-soft);
  transform: translateY(-2px);
  box-shadow: 0 16px 44px -12px rgba(217, 166, 63, 0.7);
}
/* "Coming soon" is a fact, not a control: plain text, no box (boxes are
   only for things you can tap). */
.soon-note {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--bone-dim);
}
.get-actions { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* launch state: one attribute on <html> */
[data-launch="live"] .launch-pre { display: none; }
[data-launch="pre"] .launch-live { display: none; }
.get-head {
  font-family: var(--ff-display);
  font-weight: 600;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0 0 18px;
  color: var(--bone);
}
.get-sub {
  font-size: 18px;
  color: var(--bone-dim);
  max-width: 30em;
  margin: 0 auto 34px;
  text-wrap: balance;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--midnight);
  border-top: 1px solid var(--hair-faint);
  padding: 54px 0 40px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-brand .brand-latin { font-size: 20px; }
.footer-brand .brand-urdu { font-size: 20px; margin-left: 8px; }
.footer-tag { font-size: 15px; color: var(--bone-faint); margin: 10px 0 0; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 16px; color: var(--bone-dim); display: inline-flex; align-items: center; min-height: 44px; } /* 44pt tap height on a phone */
.footer-nav a:hover { color: var(--bone); }
.footer-base {
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid var(--hair-faint);
}
.footer-base p { margin: 0; font-size: 14px; color: var(--bone-faint); letter-spacing: 0.02em; }
.footer-base .footer-credit { margin-top: 8px; font-size: 13px; color: var(--bone-faint); }

/* ============================================================
   TOAST (the placeholder store link says so, instead of jumping nowhere)
   ============================================================ */
.toast {
  position: fixed;
  left: 50%; bottom: 28px;
  z-index: 80;
  translate: -50% 0;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--midnight-raised);
  border: 1px solid var(--hair);
  color: var(--bone);
  font-size: 16px;
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.show { opacity: 1; transform: none; }

/* ============================================================
   DEVICE: a gleam as it arrives
   ============================================================ */
.device-screen { position: relative; }

.device-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 244, 214, 0.2) 50%, transparent 60%);
  transform: translateX(-130%);
  pointer-events: none;
}
.js .reveal.in .device-screen::before { animation: gleam 1.6s var(--ease) 0.45s both; }
@keyframes gleam {
  from { transform: translateX(-130%); }
  to   { transform: translateX(130%); }
}

/* pillars: a gold thread draws across the top of the one you point at */
.pillar { position: relative; transition: background 0.4s var(--ease); }
.pillar::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s var(--ease);
}
.pillar-urdu { transition: transform 0.5s var(--ease); transform-origin: right center; }
@media (hover: hover) {
  .pillar:hover { background: linear-gradient(180deg, rgba(217, 166, 63, 0.05), rgba(217, 166, 63, 0)); }
  .pillar:hover::before { transform: scaleX(1); }
  .pillar:hover .pillar-urdu { transform: translateY(-4px); }
}

/* ============================================================
   SPECULAR SWEEP on wordmark / brand
   ============================================================ */
.sweep {
  background-image: linear-gradient(
    100deg,
    currentColor 0%, currentColor 40%,
    var(--gold-soft) 50%,
    currentColor 60%, currentColor 100%);
  background-size: 300% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  animation: brandsweep 7s ease-in-out infinite;
}
@keyframes brandsweep {
  0%, 12% { background-position: 120% 0; }
  40%, 100% { background-position: -60% 0; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: 0ms;
}
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"].in { transition-delay: 80ms; }
.reveal[data-delay="2"].in { transition-delay: 160ms; }
.reveal[data-delay="3"].in { transition-delay: 240ms; }
.reveal[data-delay="4"].in { transition-delay: 320ms; }
@media print { .js .reveal { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; gap: 44px; text-align: center; min-height: auto; }
  .hero-copy { max-width: 620px; margin: 0 auto; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .pendant { right: 6%; }
  .step { grid-template-columns: 1fr; gap: 36px; text-align: center; padding: 54px 0; }
  .step:nth-child(2) .step-text { order: unset; }
  .feature-body { margin-left: auto; margin-right: auto; }
  .coach-compare { margin-left: auto; margin-right: auto; text-align: left; }
  .hero-cta { flex-direction: column; gap: 6px; }
  .hero-cta .store-badge { margin-left: 12px; }
  .hero-rosette { right: 50%; margin-right: -380px; top: 72%; }
  .wordmark-urdu { text-align: center; }
  .site-nav { gap: 22px; }
  .waitlist-inner { grid-template-columns: 1fr; gap: 30px; max-width: 620px; }
  .waitlist-panel { padding: 26px 22px 24px; border-radius: 20px; }
  .contact { padding: 72px 0 80px; }
  .hero-cta .hero-waitlist-btn { margin-bottom: 12px; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  .footer-nav { gap: 0 22px; } /* each link is already 44pt tall */
  .site-nav { gap: 16px; }
  .site-nav a:not(.nav-cta) { display: none; }
  .hero-rosette { width: 560px; height: 560px; margin-top: -280px; margin-right: -280px; }
  .coach-line { grid-template-columns: 78px 1fr; gap: 12px; }
  /* five-line paragraphs read badly centered; the phone stays centered */
  .step-text { text-align: left; }
  .step-text .feature-body { margin-left: 0; }
  .faq-list summary { font-size: 18px; padding: 20px 2px; }
  .faq-list details p { padding-right: 8px; }
  .faq { padding-bottom: 84px; }
  .pillar-row { grid-template-columns: 1fr 1fr; }
  .pillar { border-top: 1px solid var(--hair-faint); }
  .pillar:nth-child(-n+2) { border-top: none; }
  .pillar:nth-child(odd) { border-left: none; }
  .story { padding: 70px 0; }
  .hero { padding: 48px 0 30px; }
  .pendant { display: none; }
}

@media (max-width: 420px) {
  /* sides only: a shorthand here would also zero the vertical padding of
     every block that is both a .wrap and something else (.feature was losing
     its 54px breathing room on real phones) */
  .wrap { padding-left: 20px; padding-right: 20px; }
}

/* ============================================================
   REDUCED MOTION: complete static fallback
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { scroll-behavior: auto !important; }
  .js .reveal, .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal.bloom, .reveal.bloom { opacity: 0.1; transform: none; transition: none; }
  .pendant { animation: none; }
  .hairline-rule::after { animation: none; display: none; }
  .sweep { animation: none; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; }
  .hero-rosette::before, .step-device::before, .stage-device::before { animation: none; }
  .hero-rise, .hero-rise .device-screen::before { animation: none; }
  .hero-glow { display: none; }
  .device-screen::before, .js .reveal.in .device-screen::before { animation: none; display: none; }
  .faq-list details p { animation: none; }
  .device, .stage-screen img, .stage-dots li, .pillar, .pillar::before, .pillar-urdu,
  .btn-gold, .nav-cta, .toast, .site-header, .header-inner,
  .faq-list summary::after, .wl-field input, .wl-choice span { transition: none; }
}

/* ============================================================
   NIGHT SKY: the app's quiet star field behind the page.
   site.js draws three canvases once (procedural dots, see the note
   there); this only places them and breathes two of them. Body has no
   background of its own so the field shows through; the midnight ground
   is html's. Opacity only, so the twinkle is compositor work.
   ============================================================ */
.night-sky {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
}
.night-sky.on { opacity: 1; }
.night-sky-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .night-sky-1 { animation: night-twinkle 7.4s ease-in-out infinite alternate; }
  .night-sky-2 { animation: night-twinkle 10.6s ease-in-out -4.2s infinite alternate; }
}
@media (prefers-reduced-motion: reduce) {
  .night-sky { transition: none; }
}
@keyframes night-twinkle {
  from { opacity: 1; }
  to   { opacity: 0.62; }
}
@media print {
  .night-sky { display: none; }
}
