/* Juzzle's website: the app's night teal, cream ink and gold, its mode
   colours, Outfit and Literata. Everything is served from this site (fonts
   included), so a visit sends nothing to anyone else. */

@font-face { font-family: "Outfit"; src: url("fonts/outfit-400.fb57bb8802.woff") format("woff"); font-weight: 300 449; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-500.593301bcb0.woff") format("woff"); font-weight: 450 549; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-600.cdef98bee1.woff") format("woff"); font-weight: 550 649; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-700.5ba4f6c1b7.woff") format("woff"); font-weight: 650 749; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("fonts/outfit-800.8fc4a9c537.woff") format("woff"); font-weight: 750 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-400.b4b51775be.woff") format("woff"); font-weight: 300 449; font-display: swap; }
@font-face { font-family: "Literata"; src: url("fonts/literata-500.5af743c6e8.woff") format("woff"); font-weight: 450 900; font-display: swap; }
@font-face { font-family: "Nastaliq"; src: url("fonts/nastaliq.84ab22ca34.woff") format("woff"); font-display: swap; }
@font-face { font-family: "ArabicUI"; src: url("fonts/arabic-ui.b65370ad1d.woff") format("woff"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "AmiriNames"; src: url("fonts/amiri-names.0d4a47767d.woff") format("woff"); font-display: swap; }

:root {
  --bg: #081012;
  --bg-2: #0B1518;
  --surface: #0F1B1F;
  --raised: #152529;
  --highest: #1C3137;
  --stroke: #223A40;
  --stroke-2: #2F4D54;
  --text: #F4EFE4;
  --text-2: #A9BAB8;
  --muted: #6F8786;
  --gold: #F1C46B;
  --gold-deep: #C9973A;
  --jade: #3FD69B;
  --paper: #F7EFDD;

  --listen: #7CC4FF;
  --next: #B69CFF;
  --spot: #FF8E6E;
  --rebuild: #3FD69B;
  --order: #F1C46B;
  --twins: #FF7EB6;
  --locate: #5EE0D6;

  --display: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Literata", Georgia, "Times New Roman", serif;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 1180px;
  --radius: 22px;
  --bar: 74px; /* the header's height */
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(241, 196, 107, .32); color: var(--text); }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 1rem; top: 1rem; z-index: 100; background: var(--gold); color: #1a1406; padding: .6rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ------------------------------------------------------------ header */
.masthead {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: linear-gradient(180deg, rgba(8, 16, 18, .86), rgba(8, 16, 18, .62));
  border-bottom: 1px solid rgba(34, 58, 64, .55);
}
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--bar); }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand { gap: .7rem; }
.brand .emblem { height: 44px; width: auto; }
.brand .wordmark { height: 29px; width: auto; margin-top: 4px; }
@media (max-width: 560px) { .brand .emblem { height: 38px; } .brand .wordmark { height: 25px; } }
.nav { display: flex; align-items: center; gap: clamp(.25rem, 2vw, 1.75rem); }
.nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .95rem; padding: .35rem .2rem; transition: color .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav .optional { display: none; }
@media (min-width: 760px) { .nav .optional { display: inline; } }
.pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid rgba(241, 196, 107, .35);
  background: rgba(241, 196, 107, .08);
  color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .01em; white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(241, 196, 107, .18); }

/* ------------------------------------------------------------ type */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .7; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.025em; line-height: 1.05; }
h1 { font-weight: 800; font-size: clamp(2.6rem, 2rem + 4.4vw, 5.4rem); letter-spacing: -.04em; }
h2 { font-weight: 800; font-size: clamp(2rem, 1.5rem + 2.6vw, 3.5rem); letter-spacing: -.035em; }
h3 { font-weight: 700; font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; }
.lede { font-size: clamp(1.08rem, 1rem + .45vw, 1.3rem); color: var(--text-2); line-height: 1.6; max-width: 36rem; margin: 1.4rem 0 0; }
.gold { color: var(--gold); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.grad {
  background: linear-gradient(100deg, #F8E2A6 0%, var(--gold) 45%, #E4A94A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; padding: clamp(3rem, 7vw, 6.5rem) 0 clamp(3rem, 6vw, 5rem); overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(50% 45% at 78% 30%, rgba(63, 214, 155, .13), transparent 70%),
    radial-gradient(45% 40% at 70% 55%, rgba(241, 196, 107, .14), transparent 70%),
    radial-gradient(60% 50% at 15% 10%, rgba(28, 49, 55, .9), transparent 70%);
}
.hero .wrap { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 980px) { .hero .wrap { grid-template-columns: 1.05fr .95fr; } }
.hero h1 .line { display: block; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.2rem; }
.store {
  display: inline-flex; align-items: center; gap: .75rem;
  padding: .7rem 1.15rem .7rem .95rem; border-radius: 16px;
  background: linear-gradient(180deg, var(--highest), var(--raised));
  border: 1px solid var(--stroke-2);
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .05);
  min-width: 13.5rem;
}
.store svg { width: 26px; height: 26px; color: var(--text); flex: none; }
.store small { display: block; font-size: .72rem; color: var(--gold); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.store strong { display: block; font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .93rem; }
.facts li { display: inline-flex; align-items: center; gap: .5rem; }
.facts svg { width: 16px; height: 16px; color: var(--jade); }

/* The phones: a real app screen in a frame. */
.phone {
  --w: 300px;
  position: relative; width: var(--w); aspect-ratio: 1320 / 2868;
  border-radius: calc(var(--w) * .15);
  padding: calc(var(--w) * .028);
  background: linear-gradient(160deg, #24414A 0%, #13262B 40%, #0B1719 100%);
  box-shadow:
    0 0 0 1px rgba(241, 196, 107, .22),
    0 calc(var(--w) * .12) calc(var(--w) * .3) calc(var(--w) * -.06) rgba(0, 0, 0, .75),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--w) * .125); background: var(--bg); }
.phone::after { /* a soft glass sheen */
  content: ""; position: absolute; inset: calc(var(--w) * .028); border-radius: calc(var(--w) * .125); pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, .07) 0%, transparent 30%);
}
/* ------------------------------------------------------------ sections */
section { position: relative; }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .lede { margin-inline: auto; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--stroke-2), transparent); border: 0; margin: 0; }

