/* Dynamic Player — site
   The page is the top of a Mac screen: the header is the menu bar, with the notch in the middle.
   The player starts as the island in the notch; while you scroll it becomes a floating window in the
   top-right corner and then full screen (site.js). Light or dark follows the device. */

:root {
  color-scheme: light dark;
  /* Light */
  --screen: #f5f5f7;
  --glow: rgb(255 255 255 / 0.95);
  --bar: rgb(246 246 248 / 0.78);
  --menu: rgb(252 252 253 / 0.97);
  --ink: #1d1d1f;
  --ink-2: #424245;   /* 9.6:1 on --screen */
  --ink-3: #6e6e73;   /* 4.7:1 on --screen */
  --line: rgb(0 0 0 / 0.1);
  --hover: rgb(0 0 0 / 0.06);
  --btn: #1d1d1f;
  --btn-ink: #ffffff;
  --btn-hover: #000000;
  --chip: rgb(0 0 0 / 0.05);
  /* Type: the system font, like the app */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --tracking-display: -0.035em;
  /* Geometry (the app's island: 452 pt wide when open, ears 7/14 pt, corners 12/30 pt) */
  --bar-h: 38px;
  --notch-w: 176px;
  --island-w: 268px;
  --open-w: 452px;
  --open-h: 228px;
  --maxw: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --screen: #0b0b0f;
    --glow: rgb(255 255 255 / 0.07);
    --bar: rgb(28 28 34 / 0.76);
    --menu: rgb(40 40 47 / 0.97);
    --ink: #f5f5f7;
    --ink-2: #b4b4bd;   /* 9.5:1 */
    --ink-3: #8e8e98;   /* 6:1 */
    --line: rgb(255 255 255 / 0.09);
    --hover: rgb(255 255 255 / 0.1);
    --btn: #f5f5f7;
    --btn-ink: #0b0b0f;
    --btn-hover: #ffffff;
    --chip: rgb(255 255 255 / 0.07);
  }
}
@media (max-width: 760px) {
  :root { --notch-w: 128px; --island-w: 196px; --open-w: min(452px, calc(100vw - 36px)); }
}

/* Scripts with their own fonts */
:lang(zh-Hans) { --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif; --font-display: var(--font); --tracking-display: 0; }
:lang(ja) { --font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif; --font-display: var(--font); --tracking-display: 0; }
:lang(hi), :lang(mr) { --font: -apple-system, BlinkMacSystemFont, "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", sans-serif; --font-display: var(--font); --tracking-display: 0; }
:lang(bn) { --font: -apple-system, BlinkMacSystemFont, "Kohinoor Bangla", "Noto Sans Bengali", "Nirmala UI", sans-serif; --font-display: var(--font); --tracking-display: 0; }
:lang(ar) { --font: -apple-system, BlinkMacSystemFont, "SF Arabic", "Geeza Pro", "Noto Sans Arabic", "Segoe UI", sans-serif; --font-display: var(--font); --tracking-display: 0; }
:lang(ur) { --font: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", -apple-system, "Geeza Pro", sans-serif; --font-display: var(--font); --tracking-display: 0; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font: 17px/1.47 var(--font);
  color: var(--ink);
  background: radial-gradient(1100px 520px at 50% -160px, var(--glow), transparent 70%) no-repeat, var(--screen);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body:lang(ur) { line-height: 2; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
strong { font-weight: 600; color: var(--ink); }
.nowrap { white-space: nowrap; }
.skip {
  position: absolute; inset-inline-start: 12px; top: -80px; z-index: 100;
  padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--screen);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 8px; }

/* ---------- The menu bar, with the notch ---------- */
.menubar {
  position: sticky; top: 0; z-index: 50;
  height: var(--bar-h);
  background: var(--bar);
  -webkit-backdrop-filter: saturate(1.8) blur(22px);
  backdrop-filter: saturate(1.8) blur(22px);
  box-shadow: inset 0 -1px 0 var(--line);
}
.menubar-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-inline: 12px;
  font-size: 13px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; padding: 3px 7px; border-radius: 6px; font-weight: 700; letter-spacing: -0.01em; text-decoration: none; }
