/* ============================================================================
   Durri — durri.app
   Design system mirrored from the app's Brand.swift:
   ink & porcelain surfaces, one champagne accent, editorial serif, light behind glass.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Raw palette (from Brand.swift) */
  --porcelain:          #F7F7F5;
  --porcelain-surface:  #FFFFFF;
  --porcelain-recess:   #F1F1EE;
  --ink:                #0A0B10;
  --ink-surface:        #11131A;
  --ink-recess:         #181B24;

  --text-dark:   #14161C;   --text-dark-2:  #5C5F66;   --text-dark-3:  #9B9EA4;
  --text-light:  #F3F2ED;   --text-light-2: #9A9DA6;   --text-light-3: #5B5E68;

  --gold-deep:   #8A7143;   /* champagne on light */
  --gold:        #C9AE7C;   /* champagne on dark  */
  --gold-lamp:   #E4CF9E;
  --emerald-deep:#0E5C4A;   --emerald: #3E9C82;

  /* Type */
  --font-serif: "Newsreader", "New York", ui-serif, Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-ar:    "Amiri", "Newsreader", serif;

  /* Metrics */
  --r-card: 28px;  --r-chip: 18px;  --r-pill: 999px;
  --pad: clamp(20px, 5vw, 40px);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);

  color-scheme: light dark;
}

/* ---------- Theme scopes ---------- */
.theme-porcelain {
  --bg: var(--porcelain); --surface: var(--porcelain-surface); --recess: var(--porcelain-recess);
  --text: var(--text-dark); --text-2: var(--text-dark-2); --text-3: var(--text-dark-3);
  --gold-ink: var(--gold-deep);
  --line: rgba(138,113,67,.30);
  --line-soft: rgba(20,22,28,.08);
  --live: var(--emerald-deep);
  --shadow: 0 1px 2px rgba(20,22,28,.04), 0 24px 60px -28px rgba(20,22,28,.22);
}
.theme-ink {
  --bg: var(--ink); --surface: var(--ink-surface); --recess: var(--ink-recess);
  --text: var(--text-light); --text-2: var(--text-light-2); --text-3: var(--text-light-3);
  --gold-ink: var(--gold);
  --line: rgba(201,174,124,.30);
  --line-soft: rgba(243,242,237,.09);
  --live: var(--emerald);
  --shadow: 0 30px 80px -40px rgba(0,0,0,.8);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  font-family: var(--font-sans);
  background: var(--ink);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: #14161C; }

/* ---------- Typography helpers ---------- */
.serif { font-family: var(--font-serif); }
.ar { font-family: var(--font-ar); direction: rtl; unicode-bidi: isolate; }
.caps {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .24em;
  color: var(--text-2);
}
.gold { color: var(--gold-ink); }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 400; line-height: 1.06; letter-spacing: -.01em; }
.display {
  font-family: var(--font-serif);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -.015em;
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { position: relative; padding-block: clamp(80px, 12vw, 168px); background: var(--bg); color: var(--text); }
.section--tight { padding-block: clamp(56px, 8vw, 104px); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; margin-bottom: 1.4rem; }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  border-radius: var(--r-pill); padding: .95em 1.6em; cursor: pointer; border: 1px solid transparent;
  transition: transform .5s var(--ease-out), background .4s var(--ease), border-color .4s, color .4s, box-shadow .5s var(--ease-out);
  will-change: transform;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold); color: #17130A; box-shadow: 0 12px 40px -14px rgba(201,174,124,.6); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 20px 54px -14px rgba(201,174,124,.75); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold-ink); color: var(--gold-ink); transform: translateY(-2px); }