.score-strip {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden;
  background: var(--stroke); border: 1px solid var(--stroke);
}
@media (min-width: 720px) { .score-strip { grid-template-columns: repeat(3, 1fr); } }
.score-strip div { background: linear-gradient(180deg, var(--surface), var(--bg-2)); padding: 1.6rem 1.5rem; }
.score-strip strong { display: block; font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.score-strip span { color: var(--text-2); font-size: .95rem; }

/* The seven modes. */
.modes { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.mode {
  position: relative; padding: 1.5rem 1.4rem 1.4rem; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 7%, var(--surface)), var(--bg-2));
  border: 1px solid color-mix(in srgb, var(--c) 20%, var(--stroke));
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.mode::before {
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.mode:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, var(--stroke)); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 45%, transparent); }
.mode .icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--bg)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  margin-bottom: 1.1rem;
}
.mode .icon svg { width: 24px; height: 24px; }
.mode p { margin: .4rem 0 0; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.mode .tag { display: inline-block; margin-top: .9rem; font-size: .75rem; font-weight: 600; color: var(--c); letter-spacing: .04em; }
.mode.wide { grid-column: 1 / -1; }
@media (min-width: 1100px) { .mode.wide { grid-column: span 2; } }

/* Showcase rows: a phone beside its story. */
.feature { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature + .feature { margin-top: clamp(4.5rem, 9vw, 7rem); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature.flip .visual { order: 2; }
}
.feature .visual { position: relative; display: grid; place-items: center; padding: 1.5rem 0; }
.feature .visual::before {
  content: ""; position: absolute; width: min(460px, 100%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c, var(--gold)) 30%, transparent), transparent 66%);
  filter: blur(6px);
}
.feature .phone { --w: clamp(220px, 58vw, 330px); }
.feature h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); }
.checks { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .8rem; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: .8rem; color: var(--text-2); line-height: 1.5; }
.checks li strong { color: var(--text); font-weight: 600; }
.checks svg { width: 22px; height: 22px; margin-top: .1rem; color: var(--c, var(--gold)); }
.note {
  margin-top: 1.6rem; padding: 1rem 1.1rem; border-radius: 16px; font-size: .93rem; line-height: 1.55; color: var(--text-2);
  background: rgba(247, 239, 221, .04); border: 1px solid rgba(247, 239, 221, .1);
}
.note strong { color: var(--text); }

/* Languages: the app in three scripts. */
.trio { display: flex; justify-content: center; align-items: flex-end; gap: clamp(.6rem, 2.5vw, 2rem); margin-top: 1rem; }
.trio figure { margin: 0; display: grid; justify-items: center; gap: 1rem; }
.trio .phone { --w: clamp(96px, 27vw, 250px); }
.trio figure:nth-child(2) .phone { --w: clamp(112px, 31vw, 290px); }
.trio figcaption { font-weight: 600; color: var(--text-2); font-size: clamp(.85rem, .8rem + .3vw, 1.05rem); }
.trio figcaption [lang="ur"] { font-family: "Nastaliq", serif; font-size: 1.15em; line-height: 1.9; }
.trio figcaption [lang="ar"] { font-family: "ArabicUI", sans-serif; }

/* Care and privacy cards. */
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  padding: clamp(1.5rem, 3vw, 2.1rem); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(28, 49, 55, .55), rgba(15, 27, 31, .5));
  border: 1px solid var(--stroke);
}
.card .icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1.1rem; }
.card p { margin: .55rem 0 0; color: var(--text-2); line-height: 1.6; }
.card a { color: var(--gold); text-underline-offset: 3px; }

