/*
 * Secondary public pages: About, Help, Contact, Privacy Policy, Delete Account, Certificate check and 404.
 * Builds on tokens / base / components / site. Transform + opacity animation only.
 */

/* ══════════════════════════════════════════════════════════════════
   Page hero with a night stage
   ══════════════════════════════════════════════════════════════════ */
.phero { position: relative; overflow: hidden; overflow: clip visible; padding: clamp(28px, 5vw, 72px) 0 clamp(56px, 7vw, 104px); }
.phero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.phero__copy { display: grid; gap: 22px; align-content: center; min-width: 0; }
.phero__copy h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.4rem); line-height: 1.03; letter-spacing: -0.026em; font-weight: 450; }
.phero__copy h1 em { display: block; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.phero__jump { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: var(--fs-15); color: var(--text-3); }
.phero__art { position: relative; justify-self: center; width: min(100%, 500px); }
@media (max-width: 900px) {
  .phero__in { grid-template-columns: 1fr; }
  .phero__art { width: min(100%, 440px); order: 2; }
}
@media (max-width: 520px) { .phero__cta .btn { width: 100%; } .phero__art { width: 100%; } }

/* A fine square grid that fades out from the centre (replaces the old star lattice). */
.pgrid { position: absolute; inset: 0; pointer-events: none; --g: var(--line);
  background-image: linear-gradient(var(--g) 1px, transparent 1px), linear-gradient(90deg, var(--g) 1px, transparent 1px); background-size: 72px 72px; background-position: center top; opacity: 0.6;
  -webkit-mask-image: radial-gradient(65% 70% at 70% 40%, #000, transparent 75%); mask-image: radial-gradient(65% 70% at 70% 40%, #000, transparent 75%); }
.section--ink .pgrid { --g: rgba(229, 197, 104, 0.07); opacity: 1; -webkit-mask-image: radial-gradient(60% 80% at 20% 30%, #000, transparent 80%); mask-image: radial-gradient(60% 80% at 20% 30%, #000, transparent 80%); }
.nf .pgrid { -webkit-mask-image: radial-gradient(55% 70% at 28% 50%, #000, transparent 75%); mask-image: radial-gradient(55% 70% at 28% 50%, #000, transparent 75%); }

/* ── The stage: a night card with a grid, a soft gold glow and app fragments ── */
.pstage { position: relative; width: 100%; aspect-ratio: 1 / 1.02; display: grid; place-items: center; padding: 15% 8%; border-radius: 30px; container-type: inline-size; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 30%, #1E1910 0%, #110F0B 55%, #0A0907 100%); border: 1px solid rgba(229, 197, 104, 0.18);
  box-shadow: 0 40px 90px -40px rgba(40, 28, 5, 0.55), inset 0 1px 0 rgba(255, 244, 204, 0.08); color: #F2ECDD; font-family: var(--font-ui); }
[data-theme='dark'] .pstage { box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 244, 204, 0.06); }
.pstage::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background-image: linear-gradient(rgba(229, 197, 104, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(229, 197, 104, 0.07) 1px, transparent 1px); background-size: 8cqw 8cqw; background-position: center; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.pstage__glow { position: absolute; left: 50%; top: 46%; z-index: -1; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 180, 80, 0.28), rgba(229, 180, 80, 0.07) 55%, transparent 72%); animation: pst-glow 5s var(--ease-in-out) infinite alternate; }
@keyframes pst-glow { from { opacity: 0.7; transform: translate(-50%, -50%) scale(0.95); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }
.pstage .i { width: 1.15em; height: 1.15em; flex: none; }
.pst-col { position: relative; z-index: 1; display: grid; gap: 3.2cqw; width: 100%; }

/* Ring of lights on the stage. */
.pst-pass { position: absolute; left: 6%; width: 88%; top: 19%; transform: rotate(-5deg); }
.pst-pass .pass { --stub: 19cqw; --notch: 2.4cqw; }
.pst-pass .pass__hd { font-size: 2.2cqw; }
@keyframes pst-blink { 50% { opacity: 0.25; } }

/* Floating app cards. */
.pfl { position: absolute; z-index: 3; display: flex; align-items: center; gap: 2.4cqw; padding: 2.2cqw 3.2cqw 2.2cqw 2.2cqw; border-radius: 3.4cqw; background: rgba(24, 21, 15, 0.95); border: 1px solid rgba(229, 197, 104, 0.22); color: #F2ECDD;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.7); font-size: clamp(11px, 2.7cqw, 13px); line-height: 1.25; animation: pst-bob 7s var(--ease-in-out) infinite; white-space: nowrap; }
.pfl b { display: block; font-weight: 700; font-size: clamp(11.5px, 2.8cqw, 13.5px); }
.pfl small { display: block; color: #A99F8A; font-size: clamp(10px, 2.35cqw, 11.5px); }
.pfl__i { width: clamp(26px, 7cqw, 34px); aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; background: linear-gradient(180deg, #E2BC5C, #C9982F); color: #1D1503; flex: none; }
.pfl__i .i { width: 50%; height: 50%; stroke-width: 2; }
.pfl__strip { display: grid; place-items: center; padding: 0 0.8cqw; }
.pfl__strip .strip { height: clamp(20px, 5.4cqw, 26px); color: #E5C568; gap: 2px; }
.pfl__strip .strip__s:last-child { color: #FFF1BF; filter: drop-shadow(0 0 6px rgba(255, 228, 160, 0.8)); animation: bc-blink 1.5s var(--ease-in-out) infinite; }
.pfl__k { display: inline-flex; align-items: center; gap: 1.2cqw; font-size: clamp(9.5px, 2.2cqw, 11px); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #E5C568; }
.pfl__bar { display: block; height: 4px; border-radius: 4px; background: rgba(242, 236, 221, 0.12); overflow: hidden; }
.pfl__bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #C98C28, #FFE4A0); transform-origin: left; transform: scaleX(var(--v)); }
.pfl--card { display: grid; gap: 1.4cqw; padding: 3cqw 3.4cqw; }
.pfl--tl { left: -4%; top: 7%; animation-delay: -2.4s; }
.pfl--tr { right: -4%; top: 7%; animation-delay: -1.2s; }
.pfl--bl { left: -4%; bottom: 7%; animation-delay: -4.6s; }
.pfl--br { right: -4%; bottom: 7%; animation-delay: -3.4s; }
@keyframes pst-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -1.6cqw, 0); } }
.pst-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 2.8cqw 1.4cqw 2.2cqw; border-radius: 99px; background: rgba(229, 197, 104, 0.1); border: 1px solid rgba(229, 197, 104, 0.32); color: #F3D98B; font-size: clamp(10px, 2.5cqw, 12.5px); font-weight: 650; white-space: nowrap; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pst-chip--tr { right: 5%; top: 5%; }

/* App UI panels (follow the theme: white on paper, night surface after dark). */
.pui { position: relative; display: grid; gap: 2.4cqw; padding: 3.6cqw 4cqw; border-radius: 4.4cqw; background: var(--surface); color: var(--text); border: 1px solid var(--line);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(229, 197, 104, 0.08); font-size: clamp(11px, 2.85cqw, 14px); line-height: 1.4; text-align: left; }
[data-theme='dark'] .pui { border-color: #2F2A1F; background: #15161A; }
.pui b { font-weight: 700; }
.pui small { font-size: inherit; }
.pui mark { background: color-mix(in srgb, var(--brand-gold-border) 60%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }
[data-theme='dark'] .pui mark { background: rgba(204, 153, 51, 0.38); }
.pui__bar { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; padding-bottom: 2.4cqw; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(12.5px, 3.3cqw, 16px); letter-spacing: -0.01em; }
.pui__x { color: var(--text-3); display: grid; }
.pui__pill, .pui__status { display: inline-flex; align-items: center; gap: 1.2cqw; padding: 0.9cqw 2.2cqw; border-radius: 99px; font-family: var(--font-ui); font-size: clamp(10px, 2.4cqw, 12px); font-weight: 700; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.pui__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pst-blink 1.8s var(--ease-in-out) infinite; }
.pui__caret { display: inline-block; width: 1.5px; height: 1.1em; margin-left: 2px; vertical-align: -0.18em; background: var(--accent); animation: pst-caret 1.1s steps(1) infinite; }
@keyframes pst-caret { 50% { opacity: 0; } }
.pui__chips { display: flex; flex-wrap: wrap; gap: 1.6cqw; }
.pchip { display: inline-flex; align-items: center; padding: 1cqw 2.6cqw; border-radius: 99px; border: 1px solid var(--line-2); font-size: clamp(10px, 2.5cqw, 12.5px); font-weight: 600; color: var(--text-2); white-space: nowrap; }
.pchip.is-on { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.pui__lbl { min-width: 13cqw; color: var(--text-3); font-size: clamp(10px, 2.5cqw, 12.5px); font-weight: 600; }
.pui__row { display: flex; align-items: center; gap: 2cqw; padding-bottom: 2.2cqw; border-bottom: 1px solid var(--line); }
.pui__foot { display: flex; align-items: center; justify-content: space-between; gap: 2cqw; color: var(--text-3); font-size: clamp(10px, 2.4cqw, 12px); }
.pui__foot small { display: inline-flex; align-items: center; gap: 1.2cqw; }
.pui__foot .i { color: var(--accent-text); }

/* Help: search field + chips + answer card. */
.pui--search { padding: 1.6cqw; border-radius: 99px; }
.pui__field { display: flex; align-items: center; gap: 2cqw; padding-left: 2.4cqw; font-size: clamp(12px, 3.1cqw, 15px); }
.pui__field > .i { color: var(--accent-text); }
.pui__typed { flex: 1; font-weight: 550; }
.pui__go { padding: 1.8cqw 3.6cqw; border-radius: 99px; background: var(--inverse); color: var(--on-inverse); font-weight: 700; font-size: clamp(10.5px, 2.6cqw, 13px); }
.pui__chips--float .pchip { border-color: rgba(229, 197, 104, 0.3); color: #E9DFC6; background: rgba(24, 21, 15, 0.6); }
.pui__chips--float .pchip.is-on { background: #E5C568; border-color: #E5C568; color: #1D1503; }
.pui--answer { margin-inline: 6% 0; }
.pui__k { display: inline-flex; align-items: center; gap: 1.2cqw; font-size: clamp(9.5px, 2.3cqw, 11px); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ok-text); }
.pui__q { font-family: var(--font-display); font-size: clamp(13px, 3.6cqw, 18px); line-height: 1.2; letter-spacing: -0.015em; }
.pui__a { color: var(--text-2); }
.pui__more { display: inline-flex; align-items: center; gap: 1cqw; font-weight: 700; color: var(--accent-text); font-size: clamp(10.5px, 2.6cqw, 13px); }
.pfl__marks { display: flex; }
.pfl__marks .ayah-mark { --size: clamp(22px, 6.4cqw, 30px); color: #E5C568; margin-left: -0.6cqw; }
.pfl__marks .ayah-mark:first-child { margin-left: 0; }
.pfl__marks .ayah-mark b { color: #F2ECDD; }

/* Contact: composer + toast. */
.pui--mail { gap: 2.2cqw; }
.pui__to { display: inline-flex; align-items: center; gap: 1.6cqw; padding: 0.8cqw 2.4cqw 0.8cqw 0.8cqw; border-radius: 99px; background: var(--sunken); font-weight: 600; font-size: clamp(10.5px, 2.65cqw, 13px); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pui__av { width: clamp(18px, 5cqw, 24px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(140deg, #3A352A, #15130F); color: #E5C568; font-family: var(--font-display); font-size: clamp(8px, 2cqw, 10px); font-weight: 700; }
.pui__msg { display: grid; gap: 1.8cqw; padding: 0.6cqw 0 1cqw; }
.pui__msg p { color: var(--text); }
.pui__line { display: block; height: 1.6cqw; max-height: 7px; border-radius: 4px; background: var(--sunken); width: calc(var(--w) * 100%); }
.pui__send { display: inline-flex; align-items: center; gap: 1.4cqw; padding: 1.8cqw 3.6cqw; border-radius: 99px; background: linear-gradient(180deg, #E2BC5C, #C9982F); color: #1D1503; font-weight: 700; font-size: clamp(10.5px, 2.65cqw, 13px); }
.pfl--sent { right: -4%; bottom: 6%; opacity: 0; animation: pst-toast 0.7s var(--ease-out) 1.4s forwards, pst-bob 7s var(--ease-in-out) 2.1s infinite; }
.pfl--sent .pfl__i { background: linear-gradient(180deg, #7FC59E, #3C7A5B); color: #fff; }
@keyframes pst-toast { from { opacity: 0; transform: translate3d(0, 4cqw, 0) scale(0.96); } to { opacity: 1; transform: none; } }

/* Privacy: data list. */
.pui__list { display: grid; }
.pui__list li { display: flex; align-items: center; gap: 2.6cqw; padding: 2.2cqw 0; border-bottom: 1px solid var(--line); }
.pui__ic { width: clamp(26px, 7.4cqw, 36px); aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.pui__tx { flex: 1; min-width: 0; }
.pui__tx b { display: block; font-size: clamp(11.5px, 3cqw, 14.5px); }
.pui__tx small { display: block; color: var(--text-3); font-size: clamp(10px, 2.45cqw, 12px); }
.pui__lock { display: grid; place-items: center; width: clamp(22px, 6cqw, 28px); aspect-ratio: 1; border-radius: 50%; background: var(--ok-bg); color: var(--ok-text); }
.pui__lock .i { width: 55%; height: 55%; }
.pui__danger { display: flex; align-items: center; gap: 1.6cqw; padding: 2cqw 2.6cqw; border-radius: 2.6cqw; background: var(--bad-bg); color: var(--bad-text); font-weight: 700; font-size: clamp(10.5px, 2.65cqw, 13px); }
.pui__danger small { margin-left: auto; font-weight: 600; opacity: 0.8; }

/* Delete account: 30 light-bars that switch on one day at a time. */
.pdays__n { display: flex; align-items: flex-end; gap: 2.4cqw; padding-top: 1cqw; }
.pdays__n b { font-family: var(--font-display); font-weight: 650; font-size: clamp(48px, 20cqw, 100px); line-height: 0.82; letter-spacing: -0.06em; font-variant-numeric: lining-nums; }
.pdays__n span { padding-bottom: 0.4em; color: var(--text-3); font-size: clamp(11px, 2.8cqw, 14px); font-weight: 600; line-height: 1.2; }
.pdays__meter { display: grid; grid-template-columns: repeat(30, 1fr); gap: 1.1cqw; height: clamp(30px, 9cqw, 44px); align-items: end; }
.pdays__meter i { display: block; height: 100%; border-radius: 99px; background: var(--sunken); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.pdays__meter i:nth-child(10n) { height: 100%; }
.pdays__meter i:not(:nth-child(10n)) { height: 78%; }
.pdays__meter i::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(180deg, #FFE4A0, #C98C28); opacity: 0; animation: pst-day 0.5s var(--ease-out) forwards; animation-delay: calc(var(--k) * 70ms + 600ms); }
@keyframes pst-day { to { opacity: 1; } }
.pdays__ends { display: flex; justify-content: space-between; gap: 2cqw; color: var(--text-3); font-size: clamp(9.5px, 2.35cqw, 11.5px); font-weight: 600; }
.pdays__chip { justify-self: start; display: inline-flex; align-items: center; gap: 1.2cqw; padding: 1.2cqw 2.6cqw; border-radius: 99px; background: var(--warn-bg); color: var(--warn-text); font-weight: 700; font-size: clamp(10px, 2.5cqw, 12.5px); }

/* 404 in the centre of the ring. */
/* 404: the invalid ticket. */
.pnf-tk { position: absolute; left: 9%; right: 9%; top: 50%; transform: translateY(-54%) rotate(-4deg); display: grid; gap: 3.2cqw; padding: 5cqw 5.4cqw; border-radius: 3.4cqw; background: #FFFDF6; color: #1C1810; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.7); }
.pnf-tk__hd { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: clamp(8px, 2.2cqw, 11px); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #8A8270; }
.pnf-tk__hd b { color: #B0451F; }
.pnf-tk__route { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 3cqw; }
.pnf-tk__route b { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 12cqw, 4.6rem); line-height: 0.85; letter-spacing: -0.04em; }
.pnf-tk__route small { display: block; margin-top: 1.4cqw; font-size: clamp(9px, 2.4cqw, 12px); color: #8A8270; white-space: nowrap; }
.pnf-tk__route i { height: 2px; background: repeating-linear-gradient(90deg, #DCD2BB 0 5px, transparent 5px 9px); }
.pnf-tk__to { text-align: right; }
.pnf-tk__to b { background: linear-gradient(180deg, #E5C568, #A67B24); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pnf-tk .pnf-tk__bc .barcode { --bc-ink: #1C1810; --bc-off: rgba(28, 24, 16, 0.08); --bc-now: #B0451F; }
.pnf-tk__err { display: inline-flex; align-items: center; gap: 1.6cqw; font-family: var(--font-mono); font-size: clamp(8px, 2.2cqw, 11px); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #B0451F; }
.pnf-tk__err .i { width: 1.3em; height: 1.3em; }
.pnf-tk__void { position: absolute; right: 6%; bottom: 10%; --pass-bg: #FFFDF6; transform: rotate(var(--r)) scale(1.25); }
.pnf { position: absolute; left: 50%; top: 47%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 1.6cqw; text-align: center; }
.pnf b { font-family: var(--font-display); font-weight: 650; font-size: 19cqw; line-height: 0.85; letter-spacing: -0.06em; background: linear-gradient(180deg, #FFF1BF, #E5C568 45%, #B8861F); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pnf span { font-size: clamp(9.5px, 2.4cqw, 12px); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: #A99F8A; }

/* About: printed page + course card around the ring. */
.pstage--ring { padding: 0; }
.pst-page { position: absolute; left: 4%; bottom: 5%; z-index: 2; width: 34%; display: grid; gap: 1.6cqw; padding: 3.4cqw 3.2cqw 3cqw; border-radius: 1.4cqw; background: #FFFDF7; color: #2A251B; box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.06); transform: rotate(-4deg); text-align: center; }
.pst-page::before { content: ''; position: absolute; inset: 1.4cqw; border: 1px solid #E6D3A0; border-radius: 0.6cqw; pointer-events: none; }
.pst-page__k { font-size: clamp(8px, 1.9cqw, 10px); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #8C6A1E; }
.pst-page__ar { font-family: var(--font-arabic); font-size: clamp(13px, 3.8cqw, 19px); line-height: 2; color: #1A1712; }
.pst-page__rule { justify-self: center; width: 40%; height: 1px; background: linear-gradient(90deg, transparent, #CC9933, transparent); }
.pst-page__en { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-size: clamp(10px, 2.5cqw, 12.5px); line-height: 1.25; color: #4B4436; }
.pst-page__tag { justify-self: center; display: inline-flex; align-items: center; gap: 1cqw; margin-top: 0.6cqw; padding: 0.8cqw 2.2cqw; border-radius: 99px; background: #1A1712; color: #F3D98B; font-size: clamp(8.5px, 2cqw, 10.5px); font-weight: 700; }
.pfl--course { right: 4%; bottom: 6%; width: 42%; white-space: normal; animation-delay: -3.4s; }
.pstage--ring .pfl--tl { left: 4%; top: 6%; }
.pstage--ring .pst-chip--tr { right: 4%; top: 7%; }

/* Phones: keep everything inside the card. */
@media (max-width: 520px) {
  .pstage { border-radius: 24px; padding: 18% 6% 22%; }
  .pstage--ring { padding: 0; }
  .pfl--tl, .pfl--bl { left: 3%; }
  .pfl--tr, .pfl--br, .pfl--sent { right: 3%; }
  .pfl--tl, .pfl--tr { top: 3.5%; }
  .pfl--bl, .pfl--br, .pfl--sent { bottom: 3.5%; }
  .pstage--ring .pfl--tl { top: 4%; }
}
.reduce-motion .pfl--sent, .reduce-motion .pdays__meter i::after { animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { .pfl--sent, .pdays__meter i::after { animation-delay: 0s !important; } }

/* ── Document meta (effective dates, package id) ─────────────────── */
.docmeta { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 12px 32px; padding: 16px 20px; border-radius: var(--r-3); background: color-mix(in srgb, var(--surface) 80%, transparent); border: 1px solid var(--line); max-width: 640px; }
.docmeta div { display: grid; gap: 2px; }
.docmeta dt { font-size: var(--fs-12); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.docmeta dd { margin: 0; font-size: var(--fs-15); color: var(--text); }
.docmeta__wide { grid-column: 1 / -1; }
body[data-page='delete-account'] .docmeta { grid-template-columns: 1fr; }
code { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 520px) { .docmeta { grid-template-columns: 1fr; } }

/* Eyebrows inside section heads keep their small-caps size (site.css styles every .sec-head p). */
.sec-head .eyebrow { font-size: var(--fs-12); color: var(--accent-text); max-width: none; }
/* An ink section followed directly by the (ink) footer gets a hairline between them. */
.pcta, .still { border-bottom: 1px solid #2E2A22; }
[data-theme='dark'] .pcta, [data-theme='dark'] .still { border-bottom-color: #1C1B18; }

/* Shared: ink call-to-action behind a large ring of lights, waiting on its first light. */
.pcta { overflow: hidden; }
.pcta__bc { position: absolute; left: 50%; bottom: 0; width: min(1100px, 150vw); transform: translateX(-50%); opacity: 0.22; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 92%); mask-image: linear-gradient(180deg, #000, transparent 92%); }
.pcta__bc .bc-svg { transform: scaleY(3.2); transform-origin: 50% 100%; }
.pcta__in { position: relative; display: grid; gap: 22px; justify-items: center; padding-block: 24px; }
.pcta__in h2 { font-size: var(--fs-60); }
.pcta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (max-width: 520px) { .pcta__btns .btn { width: 100%; } }

/* Shared form card. */
.form-card { position: relative; padding: clamp(22px, 3.4vw, 40px); border-radius: var(--r-5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.form-card__head { display: grid; gap: 6px; margin-bottom: 6px; }
.form-card__title { font-size: var(--fs-32); }
.form-card__sub { color: var(--text-3); font-size: var(--fs-14); }
.form-card form { position: relative; display: grid; gap: 20px; }
.field__label .req { color: var(--bad-text); }
.form-card .field__label { flex-wrap: wrap; row-gap: 2px; }
.field__label .opt { margin-left: auto; }

/* ══════════════════════════════════════════════════════════════════
   About
   ══════════════════════════════════════════════════════════════════ */
.about-intro__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.about-intro__copy { display: grid; gap: 22px; }
.statement { font-family: var(--font-display); font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); line-height: 1.32; letter-spacing: -0.01em; color: var(--text); }
.dropcap::first-letter { float: left; font-size: 3.4em; line-height: 0.82; padding: 0.08em 0.14em 0 0; margin-right: 0.08em; color: var(--accent-text); font-weight: 500; }
.about-intro__p { color: var(--text-2); font-size: var(--fs-18); max-width: 58ch; }
.hadith-box { position: relative; display: grid; gap: 16px; justify-items: center; text-align: center; padding: clamp(32px, 4vw, 52px) clamp(22px, 3.4vw, 44px); border-radius: var(--r-5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.hadith-box { overflow: hidden; }
.hadith-box::before { content: ''; position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.hadith-box::after { content: ''; position: absolute; left: 50%; top: -60%; width: 90%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent); pointer-events: none; }
.hadith-box > * { position: relative; z-index: 1; }
.hadith-box__rule { width: 48px; height: 2px; border-radius: 2px; background: var(--accent); }
.hadith-box__ar { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.5rem); color: var(--accent-text); line-height: 2; }
.hadith-box__q p { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.3; color: var(--text); }
.hadith-box__lead { display: block; font-style: normal; font-family: var(--font-ui); font-size: var(--fs-13); font-weight: 650; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
.hadith-box figcaption { display: grid; gap: 10px; }
.hadith-box cite { font-style: normal; font-size: var(--fs-13); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 650; color: var(--text-3); }
.hadith-box figcaption p { color: var(--text-2); max-width: 40ch; }
@media (max-width: 900px) { .about-intro__in { grid-template-columns: 1fr; } }

/* Three programmes on one path. */
.prog { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 40px); }
.prog::before { content: ''; position: absolute; left: 16%; right: 16%; top: 48px; height: 1px; background: linear-gradient(90deg, var(--accent-line), var(--accent) 70%, var(--accent)); }
.prog__step { position: relative; display: grid; gap: 10px; justify-items: center; text-align: center; padding: 0 8px; }
.prog__glyph { position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-tint); color: var(--accent-line); margin-bottom: 10px; transition: transform 1.2s var(--ease-out); }
.section--tint .prog__glyph { background: var(--bg-tint); box-shadow: 0 0 0 10px var(--bg-tint); }
.prog__glyph svg { width: 100%; height: 100%; }
.prog__step:hover .prog__glyph { transform: rotate(-8deg) scale(1.04); }
.prog__step.is-here .prog__glyph { color: var(--accent); }
.prog__step.is-here .prog__glyph::after { content: ''; position: absolute; inset: -14px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent); z-index: -1; }
.prog__age { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 650; color: var(--accent-text); }
.prog__age .chip { letter-spacing: 0.04em; text-transform: none; }
.prog__step h3 { font-size: var(--fs-32); }
.prog__step p { color: var(--text-2); max-width: 34ch; }
@media (max-width: 860px) {
  .prog { grid-template-columns: 1fr; gap: 28px; max-width: 520px; margin-inline: auto; }
  .prog::before { left: 40px; right: auto; top: 40px; bottom: 40px; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent-line), var(--accent)); }
  .prog__step { grid-template-columns: 80px 1fr; justify-items: start; text-align: left; column-gap: 20px; row-gap: 6px; padding: 0; }
  .prog__glyph { grid-row: 1 / 4; width: 80px; height: 80px; margin: 0; }
  .prog__age { justify-content: flex-start; }
  .prog__step h3 { font-size: var(--fs-24); }
}

/* Book + course. */
.fit__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.fit__vis { position: relative; min-height: 460px; display: grid; place-items: center; }
.fit__leaves { position: relative; width: min(100%, 420px); height: 440px; }
.fit__leaf { position: absolute; width: 58%; left: 50%; top: 50%; border-radius: 3px; box-shadow: 0 24px 48px -18px rgba(40, 30, 5, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.05); transition: transform 1.1s var(--ease-out); }
[data-theme='dark'] .fit__leaf { box-shadow: 0 24px 48px -18px rgba(0, 0, 0, 0.8); }
.fit__leaf--1 { transform: translate(-50%, -52%) rotate(-2deg); }
.fit__leaf--2 { transform: translate(-80%, -48%) rotate(-10deg); }
.fit__leaf--3 { transform: translate(-22%, -48%) rotate(8deg); }
.fit__vis:hover .fit__leaf--2 { transform: translate(-92%, -48%) rotate(-14deg); }
.fit__vis:hover .fit__leaf--3 { transform: translate(-10%, -48%) rotate(12deg); }
.fit__plate { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); display: grid; gap: 6px; width: min(86%, 300px); padding: 14px 18px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.fit__plate-k { font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--accent-text); }
.fit__plate-bar { height: 5px; border-radius: 5px; background: var(--sunken); overflow: hidden; }
.fit__plate-bar i { display: block; height: 100%; width: 100%; background: var(--leaf-flat); transform-origin: left; transform: scaleX(0.3); }
.fit__plate-m { font-size: var(--fs-13); color: var(--text-2); }
.fit__copy { display: grid; gap: 24px; }
.fit__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fit__list li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.fit__n { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-size: var(--fs-20); color: var(--accent-text); }
.fit__list h3 { font-size: var(--fs-24); margin-bottom: 6px; }
.fit__list p { color: var(--text-2); }
.concord { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--r-4); background: var(--surface-2); border: 1px solid var(--accent-line); }
.concord__k { font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--accent-text); }
.concord dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.concord dl div { display: grid; gap: 2px; padding-left: 12px; border-left: 1px solid var(--accent-line); }
.concord dt { font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.1; font-variant-numeric: lining-nums; }
.concord dd { margin: 0; font-size: var(--fs-13); color: var(--text-2); }
.concord__gap dt { color: var(--text-3); }
@media (max-width: 900px) { .fit__in { grid-template-columns: 1fr; } .fit__vis { order: 2; min-height: 400px; } .fit__leaves { height: 380px; } }
@media (max-width: 520px) { .concord dl { grid-template-columns: 1fr 1fr; } }

/* Every ayah is a light. */
.light { overflow: hidden; }
.light__in { position: relative; }
.motifs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.motif { display: grid; gap: 18px; align-content: start; padding: 32px clamp(16px, 2.6vw, 32px) 8px 0; }
.motif + .motif { padding-left: clamp(16px, 2.6vw, 32px); border-left: 1px solid var(--line-2); }
.motif__art { display: grid; place-items: center; width: 92px; height: 92px; color: #E5C568; }
.motif__art svg { width: 100%; height: 100%; }
.motif__art--med { width: 150px; height: 92px; }
/* Numbered lights: three ring marks, growing. */
.mo-nums { display: flex; align-items: center; }
.mo-nums .ayah-mark { color: #E5C568; margin-left: -5px; background: #1A1712; border-radius: 50%; box-shadow: 0 0 0 3px #1A1712; }
.mo-nums .ayah-mark:first-child { margin-left: 0; }
.mo-nums .ayah-mark:nth-child(1) { --size: 25px; }
.mo-nums .ayah-mark:nth-child(2) { --size: 33px; }
.mo-nums .ayah-mark:nth-child(3) { --size: 44px; }
.mo-nums .ayah-mark b { color: #F2ECDD; }
/* Night and paper: one tile, split between the two themes. */
.mo-split { display: grid; grid-template-columns: 1fr 1fr; width: 92px; height: 72px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(229, 197, 104, 0.3); box-shadow: 0 16px 30px -16px rgba(0, 0, 0, 0.8); }
.mo-split > span { display: grid; place-items: center; align-content: center; gap: 4px; }
.mo-split b { font-family: var(--font-display); font-weight: 650; font-size: 18px; letter-spacing: -0.03em; line-height: 1; }
.mo-split .i { width: 14px; height: 14px; }
.mo-split__day { background: #FAF9F6; color: #1A1712; }
.mo-split__day .i { color: #A67B24; }
.mo-split__night { background: #0D0F13; color: #F2ECDD; }
.mo-split__night .i { color: #E5C568; }
.motif h3 { font-size: var(--fs-24); margin-bottom: 8px; }
.motif p { color: var(--text-2); }
@media (max-width: 860px) {
  .motifs { grid-template-columns: 1fr; }
  .motif, .motif + .motif { grid-template-columns: 92px 1fr; gap: 20px; padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line-2); }
  .motif__art--med { width: 120px; height: 80px; }
}

/* CharacterBee. */
.cbee__in { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.cbee__mark { justify-self: center; width: min(100%, 320px); }
/* CharacterBee: a monogram tile and wordmark on a small night card. */
.cbm { position: relative; display: grid; justify-items: center; gap: 10px; padding: 40px 24px 28px; border-radius: var(--r-5); text-align: center; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 50% 20%, #1E1910 0%, #110F0B 60%, #0A0907 100%); border: 1px solid rgba(229, 197, 104, 0.18); box-shadow: 0 30px 70px -36px rgba(40, 28, 5, 0.6); color: #F2ECDD; }
.cbm::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(229, 197, 104, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(229, 197, 104, 0.07) 1px, transparent 1px); background-size: 26px 26px; background-position: center; -webkit-mask-image: radial-gradient(closest-side at 50% 35%, #000, transparent); mask-image: radial-gradient(closest-side at 50% 35%, #000, transparent); }
.cbm::after { content: ''; position: absolute; left: 50%; top: 22%; z-index: -1; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 180, 80, 0.3), transparent); }
.cbm__tile { width: 92px; height: 92px; border-radius: 26px; display: grid; place-items: center; margin-bottom: 8px; background: linear-gradient(180deg, #ECC869, #C9982F); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 18px 34px -14px rgba(201, 152, 47, 0.7); }
.cbm__tile b { font-family: var(--font-display); font-weight: 700; font-size: 40px; letter-spacing: -0.06em; color: #1D1503; line-height: 1; }
.cbm__word { font-family: var(--font-display); font-weight: 650; font-size: var(--fs-24); letter-spacing: -0.03em; line-height: 1.1; }
.cbm__tag { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-size: var(--fs-18); color: #E5C568; }
.cbm__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.cbm__chip { padding: 4px 10px; border-radius: 99px; border: 1px solid rgba(229, 197, 104, 0.28); font-size: var(--fs-12); font-weight: 650; color: #D9CFB8; }
.cbee__copy { display: grid; gap: 20px; }
.cbee__copy .muted { max-width: 58ch; font-size: var(--fs-18); }
@media (max-width: 860px) { .cbee__in { grid-template-columns: 1fr; } .cbee__mark { width: min(100%, 300px); } }

/* Get involved rows. */
.join__in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.join__head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.join__list { border-top: 1px solid var(--line); }
.join__row { display: grid; grid-template-columns: 48px 1fr 48px; gap: 18px; align-items: center; padding: 28px 8px; border-bottom: 1px solid var(--line); transition: background-color var(--t-3); }
.join__row:hover { background: var(--surface); }
.join__n { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-size: var(--fs-20); color: var(--accent-text); align-self: start; padding-top: 2px; }
.join__t { display: grid; gap: 6px; }
.join__t strong { font-family: var(--font-display); font-size: var(--fs-32); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; }
.join__t span { color: var(--text-2); }
.join__go { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent-text); transition: transform var(--t-3) var(--ease-out), background-color var(--t-3), border-color var(--t-3); }
.join__row:hover .join__go { transform: rotate(45deg); background: var(--accent-soft); border-color: var(--accent-line); }
@media (max-width: 900px) { .join__in { grid-template-columns: 1fr; } .join__head { position: static; } }
@media (max-width: 520px) { .join__row { grid-template-columns: 32px 1fr 40px; gap: 12px; } .join__go { width: 40px; height: 40px; } }

/* ══════════════════════════════════════════════════════════════════
   Help
   ══════════════════════════════════════════════════════════════════ */
.hsearch { position: relative; display: flex; align-items: center; gap: 8px; max-width: 560px; padding: 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); transition: border-color var(--t-2), box-shadow var(--t-2); }
.hsearch:focus-within { border-color: var(--accent); box-shadow: var(--shadow-2), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.hsearch__icon { display: grid; place-items: center; width: 40px; color: var(--accent-text); flex: none; }
.hsearch__input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; font-size: 1rem; color: var(--text); padding: 0 4px; -webkit-appearance: none; appearance: none; }
.hsearch__input::placeholder { color: var(--text-3); }
.hsearch__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.hsearch__btn { min-height: 48px; }
@media (max-width: 520px) { .hsearch__btn { padding: 0 16px; } .hsearch__input { font-size: 1rem; } }

/* Quick guides: vertical tabs + panel. */
.guides__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(20px, 4vw, 56px); align-items: start; }
.guides__tabs { display: grid; gap: 6px; }
.guides__tab { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-4); text-align: left; font-family: var(--font-display); font-size: var(--fs-24); line-height: 1.15; color: var(--text-2); border: 1px solid transparent; transition: background-color var(--t-2), color var(--t-2), border-color var(--t-2); }
.guides__tab:hover { color: var(--text); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.guides__tab[aria-selected='true'] { color: var(--text); background: var(--surface); border-color: var(--accent-line); box-shadow: var(--shadow-1); }
.guides__n { font-family: var(--font-ui); font-size: var(--fs-13); font-weight: 700; letter-spacing: 0.1em; color: var(--accent-text); min-width: 24px; }
.guide { display: grid; gap: 18px; justify-items: start; padding: clamp(24px, 3.4vw, 40px); border-radius: var(--r-5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2); }
.guide:not([hidden]) { animation: vt-in 420ms var(--ease-out) both; }
.guide h3 { font-size: var(--fs-32); }
.guide__lede { color: var(--text-2); font-size: var(--fs-18); }
.guide__steps { display: grid; gap: 4px; width: 100%; margin-bottom: 8px; }
.guide__steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.guide__steps strong { color: var(--text); font-weight: 650; }
.guide__mark .ayah-mark { --size: 40px; }
@media (max-width: 860px) {
  .guides__in { grid-template-columns: 1fr; }
  .guides__tabs { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
  .guides__tabs::-webkit-scrollbar { display: none; }
  .guides__tab { font-size: var(--fs-18); padding: 12px 16px; }
}

/* FAQ with live filter. */
.faq__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 24px; }
.faq__side .sec-head { margin-bottom: 0; }
.faq__tools { display: grid; gap: 16px; }
.search { position: relative; }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--accent-text); display: grid; pointer-events: none; }
.search__input { width: 100%; min-height: 52px; padding: 12px 48px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-2); font-size: 1rem; color: var(--text); -webkit-appearance: none; appearance: none; transition: border-color var(--t-2), box-shadow var(--t-2); }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__input::placeholder { color: var(--text-3); }
.search__input:hover { border-color: var(--accent-line); }
.search__input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
.search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.search__clear:hover { color: var(--text); background: var(--accent-soft); }
.search__clear .i { width: 16px; height: 16px; }
.faq__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; font-size: var(--fs-14); font-weight: 600; color: var(--text-2); transition: background-color var(--t-2), color var(--t-2), border-color var(--t-2); }
.fchip small { font-size: var(--fs-12); color: var(--text-3); font-weight: 600; }
.fchip:hover { border-color: var(--accent); color: var(--text); }
.fchip[aria-pressed='true'] { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.fchip[aria-pressed='true'] small { color: inherit; opacity: 0.7; }
.faq__count { font-size: var(--fs-14); color: var(--text-3); min-height: 1.6em; }
.faq__group + .faq__group { margin-top: 40px; }
.faq__cat { display: flex; align-items: center; gap: 12px; font-family: var(--font-ui); font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 650; color: var(--accent-text); padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.faq__cat .ayah-mark { --size: 26px; }
.faq__list mark { background: color-mix(in srgb, var(--brand-gold-border) 55%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
[data-theme='dark'] .faq__list mark { background: color-mix(in srgb, var(--brand-gold) 38%, transparent); }
.faq-empty { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 56px 20px; border: 1px dashed var(--line-2); border-radius: var(--r-5); }
.faq-empty .ayah-mark { --size: 64px; opacity: 0.75; }
.faq-empty h3 { font-size: var(--fs-24); }
.faq-empty p { color: var(--text-2); max-width: 42ch; }
.faq-empty__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 6px; }
@media (max-width: 900px) { .faq__in { grid-template-columns: 1fr; } .faq__side { position: static; } }

/* Families & classes: steps beside a "Who's learning today?" picker. */
.fam__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.fam__copy .sec-head { margin-bottom: 24px; }
.fam__steps { margin-bottom: 0; }
.fam__steps li:last-child { border-bottom: 1px solid var(--line); }
.fam__code { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.08em; color: var(--accent-text); padding: 1px 6px; border-radius: 5px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.fam__art { position: relative; padding: 0 0 54px; }
.famui { display: grid; gap: 18px; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); }
.famui__hd { display: grid; gap: 6px; text-align: center; }
.famui__k { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.famui__t { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.famui__list { display: grid; gap: 10px; }
.famui__row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); }
.famui__row.is-on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.famui__av { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(140deg, #3A352A, #15130F); color: #E5C568; font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; }
.famui__av--2 { background: linear-gradient(140deg, #E2BC5C, #B98724); color: #1D1503; }
.famui__av--add { background: transparent; border: 1.5px dashed var(--line-2); color: var(--text-3); }
.famui__tx { display: grid; gap: 2px; flex: 1; min-width: 0; }
.famui__tx b { font-family: var(--font-display); font-size: var(--fs-18); font-weight: 600; }
.famui__tx small { font-size: var(--fs-13); color: var(--text-3); }
.famui__strip { display: block; margin-top: 4px; }
.famui__strip .strip { height: 16px; gap: 2px; }
.famui__chip, .famui__go { flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: 8px; font-size: var(--fs-12); font-weight: 700; }
.famui__chip--gold { font-family: var(--font-mono); letter-spacing: 0.06em; background: #1C1810; color: #E5C568; }
[data-theme='dark'] .famui__chip--gold { background: rgba(229, 197, 104, 0.12); border: 1px solid rgba(229, 197, 104, 0.35); }
[data-theme='dark'] .famui__av { box-shadow: inset 0 0 0 1px rgba(229, 197, 104, 0.28); }
.famui__go { background: var(--leaf-flat); color: var(--on-accent); }
.famui__row--add { border-style: dashed; background: transparent; }
.famui__code { position: absolute; right: -10px; bottom: 0; display: grid; gap: 2px; padding: 12px 18px 13px; border-radius: 14px; background: #16130D; color: #F2ECDD; border: 1px solid rgba(229, 197, 104, 0.3); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.6); transform: rotate(3deg); }
.famui__code-k { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #A99F8A; }
.famui__code b { font-family: var(--font-mono); font-size: 1.6rem; font-weight: 700; letter-spacing: 0.12em; color: #F3D98B; line-height: 1.1; }
.famui__code small { font-size: 12px; color: #A99F8A; }
@media (max-width: 900px) { .fam__in { grid-template-columns: minmax(0, 1fr); } .fam__art { width: min(100%, 520px); justify-self: center; } }
@media (max-width: 520px) { .famui__go { display: none; } .famui__code { right: 0; } .fam__art { padding-bottom: 84px; } .famui__row { padding: 10px 12px; gap: 12px; } .famui__av { width: 42px; height: 42px; } }

/* Still need help. */
.still { overflow: hidden; }
.still__in { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.still__copy { display: grid; gap: 22px; }
.still__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.still__list { display: grid; border-top: 1px solid var(--line-2); }
.still__list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line-2); }
.still__list small { display: block; font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.still__list a { color: var(--text); font-size: var(--fs-18); }
.still__list a:hover { color: var(--accent-text); }
.still__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: #E5C568; flex: none; }
@media (max-width: 860px) { .still__in { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .still__btns .btn { width: 100%; } }

/* ══════════════════════════════════════════════════════════════════
   Contact
   ══════════════════════════════════════════════════════════════════ */
.phero--short { padding-bottom: clamp(32px, 4vw, 56px); }
.contact { padding-top: clamp(24px, 3vw, 40px); }
.contact__in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.cform__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field__count { margin-left: auto; font-weight: 500; font-size: var(--fs-12); color: var(--text-3); font-variant-numeric: tabular-nums; }
.topic-note { font-size: var(--fs-14); color: var(--text-2); padding-left: 14px; border-left: 2px solid var(--accent-line); min-height: 0; }
.topic-note:empty { display: none; }
.cform__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 4px; }
.cform__fine { font-size: var(--fs-13); color: var(--text-3); max-width: 34ch; }
@media (max-width: 640px) { .cform__row { grid-template-columns: 1fr; } .cform__foot .btn { width: 100%; } }
.sent { position: relative; display: grid; justify-items: center; text-align: center; gap: 14px; padding: 20px 0 8px; }
.sent:focus { outline: none; }
.sent__seal { width: 120px; height: 120px; color: var(--accent); margin-bottom: 4px; }
.sent__seal svg { width: 100%; height: 100%; }
/* Contact success: the ring switches on light by light round a gold tick. */
.sent__seal .seal-tk { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick 0.9s var(--ease-in-out) 0.1s forwards; }
.sent__seal .seal-core { transform-box: fill-box; transform-origin: 50% 50%; animation: seal-in 0.7s var(--ease-out) both; }
.sent__seal .seal-tick { stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick 0.6s var(--ease-out) 0.5s forwards; }
@keyframes seal-bar { to { opacity: 1; } }
@keyframes seal-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes tick { to { stroke-dashoffset: 0; } }
.reduce-motion .sent__seal .seal-tk, .reduce-motion .sent__seal .seal-tick { animation-delay: 0s !important; }
@media (prefers-reduced-motion: reduce) { .sent__seal .seal-tk, .sent__seal .seal-tick { animation-delay: 0s !important; } }
.sent__title { font-size: var(--fs-32); max-width: 20ch; }
.sent__msg { color: var(--text-2); max-width: 44ch; }
.sent__sum { display: grid; gap: 0; width: 100%; max-width: 440px; margin: 6px 0; text-align: left; border-top: 1px solid var(--line); }
.sent__sum div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-14); }
.sent__sum dt { color: var(--text-3); }
.sent__sum dd { margin: 0; color: var(--text); overflow-wrap: anywhere; white-space: pre-line; max-height: 7.5em; overflow: hidden; }
.sent__btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.cinfo { display: grid; gap: 24px; padding-top: 8px; }
.cinfo__title { font-size: var(--fs-32); }
.cinfo__list { display: grid; border-top: 1px solid var(--line); }
.cinfo__list li { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cinfo__list small { display: block; font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 650; }
.cinfo__list a { font-size: var(--fs-18); color: var(--text); overflow-wrap: anywhere; }
.cinfo__list a:hover { color: var(--accent-text); }
.cinfo__ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); flex: none; }
.cinfo__motto { font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-size: var(--fs-24); line-height: 1.3; color: var(--accent-text); padding-left: 18px; border-left: 2px solid var(--accent); }
.cinfo__more { display: grid; gap: 12px; padding: 18px 20px; border-radius: var(--r-4); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-15); color: var(--text-2); }
.cinfo__more strong { color: var(--text); }
@media (max-width: 900px) { .contact__in { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════════
   Privacy Policy (document layout)
   ══════════════════════════════════════════════════════════════════ */
.policy { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; padding-block: clamp(16px, 3vw, 40px) var(--section); }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc__title { font-size: var(--fs-12); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 650; color: var(--accent-text); padding: 4px 0 14px; list-style: none; cursor: default; }
.toc__title::-webkit-details-marker { display: none; }
.toc__list { display: grid; gap: 2px; border-left: 1px solid var(--line-2); }
.toc__list a { position: relative; display: flex; gap: 12px; padding: 8px 12px 8px 18px; font-size: var(--fs-14); color: var(--text-2); line-height: 1.35; transition: color var(--t-2); }
.toc__list a span { min-width: 16px; font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); color: var(--accent-text); }
.toc__list a::before { content: ''; position: absolute; left: -1px; top: 6px; bottom: 6px; width: 2px; background: var(--accent); transform: scaleY(0); transition: transform var(--t-3) var(--ease-out); }
.toc__list a:hover { color: var(--text); }
.toc__list a.is-active { color: var(--text); font-weight: 600; }
.toc__list a.is-active::before { transform: none; }
.doc { max-width: 70ch; font-size: 1.0625rem; line-height: 1.72; color: var(--text-2); }
.doc strong { color: var(--text); }
.doc__intro { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem); line-height: 1.5; color: var(--text); padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.doc__sec { padding-block: 40px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 20px); }
.doc__sec > * + * { margin-top: 16px; }
.doc__sec h2 { display: flex; align-items: baseline; gap: 16px; font-size: var(--fs-32); line-height: 1.15; margin-bottom: 20px; }
.doc__n { flex: none; font-family: var(--font-accent); font-style: normal; font-stretch: var(--accent-stretch); font-weight: 400; color: var(--accent-text); font-size: 0.85em; min-width: 1.2em; }
.doc__list { display: grid; gap: 10px; }
.doc__list li, .nocollect li { position: relative; padding-left: 22px; }
.doc__list li::before, .nocollect li::before { content: ''; position: absolute; left: 3px; top: 0.66em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.doc__steps { display: grid; gap: 12px; counter-reset: st; }
.doc__steps li { position: relative; padding-left: 44px; counter-increment: st; }
.doc__steps li::before { content: counter(st); position: absolute; left: 0; top: 0.15em; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: var(--fs-16); color: var(--accent-text); border: 1px solid var(--accent-line); background: var(--accent-soft); line-height: 1; }
.doc__note { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-3); background: var(--surface-2); border: 1px solid var(--line); font-size: var(--fs-15); line-height: 1.6; }
.doc__note .i { color: var(--accent-text); margin-top: 3px; }
.doc__callout { padding: clamp(18px, 3vw, 28px); border-radius: var(--r-4); background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; gap: 14px; color: var(--text); }
.nocollect { padding: 20px 22px; border-radius: var(--r-4); border: 1px solid var(--line-2); background: var(--surface); display: grid; gap: 12px; }
.nocollect h3 { display: flex; align-items: center; gap: 10px; font-size: var(--fs-20); }
.nocollect h3 .i { color: var(--accent-text); }
.nocollect ul { display: grid; gap: 8px; }
.doc__contact { border-bottom: 0; }
.doc__contact h2 { font-size: var(--fs-32); }
.doc__contact-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.doc__contact-list li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.doc__contact-list .i { color: var(--accent-text); }
.doc__contact-list small { display: block; font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 650; line-height: 1.4; }
.doc__contact-list a { color: var(--text); }
@media (max-width: 980px) {
  .policy { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc__box { border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); padding: 6px 18px; }
  .toc__title { cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; }
  .toc__title::after { content: ''; width: 10px; height: 10px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--t-3) var(--ease-out); }
  .toc__box[open] .toc__title::after { transform: rotate(-135deg) translate(-2px, -2px); }
  .toc__list { margin-bottom: 12px; }
  .doc { max-width: none; }
}

/* Data tables: stacked on phones. */
.dtable { border-radius: var(--r-4); border: 1px solid var(--line); background: var(--surface); overflow-x: auto; }
.dtable table { min-width: 0; font-size: var(--fs-15); line-height: 1.55; }
.dtable th, .dtable td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.dtable thead th { font-size: var(--fs-12); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 650; background: var(--surface-2); padding-block: 12px; }
.dtable tbody th { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-18); color: var(--text); width: 24%; line-height: 1.3; }
.dtable tbody tr:last-child > * { border-bottom: 0; }
.dtable td { color: var(--text-2); }
.dtable ul { display: grid; gap: 4px; }
.dtable ul li { position: relative; padding-left: 16px; }
.dtable ul li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.dtable--retain td:nth-child(2) { width: 1%; white-space: nowrap; }
@media (max-width: 720px) {
  .dtable { overflow: visible; background: transparent; border: 0; }
  .dtable table, .dtable tbody, .dtable tr, .dtable th, .dtable td { display: block; width: auto; }
  .dtable thead { display: none; }
  .dtable tr { border: 1px solid var(--line); border-radius: var(--r-4); background: var(--surface); padding: 6px 0; }
  .dtable tr + tr { margin-top: 12px; }
  .dtable tbody th, .dtable td { border-bottom: 0; padding: 10px 18px; }
  .dtable tbody th { width: auto; border-bottom: 1px solid var(--line); }
  .dtable td::before { content: attr(data-label); display: block; font-size: var(--fs-12); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); font-weight: 650; margin-bottom: 4px; }
  .dtable--retain td:nth-child(2) { width: auto; white-space: normal; }
}

/* ══════════════════════════════════════════════════════════════════
   Delete Account
   ══════════════════════════════════════════════════════════════════ */
.methods__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 36px); }
.method { display: grid; gap: 16px; align-content: start; justify-items: start; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-5); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); }
.method h3 { font-size: var(--fs-32); }
.method p { color: var(--text-2); }
.method__body { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: start; width: 100%; }
.method__steps { display: grid; gap: 10px; counter-reset: ms; color: var(--text-2); }
.method__steps li { position: relative; padding-left: 38px; counter-increment: ms; }
.method__steps li::before { content: counter(ms); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-13); font-weight: 700; color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.method__steps strong { color: var(--text); }
.pmock { display: grid; gap: 6px; padding: 14px 12px 0; border-radius: 22px; background: var(--bg); border: 6px solid #1F1D1A; box-shadow: var(--shadow-3); font-size: var(--fs-13); overflow: hidden; transform: rotate(2deg); }
.pmock__head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pmock__head b { display: block; font-size: var(--fs-13); }
.pmock__head small { display: block; font-size: 11px; color: var(--text-3); }
.pmock__av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: linear-gradient(140deg, #3A352A, #15130F); color: #E5C568; flex: none; }
.pmock__row { display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 10px; color: var(--text-2); font-weight: 550; }
.pmock__row .i { width: 15px; height: 15px; color: var(--text-3); }
.pmock__row--danger { color: var(--bad-text); background: var(--bad-bg); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--bad) 45%, transparent); }
.pmock__row--danger .i { color: currentColor; }
.pmock__tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 6px -12px 0; padding: 8px 4px 10px; border-top: 1px solid var(--line); color: var(--text-3); }
.pmock__tabs span { display: grid; justify-items: center; font-size: 10px; font-weight: 650; gap: 2px; }
.pmock__tabs .i { width: 15px; height: 15px; }
.pmock__tabs .is-on { color: var(--accent-text); }
@media (max-width: 1000px) { .methods__in { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .method__body { grid-template-columns: 1fr; } .pmock { max-width: 220px; justify-self: center; } }

.dform__in { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.dform__side { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.dform__side h2 { font-size: var(--fs-44); }
.dform__facts { display: grid; gap: 0; border-top: 1px solid var(--line); margin-top: 6px; }
.dform__facts li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-15); }
.dform__facts .i { color: var(--accent-text); }
.form-card--danger { border-color: color-mix(in srgb, var(--bad) 28%, var(--line)); }
.dsent { position: relative; display: grid; gap: 16px; justify-items: start; }
.dsent:focus { outline: none; }
.dsent__badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: var(--ok-bg); color: var(--ok-text); font-weight: 650; font-size: var(--fs-14); }
.dsent__title { font-size: var(--fs-32); }
.dsent__sum { display: grid; width: 100%; border-top: 1px solid var(--line); }
.dsent__sum div { display: grid; grid-template-columns: 160px 1fr; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dsent__sum dt { color: var(--text-3); font-size: var(--fs-14); }
.dsent__sum dd { margin: 0; font-weight: 600; color: var(--text); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.dsent__ref { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 8px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); }
.dsent__sum .chip { white-space: normal; min-height: 28px; padding-block: 3px; }
.dsent__fine { font-size: var(--fs-14); color: var(--text-2); }
@media (max-width: 900px) { .dform__in { grid-template-columns: 1fr; } .dform__side { position: static; } }
@media (max-width: 520px) { .dsent__sum div { grid-template-columns: 1fr; gap: 4px; } }

.tline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.tline::before { content: ''; position: absolute; left: 8px; right: 8px; top: 8px; height: 1px; background: linear-gradient(90deg, var(--accent), var(--accent-line)); }
.tline li { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 36px; }
.tline__dot { position: absolute; left: 1px; top: 1px; width: 15px; height: 15px; border-radius: 50%; background: linear-gradient(180deg, #FFE4A0, #C98C28); box-shadow: 0 0 0 4px var(--bg-tint), 0 0 0 5px var(--accent-line); }
.tline__when { font-size: var(--fs-12); letter-spacing: 0.14em; text-transform: uppercase; font-weight: 650; color: var(--accent-text); }
.tline h3 { font-size: var(--fs-24); }
.tline p { color: var(--text-2); font-size: var(--fs-15); }
@media (max-width: 900px) {
  .tline { grid-template-columns: 1fr; gap: 0; }
  .tline::before { left: 8px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; background: linear-gradient(180deg, var(--accent), var(--accent-line)); }
  .tline li { padding: 0 0 28px 44px; }
}
.dhelp { display: flex; gap: 18px; align-items: flex-start; margin-top: clamp(40px, 5vw, 64px); padding: clamp(20px, 3vw, 32px); border-radius: var(--r-5); background: var(--surface); border: 1px solid var(--line); }
.dhelp__ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); flex: none; }
.dhelp h3 { font-size: var(--fs-24); margin-bottom: 6px; }
.dhelp p { color: var(--text-2); max-width: 70ch; }
@media (max-width: 520px) { .dhelp { flex-direction: column; } }

/* ══════════════════════════════════════════════════════════════════
   404
   ══════════════════════════════════════════════════════════════════ */
.nf { position: relative; overflow: hidden; overflow: clip visible; min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: clamp(24px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); }
.nf__in { position: relative; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.nf__art { position: relative; width: min(100%, 480px); justify-self: center; }
.nf__copy { display: grid; gap: 22px; }
.nf__copy h1 { font-size: clamp(2.5rem, 1.2rem + 4vw, 4.4rem); line-height: 1.03; letter-spacing: -0.026em; font-weight: 450; }
.nf__copy h1 em { display: block; }
.nf__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.nf__page { display: flex; align-items: center; gap: 18px; margin-top: 10px; padding: 14px; max-width: 460px; border-radius: var(--r-4); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.nf__page img { width: 64px; border-radius: 3px; box-shadow: 0 8px 18px -8px rgba(40, 30, 5, 0.5); transform: rotate(-3deg); flex: none; }
.nf__page figcaption { font-size: var(--fs-14); color: var(--text-2); }
.nf__page strong { display: block; color: var(--text); font-family: var(--font-display); font-size: var(--fs-18); font-weight: 500; }
@media (max-width: 900px) { .nf__in { grid-template-columns: 1fr; } .nf__art { width: min(100%, 420px); } .nf { min-height: 0; } }
@media (max-width: 520px) { .nf__btns .btn { width: 100%; } }

/* ══════════════════════════════════════════════════════════════════
   Certificate check (/verify/): a ticket scanner
   ══════════════════════════════════════════════════════════════════ */
.vhero .phero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.vhero .phero__copy { padding-top: clamp(0px, 3vw, 40px); }
.vhero .phero__art { width: min(100%, 540px); }
@media (max-width: 900px) { .vhero .phero__in { grid-template-columns: minmax(0, 1fr); } .vhero .phero__art { width: min(100%, 540px); } }

/* The number field: one wide ticket-like box, mono type, the Scan button behind a perforation. */
.vform { max-width: 560px; }
.vform__field { display: grid; gap: 10px; }
.vform__box { position: relative; display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); transition: border-color var(--t-2), box-shadow var(--t-2); }
.vform__box:focus-within { border-color: var(--accent); box-shadow: var(--shadow-2), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.has-error .vform__box { border-color: var(--bad); }
.vform__icon { display: grid; place-items: center; width: 44px; flex: none; color: var(--accent-text); }
.vform__icon .i { width: 22px; height: 22px; }
.vform__input { flex: 1 1 0; width: 100%; min-width: 0; min-height: 52px; padding: 0 6px; border: 0; background: transparent; color: var(--text); font-family: var(--font-mono); font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; -webkit-appearance: none; appearance: none; }
.vform__input::placeholder { color: var(--text-3); opacity: 0.55; }
.vform__input:focus { outline: none; }
.vform__btn { min-height: 52px; padding: 0 22px; border-radius: 12px; overflow: visible; }
.vform__btn::before { content: ''; position: absolute; left: -8px; top: 6px; bottom: 6px; border-left: 1.5px dashed var(--line-2); }
.vform__hint { font-size: var(--fs-14); color: var(--text-3); }
.vform__hint b { font-family: var(--font-mono); font-weight: 600; color: var(--text-2); letter-spacing: 0.04em; }
.vdemo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: var(--fs-14); color: var(--text-3); }
.vdemo__k { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; background: var(--sunken); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.vdemo__n { min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px dashed var(--accent-line); font-family: var(--font-mono); font-size: var(--fs-13); font-weight: 600; letter-spacing: 0.04em; color: var(--accent-text); transition: background-color var(--t-2), border-color var(--t-2); }
.vdemo__n:hover { background: var(--accent-soft); border-style: solid; }
@media (max-width: 520px) { .vform__icon { width: 34px; } .vform__btn { padding: 0 16px; } }

/* The scanner: a night stage (same stock as the other page heroes) holding an ivory ticket. */
.vscan { position: relative; display: grid; gap: 18px; padding: clamp(16px, 3.4vw, 28px); border-radius: 30px; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 20%, #1E1910 0%, #110F0B 55%, #0A0907 100%); border: 1px solid rgba(229, 197, 104, 0.18);
  box-shadow: 0 40px 90px -40px rgba(40, 28, 5, 0.55), inset 0 1px 0 rgba(255, 244, 204, 0.08); color: #F2ECDD;
  --text: #F2ECDD; --text-2: #C9C0AC; --text-3: #8A8373; --line: #2E2A22; --line-2: #423C30; --accent-text: #E5C568; --accent-soft: #2A2210; --accent-line: #6B5420; --surface: #211D16; }
[data-theme='dark'] .vscan { box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 244, 204, 0.06); }
.vscan::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(229, 197, 104, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(229, 197, 104, 0.07) 1px, transparent 1px); background-size: 36px 36px; background-position: center; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.vscan::after { content: ''; position: absolute; left: 50%; top: 34%; z-index: -1; width: 90%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 180, 80, 0.22), rgba(229, 180, 80, 0.05) 55%, transparent 72%); }
.vscan[data-state='ok']::after { background: radial-gradient(closest-side, rgba(126, 200, 150, 0.2), rgba(229, 180, 80, 0.06) 55%, transparent 72%); }
.vscan[data-state='hold']::after { background: radial-gradient(closest-side, rgba(240, 160, 60, 0.22), rgba(229, 180, 80, 0.05) 55%, transparent 72%); }
.vscan[data-state='none']::after, .vscan[data-state='format']::after { background: radial-gradient(closest-side, rgba(224, 122, 85, 0.16), rgba(229, 180, 80, 0.04) 55%, transparent 72%); }
.vscan__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #A99F8A; }
.vscan__brand { display: inline-flex; align-items: center; gap: 10px; }
.vscan__led { --led: #E5C568; width: 8px; height: 8px; border-radius: 50%; background: var(--led); box-shadow: 0 0 0 3px color-mix(in srgb, var(--led) 22%, transparent), 0 0 12px var(--led); animation: pst-blink 2.4s var(--ease-in-out) infinite; }
.vscan__status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; border: 1px solid rgba(229, 197, 104, 0.3); color: #F3D98B; }
.vscan[data-state='scan'] .vscan__led { --led: #F0643C; animation-duration: 0.5s; }
.vscan[data-state='ok'] .vscan__led { --led: #7FD3A0; animation: none; }
.vscan[data-state='hold'] .vscan__led { --led: #F2A93B; animation: none; }
.vscan[data-state='none'] .vscan__led, .vscan[data-state='format'] .vscan__led { --led: #E9785A; animation: none; }
.vscan[data-state='ok'] .vscan__status { color: #9BE0B6; border-color: rgba(127, 211, 160, 0.4); }
.vscan[data-state='hold'] .vscan__status { color: #F6C77A; border-color: rgba(242, 169, 59, 0.45); }
.vscan[data-state='none'] .vscan__status, .vscan[data-state='format'] .vscan__status { color: #F2A48C; border-color: rgba(233, 120, 90, 0.45); }
.vscan__live { display: grid; gap: 18px; outline: none; container-type: inline-size; }

/* The ticket (ivory stock on every theme). Main part + stub, notched at the perforation. */
.vtk { --stub: clamp(104px, 27cqw, 136px); --notch: 10px; --ink: #1C1810; --muted: #8A8270; --perf: #DCD2BB; --pass-bg: #FFFDF6; --pass-ink: #1C1810; --pass-off: rgba(28, 24, 16, 0.1); --state: #8A8270;
  position: relative; color: var(--ink); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.5)) drop-shadow(0 1px 1px rgba(0, 0, 0, 0.1)); animation: vt-in 380ms var(--ease-out) both; }
.vtk__sheet { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) var(--stub); border-radius: 16px; background: #FFFDF6; overflow: hidden;
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.vtk__sheet::after { content: ''; position: absolute; top: calc(var(--notch) + 6px); bottom: calc(var(--notch) + 6px); right: var(--stub); border-left: 2px dashed var(--perf); pointer-events: none; }
.vtk__main { display: grid; gap: 12px; padding: clamp(14px, 4cqw, 22px); min-width: 0; }
.vtk__hd { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vtk__issuer { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; min-width: 0; }
.vtk__logo { width: 20px; height: 20px; flex: none; border-radius: 5px; overflow: hidden; }
.vtk__logo .logo__mark { width: 100%; height: 100%; display: block; }
.vtk__kind { color: #745B0E; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vtk__no small { display: block; font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vtk__no b { display: block; margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 12cqw, 3.3rem); line-height: 0.95; letter-spacing: -0.035em; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtk__no b.is-empty { color: #D3CAB6; }
.vtk__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; padding-top: 10px; border-top: 1px dashed var(--perf); }
.vtk__fields div { display: grid; gap: 3px; min-width: 0; }
.vtk__wide { grid-column: 1 / -1; }
.vtk__fields dt { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.vtk__fields dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(13px, 3.9cqw, 16px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vtk--idle .vtk__fields dd, .vtk--scan .vtk__fields dd, .vtk--none .vtk__fields dd { color: #B5AC98; }
.vtk--scan .vtk__fields dd { animation: pst-blink 1.1s var(--ease-in-out) infinite; }
.vtk__bc { min-width: 0; }
.vtk--hold { --pass-ink: #B98A3E; }
.vtk__stub { display: grid; justify-items: center; align-content: center; gap: 8px; padding: 16px 10px; text-align: center; min-width: 0; }
.vtk__stub-k { font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.vtk__seal { display: block; width: min(100%, 92px); color: #B8AD96; }
.vtk__seal svg { width: 100%; height: auto; display: block; overflow: visible; }
.vtk--ok .vtk__seal svg, .vtk--hold .vtk__seal svg, .vtk--none .vtk__seal svg { filter: drop-shadow(0 6px 10px rgba(80, 56, 8, 0.28)); animation: vseal-in 0.8s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
@keyframes vseal-in { from { transform: scale(0.6) rotate(-40deg); opacity: 0; } }
.vtk--scan .vtk__seal svg { animation: vseal-spin 6s linear infinite; }
@keyframes vseal-spin { to { transform: rotate(360deg); } }
.vtk__state { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--state); }
.vtk--ok { --state: #1E6B45; --stamp: #1E7A4C; }
.vtk--hold { --state: #94590A; --stamp: #B26A0C; }
.vtk--none { --state: #A63E1C; --stamp: #B0451F; }

/* The scan line: a red laser with a soft trail, swept over the ticket while the check runs. */
.vtk__laser { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; }
.vtk__laser::before { content: ''; position: absolute; inset: 0; border-bottom: 2px solid #F0643C; background: linear-gradient(180deg, transparent 72%, rgba(240, 100, 60, 0.16)); box-shadow: 0 6px 14px -4px rgba(240, 100, 60, 0.75); transform: translateY(-100%); }
.is-scanning .vtk__laser { opacity: 1; }
.is-scanning .vtk__laser::before { animation: vtk-scan 1.05s var(--ease-in-out) infinite alternate; }
@keyframes vtk-scan { from { transform: translateY(-100%); } to { transform: translateY(0); } }

/* The stamp lands in its slot beside the barcode, like the stamps on the learner pass. */
.vtk__foot { display: flex; align-items: center; gap: 14px; min-width: 0; }
.vtk__foot .vtk__bc { flex: 1; }
.vtk__bc .bc-svg { width: 100%; height: 46px; }
.vtk__slot { position: relative; flex: none; width: clamp(108px, 33cqw, 148px); height: 58px; display: grid; place-items: center; border: 1.5px dashed var(--perf); border-radius: 10px; }
.vtk__slot-k { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #C4BAA4; }
.vtk--scan .vtk__slot-k { animation: pst-blink 1.1s var(--ease-in-out) infinite; }
.vtk .vtk__stamp { --pass-bg: #FFFDF6; opacity: 0; padding: 4px 10px 5px; border-width: 2.5px; border-radius: 8px; box-shadow: inset 0 0 0 2.5px #FFFDF6, inset 0 0 0 4px currentColor; background: #FFFDF6; mix-blend-mode: multiply; white-space: nowrap; }
.vtk .vtk__stamp small { font-size: 7px; }
.vtk .vtk__stamp b { font-family: var(--font-display); font-weight: 800; font-size: clamp(15px, 5.4cqw, 20px); letter-spacing: 0.05em; line-height: 1.05; }
.vtk .vtk__stamp i { font-size: 7px; max-width: none; }
.vtk .vtk__stamp.is-new { opacity: 1; animation: stamp-in 0.55s cubic-bezier(0.3, 1.5, 0.5, 1) both; }

/* The words under the ticket. */
.vscan__out { display: grid; gap: 10px; font-size: var(--fs-15); line-height: 1.6; color: var(--text-2); animation: vt-in 420ms var(--ease-out) 120ms both; }
.vscan__title { font-size: clamp(1.2rem, 1rem + 1vw, 1.5rem); line-height: 1.2; color: #F2ECDD; letter-spacing: -0.02em; }
.vscan__out b { color: #F2ECDD; font-weight: 650; }
.vscan__note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(229, 197, 104, 0.07); border: 1px solid rgba(229, 197, 104, 0.2); font-size: var(--fs-14); }
.vscan__note .i { color: #E5C568; margin-top: 2px; }
.vscan__note--warn { background: rgba(242, 169, 59, 0.1); border-color: rgba(242, 169, 59, 0.35); }
.vscan__note--warn .i { color: #F2A93B; }
.vscan__tips { display: grid; gap: 6px; font-size: var(--fs-14); }
.vscan__tips li { position: relative; padding-left: 18px; }
.vscan__tips li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 2px; background: #E5C568; transform: rotate(45deg); }
.vscan__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Narrow scanner: the stub moves below the ticket and the perforation turns horizontal. */
@container (max-width: 420px) {
  .vtk { --stub-h: 74px; }
  .vtk__sheet { grid-template-columns: minmax(0, 1fr);
    -webkit-mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 98%, #000) right / 51% 100% no-repeat;
            mask: radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 98%, #000) right / 51% 100% no-repeat; }
  .vtk__sheet::after { top: auto; bottom: var(--stub-h); left: calc(var(--notch) + 6px); right: calc(var(--notch) + 6px); border-left: 0; border-top: 2px dashed var(--perf); }
  .vtk__stub { height: var(--stub-h); grid-template-columns: auto auto minmax(0, 1fr); justify-items: start; align-items: center; justify-content: start; gap: 12px; padding: 10px 18px; }
  .vtk__seal { width: 50px; order: -1; }
  .vtk__state { justify-self: end; }
}

/* Where the number is printed. */
.vwhere__in { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.vwhere { position: relative; margin: 0; justify-self: center; width: min(100%, 430px); --cx: 78.6%; --cy: 13%; }
.vwhere__cert { position: relative; container-type: inline-size; border-radius: 4px; overflow: hidden; background: #fff; transform: rotate(-2deg); box-shadow: 0 44px 70px -30px rgba(40, 28, 5, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.06); }
[data-theme='dark'] .vwhere__cert { box-shadow: 0 44px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.vwhere__cert img { width: 100%; display: block; }
.vwhere__num { position: absolute; left: var(--cx); top: var(--cy); transform: translate(-50%, -50%); font-family: Helvetica, Arial, sans-serif; font-weight: 700; font-size: var(--cs, 2.7cqw); line-height: 1; color: var(--cc, #282D30); white-space: nowrap; }
.vwhere__ring { position: absolute; left: var(--cx); top: var(--cy); width: 21cqw; height: 9cqw; transform: translate(-50%, -50%); border: 2px solid #C9982F; border-radius: 999px; box-shadow: 0 0 0 5px rgba(201, 152, 47, 0.2); animation: vring 2.4s var(--ease-in-out) infinite; }
@keyframes vring { 50% { box-shadow: 0 0 0 9px rgba(201, 152, 47, 0.06); } }
.vwhere__sample { position: absolute; left: 7%; top: 5.4%; padding: 3px 8px; border-radius: 4px; background: #1C1810; color: #F3D98B; font-family: var(--font-mono); font-size: clamp(9px, 2.4cqw, 11px); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.vwhere__loupe { position: absolute; left: var(--cx); top: calc(var(--cy) + 9%); transform: translateX(-62%) rotate(-2deg); display: grid; gap: 4px; padding: 14px 18px 15px; border-radius: 14px; background: #16130D; color: #F2ECDD; border: 1px solid rgba(229, 197, 104, 0.3); box-shadow: 0 24px 40px -18px rgba(0, 0, 0, 0.7); white-space: nowrap; }
.vwhere__loupe::before { content: ''; position: absolute; left: 62%; bottom: 100%; height: 28px; border-left: 2px dashed #C9982F; }
.vwhere__loupe::after { content: ''; position: absolute; left: calc(62% - 4px); bottom: calc(100% + 26px); width: 10px; height: 10px; border-radius: 50%; background: #C9982F; }
.vwhere__loupe-k, .vwhere__loupe-s { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #A99F8A; }
.vwhere__loupe b { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1; letter-spacing: -0.03em; color: #F3D98B; }
.vwhere__copy { display: grid; gap: 22px; }
.vfacts { display: grid; border-top: 1px solid var(--line-2); }
.vfacts li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.vfacts__ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent-text); }
.vfacts h3 { font-size: var(--fs-20); margin-bottom: 4px; }
.vfacts p { color: var(--text-2); }
@media (max-width: 900px) { .vwhere__in { grid-template-columns: 1fr; } .vwhere { width: min(100%, 380px); margin-bottom: 40px; } }

/* The three stamps. */
.vstamps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
.vst { display: grid; gap: 12px; align-content: start; }
.vst h3 { font-size: var(--fs-24); margin-top: 8px; }
.vst p { color: var(--text-2); }
.vst__tk { position: relative; display: grid; gap: 14px; padding: 22px 22px 20px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); --pass-bg: var(--surface);
  -webkit-mask: radial-gradient(circle 9px at 0 62%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, #0000 96%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 62%, #0000 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 62%, #0000 96%, #000) right / 51% 100% no-repeat; }
.vst__no { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1; letter-spacing: -0.035em; color: var(--text); }
.vst--none .vst__no { color: var(--text-3); }
.vst__bc { opacity: 0.9; }
.vst--hold .vst__bc { --pass-ink: #B98A3E; }
.vst__stamp { position: absolute; right: 9%; top: 18%; padding: 5px 12px 6px; border-width: 2.5px; border-radius: 8px; box-shadow: inset 0 0 0 2.5px var(--surface), inset 0 0 0 4px currentColor; }
.vst__stamp b { font-family: var(--font-display); font-weight: 800; font-size: clamp(18px, 1rem + 0.6vw, 24px); }
.vst__stamp small, .vst__stamp i { font-size: 7.5px; max-width: none; }
.vst--ok { --stamp: #1E7A4C; }
.vst--hold { --stamp: #B26A0C; }
.vst--none { --stamp: #B0451F; }
[data-theme='dark'] .vst--ok { --stamp: #6CC796; }
[data-theme='dark'] .vst--hold { --stamp: #EDA54A; }
[data-theme='dark'] .vst--none { --stamp: #E9785A; }
@media (max-width: 900px) { .vstamps { grid-template-columns: 1fr; max-width: 520px; } }

/* Who checks: three small tickets beside the questions. */
.vwho { display: grid; gap: 10px; max-width: 420px; }
.vwho .tk { --tk-bg: var(--surface); --cut: 64px; }
.vwho .tk:hover { transform: none; }
.vwho .tk__t { white-space: normal; }
.vwho .tk__stub { color: var(--accent-text); }
.vwho .tk__st { color: inherit; }
.vwho .tk__st .i { width: 22px; height: 22px; }
.vfaq .faq__list code { font-family: var(--font-mono); font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--sunken); border: 1px solid var(--line); word-break: break-all; }

/* ══════════════════════════════════════════════════════════════════
   Print (policy + deletion pages)
   ══════════════════════════════════════════════════════════════════ */
@media print {
  :root, [data-theme] { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --text-2: #222; --text-3: #555; --line: #ccc; --line-2: #bbb; --accent-text: #5a4308; --accent-soft: #fff; --sunken: #f4f1ea; --accent-line: #d9c48f; --bad-text: #9a3421; --bad-bg: #fff; --warn-bg: #fff; --ok-bg: #fff; }
  code { background: #f4f1ea !important; color: #000 !important; border-color: #ccc !important; }
  .doc__sec h2 { padding-left: 2px; }
  html, body { background: #fff !important; color: #000; }
  .site-header, .site-footer, .skip-link, .announce, .playnote, .toast-stack, .phero__art, .phero__cta, .toc, .pgrid, .crumbs, .methods .btn, .dform-sec, .mnav { display: none !important; }
  .js [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
  .phero { padding: 0 0 12px; }
  .phero__in, .policy { display: block; }
  .policy { padding: 0; }
  .wrap { width: 100%; }
  .doc { max-width: none; font-size: 11pt; color: #000; }
  .doc__sec { padding-block: 14px; break-inside: auto; }
  .doc__sec h2 { break-after: avoid; font-size: 16pt; }
  .dtable, .dtable tr { break-inside: avoid; }
  .docmeta { border: 1px solid #bbb; }
  a { color: #000; text-decoration: underline; }
  .section { padding-block: 16px; }
}

/* Document-style pages keep the stage a little smaller on tablets so the content starts sooner. */
@media (max-width: 900px) and (min-width: 521px) { .phero--short .phero__art { width: min(100%, 400px); } }
.form-card__sub .req { color: var(--bad-text); }
@media (max-width: 520px) {
  .fit__leaf--2 { transform: translate(-72%, -48%) rotate(-8deg); }
  .fit__leaf--3 { transform: translate(-28%, -48%) rotate(7deg); }
}
/* Small phones: keep the "number is printed here" callout inside the certificate picture. */
@media (max-width: 560px) {
  .vwhere__loupe { left: auto; right: 3%; transform: rotate(-2deg); }
  .vwhere__loupe::before, .vwhere__loupe::after { left: auto; right: 22%; }
  .vwhere__loupe::after { right: calc(22% - 4px); }
}

/* ══════════════════════════════════════════════════════════════════
   The 50 levels (/levels/) — every level, pre-rendered for search and AI engines
   ══════════════════════════════════════════════════════════════════ */
.lvfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 4px 0 0; max-width: 520px; border-block: 1px solid var(--line); }
.lvfacts div { padding: 12px 14px 12px 0; display: grid; gap: 2px; min-width: 0; }
.lvfacts div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.lvfacts dt { font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.lvfacts dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: var(--fs-32); line-height: 1; }
.lvjump { display: flex; flex-wrap: wrap; gap: 6px; }
.lvjump a { padding: 6px 11px; border-radius: 99px; border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--surface); }
.lvjump a:hover { border-color: var(--accent); color: var(--accent-text); }
.lvparts__in { display: grid; gap: clamp(22px, 3vw, 34px); }
.lvp { scroll-margin-top: calc(var(--header-h) + 16px); padding: clamp(18px, 2.6vw, 28px); border-radius: var(--r-5); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); min-width: 0; }
.lvp__head { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px; margin-bottom: 18px; }
.lvp__route { display: flex; align-items: center; gap: 8px; margin: 0; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); letter-spacing: -0.03em; }
.lvp__route > i { position: relative; width: 44px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 7px); }
.lvp__route .plane { position: absolute; left: 50%; bottom: 3px; width: 18px; height: 18px; transform: translateX(-50%); }
.lvp__t { font-size: var(--fs-24); margin-top: 4px; }
.lvp__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.lvx { scroll-margin-top: calc(var(--header-h) + 16px); display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px 14px; border-radius: var(--r-3); border: 1px solid var(--line); background: var(--bg); min-width: 0; }
.lvx:target { border-color: var(--accent); box-shadow: var(--glow); }
.lvx__n { display: grid; place-items: center; height: 52px; border-radius: 10px; background: var(--inverse); color: var(--accent); font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.lvx__main { display: grid; gap: 3px; min-width: 0; }
.lvx__t { font-family: var(--font-ui); font-size: var(--fs-16); font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.lvx__s { font-size: var(--fs-13); color: var(--text-3); margin: 0; }
.lvx__more summary { cursor: pointer; font-size: var(--fs-13); font-weight: 600; color: var(--accent-text); margin-top: 4px; list-style: none; }
.lvx__more summary::-webkit-details-marker { display: none; }
.lvx__more summary::after { content: ' +'; }
.lvx__more[open] summary::after { content: ' −'; }
.lvx__more p { margin: 6px 0 2px; font-size: var(--fs-13); line-height: 1.6; color: var(--text-2); }
@media (max-width: 860px) { .lvp__list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .lvp__head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .lvfacts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvfacts div:nth-child(3) { padding-left: 0; border-left: 0; }
  .lvfacts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
