/* Lawh Academy v2 (Oct 2026). Arabic-first, light + dark, no framework.
   Motion: CSS scroll-driven where supported; content is always visible without it. */

:root {
  --paper: #F7F2E8; --paper-2: #EEE5D3; --card: #FFFDF8; --card-2: #FBF7EF;
  --ink: #12201D; --ink-2: #33433F; --muted: #5F6E69;
  --line: rgba(18, 32, 29, .10); --line-2: rgba(18, 32, 29, .18);
  --teal: #0E4A43; --teal-2: #136257; --teal-ink: #0F5A50; --mint: #D3ECE2; --mint-2: #E8F4EE;
  --gold: #F2B33D; --gold-ink: #7A5A1E; --gold-soft: #FCEBC4;
  --wa: #11864A; --wa-2: #0C6E3B;
  --wood-1: #E2BC86; --wood-2: #C99359; --wood-3: #9F6B39; --slate: #F6E8CB; --slate-ink: #2B1D0E;
  --on-dark: #F3F7F4; --on-dark-2: rgba(243, 247, 244, .74);
  --shadow-1: 0 1px 2px rgba(18, 32, 29, .05), 0 10px 30px -16px rgba(18, 32, 29, .22);
  --shadow-2: 0 2px 6px rgba(18, 32, 29, .06), 0 40px 80px -40px rgba(14, 74, 67, .45);
  --glass: color-mix(in oklab, var(--card) 72%, transparent);
  --r-s: 12px; --r-m: 20px; --r-l: 28px; --r-xl: 40px;
  --f-display: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Alexandria", system-ui, sans-serif;
  --f-quran: "Amiri", "Noto Naskh Arabic", "Geeza Pro", serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 64px;
  color-scheme: light dark;
  interpolate-size: allow-keywords;
}
html[lang="en"] {
  --f-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1412; --paper-2: #0E1C19; --card: #11211E; --card-2: #142824;
    --ink: #E9F1EC; --ink-2: #C3D1CB; --muted: #8DA29A;
    --line: rgba(233, 241, 236, .09); --line-2: rgba(233, 241, 236, .17);
    --teal: #0B3832; --teal-2: #7FD1BE; --teal-ink: #8ED8C6; --mint: #163A33; --mint-2: #12302A;
    --gold-ink: #F4C766; --gold-soft: #3A2E14;
    --wood-1: #B98F5C; --wood-2: #9C703F; --wood-3: #6E4A24; --slate: #E9D8B5;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px -16px rgba(0, 0, 0, .6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, .3), 0 40px 80px -40px rgba(0, 0, 0, .8);
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.75 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
html[lang="en"] body { line-height: 1.6; }
html.i18n-wait body { opacity: 0; }
body::before { /* film grain */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
html[lang="en"] h1, html[lang="en"] h2 { font-weight: 400; letter-spacing: -.02em; }
html[lang="en"] h3 { font-family: var(--f-body); font-weight: 650; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
bdi { unicode-bidi: isolate; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--gold); color: #1d1405; }
.skip { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(900px, 100% - 40px); }
@media (max-width: 480px) { .wrap, .narrow { width: calc(100% - 32px); } }

.i { width: 1.15em; height: 1.15em; flex: none; }
.i-lg { width: 32px; height: 32px; }
[dir="rtl"] .arr { transform: scaleX(-1); }

/* ---------- type ---------- */
.display { font-size: clamp(2.35rem, 1.2rem + 3.9vw, 4.35rem); line-height: 1.2; }
html[lang="en"] .display { font-size: clamp(2.8rem, 1.4rem + 4.8vw, 5.4rem); line-height: 1.0; }
.display-2 { font-size: clamp(1.95rem, 1.2rem + 2.6vw, 3.25rem); line-height: 1.22; }
html[lang="en"] .display-2 { font-size: clamp(2.3rem, 1.3rem + 3.2vw, 3.9rem); line-height: 1.04; }
.lede { font-size: clamp(1.06rem, 1rem + .35vw, 1.22rem); color: var(--ink-2); max-width: 36em; }
.sub { color: var(--muted); max-width: 40em; font-size: 1.08rem; }
.muted { color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); }
.center { text-align: center; margin-inline: auto; }
.link { color: var(--teal-ink); font-weight: 600; text-underline-offset: 4px; }

.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .9rem; color: var(--teal-ink); margin-bottom: 14px; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--gold); }
.eyebrow-light { color: var(--gold); }
.kicker { padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); color: var(--ink-2); font-size: .88rem; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 4px color-mix(in oklab, var(--wa) 22%, transparent); }