.quote {
  position: relative; margin: 0 auto; max-width: 52rem; text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem); border-radius: 28px;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(241, 196, 107, .12), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid rgba(241, 196, 107, .2);
}
.quote p { font-family: var(--serif); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.9rem); line-height: 1.45; margin: 0; letter-spacing: -.01em; }
.quote footer { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { display: grid; gap: .75rem; max-width: 52rem; margin-inline: auto; }
.faq details {
  border-radius: 18px; background: linear-gradient(180deg, var(--surface), var(--bg-2)); border: 1px solid var(--stroke);
  transition: border-color .25s;
}
.faq details[open] { border-color: var(--stroke-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.15rem 3.2rem 1.15rem 1.35rem; position: relative;
  font-weight: 600; font-size: 1.04rem; line-height: 1.4;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 1.35rem; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq .answer { padding: 0 1.35rem 1.25rem; color: var(--text-2); line-height: 1.65; }
.faq .answer p { margin: 0 0 .7rem; }
.faq .answer p:last-child { margin-bottom: 0; }
.faq .answer a { color: var(--gold); text-underline-offset: 3px; }
.faq .answer strong { color: var(--text); font-weight: 600; }

/* Closing call */
.closing { text-align: center; }
.closing .emblem-big { width: clamp(84px, 14vw, 120px); margin: 0 auto 1.6rem; filter: drop-shadow(0 18px 40px rgba(241, 196, 107, .25)); }
.closing .cta-row { justify-content: center; }
.closing .lede { margin-inline: auto; }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 1rem;
  background: linear-gradient(180deg, #F6D58D, var(--gold)); color: #1E1606;
  box-shadow: 0 10px 28px -10px rgba(241, 196, 107, .6), inset 0 1px 0 rgba(255, 255, 255, .4);
  transition: transform .2s var(--ease), box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -10px rgba(241, 196, 107, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--stroke-2); box-shadow: none; }
.btn.ghost:hover { border-color: var(--gold); }
.link-arrow { color: var(--gold); font-weight: 600; text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; margin-top: 1.6rem; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------ page header (support, 404) */
.page-hero { padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); position: relative; isolation: isolate; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(50% 80% at 50% 0%, rgba(241, 196, 107, .12), transparent 70%);
}
.page-hero .wrap { text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero .lede { margin-inline: auto; }
.contact {
  display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  max-width: 52rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem);
}
.faq-group { max-width: 52rem; margin: 0 auto 2.5rem; }
.faq-group h2 { font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem); margin-bottom: 1rem; }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--stroke); padding: 3rem 0 2.5rem; color: var(--muted); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 760px) { .site-footer .wrap { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand .emblem { height: 34px; }
.site-footer .brand .wordmark { height: 22px; }
.site-footer p { margin: .9rem 0 0; line-height: 1.6; max-width: 26rem; }
.site-footer h2 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); font-weight: 700; margin-bottom: .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .legal { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(34, 58, 64, .6); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }

/* ------------------------------------------------------------ reveal on scroll
   site.js marks only what is still below the screen as pending, so nothing
   visible ever disappears, and without JavaScript everything shows. */
.reveal { transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.pending { opacity: 0; transform: translateY(26px); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.pending { opacity: 1; transform: none; transition: none; }
  .stage .phone.front, .stage .phone.back { animation: none; }
  .mode, .btn { transition: none; }
}

/* ------------------------------------------------------------ helpers
   (no inline styles anywhere: the Content Security Policy forbids them) */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
[data-tight] { padding-top: 0; }
.c-listen { --c: var(--listen); } .c-next { --c: var(--next); } .c-spot { --c: var(--spot); }
.c-rebuild { --c: var(--rebuild); } .c-order { --c: var(--order); } .c-twins { --c: var(--twins); }
.c-locate { --c: var(--locate); } .c-gold { --c: var(--gold); }
.t-listen { color: var(--listen); } .t-spot { color: var(--spot); } .t-twins { color: var(--twins); } .t-locate { color: var(--locate); }
.d05 { --d: .05s; } .d06 { --d: .06s; } .d08 { --d: .08s; } .d1 { --d: .1s; } .d12 { --d: .12s; }
.d15 { --d: .15s; } .d16 { --d: .16s; } .d24 { --d: .24s; } .d32 { --d: .32s; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.015em; line-height: 1.25; margin: 0; }
.notfound { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.notfound .emblem-big { width: 96px; margin: 0 auto 1.8rem; opacity: .9; }
.notfound .cta-row { justify-content: center; }

/* ================================================================ motion
   Everything below decorates a page that reads the same without it.
   prefers-reduced-motion turns it off, and site.js stays out of the way. */

/* Reading progress: a gold hairline under the header. */
.progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), #FFF1C9);
  box-shadow: 0 0 12px rgba(241, 196, 107, .55);
}

/* Page to page: a soft cross-fade (browsers that support it). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.985); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.01); filter: blur(4px); } }

/* Star dust: tiny stars spark off the pointer (site.js draws them). */
.stardust { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------ hero */
@keyframes rise { from { opacity: 0; transform: translateY(.55em); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.enter { animation: rise 1s var(--ease) both; }
.e1 { animation-delay: .08s; } .e2 { animation-delay: .2s; } .e3 { animation-delay: .34s; } .e4 { animation-delay: .46s; } .e5 { animation-delay: .58s; }
@keyframes shine { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
.shimmer {
  background-image: linear-gradient(100deg, #E4A94A 0%, var(--gold) 25%, #FFF0C6 40%, var(--gold) 55%, #E4A94A 75%, var(--gold) 100%);
  background-size: 200% 100%; animation: shine 7s linear infinite;
}
.hero { min-height: min(100svh, 980px); display: grid; align-items: center; }
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -10% -10% 0; z-index: -2; filter: blur(60px); opacity: .85; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: 48%; top: 6%; background: radial-gradient(circle, rgba(241, 196, 107, .22), transparent 65%); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; left: 62%; top: 34%; background: radial-gradient(circle, rgba(63, 214, 155, .16), transparent 65%); animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 52vw; height: 52vw; left: -12%; top: -18%; background: radial-gradient(circle, rgba(28, 49, 55, .95), transparent 70%); animation: drift3 30s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(-8vw, 6vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-12vw, -8vh) scale(.9); } }
@keyframes drift3 { to { transform: translate(6vw, 8vh) scale(1.1); } }

.stage { position: relative; display: grid; place-items: center; min-height: 600px; }
.stage .halo {
  position: absolute; width: min(560px, 120%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 196, 107, .22), rgba(63, 214, 155, .08) 45%, transparent 68%);
  filter: blur(8px); animation: halo 8s ease-in-out infinite;
}
@keyframes halo { 50% { transform: scale(1.08); opacity: .8; } }
.depth { transform: translate3d(calc(var(--px, 0) * var(--k, 1) * 1px), calc(var(--py, 0) * var(--k, 1) * 1px), 0); transition: transform .9s var(--ease); }
.device { position: relative; z-index: 2; display: grid; justify-items: center; gap: 14px; }
.device .phone { --w: clamp(230px, 62vw, 330px); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -12px; } }
.stories { display: flex; gap: 6px; width: calc(clamp(230px, 62vw, 330px) * .82); }
.stories i { flex: 1; height: 3px; border-radius: 3px; background: rgba(244, 239, 228, .16); overflow: hidden; position: relative; }
.stories i::after { content: ""; position: absolute; inset: 0; background: var(--gold); transform-origin: 0 50%; transform: scaleX(0); }
.stories i.is-done::after { transform: scaleX(1); }
.stories i.is-on::after { animation: story var(--dur, 3.2s) linear forwards; }
@keyframes story { to { transform: scaleX(1); } }
.screens { position: relative; width: 100%; height: 100%; }
.screens img { position: absolute; inset: 0; opacity: 0; transform: scale(1.035); transition: opacity .8s var(--ease), transform 1.2s var(--ease); }
.screens img.is-on { opacity: 1; transform: none; }
.screens img:first-child { position: relative; }

.badge {
  position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .65rem;
  padding: .7rem .95rem; border-radius: 18px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(28, 49, 55, .82), rgba(15, 27, 31, .78));
  border: 1px solid rgba(241, 196, 107, .22);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .9rem; line-height: 1.15;
}
.badge strong { display: block; font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.badge small { display: block; color: var(--text-2); font-size: .74rem; font-weight: 600; letter-spacing: .02em; }
.b-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; }
.b-icon svg { width: 20px; height: 20px; }
.b-icon.jade { color: #0B231A; background: linear-gradient(180deg, #6BE7B5, var(--jade)); }
.b-icon.flame { color: #FF9A55; background: rgba(255, 142, 110, .14); border: 1px solid rgba(255, 142, 110, .3); }
.b-chip { font-weight: 600; color: var(--text-2); padding: .55rem .9rem; border-radius: 999px; font-size: .82rem; }
.b-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px rgba(63, 214, 155, .18); }
.b-perfect { left: -2%; top: 30%; --k: 1.6; animation: bob 6s ease-in-out infinite; }
.b-streak { right: 0; top: 10%; --k: 2.2; animation: bob 7s ease-in-out -2s infinite; }
.b-score { right: -4%; bottom: 20%; --k: 1.2; animation: bob 8s ease-in-out -4s infinite; }
.b-chip { left: 2%; bottom: 9%; --k: 2.6; animation: bob 6.5s ease-in-out -1s infinite; }
@keyframes bob { 50% { translate: 0 -10px; } }
@media (max-width: 979px) { .stage { min-height: 560px; } }
@media (max-width: 560px) {
  .stage { min-height: 0; padding: 1rem 0; }
  .badge { font-size: .8rem; padding: .5rem .7rem; }
  .badge strong { font-size: .98rem; }
  .b-icon { width: 28px; height: 28px; }
  .b-perfect { left: -1%; top: 34%; } .b-streak { right: -2%; top: 8%; }
  .b-score { right: -3%; bottom: 16%; } .b-chip { display: none; }
}
.scroll-cue { position: absolute; left: 50%; bottom: 1.6rem; width: 26px; height: 40px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(244, 239, 228, .3); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-height: 700px), (max-width: 979px) { .scroll-cue { display: none; } }

/* ------------------------------------------------------------ the daily story */
.story-grid { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(2.5rem, 6vw, 3.5rem); }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.1rem 1.25rem; align-items: start; }
.step .node {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; color: var(--c);
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 30%, transparent), color-mix(in srgb, var(--c) 8%, var(--surface)) 70%);
  border: 1.5px solid color-mix(in srgb, var(--c) 50%, transparent);
  box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--c) 50%, transparent);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.step .node svg { width: 26px; height: 26px; }