/* Apple-style App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: .7rem;
  background: #000; color: #fff; border: 1px solid rgba(255,255,255,.22);
  border-radius: 14px; padding: .62rem 1.15rem .66rem;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .4s;
  will-change: transform;
}
.theme-porcelain .appstore { border-color: rgba(0,0,0,.9); }
.appstore:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -18px rgba(0,0,0,.6); }
.appstore svg { width: 26px; height: 26px; flex: 0 0 auto; }
.appstore .as-txt { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.appstore .as-txt small { font-size: .62rem; letter-spacing: .04em; opacity: .9; text-transform: none; }
.appstore .as-txt b { font-size: 1.22rem; font-weight: 500; letter-spacing: .01em; font-family: var(--font-sans); }
.appstore .as-note { font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; opacity: .55; margin-left: .1rem; }

/* ============================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad);
  transition: background .5s var(--ease), backdrop-filter .5s, border-color .5s, padding .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--ink) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border-bottom-color: var(--line-soft);
  padding-block: .8rem;
}
.nav__brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--text-light); }
.nav__brand .mark { width: 26px; height: 26px; }
.nav__brand .mark path, .nav__brand .mark circle { stroke: var(--gold); }
.nav__brand .wordmark { font-family: var(--font-serif); font-weight: 400; font-size: 1.18rem; letter-spacing: .34em; padding-left: .34em; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { font-size: .9rem; color: var(--text-light-2); transition: color .3s; letter-spacing: .01em; }
.nav__links a:hover { color: var(--text-light); }
.nav__cta { display: inline-flex; }
@media (max-width: 720px) { .nav__links a:not(.nav__cta) { display: none; } }

/* ============================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: var(--ink); color: var(--text-light); overflow: hidden;
  padding: clamp(120px, 17vh, 180px) 0 clamp(72px, 9vw, 120px); }
.hero__glow {
  position: absolute; left: 50%; top: 24%; transform: translate(-50%,-50%);
  width: min(900px, 120vw); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,174,124,.16), rgba(201,174,124,.05) 38%, transparent 66%);
  filter: blur(8px); pointer-events: none; animation: breathe 9s ease-in-out infinite;
}
.hero__vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 8%, transparent 40%, rgba(0,0,0,.5) 100%); }
.hero__inner { position: relative; z-index: 2; display: grid; gap: clamp(48px, 6vw, 80px);
  grid-template-columns: 1.05fr .95fr; align-items: center; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; text-align: center; } }

.hero__mark { width: 62px; height: 62px; margin-bottom: 2.2rem; }
@media (max-width: 900px) { .hero__mark { margin-inline: auto; } }
.hero__mark .lamp { filter: drop-shadow(0 0 6px rgba(228,207,158,.9)); animation: lampPulse 4.5s ease-in-out infinite; }

.hero__wordmark {
  font-family: var(--font-serif); font-weight: 300; color: var(--text-light);
  font-size: clamp(3.4rem, 11vw, 6.6rem); letter-spacing: .12em; line-height: 1;
  margin-bottom: 1.2rem;
}
.hero__wordmark span { display: inline-block; }
.hero__ar { font-family: var(--font-ar); color: var(--gold); font-size: clamp(1.4rem,4vw,2rem); margin-bottom: .3rem; text-align: left; }
@media (max-width: 900px) { .hero__ar { text-align: center; } }
.hero__tagline-sub { color: var(--text-light-2); font-style: italic; font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: 2rem; }
.hero__tagline-sub .ar { font-style: normal; }
.hero__lead {
  font-family: var(--font-serif); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.28; color: var(--text-light);
  max-width: 20ch; margin-bottom: 2.2rem; letter-spacing: -.01em;
}
@media (max-width: 900px) { .hero__lead { margin-inline: auto; } }
.hero__lead em { font-style: italic; color: var(--gold); }
.hero__actions { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
@media (max-width: 900px) { .hero__actions { justify-content: center; } }

/* Hairline divider ornament */
.rule { display: flex; align-items: center; gap: 1rem; color: var(--gold-ink); }
.rule::before, .rule::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.rule .star8 { width: 12px; height: 12px; }
.rule .star8 path { stroke: var(--gold-ink); }