/* ---------- buttons ---------- */
.btn {
  --bg: var(--card); --fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--bg); color: var(--fg); text-decoration: none; font: 600 1rem/1.2 var(--f-body);
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.06rem; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .92rem; }
.btn-wa { --bg: linear-gradient(180deg, #17a35b, var(--wa)); --fg: #fff; background: var(--bg); box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 12px 28px -12px rgba(17, 134, 74, .7); }
.btn-wa:hover { box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 36px -14px rgba(17, 134, 74, .85); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { background: var(--card); }
.btn-light { --bg: #fff; --fg: #0E4A43; box-shadow: 0 16px 34px -16px rgba(0,0,0,.5); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.wa-number { margin-top: 10px; font-size: .9rem; color: var(--muted); }
.wa-number bdi { font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.wa-number.on-dark, .wa-number.on-dark bdi { color: var(--on-dark-2); }
.wa-number.on-dark bdi { color: var(--on-dark); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.pill-gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill-gold-o { align-self: flex-start; border: 1px solid color-mix(in oklab, var(--gold) 70%, transparent); color: var(--gold); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow-1); }
.glass { background: var(--glass); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid color-mix(in oklab, #fff 55%, transparent); box-shadow: var(--shadow-2); }
@media (prefers-color-scheme: dark) { .glass { border-color: var(--line-2); } }

/* ---------- nav ---------- */
.nav { position: fixed; z-index: 50; inset-inline: 0; top: 12px; padding-inline: 12px; pointer-events: none; }
.nav-in {
  pointer-events: auto; position: relative; margin-inline: auto; width: min(1200px, 100%); height: var(--nav-h);
  display: flex; align-items: center; gap: 18px; padding-inline: 14px 10px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid var(--line); box-shadow: 0 10px 30px -20px rgba(18, 32, 29, .35);
  transition: background-color .3s, box-shadow .3s;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.08rem/1 var(--f-display); white-space: nowrap; }
html[lang="en"] .brand { font-family: var(--f-body); font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.links { display: flex; gap: 2px; margin-inline-start: auto; }
.links a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-size: .94rem; color: var(--ink-2); transition: background-color .2s, color .2s; }
.links a:hover { background: color-mix(in oklab, var(--teal) 9%, transparent); color: var(--ink); }
.nav-act { display: flex; align-items: center; gap: 8px; }
.links + .nav-act { margin-inline-start: 8px; }
.lang { min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink); font: 600 .92rem var(--f-body); cursor: pointer; }
html[lang="ar"] .lang { font-family: "Figtree", system-ui, sans-serif; }
html[lang="en"] .lang { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; }
.lang:hover { background: var(--card); }
.progress { position: absolute; inset-inline: 30px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; opacity: .9; pointer-events: none; }
[dir="ltr"] .progress { transform-origin: 0 50%; }
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  @keyframes grow { to { transform: scaleX(1); } }
}
@media (max-width: 1060px) { .links { display: none; } .nav-act { margin-inline-start: auto; } }
@media (max-width: 520px) {
  .nav { top: 8px; padding-inline: 8px; }
  .nav-in { height: 56px; padding-inline: 10px 6px; gap: 8px; }
  .brand span { font-size: .98rem; }
  .nav .btn-wa span { display: none; }
  .nav .btn-wa { width: 40px; padding: 0; }
}

/* ---------- aurora + patterns ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; inset-inline-end: -10vw; top: -16vw; background: radial-gradient(circle, #9FD8C5, transparent 66%); }
.aurora i:nth-child(2) { width: 38vw; height: 38vw; inset-inline-start: -8vw; top: 6vw; background: radial-gradient(circle, #F7D58C, transparent 64%); opacity: .45; }
.aurora i:nth-child(3) { width: 30vw; height: 30vw; inset-inline-start: 30vw; bottom: -14vw; background: radial-gradient(circle, #BFE1F0, transparent 66%); opacity: .35; }
@media (prefers-color-scheme: dark) {
  .aurora i:nth-child(1) { background: radial-gradient(circle, #1E6B5D, transparent 66%); }
  .aurora i:nth-child(2) { background: radial-gradient(circle, #6B5220, transparent 64%); }
  .aurora i:nth-child(3) { background: radial-gradient(circle, #1B4A63, transparent 66%); }
}
.aurora-dark i:nth-child(1) { background: radial-gradient(circle, #1F7A69, transparent 66%); opacity: .7; }
.aurora-dark i:nth-child(2) { background: radial-gradient(circle, #8A6A22, transparent 64%); opacity: .45; }
.aurora-dark i:nth-child(3) { background: radial-gradient(circle, #1B4F66, transparent 66%); opacity: .5; }
.girih {
  position: absolute; inset: 0; pointer-events: none; opacity: .08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%23F2B33D' stroke-width='1.2'%3E%3Cpath d='M44 8l10 26 26 10-26 10-10 26-10-26L8 44l26-10z'/%3E%3Crect x='26' y='26' width='36' height='36' transform='rotate(45 44 44)'/%3E%3Crect x='26' y='26' width='36' height='36'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 20%, #000 10%, transparent 70%);
}

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 72px) 0 clamp(64px, 8vw, 110px); min-height: min(940px, 100svh); display: grid; align-items: center; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-block: 6px 22px; }
.hero h1 > span { display: block; }
.h1-accent { position: relative; display: inline-block !important; color: var(--teal-ink); }
html[lang="en"] .h1-accent { font-style: italic; }
.swash { position: absolute; inset-inline: 0; bottom: -.08em; width: 100%; height: .28em; overflow: visible; }
.swash path { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 330; stroke-dashoffset: 0; }
.hero .lede { margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; backdrop-filter: blur(8px); }
.chip-gold { background: var(--gold-soft); color: var(--gold-ink); border-color: transparent; }
.trust { display: grid; gap: 8px; margin-top: 22px; color: var(--ink-2); font-size: .98rem; }
.trust li { display: flex; align-items: center; gap: 10px; }
.trust .i { color: var(--wa); width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: color-mix(in oklab, var(--wa) 14%, transparent); }

/* the digital lawh */
.hero-art { position: relative; margin: 0; justify-self: center; width: min(460px, 100%); padding-block: 24px 64px; }
.lawh {
  --rx: 0deg; --ry: 0deg;
  position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 14px;
  aspect-ratio: 4 / 4.7; padding: 64px 22px 20px;
  border-radius: 48% 48% 30px 30px / 19% 19% 30px 30px;
  background:
    repeating-linear-gradient(97deg, rgba(255,255,255,.06) 0 2px, transparent 2px 11px),
    repeating-linear-gradient(83deg, rgba(90,50,10,.07) 0 1px, transparent 1px 17px),
    linear-gradient(160deg, var(--wood-1), var(--wood-2) 55%, var(--wood-3));
  box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -18px 40px rgba(70,35,5,.28), var(--shadow-2);
  transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease);
  transform-style: preserve-3d;
}
.lawh::before { /* hanging hole */
  content: ""; position: absolute; top: 18px; left: 50%; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%;
  background: var(--paper); box-shadow: inset 0 3px 6px rgba(60,30,5,.45), 0 1px 0 rgba(255,255,255,.4);
}
.lawh-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .84rem; }
.lawh-top > span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 251, 240, .78); color: #2B1D0E; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 7px; }
.ping { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #18a35b; }
.ping::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #18a35b; animation: ping 1.6s var(--ease) 3; }
@keyframes ping { to { transform: scale(3); opacity: 0; } }
.slate {
  position: relative; border-radius: 22px; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 40%), var(--slate);
  box-shadow: inset 0 2px 10px rgba(70,35,5,.25);
}
.rules { position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 46px, rgba(110, 70, 25, .16) 46px 47px); pointer-events: none; }
.slate-tag { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 1; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.7); color: #5a3d17; }
.letters { position: relative; z-index: 1; display: flex; gap: clamp(14px, 3vw, 28px); font: 700 clamp(4rem, 9vw, 6.6rem)/1.3 var(--f-quran); color: var(--slate-ink); }
.letters b { font-weight: 700; }
.letters b:nth-child(2) { color: #8A5A10; }
.lawh-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.who, .ctl { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 251, 240, .72); color: #2B1D0E; font-size: .82rem; font-weight: 600; }
.ctl { padding: 8px; margin-inline-start: auto; }
.ctl + .ctl { margin-inline-start: 0; }
.ticket { position: absolute; bottom: 0; inset-inline-end: -34px; width: min(270px, 70%); padding: 16px 18px; border-radius: 22px; }
.ticket-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-family: var(--f-display); }
html[lang="en"] .ticket-h { font-family: var(--f-body); }
.ticket dl { margin: 0; display: grid; gap: 6px; font-size: .86rem; }
.ticket dl div { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line-2); }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; text-align: end; }
.sup-chip { position: absolute; top: 72px; inset-inline-start: -46px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
[dir="rtl"] .sup-chip { padding: 8px 8px 8px 16px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--teal); color: var(--gold); }
@media (max-width: 900px) {
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { width: min(400px, 100%); padding-bottom: 0; }
  .ticket { position: relative; inset: auto; width: 100%; margin-top: 14px; margin-inline: auto; max-width: 340px; display: block; }
  .sup-chip { top: 70px; inset-inline-start: -8px; }
}
@media (max-width: 480px) { .hero-actions .btn { width: 100%; } .sup-chip { display: none; } }