.step-kicker { margin: .2rem 0 .35rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.step h3 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.025em; }
.step-copy p:last-child { margin: .6rem 0 0; color: var(--text-2); line-height: 1.6; max-width: 34rem; }
.step-phone { grid-column: 1 / -1; margin: .5rem 0 0; display: grid; place-items: center; }
.step-phone .phone { --w: clamp(210px, 60vw, 260px); }
.story-stage { display: none; }
.story-score { display: flex; align-items: baseline; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.story-score small { color: var(--text-2); font-weight: 600; margin-right: .4rem; }
.story-score strong { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--gold); min-width: 4.6ch; text-align: right; }
.story-score span { color: var(--muted); font-weight: 600; }
.story-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.story-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--stroke-2); transition: background .4s, transform .4s, width .4s; }
.story-dots i.is-on { width: 26px; border-radius: 6px; background: var(--c); }

@media (min-width: 980px) {
  .js-story .story-grid { display: grid; grid-template-columns: 1fr 420px; gap: 4rem; }
  .js-story .steps { gap: 0; padding: 6vh 0 10vh; }
  .js-story .step { min-height: 62vh; align-content: center; opacity: .3; transition: opacity .6s var(--ease); }
  .js-story .step.is-active { opacity: 1; }
  .js-story .step.is-active .node { transform: scale(1.12); box-shadow: 0 0 0 10px color-mix(in srgb, var(--c) 12%, transparent), 0 16px 40px -10px color-mix(in srgb, var(--c) 65%, transparent); }
  .js-story .step-phone { display: none; }
  .js-story .steps::before, .js-story .steps::after { content: ""; position: absolute; left: 29px; top: 8vh; bottom: 12vh; width: 2px; border-radius: 2px; }
  .js-story .steps::before { background: var(--stroke); }
  .js-story .steps::after { background: linear-gradient(var(--listen), var(--next), var(--spot), var(--rebuild), var(--order), var(--gold)); transform-origin: 50% 0; transform: scaleY(var(--sp, 0)); transition: transform .3s linear; }
  .js-story .steps { position: relative; }
  .js-story .step .node { position: relative; z-index: 1; }
  .js-story .story-stage { display: block; }
  .story-sticky { position: sticky; top: calc(var(--bar) + 5vh); display: grid; justify-items: center; }
  .story-stage .phone { --w: min(330px, calc((100vh - var(--bar) - 5vh - 9rem) * 1320 / 2868)); }
}