/* ---------- Phone device + live Today card ---------- */
.device {
  position: relative; width: min(340px, 78vw); margin-inline: auto;
  aspect-ratio: 340 / 720; border-radius: 46px;
  background: linear-gradient(160deg, #23252e, #0c0d12);
  padding: 11px; box-shadow: 0 50px 120px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05) inset;
  transform: perspective(1600px) rotateY(-11deg) rotateX(4deg) translateZ(0);
  transition: transform 1.1s var(--ease-out);
  will-change: transform;
}
.device:hover { transform: perspective(1600px) rotateY(-4deg) rotateX(2deg); }
@media (max-width: 900px) { .device { transform: none; } .device:hover { transform: none; } }
.device__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--porcelain); color: var(--text-dark);
  display: flex; flex-direction: column;
}
.device__notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 34%; height: 22px; background: #0A0B10; border-radius: 999px; z-index: 5; }
.today { padding: 46px 22px 0; display: flex; flex-direction: column; height: 100%; }
.today__loc { display: inline-flex; align-self: flex-start; align-items: center; gap: .4rem; background: #fff; border-radius: 999px; padding: .5rem .9rem; box-shadow: 0 6px 18px -10px rgba(20,22,28,.4); font-size: .78rem; font-weight: 600; color: var(--text-dark); }
.today__loc .star8 { width: 11px; height: 11px; } .today__loc .star8 path { stroke: var(--gold-deep); }
.today__meta { margin-top: 1.3rem; text-align: center; font-size: .62rem; letter-spacing: .18em; font-weight: 600; }
.today__meta .h { color: var(--gold-deep); } .today__meta .g { color: var(--text-dark-2); }
.today__arch { position: relative; margin-top: 1rem; text-align: center; padding-top: 1.2rem; }
.today__arch::before { content: ""; position: absolute; inset: 0 22% auto; height: 220px; top: -6px;
  border: 1px solid rgba(138,113,67,.28); border-bottom: none; border-radius: 130px 130px 0 0; }
.today__np-label { position: relative; font-size: .58rem; letter-spacing: .26em; font-weight: 600; color: var(--text-dark-3); }
.today__np-name { position: relative; font-family: var(--font-serif); font-size: 1.9rem; margin-top: .35rem; color: var(--text-dark); }
.today__np-name .ar { font-family: var(--font-ar); color: var(--gold-deep); font-size: 1.3rem; margin-left: .3rem; }
.today__count { position: relative; font-family: var(--font-serif); font-weight: 400; font-size: 3rem; letter-spacing: -.02em; color: var(--text-dark); font-variant-numeric: tabular-nums; margin-top: .1rem; }
.today__pill { position: relative; display: inline-block; margin-top: .7rem; background: #fff; border-radius: 999px; padding: .5rem 1rem; font-size: .72rem; color: var(--text-dark-2); box-shadow: 0 8px 20px -12px rgba(20,22,28,.35); }
.today__list { margin-top: auto; padding: .4rem 0 0; }
.prow { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: .62rem 0; border-top: 1px solid rgba(20,22,28,.06); }
.prow:first-child { border-top: none; }
.prow .nm { font-family: var(--font-serif); font-size: 1.02rem; color: var(--text-dark); }
.prow .nm .ar { font-family: var(--font-ar); font-size: .8rem; color: var(--text-dark-3); margin-left: .3rem; }
.prow .tm { font-family: var(--font-serif); font-size: 1.02rem; color: var(--text-dark-2); font-variant-numeric: tabular-nums; }
.prow.is-next .nm, .prow.is-next .tm { color: var(--gold-deep); }
.device__tabbar { display: flex; justify-content: space-around; padding: .7rem 0 1.1rem; background: rgba(255,255,255,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-top: 1px solid rgba(20,22,28,.05); }
.device__tabbar .tab { display: flex; flex-direction: column; align-items: center; gap: .2rem; font-size: .56rem; color: var(--text-dark-3); }
.device__tabbar .tab.on { color: var(--gold-deep); }
.device__tabbar .tab svg { width: 18px; height: 18px; }

/* Floating scroll cue */
.scrollcue { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .5rem; color: var(--text-light-3); }
.scrollcue .caps { color: var(--text-light-3); font-size: .6rem; }
.scrollcue .chev { width: 18px; height: 18px; animation: bob 2.4s ease-in-out infinite; }
@media (max-width: 900px) { .scrollcue { display: none; } }

/* ============================================================================
   MANIFESTO
   ========================================================================== */
.manifesto { text-align: center; }
.manifesto h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 300; max-width: 18ch; margin-inline: auto; }
.manifesto h2 em { font-style: italic; color: var(--gold-ink); }
.manifesto p { margin: 1.8rem auto 0; max-width: 46ch; color: var(--text-2); font-size: 1.12rem; }
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(1rem,4vw,3rem); align-items: center; margin-top: clamp(3rem,6vw,5rem); text-align: left; }
@media (max-width: 760px) { .compare { grid-template-columns: 1fr; } .compare .vs { display: none; } }
.compare__card { border: 1px solid var(--line-soft); border-radius: var(--r-card); padding: 2rem; background: var(--surface); }
.compare__card.good { border-color: var(--line); box-shadow: var(--shadow); }
.compare__card h3 { font-family: var(--font-sans); font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.1rem; }
.compare__card.good h3 { color: var(--gold-ink); }
.compare__card.dim h3 { color: var(--text-3); }
.compare__time { font-family: var(--font-serif); font-size: 2.6rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.compare__card.dim .compare__time { color: var(--text-3); }
.compare__card small { display: block; margin-top: .5rem; color: var(--text-2); font-size: .9rem; }
.compare .vs { font-family: var(--font-serif); font-style: italic; color: var(--text-3); }

/* ============================================================================
   FEATURES
   ========================================================================== */
.features__head { max-width: 30ch; margin-bottom: clamp(3rem,6vw,5rem); }
.features__head h2 { font-size: clamp(1.9rem,4.4vw,3rem); font-weight: 300; }
.feature {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 6vw, 6rem);
  border-top: 1px solid var(--line-soft);
}
.feature:first-of-type { border-top: none; }
.feature.flip .feature__media { order: -1; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 2.5rem; } .feature.flip .feature__media { order: 0; } .feature__copy { text-align: center; } }
.feature__copy .caps { color: var(--gold-ink); }
.feature__copy h3 { font-size: clamp(1.8rem,3.4vw,2.6rem); font-weight: 300; margin: 1rem 0 1rem; }
.feature__copy p { color: var(--text-2); font-size: 1.08rem; max-width: 42ch; }
@media (max-width: 860px) { .feature__copy p { margin-inline: auto; } }
.feature__list { list-style: none; margin-top: 1.6rem; display: flex; flex-direction: column; gap: .7rem; }
.feature__list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-size: .98rem; }
@media (max-width: 860px) { .feature__list { align-items: center; text-align: left; max-width: 30ch; margin-inline: auto; } }
.feature__list .star8 { width: 12px; height: 13px; margin-top: .38rem; flex: 0 0 auto; }
.feature__list .star8 path { stroke: var(--gold-ink); }