/* ---------- marquee ---------- */
.marquee-wrap { position: relative; margin-block: 8px; padding-block: 18px; background: var(--teal); color: var(--on-dark); transform: rotate(-1.2deg); box-shadow: var(--shadow-2); }
[dir="ltr"] .marquee-wrap { transform: rotate(1.2deg); }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; flex: none; gap: 0; animation: mq 38s linear infinite; }
[dir="rtl"] .mq-track { animation-name: mq-rtl; }
.mq-track li { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font: 600 clamp(1.15rem, 1rem + .8vw, 1.6rem)/1.2 var(--f-display); white-space: nowrap; }
html[lang="en"] .mq-track li { font-style: italic; font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); }
.mq-track li::after { content: ""; width: 14px; height: 14px; background: var(--gold); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes mq { to { transform: translateX(-100%); } }
@keyframes mq-rtl { to { transform: translateX(100%); } }
.marquee.paused .mq-track, .marquee:hover .mq-track { animation-play-state: paused; }
.mq-btn { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%; width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: var(--teal); color: var(--on-dark); display: grid; place-items: center; cursor: pointer; }
.mq-btn .ic-play, .mq-btn[aria-pressed="true"] .ic-pause { display: none; }
.mq-btn[aria-pressed="true"] .ic-play { display: block; }

/* ---------- sections ---------- */
.sec { position: relative; padding-block: clamp(80px, 10vw, 136px); }
.sec-top0 { padding-top: 24px; }
.sec-tint { background: var(--paper-2); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); max-width: 760px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head .sub { margin-top: 14px; }
.sec-head.center .sub { margin-inline: auto; }

/* reveal on scroll: progressive enhancement only */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .rv { animation: rv both var(--ease); animation-timeline: view(); animation-range: entry 0% entry 70%; }
    @keyframes rv { from { opacity: 0; transform: translateY(36px) scale(.985); } }
  }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r-l);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-height: 220px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.tile h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.55rem); }