.score-strip { position: relative; }

/* ------------------------------------------------------------ the game cards' little demos */
.mode::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c) 20%, transparent), transparent 62%);
}
.mode:hover::after { opacity: 1; }
.demo { position: relative; height: 70px; margin: -.2rem 0 1.1rem; display: flex; align-items: center; gap: 5px; color: var(--c); }
.demo * { animation-play-state: paused !important; }
.mode.in-view .demo * { animation-play-state: running !important; }

.demo-listen i { width: 5px; height: 46px; border-radius: 3px; background: currentColor; opacity: .85; transform: scaleY(.25); animation: eq 1.1s ease-in-out infinite; }
.demo-listen i:nth-child(2n) { animation-duration: .9s; } .demo-listen i:nth-child(3n) { animation-duration: 1.3s; }
.demo-listen i:nth-child(1) { animation-delay: -.2s; } .demo-listen i:nth-child(2) { animation-delay: -.5s; } .demo-listen i:nth-child(3) { animation-delay: -.1s; }
.demo-listen i:nth-child(4) { animation-delay: -.7s; } .demo-listen i:nth-child(5) { animation-delay: -.35s; } .demo-listen i:nth-child(6) { animation-delay: -.9s; }
.demo-listen i:nth-child(7) { animation-delay: -.15s; } .demo-listen i:nth-child(8) { animation-delay: -.6s; } .demo-listen i:nth-child(9) { animation-delay: -.45s; }
.demo-listen i:nth-child(10) { animation-delay: -.8s; } .demo-listen i:nth-child(11) { animation-delay: -.25s; }
@keyframes eq { 50% { transform: scaleY(1); } }