.shot { position: relative; width: min(300px, 74vw); margin-inline: auto; border-radius: 40px; overflow: hidden;
  box-shadow: var(--shadow); border: 1px solid var(--line-soft);
  transition: transform .9s var(--ease-out); will-change: transform; }
.shot img { width: 100%; display: block; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: 40px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); pointer-events: none; }
.feature__media { perspective: 1400px; }
.feature__media:hover .shot { transform: rotateY(-6deg) rotateX(3deg) translateY(-6px); }
@media (max-width: 860px) { .feature__media:hover .shot { transform: none; } }
.shot__halo { position: absolute; inset: -12% ; z-index: -1; background: radial-gradient(circle, rgba(201,174,124,.18), transparent 62%); filter: blur(20px); }

/* ============================================================================
   QIBLA SPOTLIGHT (ink)
   ========================================================================== */
.qibla { overflow: hidden; }
.qibla__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(2.5rem,6vw,6rem); }
@media (max-width: 860px) { .qibla__inner { grid-template-columns: 1fr; text-align: center; } }
.qibla__copy h2 { font-size: clamp(2rem,4.6vw,3.2rem); font-weight: 300; margin: 1rem 0; }
.qibla__copy p { color: var(--text-2); font-size: 1.1rem; max-width: 40ch; }
@media (max-width: 860px) { .qibla__copy p { margin-inline: auto; } }
.qibla__stat { display: flex; gap: 2.5rem; margin-top: 2rem; }
@media (max-width: 860px) { .qibla__stat { justify-content: center; } }
.qibla__stat b { font-family: var(--font-serif); font-weight: 300; font-size: 2rem; display: block; color: var(--text); }
.qibla__stat span { font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.compass { width: min(400px, 82vw); aspect-ratio: 1; margin-inline: auto; }
.compass__ring { animation: spin 90s linear infinite; transform-origin: 200px 200px; }
.compass__needle { transform-origin: 200px 200px; transform: rotate(0deg); transition: transform 2.6s var(--ease-out); }
.is-visible .compass__needle { transform: rotate(119deg); }
.compass__kaaba { transform-origin: 200px 200px; }

/* ============================================================================
   PRIVACY
   ========================================================================== */
.privacy { text-align: center; }
.privacy h2 { font-size: clamp(2rem,5vw,3.4rem); font-weight: 300; max-width: 20ch; margin: 0 auto 1.4rem; }
.privacy h2 em { font-style: italic; color: var(--gold-ink); }
.privacy__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 2.6rem; }
.privacy__chip { border: 1px solid var(--line); border-radius: var(--r-pill); padding: .7rem 1.4rem; font-size: .92rem; font-weight: 500; color: var(--text); background: var(--surface); }
.privacy__chip b { color: var(--gold-ink); font-weight: 600; }
.privacy p { margin: 2.4rem auto 0; max-width: 44ch; color: var(--text-2); }