html[lang="en"] .tile h3 { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); }
.tile p { color: var(--ink-2); }
.tile .mini { font-size: .88rem; color: var(--gold-ink); font-weight: 600; }
.spot::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in oklab, var(--gold) 22%, transparent), transparent 60%); }
.spot:hover::after { opacity: 1; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.t-read { grid-column: span 7; grid-row: span 2; min-height: 460px; background: linear-gradient(160deg, #0F5148, var(--teal)); color: var(--on-dark); border-color: transparent; }
.t-read p { color: var(--on-dark-2); max-width: 30em; }
.tile-art { position: absolute; inset-block-start: 18px; inset-inline: 18px; display: flex; justify-content: space-between; font: 700 clamp(4.4rem, 9vw, 8rem)/1.2 var(--f-quran); color: var(--gold); opacity: .9; }
.tile-art span:nth-child(odd) { opacity: .35; }
.t-hifz { grid-column: span 5; }
.ring { position: absolute; top: 20px; inset-inline-end: 22px; width: 92px; height: 92px; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: var(--line-2); stroke-width: 10; }
.ring .ring-v { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 110; }
.ring span { font: 700 1.8rem var(--f-display); color: var(--gold-ink); }
.t-isl { grid-column: span 5; background: var(--gold-soft); border-color: transparent; }
.t-isl p { color: color-mix(in oklab, var(--ink) 82%, var(--gold-ink)); }
.big-num { display: flex; align-items: baseline; gap: 10px; margin-bottom: auto; }
.big-num span { font: 700 clamp(3.6rem, 3rem + 3vw, 5.4rem)/1 var(--f-display); color: var(--gold-ink); }
.big-num small { font-size: .95rem; font-weight: 600; color: var(--gold-ink); max-width: 9em; line-height: 1.3; }
.t-ar { grid-column: span 4; }
.tiles-abc { display: flex; gap: 8px; margin-bottom: auto; }
.tiles-abc i { width: 52px; height: 58px; display: grid; place-items: center; border-radius: 12px; font: 700 1.9rem/1 var(--f-quran); font-style: normal; color: var(--slate-ink); background: linear-gradient(160deg, var(--wood-1), var(--wood-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 6px 12px -6px rgba(70,35,5,.5); }
.tiles-abc i:nth-child(2) { transform: translateY(-8px) rotate(-4deg); }
.tiles-abc i:nth-child(4) { transform: translateY(-4px) rotate(3deg); }
.t-age, .t-lang { grid-column: span 4; background: var(--mint-2); border-color: transparent; }
.t-age .i-lg, .t-lang .i-lg { color: var(--teal-ink); margin-bottom: auto; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .t-read { grid-column: span 6; grid-row: auto; min-height: 380px; }
  .t-hifz, .t-isl { grid-column: span 3; }
  .t-ar, .t-age, .t-lang { grid-column: span 3; }
  .t-lang { grid-column: span 6; }
}
@media (max-width: 600px) { .bento > * { grid-column: 1 / -1 !important; } .t-read { min-height: 340px; } }

/* ---------- team island ---------- */
.island { margin-inline: 12px; border-radius: var(--r-xl); background: radial-gradient(120% 90% at 80% 0%, #135E54, var(--teal) 55%, #08302B); color: var(--on-dark); overflow: hidden; isolation: isolate; }
@media (prefers-color-scheme: dark) { .island { background: radial-gradient(120% 90% at 80% 0%, #10443D, #0A2C27 60%, #061A17); border: 1px solid var(--line); } }
.island .sub { color: var(--on-dark-2); }
.relay { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.relay::before { content: ""; position: absolute; top: 44px; inset-inline: 16%; height: 2px; background: repeating-linear-gradient(90deg, rgba(242,179,61,.7) 0 8px, transparent 8px 16px); }
.node { position: relative; text-align: center; padding: 0 18px 26px; }
.node-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
.node-ic .i { width: 34px; height: 34px; color: var(--gold); }
.node-key .node-ic { background: var(--gold); border-color: transparent; box-shadow: 0 0 0 10px rgba(242,179,61,.15), 0 20px 40px -10px rgba(242,179,61,.5); }
.node-key .node-ic .i { color: #1D2B27; }
.node h3 { font-size: 1.35rem; margin-bottom: 8px; }
html[lang="en"] .node h3 { font-size: 1.2rem; }
.node p { color: var(--on-dark-2); max-width: 22em; margin-inline: auto; }
@media (max-width: 760px) {
  .relay { grid-template-columns: 1fr; gap: 6px; }
  .relay::before { display: none; }
  .node { padding-bottom: 22px; }
}

/* ---------- how (stacking cards) ---------- */
.how-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.how-head { position: sticky; top: 120px; }
.how-head .btn { margin-top: 22px; }
.stack { display: grid; gap: 22px; }
.card-s {
  position: sticky; top: calc(110px + var(--i) * 20px);
  display: grid; grid-template-columns: 1fr 210px; gap: 22px; align-items: center;
  min-height: 240px; padding: 30px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 -6px 30px -18px rgba(18,32,29,.25), var(--shadow-1);
}
.step-n { position: absolute; top: 22px; inset-inline-start: 30px; font: 400 2.4rem/1 "Instrument Serif", Georgia, serif; color: var(--gold-ink); opacity: .7; }
.s-copy { padding-top: 46px; }
.s-copy h3 { font-size: 1.45rem; margin-bottom: 10px; }
html[lang="en"] .s-copy h3 { font-size: 1.3rem; }
.s-copy p { color: var(--ink-2); }
.s-vis { position: relative; display: grid; gap: 8px; align-content: center; padding: 16px; border-radius: 20px; background: var(--card-2); border: 1px solid var(--line); min-height: 170px; }
.cap { font-size: .74rem; font-weight: 600; color: var(--muted); }
.bubble { padding: 9px 12px; border-radius: 14px 14px 4px 14px; background: #DCF8C6; color: #13261c; font-size: .82rem; line-height: 1.5; justify-self: end; max-width: 95%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
[dir="rtl"] .bubble { border-radius: 14px 14px 14px 4px; justify-self: start; }
.slot { padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-2); font-size: .85rem; text-align: center; font-weight: 600; }
.slot.on { background: var(--teal); color: var(--on-dark); border-color: transparent; box-shadow: 0 10px 20px -12px rgba(14,74,67,.8); }
.wallet { background: linear-gradient(150deg, #F7D58C, #E9A93A); color: #2b1c05; border: 0; }
.wallet .cap { color: rgba(43,28,5,.7); }
.wallet strong { font-size: 1.05rem; }
.call .tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.call .tiles2 i { aspect-ratio: 1; border-radius: 12px; background: radial-gradient(circle at 50% 38%, #CFE6DD 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #CFE6DD 0 38%, transparent 39%), #1C5C52; }
.call .tiles2 i + i { background: radial-gradient(circle at 50% 38%, #F6E2BA 0 18%, transparent 19%), radial-gradient(ellipse at 50% 100%, #F6E2BA 0 38%, transparent 39%), #7A5A1E; }
.call .ctls { display: flex; justify-content: center; gap: 8px; }
.call .ctls .i { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-head { position: static; }
  .card-s { grid-template-columns: 1fr; top: calc(84px + var(--i) * 14px); }
  .s-vis { min-height: 0; }
}

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 20px; align-items: stretch; }
.price-card { position: relative; overflow: hidden; isolation: isolate; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-xl); background: radial-gradient(120% 100% at 100% 0%, #146257, var(--teal) 60%, #082F2A); color: var(--on-dark); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 14px; }
.amount { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; line-height: .9; }
.amount .num { font: 800 clamp(7rem, 5rem + 9vw, 11.5rem)/.85 var(--f-display); color: var(--gold); letter-spacing: -.04em; }
html[lang="en"] .amount .num { font: 400 clamp(8rem, 5rem + 10vw, 13rem)/.8 "Instrument Serif", Georgia, serif; }
.amount .cur { font: 700 2.2rem/1 var(--f-display); color: var(--gold); margin-top: .4em; }
.per { font-size: 1.12rem; color: var(--on-dark-2); }
.ticks { display: grid; gap: 10px; margin-block: 8px 12px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-dark-2); }
.ticks .i { color: var(--gold); margin-top: .35em; }
.price-card .wa-cta { margin-top: auto; }
.side-stack { display: grid; gap: 20px; }
.est { padding: 26px; display: grid; gap: 18px; }
.est-h h3, .tz h3 { font-size: 1.3rem; }
html[lang="en"] .est-h h3, html[lang="en"] .tz h3 { font-size: 1.2rem; }
.seg-f { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.seg-f legend { padding: 0; margin-bottom: 8px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: 9px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--teal); color: var(--on-dark); }
@media (prefers-color-scheme: dark) { .seg input:checked + span { background: var(--teal-2); color: #06201C; } }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.stepper { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lab { font-size: .86rem; font-weight: 600; color: var(--muted); }
.stp { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); }
.stp button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card-2); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stp button:hover { background: var(--mint); }
.stp output { min-width: 34px; text-align: center; font: 700 1.25rem var(--f-display); }
.est-out { display: grid; gap: 2px; padding: 16px 18px; border-radius: 18px; background: var(--mint-2); }
.est-total { font: 800 clamp(2.2rem, 1.8rem + 1.4vw, 2.9rem)/1.1 var(--f-display); color: var(--teal-ink); }
html[lang="en"] .est-total { font: 400 clamp(2.6rem, 2rem + 1.6vw, 3.4rem)/1 "Instrument Serif", Georgia, serif; }
.est-meta { font-size: .9rem; color: var(--ink-2); }
.tz { padding: 24px 26px; display: grid; gap: 14px; }
.clocks { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.clocks > div { display: grid; gap: 2px; padding: 12px 14px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.clocks strong { font: 700 1.5rem/1.2 var(--f-display); font-variant-numeric: tabular-nums; }
.tzname { font-size: .74rem; color: var(--muted); direction: ltr; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tz-diff { font-size: .8rem; font-weight: 700; color: var(--gold-ink); padding: 4px 8px; border-radius: 999px; background: var(--gold-soft); white-space: nowrap; }
.terms-row { margin-top: 20px; padding: clamp(22px, 3vw, 30px); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); }
.terms-row h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 16px; }
.terms-row h3 .i { color: var(--teal-ink); }
.terms-row ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.terms-row li { display: grid; gap: 10px; align-content: start; padding: 14px; border-radius: 16px; background: var(--card-2); font-size: .94rem; color: var(--ink-2); }
.terms-row li .i { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--mint); color: var(--teal-ink); }
.terms-row li.hl { background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.terms-row li.hl .i { background: var(--gold); color: #2b1c05; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; } .terms-row ul { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .terms-row ul { grid-template-columns: 1fr; } .clocks { grid-template-columns: 1fr 1fr; } .tz-diff { grid-column: 1 / -1; justify-self: center; order: 3; } }

/* ---------- paths ---------- */
.paths { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 26px; }
.path a { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.path a:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: color-mix(in oklab, var(--gold) 50%, transparent); }
.path h3 { font-size: 1.25rem; padding-inline-end: 64px; }
html[lang="en"] .path h3 { font-size: 1.12rem; }
.path-price { position: absolute; top: 20px; inset-inline-end: 22px; font: 400 2rem/1 "Instrument Serif", Georgia, serif; color: var(--gold-ink); }
.path-meta { font-size: .9rem; color: var(--muted); }
.dots { display: flex; flex-wrap: wrap; gap: 5px; margin-block: 10px 4px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); opacity: .85; }
.dots i:nth-child(n+5) { opacity: .35; }
.go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--teal-ink); font-size: .95rem; }
[dir="rtl"] .go .i { transform: scaleX(-1); }
.path a:hover .go .i { translate: 4px 0; }
[dir="rtl"] .path a:hover .go .i { translate: -4px 0; }
.path:first-child { grid-column: span 2; }
.path:first-child a { background: linear-gradient(160deg, #0F5148, var(--teal)); color: var(--on-dark); border-color: transparent; }
.path:first-child .path-meta { color: var(--on-dark-2); }
.path:first-child .path-price, .path:first-child .go { color: var(--gold); }
@media (max-width: 600px) { .path:first-child { grid-column: auto; } }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-side { position: sticky; top: 120px; }
.ask { margin-top: 28px; padding: 24px; display: grid; gap: 10px; justify-items: start; background: var(--gold-soft); border-color: transparent; }
.ask h3 { font-size: 1.2rem; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden; transition: border-color .3s; }
.faq details[open] { border-color: color-mix(in oklab, var(--teal) 30%, transparent); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font: 600 1.08rem/1.5 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--mint-2); transition: transform .35s var(--ease), background-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--teal-ink); }
.faq summary i::after { transform: rotate(90deg); transition: transform .35s var(--ease); }
.faq details[open] summary i { background: var(--teal); transform: rotate(180deg); }
.faq details[open] summary i::before { background: var(--gold); }
.faq details[open] summary i::after { transform: rotate(0); background: var(--gold); }
.ans { padding: 0 22px 22px; color: var(--ink-2); }
.faq details::details-content { height: 0; overflow: clip; transition: height .4s var(--ease), content-visibility .4s allow-discrete; }
.faq details[open]::details-content { height: auto; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-side { position: static; } }

/* ---------- final band ---------- */
.band { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); padding: clamp(40px, 7vw, 88px) clamp(24px, 6vw, 80px) clamp(28px, 4vw, 44px); background: #072B26; color: var(--on-dark); box-shadow: var(--shadow-2); }
.band > * { position: relative; z-index: 1; }
.band .aurora { z-index: 0; }
.band-main { text-align: center; display: grid; justify-items: center; gap: 18px; max-width: 760px; margin-inline: auto; }
.band-main p:not(.wa-number) { color: var(--on-dark-2); font-size: 1.12rem; max-width: 34em; }
.band-main .wa-number { margin-top: -6px; }
.band-apps { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; margin-top: clamp(40px, 6vw, 64px); padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); }
.band-apps h3 { font-size: 1.35rem; margin-bottom: 6px; }
.muted-light { color: var(--on-dark-2); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.store { flex: 1 1 200px; justify-content: center; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 16px; text-decoration: none; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); font-weight: 600; font-size: .94rem; transition: background-color .25s, transform .25s var(--ease); }
.store:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }
@media (max-width: 900px) { .band-apps { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .band-main .btn { width: 100%; } .store { flex: 1 1 100%; } }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; background: var(--paper-2); padding-top: clamp(56px, 7vw, 88px); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h3 { font-size: 1rem; margin-bottom: 14px; font-family: var(--f-body); }
.foot ul { display: grid; gap: 8px; }
.foot ul a { color: var(--ink-2); text-decoration: none; }
.foot bdi { white-space: nowrap; }
.foot ul a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.foot-about p { color: var(--ink-2); max-width: 30em; margin-top: 12px; font-size: .96rem; }
.tagline { font: 600 1.2rem/1.4 var(--f-display) !important; color: var(--teal-ink) !important; }
html[lang="en"] .tagline { font-style: italic; font-weight: 400 !important; font-size: 1.4rem !important; }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.wordmark { font: 800 clamp(9rem, 30vw, 26rem)/.82 var(--f-display); text-align: center; color: color-mix(in oklab, var(--teal) 9%, transparent); background: linear-gradient(180deg, color-mix(in oklab, var(--teal) 16%, transparent), transparent 85%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-top: 12px; margin-bottom: -.2em; user-select: none; pointer-events: none; font-family: "Alexandria", sans-serif; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- mobile dock ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 88px; }
  .dock { display: block; position: fixed; z-index: 60; inset-inline: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 8px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); box-shadow: var(--shadow-2); transition: transform .4s var(--ease), opacity .3s; }
  .dock .btn { width: 100%; }
  .dock.hide { transform: translateY(140%); opacity: 0; }
}

/* ---------- doc pages (curriculum, terms) ---------- */
.doc-hero { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 80px) 0 40px; }
.doc-hero .wrap { position: relative; z-index: 1; }
.doc-hero h1 { margin-block: 6px 18px; font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.1rem); }
html[lang="en"] .doc-hero h1 { font-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.9rem); }
.jump { margin-top: 28px; }
.jump ul { display: flex; flex-wrap: wrap; gap: 8px; }
.jump a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; text-decoration: none; background: var(--glass); border: 1px solid var(--line); font-size: .92rem; font-weight: 600; backdrop-filter: blur(8px); transition: background-color .2s, transform .2s var(--ease); }
.jump a:hover { background: var(--card); transform: translateY(-2px); }
.jump bdi { color: var(--gold-ink); font-weight: 700; }
.pcards { display: grid; gap: 18px; }
.pcard { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.pcard:target { border-color: var(--gold); box-shadow: 0 0 0 4px color-mix(in oklab, var(--gold) 25%, transparent), var(--shadow-2); }
.pcard > header { position: relative; display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 18px; }
.pcard h2 { font-size: clamp(1.4rem, 1.2rem + .7vw, 1.8rem); }
html[lang="en"] .pcard h2 { font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem); }
.pcard .path-price { position: static; font-size: 2.4rem; }
.syllabus { counter-reset: s; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; }
.syllabus li { counter-increment: s; position: relative; display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line-2); color: var(--ink-2); }
.syllabus li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mint-2); color: var(--teal-ink); font: 700 .8rem/1 var(--f-display); translate: 0 6px; }
.pcard-cta { margin-top: 20px; }
.other { padding: clamp(24px, 3vw, 36px); display: grid; gap: 12px; background: var(--gold-soft); border-color: transparent; }
.other h2 { font-size: 1.5rem; }
@media (max-width: 640px) { .syllabus { grid-template-columns: 1fr; } }
.terms-grid { display: grid; grid-template-columns: 280px 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.toc { position: sticky; top: 110px; }
.toc details { border-radius: 22px; background: var(--card); border: 1px solid var(--line); padding: 16px 18px; }
.toc summary { cursor: pointer; font-weight: 700; list-style: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc ol { display: grid; gap: 2px; margin-top: 10px; counter-reset: t; }
.toc a { display: block; padding: 6px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-size: .94rem; }
.toc a:hover { background: var(--mint-2); color: var(--ink); }
.terms-body { display: grid; gap: 12px; }
.tsec { padding: 24px 26px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); }
.tsec h2 { display: flex; gap: 14px; align-items: baseline; font-size: 1.3rem; margin-bottom: 10px; }
html[lang="en"] .tsec h2 { font-family: var(--f-body); font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; }
.tnum { font: 400 1.6rem/1 "Instrument Serif", Georgia, serif; color: var(--gold-ink); }
.tsec p { color: var(--ink-2); }
.tsec a { color: var(--teal-ink); font-weight: 600; }
@media (max-width: 900px) { .terms-grid { grid-template-columns: 1fr; } .toc { position: static; } }

/* ---------- motion: entrance (once) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .swash path { stroke-dashoffset: 330; animation: draw 1.4s .5s var(--ease) forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  .letters b { clip-path: inset(0 0 0 0); animation: write 1s var(--ease) both; }
  .letters b:nth-child(1) { animation-delay: .35s; }
  .letters b:nth-child(2) { animation-delay: .95s; }
  .letters b:nth-child(3) { animation-delay: 1.55s; }
  @keyframes write { from { clip-path: inset(0 0 0 100%); opacity: .2; } }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(n+5) { animation-delay: .32s; }
  .hero-art { animation: rise 1.1s .15s var(--ease) both; }
  .ticket, .sup-chip { animation: pop .9s .9s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(26px); } }
  @keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) { .btn, .card, .tile, .pcard, .tsec, .faq details { border: 1px solid CanvasText; } }