.demo-next { flex-direction: column; align-items: stretch; justify-content: center; gap: 6px; width: 70%; }
.demo-next b { height: 12px; border-radius: 6px; background: rgba(244, 239, 228, .12); }
.demo-next b:nth-child(1) { width: 92%; background: rgba(247, 239, 221, .35); }
.demo-next b:nth-child(2) { width: 74%; } .demo-next b:nth-child(3) { width: 84%; }
.demo-next .pick { position: absolute; left: 0; top: 50%; height: 12px; width: 62%; background: currentColor; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent); animation: pick 3.2s var(--ease) infinite; }
@keyframes pick { 0%, 15% { transform: translate(130%, 4px); opacity: 0; } 40%, 80% { transform: translate(0, 4px); opacity: 1; } 100% { transform: translate(0, 4px); opacity: 0; } }

.demo-spot i { width: 40px; height: 22px; border-radius: 7px; background: rgba(247, 239, 221, .28); }
.demo-spot i.odd { animation: odd 3.6s var(--ease) infinite; }
@keyframes odd {
  0%, 10% { background: rgba(247, 239, 221, .28); transform: none; }
  16% { transform: translateX(-3px) rotate(-3deg); } 22% { transform: translateX(3px) rotate(3deg); } 28% { transform: translateX(-2px); }
  34%, 52% { background: #FF8E6E; transform: none; box-shadow: 0 0 0 3px rgba(255, 142, 110, .25); }
  60% { transform: translateY(-10px) scale(.6); opacity: 0; }
  68%, 92% { background: var(--gold); transform: none; opacity: 1; box-shadow: 0 0 16px rgba(241, 196, 107, .7); }
  100% { background: rgba(247, 239, 221, .28); box-shadow: none; }
}

.demo-rebuild i { width: 44px; height: 24px; border-radius: 7px; background: currentColor; opacity: .9; animation: snap 3.6s var(--ease) infinite; }
.demo-rebuild i:nth-child(1) { --sx: 70px; --sy: 14px; --sr: 18deg; }
.demo-rebuild i:nth-child(2) { --sx: -40px; --sy: -18px; --sr: -22deg; animation-delay: .08s; }
.demo-rebuild i:nth-child(3) { --sx: 30px; --sy: 20px; --sr: 30deg; animation-delay: .16s; }
.demo-rebuild i:nth-child(4) { --sx: -80px; --sy: -10px; --sr: -12deg; animation-delay: .24s; }
@keyframes snap { 0%, 18% { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); opacity: .55; } 45%, 85% { transform: none; opacity: .95; } 100% { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)); opacity: .55; } }

.demo-order { display: block; width: 66%; }
.demo-order i { position: absolute; left: 0; right: 0; height: 18px; border-radius: 6px; background: rgba(244, 239, 228, .12); display: flex; align-items: center; padding-left: 6px; }
.demo-order b { width: 14px; height: 14px; border-radius: 50%; display: grid; place-items: center; font: 700 .58rem/1 var(--display); background: var(--c); color: #1E1606; }
.demo-order i:nth-child(1) { animation: o1 4s var(--ease) infinite; } .demo-order i:nth-child(2) { animation: o2 4s var(--ease) infinite; } .demo-order i:nth-child(3) { animation: o3 4s var(--ease) infinite; }
@keyframes o1 { 0%, 20% { top: 48px; } 45%, 90% { top: 4px; } 100% { top: 48px; } }
@keyframes o2 { 0%, 20% { top: 4px; } 45%, 90% { top: 26px; } 100% { top: 4px; } }
@keyframes o3 { 0%, 20% { top: 26px; } 45%, 90% { top: 48px; } 100% { top: 26px; } }

.demo-twins { flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.demo-twins p { margin: 0; display: flex; gap: 5px; }
.demo-twins i { width: 34px; height: 14px; border-radius: 5px; background: rgba(247, 239, 221, .26); }
.demo-twins p:first-child i { background: color-mix(in srgb, var(--c) 45%, rgba(247, 239, 221, .2)); }
.demo-twins i.diff { animation: diff 2.4s ease-in-out infinite; }
@keyframes diff { 0%, 30% { background: rgba(247, 239, 221, .26); box-shadow: none; } 50%, 80% { background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), 0 0 18px var(--c); } }

.demo-locate { display: block; }
.demo-locate .strip { position: absolute; left: 0; right: 0; top: 34px; display: flex; gap: 4px; }
.demo-locate .strip i { flex: 1; height: 22px; border-radius: 3px; background: rgba(247, 239, 221, .14); }
.demo-locate .strip i:nth-child(10) { animation: land 3.4s ease-in-out infinite; }
@keyframes land { 0%, 55% { background: rgba(247, 239, 221, .14); } 65%, 92% { background: var(--c); box-shadow: 0 0 14px var(--c); } }
.demo-locate .pin { position: absolute; top: 4px; left: 0; width: 18px; height: 18px; margin-left: -9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: currentColor; animation: pin 3.4s cubic-bezier(.5, 0, .2, 1) infinite; }
@keyframes pin { 0% { left: 4%; } 30% { left: 86%; } 50% { left: 52%; } 60%, 92% { left: calc(9.5 / 14 * 100%); } 100% { left: 4%; } }

/* ------------------------------------------------------------ the river of surah names */
.river { padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(2rem, 4vw, 3rem); overflow: hidden; }
.river .section-head { margin-bottom: clamp(2rem, 4vw, 3rem); }
.flow { display: grid; gap: 1rem; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.flow:empty, .flow-row:empty { display: none; }
.flow-row { display: flex; width: max-content; gap: 2.2rem; animation: flow 140s linear infinite; direction: ltr; }
.flow-row.reverse { animation-direction: reverse; animation-duration: 160s; }
.flow:hover .flow-row { animation-play-state: paused; }
@keyframes flow { to { transform: translateX(-50%); } }
.sname { display: inline-flex; align-items: center; gap: .7rem; font-family: "AmiriNames", serif; font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.5rem); line-height: 1.8; color: rgba(244, 239, 228, .55); transition: color .3s, text-shadow .3s; white-space: nowrap; direction: rtl; }
.sname small { font: 600 .8rem/1 var(--display); color: var(--muted); direction: ltr; padding: .25rem .45rem; border-radius: 999px; border: 1px solid var(--stroke); }
.sname:hover { color: var(--gold); text-shadow: 0 0 24px rgba(241, 196, 107, .55); }

/* ------------------------------------------------------------ the greeting that changes language */
.greeting { position: relative; height: clamp(3.4rem, 3rem + 2vw, 4.6rem); margin: -1rem 0 1.4rem; text-align: center; }
.greeting span { position: absolute; left: 0; right: 0; top: 0; opacity: 0; filter: blur(10px); transform: translateY(10px) scale(.98); transition: opacity .7s var(--ease), filter .7s var(--ease), transform .7s var(--ease); font-weight: 800; font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); letter-spacing: -.02em; color: var(--gold); }
.greeting span[lang="ur"] { font-family: "Nastaliq", serif; font-weight: 400; line-height: 1.7; font-size: clamp(1.7rem, 1.3rem + 2vw, 2.7rem); }
.greeting span[lang="ar"] { font-family: "ArabicUI", sans-serif; letter-spacing: 0; }
.greeting span.is-on { opacity: 1; filter: none; transform: none; }