/* ============================================================================
   THE NAME / AYAH (ink)
   ========================================================================== */
.name { text-align: center; overflow: hidden; }
.name__mark { width: 78px; height: 78px; margin: 0 auto 2.4rem; }
.name__mark .lamp { filter: drop-shadow(0 0 8px rgba(228,207,158,.85)); animation: lampPulse 5s ease-in-out infinite; }
.name__ayah { font-family: var(--font-ar); font-size: clamp(1.6rem,4.6vw,2.6rem); color: var(--gold); line-height: 2.1; direction: rtl; }
.name__trans { font-family: var(--font-serif); font-style: italic; font-size: clamp(1.2rem,2.6vw,1.7rem); color: var(--text-light); margin-top: 1.2rem; max-width: 30ch; margin-inline: auto; }
.name__cite { margin-top: 1rem; }
.name__body { margin: 2.4rem auto 0; max-width: 52ch; color: var(--text-2); font-size: 1.06rem; }
.name__body em { font-style: italic; color: var(--gold); }

/* ============================================================================
   FINAL CTA (ink)
   ========================================================================== */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta__glow { position: absolute; left: 50%; top: 30%; transform: translate(-50%,-50%); width: min(760px,120vw); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(201,174,124,.14), transparent 62%); filter: blur(10px); pointer-events: none; animation: breathe 9s ease-in-out infinite; }
.cta__inner { position: relative; z-index: 2; }
.cta h2 { font-size: clamp(2.2rem,6vw,4rem); font-weight: 300; }
.cta h2 em { font-style: italic; color: var(--gold); }
.cta p { color: var(--text-2); margin: 1.4rem auto 2.4rem; max-width: 40ch; }
.cta__actions { display: flex; gap: 1.1rem; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ============================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--ink); color: var(--text-light-2); padding: clamp(48px,7vw,80px) 0 3rem; border-top: 1px solid var(--line-soft); }
.footer__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: flex-start; }
.footer__brand { display: flex; align-items: center; gap: .7rem; color: var(--text-light); }
.footer__brand .mark { width: 30px; height: 30px; } .footer__brand .mark path, .footer__brand .mark circle { stroke: var(--gold); }
.footer__brand .wordmark { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: .3em; padding-left: .3em; }
.footer__tagline { font-family: var(--font-serif); font-style: italic; color: var(--text-light-3); margin-top: .5rem; }
.footer__cols { display: flex; gap: clamp(2rem,6vw,5rem); flex-wrap: wrap; }
.footer__col h4 { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--text-light-3); font-weight: 700; margin-bottom: 1rem; font-family: var(--font-sans); }
.footer__col a { display: block; color: var(--text-light-2); font-size: .95rem; padding: .3rem 0; transition: color .3s; }
.footer__col a:hover { color: var(--gold); }
.footer__fine { margin-top: clamp(2.5rem,5vw,4rem); padding-top: 2rem; border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--text-light-3); }
.footer__fine a { color: var(--text-light-2); } .footer__fine a:hover { color: var(--gold); }