.brand img { display: block; width: 20px; height: 20px; }
.bar-end { display: flex; align-items: center; gap: 2px; }
.bar-link { padding: 3px 8px; border-radius: 6px; text-decoration: none; }
.brand:hover, .bar-link:hover { background: var(--hover); }
/* The camera housing: it stays when the island leaves */
.notch {
  position: absolute; top: 0; left: 50%; z-index: 1;
  width: var(--notch-w); height: var(--bar-h);
  transform: translateX(-50%);
  background: #000; border-radius: 0 0 11px 11px;
}
.notch::before, .notch::after { content: ""; position: absolute; top: 0; width: 7px; height: 7px; }
.notch::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent 6.5px, #000 7px); }
.notch::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent 6.5px, #000 7px); }
.notch .lens, .player-lens {
  position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #262a3a, #08080c 65%);
  box-shadow: 0 0 0 1.5px #0e0e13;
}

.lang { position: relative; }
.lang summary { display: flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; list-style: none; cursor: pointer; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { background: var(--hover); }
.lang .i-globe { width: 16px; height: 16px; }
.lang-list {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); z-index: 5;
  min-width: 220px; max-height: min(70vh, 560px); overflow: auto;
  margin: 0; padding: 5px; list-style: none;
  background: var(--menu); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 18px 44px rgb(0 0 0 / 0.3);
}
.lang-list a { display: flex; justify-content: space-between; gap: 16px; padding: 5px 10px; border-radius: 6px; font-size: 14px; text-decoration: none; }
.lang-list a:hover, .lang-list a:focus-visible { background: var(--hover); outline: none; }
.lang-list a[aria-current="true"]::after { content: "✓"; color: var(--ink-2); }
@media (max-width: 900px) {
  .lang-current { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 600px) {
  .brand-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .bar-link { display: none; }
}

/* ---------- The player (always dark, like the app) ---------- */
.player {
  --ear: 7px; --ears: 1; --rt: 0px; --rb: 12px; --lens: 1; --grab: 0; --panel: 0; --wings: 1; --lift: 0;
  position: fixed; left: 0; top: 0; z-index: 55;
  width: var(--island-w); height: var(--bar-h);
  transform: translate3d(calc(50vw - var(--island-w) / 2), 0, 0);
  transform-origin: 0 0;
  color: #fff;
}
.player::before, .player::after {
  content: ""; position: absolute; top: 0;
  width: var(--ear); height: var(--ear);
  opacity: var(--ears); pointer-events: none;
}
.player::before { right: 100%; background: radial-gradient(circle at 0 100%, transparent calc(var(--ear) - 0.5px), #000 var(--ear)); }
.player::after { left: 100%; background: radial-gradient(circle at 100% 100%, transparent calc(var(--ear) - 0.5px), #000 var(--ear)); }
.player-body {
  position: absolute; inset: 0; overflow: hidden;
  background: #000;
  border-radius: var(--rt) var(--rt) var(--rb) var(--rb);
  box-shadow: 0 calc(26px * var(--lift)) calc(64px * var(--lift)) rgb(0 0 0 / calc(0.5 * var(--lift))), 0 0 0 calc(1px * var(--lift)) rgb(255 255 255 / 0.06);
}
.player-lens { top: calc(var(--bar-h) / 2); opacity: var(--lens); }
.player-toggle {
  position: absolute; top: 0; left: 0; right: 0; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between;
  margin: 0; padding: 0 14px; border: 0; border-radius: inherit;
  background: none; color: inherit; font: inherit; cursor: pointer;
  opacity: var(--wings);
}
.player[data-floating="true"] .player-toggle { height: 100%; }
.player[data-open="true"] .player-toggle { pointer-events: none; }
.player-toggle:focus-visible { outline-color: #fff; outline-offset: -3px; }
.wing { display: flex; align-items: center; }
.wing .cover { width: 20px; height: 20px; border-radius: 5px; }
.mini-wave { display: block; width: 30px; height: 18px; }

.player-panel {
  position: absolute; top: 0; left: 50%;
  width: var(--open-w); height: var(--open-h); margin-left: calc(var(--open-w) / -2);
  opacity: var(--panel);
}
.player[data-open="false"] .player-panel { visibility: hidden; }
.band { display: flex; align-items: center; justify-content: space-between; height: var(--bar-h); padding: 0 9px; }
.corner {
  display: grid; place-items: center; width: 28px; height: 28px;
  padding: 0; border: 0; border-radius: 50%;
  background: rgb(255 255 255 / 0.1); color: #fff; cursor: pointer;
  transition: background-color .15s ease;
}
.corner:hover { background: rgb(255 255 255 / 0.2); }
.corner:focus-visible { outline-color: #fff; }
.corner svg { width: 16px; height: 16px; }
.corner-detach .i-back, .player[data-floating="true"] .corner-detach .i-detach { display: none; }
.player[data-floating="true"] .corner-detach .i-back { display: block; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: rgb(255 255 255 / 0.32); opacity: var(--grab); }
.np { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 14px; align-items: center; margin: 6px 18px 0; }
.np-art { width: 58px; height: 58px; border-radius: 12px; box-shadow: 0 6px 18px rgb(0 0 0 / 0.5); }
.np-text { min-width: 0; }
.np-title, .np-sub { margin: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.np-title { font-size: 15px; font-weight: 600; line-height: 1.3; color: #fff; }
.np-sub { margin-top: 2px; font-size: 13px; line-height: 1.3; color: rgb(255 255 255 / 0.62); }
.np-badge { align-self: start; color: #fff; }
.np-badge svg, .fs-badge svg { display: block; width: 20px; height: 20px; }
.np-wave { display: block; width: 100%; height: 46px; margin-top: 2px; }
.np-progress {
  display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 3.2em; gap: 10px; align-items: center;
  margin: 0 18px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 12px; font-weight: 500; color: rgb(255 255 255 / 0.62); font-variant-numeric: tabular-nums;
}
.np-time:last-child { text-align: right; }
.np-bar { --p: 0.215; position: relative; display: flex; align-items: center; height: 18px; cursor: pointer; touch-action: none; border-radius: 4px; }
.np-track { position: relative; width: 100%; height: 4px; overflow: hidden; border-radius: 2px; background: rgb(255 255 255 / 0.2); transition: height .15s ease, border-radius .15s ease; }
.np-fill { position: absolute; inset: 0; background: #fff; transform: scaleX(var(--p)); transform-origin: 0 50%; }
.np-bar:hover .np-track, .np-bar.is-dragging .np-track { height: 7px; border-radius: 3.5px; }
.np-bar:focus-visible { outline-color: #fff; outline-offset: 1px; }
/* 1.2: the bar squashes softly when a flick hits the start or the end */
.np-bar.impact .np-track { animation: squash .55s cubic-bezier(.2, .9, .3, 1.25); }
.np-bar[data-impact="start"] .np-track { transform-origin: 0 50%; }
.np-bar[data-impact="end"] .np-track { transform-origin: 100% 50%; }
@keyframes squash { 0% { transform: scale(1, 1); } 16% { transform: scale(0.965, 0.5); } 100% { transform: scale(1, 1); } }
.np-controls { display: flex; align-items: center; justify-content: center; gap: 36px; margin-top: 2px; }
.ctl {
  display: grid; place-items: center; width: 48px; height: 44px;
  padding: 0; border: 0; border-radius: 12px;
  background: none; color: #fff; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.ctl:hover { background: rgb(255 255 255 / 0.1); }
.ctl:active { transform: scale(0.92); }
.ctl:focus-visible { outline-color: #fff; }
.ctl svg { width: 30px; height: 20px; fill: currentColor; }
.ctl-play svg { width: 22px; height: 26px; }
.ctl-play[data-state="paused"] .i-pause, .ctl-play:not([data-state="paused"]) .i-play { display: none; }

/* Demo covers (CSS only, in the spirit of the app's demo artwork) */
.cover { display: block; flex: none; }
.cover-1 { background: radial-gradient(circle at 50% 50%, rgb(255 255 255 / 0.28) 0 30%, transparent 30.5%), linear-gradient(150deg, #5b9df5, #4a62cf 48%, #3a1f6f); }
.cover-2 { background: radial-gradient(circle at 50% 58%, #fff6d9 0 12%, transparent 12.5%), linear-gradient(180deg, #4fd1c5 0 30%, #2f80d6 58%, #22306f 58.5%, #141c46); }
.cover-3 { background: linear-gradient(115deg, transparent 0 40%, rgb(255 255 255 / 0.45) 40.5% 45%, transparent 45.5%), repeating-linear-gradient(180deg, #f2a65a 0 12%, #df6a5e 12% 24%), #df6a5e; }

/* ---------- Full screen ---------- */
.fs {
  --cover: min(32vh, 300px, 60vw);
  --top: 13vh;
  --wave-h: min(46vh, 440px);
  position: fixed; inset: 0; z-index: 70;
  visibility: hidden; pointer-events: none;
  color: #fff; overflow: hidden;
}
.fs[data-on="true"] { visibility: visible; }
.fs:not([inert]) { pointer-events: auto; }
.fs-bg {
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 28%, var(--fs-a, #2b3f8a), var(--fs-b, #18214f) 46%, var(--fs-c, #0e1130) 80%);
  transition: background .8s ease;
}
.fs-inner { position: absolute; inset: 0; transform: scale(var(--fs-scale, 1)); }
.fs-exit { position: absolute; top: 18px; left: 18px; width: 34px; height: 34px; }
.fs-exit svg { width: 18px; height: 18px; }
.fs-badge { position: absolute; top: 22px; right: 22px; }
.fs-wave { position: absolute; left: 0; width: 100%; top: calc(var(--top) + var(--cover) / 2 - var(--wave-h) / 2); height: var(--wave-h); }
.fs-center { position: absolute; top: var(--top); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; padding-inline: 20px; text-align: center; }
.fs-art { position: relative; width: var(--cover); height: var(--cover); border-radius: 7%; box-shadow: 0 30px 80px rgb(0 0 0 / 0.5); }
.fs-title { margin: 4.2vh 0 0; font: 700 clamp(24px, 3.2vw, 38px)/1.15 var(--font-display); letter-spacing: -0.02em; }
.fs-sub { margin: 6px 0 0; font-size: clamp(16px, 1.7vw, 21px); color: rgb(255 255 255 / 0.68); }
.fs-progress { width: min(780px, 100%); margin: 3vh 0 0; font-size: 13px; }
.fs-controls { gap: clamp(28px, 6vw, 64px); margin-top: 1.4vh; }
.fs-controls .ctl { width: 64px; height: 56px; }
.fs-controls .ctl svg { width: 40px; height: 26px; }
.fs-controls .ctl-play svg { width: 28px; height: 34px; }
.fs-caption { position: absolute; left: 0; right: 0; bottom: max(26px, 4.5vh); display: flex; flex-direction: column; align-items: center; gap: 10px; padding-inline: 20px; text-align: center; }
.fs-kicker { margin: 0; font-size: 14px; color: rgb(255 255 255 / 0.66); }
.fs-label {
  display: inline-flex; align-items: center; gap: .55em; margin: 0;
  padding: 8px 18px; border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 16px; font-weight: 600;
}
.fs-dots { display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }
.fs-dots li { width: 7px; height: 7px; border-radius: 50%; background: rgb(255 255 255 / 0.28); transition: background-color .3s, transform .3s; }
.fs-dots li.on { background: #fff; transform: scale(1.25); }

/* ---------- Page ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.hero { padding-bottom: 96px; text-align: center; }
.stage { display: flex; align-items: flex-end; justify-content: center; height: calc(var(--open-h) - var(--bar-h) + 40px); padding-inline: 20px; }
.stage-hint { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-3); visibility: hidden; }
.stage-hint .i-up { width: 12px; height: 12px; }
.js .stage-hint { visibility: visible; }
.hint-closed { display: inline-flex; align-items: center; gap: 8px; }
.hint-open { display: none; }
[data-island="open"] .hint-open { display: inline; }
[data-island="open"] .hint-closed { display: none; }
.hint-touch { display: none; }
@media (hover: none), (pointer: coarse) {
  .hint-touch { display: inline; }
  .hint-pointer { display: none; }
}
.hero h1 {
  max-width: 18ch; margin: 34px auto 0;
  font: 700 clamp(42px, 7vw, 84px)/1.03 var(--font-display);
  letter-spacing: var(--tracking-display);
  text-wrap: balance;
}
.lead { max-width: 34em; margin: 22px auto 0; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--btn); color: var(--btn-ink);
  font-size: 17px; font-weight: 600; text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { background: var(--btn-hover); }
.btn:active { transform: scale(0.98); }
.btn:focus-visible { outline-offset: 4px; }
.meta { margin: 0; font-size: 14px; color: var(--ink-3); }
.meta + .meta { margin-top: -6px; }
.meta a { color: var(--ink-2); }
.meta a:hover { color: var(--ink); }

.section { padding-block: 96px; border-top: 1px solid var(--line); }
.section h2 {
  margin: 0;
  font: 700 clamp(32px, 4.6vw, 52px)/1.08 var(--font-display);
  letter-spacing: calc(var(--tracking-display) * 0.7);
  text-wrap: balance;
}
.section-intro { max-width: 36em; margin: 16px 0 0; font-size: 19px; color: var(--ink-2); text-wrap: pretty; }

/* The three ways: tall steps, so the player has time to change while you read */
.story { padding-bottom: 0; }
.story-step { display: flex; flex-direction: column; justify-content: center; min-height: 78vh; max-width: 540px; }
.story-step h3 { margin: 0 0 14px; font: 700 clamp(28px, 3.6vw, 44px)/1.1 var(--font-display); letter-spacing: calc(var(--tracking-display) * 0.6); }
.story-step p { margin: 0; font-size: clamp(17px, 1.7vw, 21px); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }

/* The effects: a long stretch where the full screen goes through them while you scroll */
.show { display: flex; flex-direction: column; justify-content: flex-end; border-top: 1px solid var(--line); }
.js .show { height: 620vh; }
.show-text { padding-block: 96px; }
.names { display: grid; gap: 14px; margin: 28px 0 0; }
.names dt { font-size: 14px; font-weight: 600; color: var(--ink-3); }
.names dd { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.names dd span { padding: 6px 14px; border-radius: 999px; background: var(--chip); font-size: 15px; }

.details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 64px; max-width: 820px; margin-top: 56px; }
.detail svg { display: block; width: 28px; height: 28px; }
.detail h3 { margin: 14px 0 6px; font-size: 19px; font-weight: 600; line-height: 1.3; }
.detail p { margin: 0; color: var(--ink-2); }

.privacy { text-align: center; }
.privacy h2 { max-width: 16ch; margin-inline: auto; }
.privacy p { max-width: 36em; margin: 18px auto 0; color: var(--ink-2); text-wrap: pretty; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 48px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; color: var(--ink-2); }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px;
  border: 1px solid var(--line); border-radius: 50%;
  font-size: 15px; font-weight: 600; color: var(--ink);
}
.note { max-width: 44em; margin: 40px 0 0; font-size: 15px; color: var(--ink-3); }

/* Privacy and support */
.doc { padding-block: 120px 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { margin: 0; font: 700 clamp(38px, 5.4vw, 60px)/1.06 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.doc-intro { margin: 18px 0 0; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.doc-updated { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }
.doc section { margin-top: 52px; }
.doc h2 { margin: 0 0 12px; font: 600 clamp(21px, 2.2vw, 25px)/1.25 var(--font-display); letter-spacing: calc(var(--tracking-display) * 0.4); }
.doc p, .doc li { color: var(--ink-2); text-wrap: pretty; }
.doc p { margin: 0 0 12px; }
.doc ul { margin: 0; padding-inline-start: 1.2em; }
.doc li + li { margin-top: 10px; }
.doc a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }
.doc .cta { align-items: flex-start; }
.nf { padding-block: 24vh 20vh; text-align: center; }
.nf h1 { margin: 0; font: 700 clamp(38px, 5.4vw, 60px)/1.06 var(--font-display); letter-spacing: var(--tracking-display); text-wrap: balance; }
.nf p { margin: 16px auto 0; max-width: 32em; font-size: 19px; color: var(--ink-2); }
.nf .btn { margin-top: 32px; }

.final { text-align: center; }
.final .cta { margin-top: 30px; }

.footer { padding-block: 36px 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px 40px; }
.footer ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }
.footer p { margin: 0; }
.legal { display: grid; gap: 4px; }

@media (max-width: 760px) {
  .section { padding-block: 72px; }
  .story-step { min-height: 70vh; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .details { grid-template-columns: 1fr; gap: 36px; }
}

/* Scripts that need more room between lines (Nastaliq, the Urdu script, is the tallest) */
:lang(hi) :is(h1, h2, h3), :lang(mr) :is(h1, h2, h3), :lang(bn) :is(h1, h2, h3), :lang(ar) :is(h1, h2, h3) { line-height: 1.3; }
:lang(ur) :is(h1, h2, h3) { line-height: 1.95; }
:lang(ur) :is(p, li, dd) { line-height: 2.1; }
:lang(ur) .hero h1 { font-size: clamp(32px, 5.4vw, 64px); }
:lang(ur) .section h2, :lang(ur) .doc h1, :lang(ur) .nf h1 { font-size: clamp(28px, 4vw, 46px); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .lead, .hero .cta { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
  .hero .lead { animation-delay: .08s; }
  .hero .cta { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; translate: 0 22px; } }
  @supports (animation-timeline: view()) {
    .hero .wrap { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 10% exit 90%; }
    @keyframes hero-out { to { opacity: 0.2; translate: 0 -70px; scale: 0.97; } }
    .reveal { animation: reveal cubic-bezier(.2, .7, .2, 1) both; animation-timeline: view(); animation-range: entry 0% cover 32%; }
    @keyframes reveal { from { opacity: 0; translate: 0 48px; scale: 0.98; } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