/* ------------------------------------------------------------ the language switcher */
.lang-tabs { display: flex; gap: .3rem; width: max-content; max-width: 100%; margin: 0 auto 2.5rem; padding: .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--stroke); }
.lang-tabs[hidden] { display: none; }
.lang-tabs button { appearance: none; border: 0; cursor: pointer; border-radius: 999px; padding: .55rem 1.15rem; background: transparent; color: var(--text-2); font: 600 .95rem/1.2 var(--display); transition: background .3s, color .3s; }
.lang-tabs button[lang="ur"] { font-family: "Nastaliq", serif; font-size: 1.05rem; line-height: 1.6; padding-block: .3rem; }
.lang-tabs button[lang="ar"] { font-family: "ArabicUI", sans-serif; }
.lang-tabs button:hover { color: var(--text); }
.lang-tabs button[aria-selected="true"] { background: linear-gradient(180deg, #F6D58D, var(--gold)); color: #1E1606; }
.trio.interactive figure { transition: transform .7s var(--ease), opacity .7s var(--ease), filter .7s; }
.trio.interactive figure:not(.is-active) { opacity: .42; transform: scale(.94); filter: saturate(.55); }
.trio.interactive figure.is-active { transform: translateY(-12px) scale(1.03); }
.trio.interactive figure.is-active .phone { box-shadow: 0 0 0 1px rgba(241, 196, 107, .45), 0 40px 90px -20px rgba(241, 196, 107, .28), 0 30px 70px -20px rgba(0, 0, 0, .8); }

/* ------------------------------------------------------------ showcase phones drift with the scroll */
.feature .phone { transform: translateY(var(--dy, 0px)) rotate(var(--dr, 0deg)); }

/* ------------------------------------------------------------ headings arrive word by word */
.words.split .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .7s var(--ease), transform .8s var(--ease), filter .7s var(--ease); transition-delay: calc(var(--wi) * 55ms); }
.words.split.in .w { opacity: 1; transform: none; filter: none; }

/* ------------------------------------------------------------ the closing constellation */
.constellation-wrap { position: relative; width: clamp(120px, 18vw, 170px); margin: 0 auto 1.8rem; aspect-ratio: 434 / 714; }
.constellation-wrap .emblem-big { width: 100%; margin: 0; transition: opacity .8s; }
.constellation { position: absolute; left: -110%; top: -40%; width: 320%; height: 180%; pointer-events: none; }
.has-stars .emblem-big { opacity: 0; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 18px 40px rgba(241, 196, 107, .2)); transform: translateY(0); } 50% { filter: drop-shadow(0 22px 60px rgba(241, 196, 107, .42)); transform: translateY(-6px); } }
.emblem-big.glow { animation: breathe 5s ease-in-out infinite; }