/* ============================================================================
   Legal / content pages
   ========================================================================== */
.doc { background: var(--porcelain); color: var(--text-dark); }
.doc__hero { padding: clamp(120px,16vh,180px) 0 clamp(40px,6vw,64px); background: var(--ink); color: var(--text-light); text-align: center; }
.doc__hero h1 { font-size: clamp(2.4rem,6vw,4rem); font-weight: 300; }
.doc__hero .caps { color: var(--gold); margin-bottom: 1rem; display: block; }
.doc__body { max-width: 720px; margin-inline: auto; padding: clamp(48px,8vw,88px) var(--pad) clamp(64px,10vw,120px); }
.doc__body h2 { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 400; margin: 2.6rem 0 .9rem; letter-spacing: -.01em; }
.doc__body h2:first-child { margin-top: 0; }
.doc__body h3 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin: 2rem 0 .6rem; }
.doc__body p, .doc__body li { color: var(--text-dark-2); font-size: 1.05rem; line-height: 1.75; }
.doc__body p { margin-bottom: 1rem; }
.doc__body ul { margin: 0 0 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.doc__body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.doc__body strong { color: var(--text-dark); font-weight: 600; }
.doc__lead { font-family: var(--font-serif); font-size: 1.3rem !important; line-height: 1.6; color: var(--text-dark) !important; margin-bottom: 2rem; }
.doc__updated { font-size: .82rem; letter-spacing: .1em; color: var(--text-dark-3); text-transform: uppercase; }
.faq { border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); padding: 1.2rem 0; }
.faq summary { cursor: pointer; font-family: var(--font-serif); font-size: 1.2rem; color: var(--text-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); color: var(--gold-deep); font-size: 1.5rem; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: .9rem; margin-bottom: 0; }
.backhome { display: inline-flex; align-items: center; gap: .5rem; color: var(--gold) !important; font-size: .9rem; margin-top: 1.6rem; text-decoration: none !important; }

/* ============================================================================
   Reveal animations
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

/* Hero entrance (JS toggles .ready on <body>) */
.hero__mark, .hero__wordmark, .hero__ar, .hero__tagline-sub, .hero__lead, .hero__actions, .device, .scrollcue { opacity: 0; }
body.ready .hero__mark { animation: rise .9s var(--ease-out) .1s forwards; }
body.ready .hero__wordmark { animation: rise 1s var(--ease-out) .28s forwards; }
body.ready .hero__ar { animation: rise .9s var(--ease-out) .46s forwards; }
body.ready .hero__tagline-sub { animation: rise .9s var(--ease-out) .56s forwards; }
body.ready .hero__lead { animation: rise 1s var(--ease-out) .66s forwards; }
body.ready .hero__actions { animation: rise 1s var(--ease-out) .8s forwards; }
body.ready .device { animation: deviceIn 1.4s var(--ease-out) .5s forwards; }
body.ready .scrollcue { animation: rise 1s var(--ease-out) 1.3s forwards; }

/* Star draw-in */
.star-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; pathLength: 1; }
body.ready .star-draw path { animation: draw 2s var(--ease-out) forwards; }
body.ready .star-draw path:nth-child(2) { animation-delay: .25s; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes deviceIn { from { opacity: 0; transform: perspective(1600px) rotateY(-11deg) rotateX(4deg) translateY(50px); } to { opacity: 1; } }
@media (max-width: 900px) { @keyframes deviceIn { from { opacity: 0; transform: translateY(40px);} to { opacity:1; transform:none;} } }
@keyframes lampPulse { 0%,100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes breathe { 0%,100% { opacity: .7; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.06); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 8-point star ornament (rub el hizb) ---------- */
/* Rendered as a filled glyph; the compound stroke rules above add only a
   sub-pixel hairline in the 240 viewBox, so fill is what actually shows. */
.star8 path { fill: var(--gold-ink); }
.today__loc .star8 path { fill: var(--gold-deep); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero__mark, .hero__wordmark, .hero__ar, .hero__tagline-sub, .hero__lead, .hero__actions, .device, .scrollcue { opacity: 1 !important; }
  .compass__ring { animation: none !important; }
  .device { transform: none !important; }
}