/* Buttons lean towards the pointer. */
.magnet { transition: transform .25s var(--ease), box-shadow .2s, border-color .2s; transform: translate(var(--bx, 0px), var(--by, 0px)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .screens img:not(.is-on) { display: none; }
  .words.split .w { opacity: 1; transform: none; filter: none; }
  .stardust, .aurora, .scroll-cue { display: none; }
  .reveal.pending { opacity: 1; transform: none; }
}

/* ================================================================ support forms */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.help-grid { display: grid; gap: 1rem; max-width: 64rem; margin: 0 auto clamp(3rem, 6vw, 4.5rem); }
@media (min-width: 900px) { .help-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }
.form-card { scroll-margin-top: calc(var(--bar) + 24px); }
.form-card > p { margin: .55rem 0 0; }
.help-form { margin-top: 1.4rem; display: grid; gap: 1.1rem; }
.help-form[hidden] { display: none; }
.help-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.help-form legend, .help-form label { font-weight: 600; font-size: .92rem; color: var(--text); }
.help-form legend { margin-bottom: .6rem; padding: 0; }
.help-form .hint { font-weight: 400; color: var(--muted); margin-left: .35rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  color: var(--text-2); background: var(--bg-2); border: 1px solid var(--stroke-2); transition: background .2s, color .2s, border-color .2s;
}
.chips label:hover span { border-color: var(--gold); color: var(--text); }
.chips input:checked + span { background: rgba(241, 196, 107, .14); border-color: var(--gold); color: var(--gold); }
.chips input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chips.small span { padding: .4rem .8rem; font-size: .85rem; }
.row { display: flex; gap: .8rem; flex-wrap: wrap; }
.row[hidden], .field[hidden] { display: none; }
.field { display: grid; gap: .45rem; }
.field.grow { flex: 1 1 14rem; }
.field.narrow { flex: 0 1 7rem; }
.help-form input[type="number"], .help-form input[type="search"], .help-form select, .help-form textarea, .faq-search input {
  width: 100%; font: 400 1rem/1.4 var(--display); color: var(--text);
  background: var(--bg-2); border: 1px solid var(--stroke-2); border-radius: 14px; padding: .75rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.help-form select { appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 1.15rem) 55%, calc(100% - .8rem) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.help-form textarea { resize: vertical; min-height: 7rem; }
.help-form :is(input, select, textarea):focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(241, 196, 107, .18); }
.help-form [aria-invalid="true"] { border-color: #FF8E6E; box-shadow: 0 0 0 3px rgba(255, 142, 110, .16); }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.actions .btn { padding: .75rem 1.2rem; font-size: .95rem; border: 0; cursor: pointer; font-family: var(--display); }
.actions .btn.ghost { border: 1px solid var(--stroke-2); }
.form-status { margin: 0; min-height: 1.4em; font-size: .92rem; color: var(--text-2); }
.form-status.error { color: #FF9C80; }
.form-status.ok { color: var(--jade); }
.form-note { margin: 1.1rem 0 0; font-size: .85rem; color: var(--muted); }
.form-note a { color: var(--gold); }

/* FAQ search */
.faq-search { position: relative; max-width: 52rem; margin: 0 auto 2.2rem; }
.faq-search[hidden] { display: none; }
.faq-search svg { position: absolute; left: 1.05rem; top: 1.45rem; width: 20px; height: 20px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.faq-search input { padding: .95rem 1rem .95rem 3rem; border-radius: 999px; font-size: 1.02rem; background: var(--surface); border: 1px solid var(--stroke-2); }
.faq-search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(241, 196, 107, .18); }
.faq-empty { margin: .9rem 0 0; text-align: center; color: var(--text-2); }
.faq-empty:empty { display: none; }
.faq-empty a { color: var(--gold); }
.faq-group[hidden], .faq details[hidden] { display: none; }
.faq mark { background: rgba(241, 196, 107, .25); color: inherit; border-radius: 3px; padding: 0 .1em; }
.faq details:target, .faq details.flash { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(241, 196, 107, .14); }
.faq details { scroll-margin-top: calc(var(--bar) + 24px); }

/* ================================================================ watermark
   The emblem, large and faint behind a section, as on the share image.
   Turned, cropped at the page edge, never mirrored. */
.wm { position: relative; isolation: isolate; overflow-x: clip; }
.wm::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: clamp(240px, 46vw, 600px); aspect-ratio: 434 / 714; top: 6%;
  background: url("emblem.d4c4a405ce.svg") center / contain no-repeat;
  opacity: .045;
}
.wm-right::after { right: max(-14vw, -180px); transform: rotate(-12deg); }
.wm-left::after { left: max(-14vw, -180px); transform: rotate(10deg); }
.wm-low::after { top: auto; bottom: 4%; }
@media (max-width: 560px) { .wm::after { width: 78vw; opacity: .05; } .wm-right::after { right: -30vw; } .wm-left::after { left: -30vw; } }
