/* Numen — site styles. Palette and type follow the app: night violet, gold, Raleway + Cinzel. */
:root {
  --bg: #0B0916;
  --bg-2: #110E21;
  --bg-3: #181330;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(196, 181, 253, .22);
  --text: #F4F1FF;
  --text-2: #B9B2D3;
  --text-3: #857DA3;
  --violet: #A78BFA;
  --violet-2: #8B5CF6;
  --violet-3: #C4B5FD;
  --gold: #F2C45A;
  --gold-2: #FFE08A;
  --gold-grad: linear-gradient(135deg, #FFEDB0 0%, #F2C45A 48%, #D9982B 100%);
  --pink: #F472B6;
  --amber: #FBBF24;
  --teal: #5EEAD4;
  --sky: #7DD3FC;
  --lilac: #C4B5FD;
  --radius: 22px;
  --radius-lg: 32px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --nav-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Raleway', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  /* Raleway defaults to old-style figures; keep numbers on the baseline. */
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1000px 640px at 8% -8%, rgba(139, 92, 246, .20), transparent 62%),
    radial-gradient(760px 520px at 100% 4%, rgba(242, 196, 90, .06), transparent 60%),
    radial-gradient(900px 700px at 50% 112%, rgba(91, 33, 182, .16), transparent 62%);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--violet-3); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgba(167, 139, 250, .35); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--violet-2); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Type ─────────────────────────────────────────────── */
h1, h2, h3 { font-weight: 800; letter-spacing: -.022em; line-height: 1.06; text-wrap: balance; }
.h1 { font-size: clamp(2.5rem, 5.6vw, 4.3rem); }
.h2 { font-size: clamp(2rem, 4.6vw, 3.35rem); }
.h3 { font-size: 1.28rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ''; width: 20px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(1.06rem, 1.5vw, 1.22rem); line-height: 1.6; color: var(--text-2); max-width: 36em; }
.muted { color: var(--text-2); }
.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lilac { background: linear-gradient(120deg, #F1EBFF 0%, #C4B5FD 45%, #8B5CF6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.roman { font-family: 'Cinzel', serif; font-weight: 700; letter-spacing: .06em; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 24px; border-radius: 999px;
  font-size: 15px; font-weight: 700; letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold-grad); color: #2A1A05; box-shadow: 0 10px 28px -10px rgba(242, 196, 90, .6); }
.btn-gold:hover { box-shadow: 0 14px 34px -10px rgba(242, 196, 90, .75); transform: translateY(-1px); }
.btn-ghost { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .09); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }
.store { display: inline-block; border-radius: 12px; transition: transform .2s var(--ease), filter .2s; }
.store img { height: 54px; width: auto; }
.store:hover { transform: translateY(-2px); filter: drop-shadow(0 10px 24px rgba(139, 92, 246, .35)); }
.store-sm img { height: 44px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--violet-3); }
.link-arrow::after { content: '→'; transition: transform .2s var(--ease); }
.link-arrow:hover::after { transform: translateX(3px); }

/* ── Header ──────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.nav.scrolled, .nav.solid {
  background: rgba(11, 9, 22, .74);
  -webkit-backdrop-filter: saturate(1.5) blur(18px);
  backdrop-filter: saturate(1.5) blur(18px);
  border-bottom-color: var(--line);
}
.nav-in { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); height: var(--nav-h); display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand img { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 6px 18px -6px rgba(139, 92, 246, .6); }
.brand span { font-weight: 500; font-size: 15px; letter-spacing: .4em; margin-right: -.4em; }
.nav-links { display: none; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--text-2); transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; justify-content: center;
  height: 38px; min-width: 46px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--text-2);
  transition: color .2s, border-color .2s;
}
.lang:hover { color: var(--text); border-color: var(--line-2); }
@media (min-width: 920px) { .nav-links { display: flex; } .nav-end { margin-left: 6px; } }
@media (max-width: 380px) { .brand span { display: none; } }

/* ── Sections ────────────────────────────────────────── */
.section { position: relative; padding: clamp(72px, 10vw, 136px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ''; width: 20px; height: 1px; background: currentColor; opacity: .7; }
.section-head .h2 { margin: 16px 0 18px; }
.section-head.center .lead { margin: 0 auto; }
.section-head .lead a { color: var(--violet-3); text-decoration: underline; text-underline-offset: 3px; }

/* ── Hero ────────────────────────────────────────────── */
.hero { position: relative; padding: calc(var(--nav-h) + clamp(28px, 6vw, 76px)) 0 clamp(48px, 7vw, 96px); }
.hero-grid { display: grid; gap: 44px; align-items: center; }
.hero-copy .h1 { margin: 20px 0 22px; }
.hero-copy .lead { margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta-note { display: flex; flex-direction: column; gap: 2px; font-size: 14px; color: var(--text-3); line-height: 1.4; }
.cta-note b { color: var(--text-2); font-weight: 600; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 56px; align-items: start; }
  .hero-copy { padding-top: clamp(24px, 4vw, 64px); }
}

/* Card-draw stage */
.stage {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(420px 300px at 22% 16%, rgba(139, 92, 246, .30), transparent 70%),
    radial-gradient(480px 300px at 50% 105%, rgba(242, 196, 90, .10), transparent 70%),
    linear-gradient(180deg, rgba(38, 25, 86, .66), rgba(17, 14, 33, .78));
  box-shadow: 0 50px 120px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .07);
  padding: 20px 18px 18px;
}
.oracle { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; min-height: 150px; }
.vesper { width: 104px; height: auto; margin: -4px -6px -10px -8px; }
.vesper svg { width: 100%; height: auto; overflow: visible; }
.bubble {
  position: relative; align-self: center;
  padding: 14px 16px; border-radius: 20px 20px 20px 6px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  font-size: 15px; line-height: 1.55; color: var(--text-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.bubble p + p { margin-top: 8px; }
.bubble .bname { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; color: var(--text); margin-bottom: 8px; }
.bubble .kw { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.bubble .kw span { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--gold-2); background: rgba(242, 196, 90, .1); border: 1px solid rgba(242, 196, 90, .22); }
.bubble .q { display: none; font-style: italic; color: var(--violet-3); }
.bubble.fresh { animation: bubbleIn .5s var(--ease); }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.table { position: relative; height: 196px; margin-top: 8px; perspective: 1400px; transition: height .6s var(--ease); }
.table.picked { height: 250px; }
.fcard {
  /* --o is the card's offset from the middle of the fan (-3 … 3) */
  --w: 76px; --step: 31px; --o: 0; --dy: 0px;
  position: absolute; left: 50%; bottom: 34px;
  width: var(--w); aspect-ratio: 3 / 5;
  transform-origin: 50% 100%;
  transform: translateX(-50%) translate(calc(var(--o) * var(--step)), calc(var(--o) * var(--o) * 3px)) rotate(calc(var(--o) * 6.5deg)) translateY(var(--dy));
  transition: transform .75s var(--ease), opacity .45s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.fcard:hover, .fcard:focus-visible { --dy: -14px; }
.fcard:focus-visible { outline: none; }
.fcard:focus-visible .face { box-shadow: 0 0 0 2px var(--violet-3), 0 16px 30px -10px rgba(0, 0, 0, .8); }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.face {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: 8% / 4.8%;
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 16px 30px -10px rgba(0, 0, 0, .8);
}
.face.back { background: #fff url('/assets/cards/sm/back.webp') center / cover; }
.face.front { transform: rotateY(180deg); background: #EFE6CF; }
.face img { width: 100%; height: 100%; object-fit: cover; }
.table.picked .fcard:not(.chosen) { opacity: 0; transform: translateX(-50%) translate(calc(var(--o) * var(--step) * 1.6), 90px) rotate(calc(var(--o) * 12deg)) translateY(0px); pointer-events: none; }
.table.picked .fcard.chosen { transform: translateX(-50%) translate(0px, 18px) rotate(0deg) translateY(0px) scale(1.62); z-index: 9; cursor: default; }
.fcard.revealed .flip { transform: rotateY(180deg); }
.fcard.revealed .face.front { box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 44px rgba(242, 196, 90, .35), 0 18px 34px -12px rgba(0, 0, 0, .8); }
.stage-foot { position: relative; z-index: 10; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; min-height: 50px; margin-top: 10px; }
.stage-hint { font-size: 14px; color: var(--text-3); display: inline-flex; align-items: center; gap: 8px; }
.stage-hint::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.stage-actions { display: none; flex-wrap: wrap; justify-content: center; gap: 10px; }
.stage.done .stage-hint { display: none; }
.stage.done .stage-actions { display: flex; animation: bubbleIn .5s var(--ease); }
.stage-note { margin-top: 12px; text-align: center; font-size: 13px; color: var(--text-3); }

@media (min-width: 560px) {
  .stage { padding: 26px 26px 22px; }
  .vesper { width: 138px; }
  .oracle { min-height: 170px; }
  .bubble .q { display: block; }
  .table, .table.picked { height: 330px; }
  .fcard { --w: 104px; --step: 46px; bottom: 44px; }
  .table.picked .fcard.chosen { transform: translateX(-50%) translate(0px, 24px) rotate(0deg) translateY(0px) scale(1.66); }
}

/* Vesper moods (the drawing ships its own face rules; these add motion) */
.mystic .v-body { transition: transform .6s var(--ease); }
.mystic .v-head { transition: transform .6s var(--ease); }
.mystic .v-m, .mystic .v-open, .mystic .v-happy, .mystic .v-calm, .mystic .v-blush, .mystic .v-shine, .mystic .v-gem-glow, .mystic .v-orb-halo { transition: opacity .35s ease; }
.mystic[data-state="joy"] .v-body { transform: translateY(-8px); }
.mystic[data-state="joy"] .v-head { transform: rotate(-3deg); }
.mystic[data-state="wink"] .v-head { transform: rotate(-5deg); }
.mystic[data-state="think"] .v-head { transform: rotate(-2deg); }
.vesper .mystic { animation: float 5.5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-5px); } }
.mystic[data-state="idle"] .v-open, .mystic[data-state="speak"] .v-open { animation: blink 5s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.08); } }
.mystic[data-state="speak"] .v-m-talk { animation: talk .34s ease-in-out infinite alternate; transform-origin: 160px 212px; }
@keyframes talk { from { transform: scaleY(.55); } to { transform: scaleY(1.1); } }
.mystic[data-state="think"] .v-orb-halo { animation: orb 1.2s ease-in-out infinite alternate; }
@keyframes orb { to { opacity: .45; } }

/* ── Stats ───────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { background: rgba(17, 14, 33, .92); padding: 22px 22px 20px; }
.stat b { display: block; font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.stat span { font-size: 14.5px; color: var(--text-3); }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } .stat { padding: 28px 28px 24px; } }

/* ── Feature rows ────────────────────────────────────── */
.feature { display: grid; gap: 48px; align-items: center; }
.feature-copy .h2 { margin: 16px 0 20px; }
.feature-copy .lead + .lead { margin-top: 14px; }
@media (min-width: 960px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; }
  .feature.mirror .feature-media { order: -1; }
}
.ticks { display: grid; gap: 14px; margin-top: 28px; }
.ticks li { display: flex; gap: 14px; color: var(--text-2); line-height: 1.5; }
.ticks li::before {
  content: ''; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  border: 1px solid rgba(242, 196, 90, .38);
  background: rgba(242, 196, 90, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFE08A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks b { color: var(--text); font-weight: 700; }
.feature-media { position: relative; display: flex; justify-content: center; align-items: center; }
.feature-media::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: min(560px, 110%); aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--glow, rgba(139, 92, 246, .32)), transparent 64%);
}

/* Phone frame around real simulator screenshots (they carry their own status bar). */
.phone {
  --pw: 280px;
  position: relative; width: var(--pw); flex: none;
  padding: calc(var(--pw) * .03);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(150deg, #3A3452 0%, #16131F 22%, #0C0A12 60%, #2A2440 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 5px #0A0810,
    0 50px 90px -30px rgba(0, 0, 0, .85),
    0 0 0 1px rgba(0, 0, 0, .6);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1206 / 2622; border-radius: calc(var(--pw) * .135); background: #0D0B1A; }
.phone::after { /* side button */
  content: ''; position: absolute; right: -2px; top: 24%; width: 3px; height: 11%; border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #2A2440, #4A4466);
}
.duo { position: relative; display: flex; justify-content: center; padding: 10px 0; }
.duo .phone.front { transform: translateX(16%); z-index: 2; }
.duo .phone.back { position: absolute; top: 50%; left: 50%; transform: translate(-86%, -50%) rotate(-6deg) scale(.86); filter: brightness(.72) saturate(.9); z-index: 1; }
@media (max-width: 600px) {
  .phone { --pw: 236px; }
  .duo .phone.front { transform: translateX(20%); }
  .duo .phone.back { transform: translate(-88%, -50%) rotate(-6deg) scale(.84); }
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px;
  border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--violet)); box-shadow: 0 0 10px var(--c, var(--violet)); }

/* ── Daily rail ──────────────────────────────────────── */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(262px, 1fr); gap: 18px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 6px var(--gutter) 22px; margin: 0 calc(var(--gutter) * -1);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.tile {
  scroll-snap-align: start; position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column;
  height: 560px; padding: 26px 22px 0; border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
}
.tile::before { content: ''; position: absolute; inset: auto -20% -30% -20%; height: 70%; background: radial-gradient(closest-side, var(--c, rgba(139, 92, 246, .35)), transparent); opacity: .55; z-index: -1; }
.tile .h3 { margin-bottom: 6px; }
.tile p { font-size: 15px; color: var(--text-2); line-height: 1.5; }
.tile .phone { --pw: 230px; position: absolute; left: 50%; top: 174px; transform: translateX(-50%); }
@media (min-width: 1100px) { .rail { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; margin: 0; padding: 6px 0 0; } .tile { height: 540px; } .tile .phone { --pw: 184px; } }

/* ── Library teaser ──────────────────────────────────── */
.library { display: grid; gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(42, 27, 94, .55), rgba(17, 14, 33, .6)); overflow: hidden; }
.library .h2 { margin: 16px 0 18px; }
.library .btn { margin-top: 28px; }
.lib-fan { --w: 76px; --step: 22px; position: relative; height: 200px; }
.lib-fan a {
  position: absolute; left: 50%; bottom: 26px; width: var(--w); aspect-ratio: 3 / 5;
  transform-origin: 50% 100%;
  transform: translateX(-50%) translate(calc(var(--o) * var(--step)), calc(var(--o) * var(--o) * 2.5px)) rotate(calc(var(--o) * 5deg)) translateY(0);
  border-radius: 8% / 4.8%; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .45), 0 18px 32px -12px rgba(0, 0, 0, .85);
  transition: transform .35s var(--ease);
}
.lib-fan a:hover, .lib-fan a:focus-visible { transform: translateX(-50%) translate(calc(var(--o) * var(--step)), calc(var(--o) * var(--o) * 2.5px)) rotate(calc(var(--o) * 5deg)) translateY(-18px); }
.lib-fan img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 560px) { .lib-fan { --w: 104px; --step: 40px; height: 250px; } }
@media (min-width: 960px) { .library { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } .lib-fan { --w: 122px; --step: 46px; height: 300px; } }

/* ── More grid ───────────────────────────────────────── */
.more { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.more-item { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.more-item:hover { border-color: var(--line-2); background: var(--surface-2); }
.more-item .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.more-item .ico svg { width: 22px; height: 22px; }
.more-item p { margin-top: 6px; font-size: 15px; color: var(--text-2); line-height: 1.55; }

/* ── FAQ ─────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 36px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; } .faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; } }
.faq-list { display: grid; gap: 10px; }
.qa { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: border-color .25s, background-color .25s; }
.qa[open] { border-color: var(--line-2); background: var(--surface-2); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 16.5px; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; flex: none; width: 12px; height: 12px; border-right: 2px solid var(--violet); border-bottom: 2px solid var(--violet); transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.qa[open] summary::after { transform: translateY(2px) rotate(225deg); }
.qa .a { padding: 0 22px 20px; color: var(--text-2); font-size: 15.5px; }
.qa .a a { color: var(--violet-3); text-decoration: underline; text-underline-offset: 3px; }

/* ── Final CTA ───────────────────────────────────────── */
.final {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(48px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 360px at 50% 0%, rgba(139, 92, 246, .38), transparent 70%),
    radial-gradient(500px 300px at 50% 110%, rgba(242, 196, 90, .16), transparent 70%),
    linear-gradient(180deg, #1D1540, #120E24);
}
.final .h2 { margin: 16px auto 16px; max-width: 14em; }
.final .lead { margin: 0 auto 34px; }
.final-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 22px 30px; }
.qr { display: none; align-items: center; gap: 14px; text-align: left; font-size: 14px; color: var(--text-3); line-height: 1.45; }
.qr span { display: block; padding: 10px; width: 104px; height: 104px; border-radius: 16px; background: #F4F1FF; }
.qr b { display: block; color: var(--text-2); font-weight: 700; }
@media (min-width: 960px) and (hover: hover) { .qr { display: flex; } }
.final-cards { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5; display: none; }
@media (min-width: 860px) { .final-cards { display: block; } }
.final-cards img { position: absolute; width: 110px; border-radius: 8% / 4.8%; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .8); }

/* ── Footer ──────────────────────────────────────────── */
.foot { margin-top: clamp(72px, 10vw, 120px); border-top: 1px solid var(--line); padding: 56px 0 40px; background: rgba(8, 6, 16, .6); }
.foot-top { display: grid; gap: 36px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.foot-brand p { color: var(--text-3); font-size: 15px; }
.foot-col h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; }
.foot-col li + li { margin-top: 10px; }
.foot-col a { color: var(--text-2); font-size: 15px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13.5px; color: var(--text-3); }
.foot-bottom a:hover { color: var(--text); }
.foot-note { max-width: 60em; }
@media (min-width: 860px) { .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot-brand { grid-column: auto; } }

/* ── Inner pages (card library, card, legal) ─────────── */
.page { padding: calc(var(--nav-h) + clamp(28px, 5vw, 56px)) 0 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--text-3); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .5; }
.page-head { max-width: 780px; margin-bottom: 44px; }
.page-head .h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); margin: 16px 0 18px; }

/* Card library */
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 48px; }
.jump a { height: 38px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; font-weight: 600; color: var(--text-2); transition: border-color .2s, color .2s; }
.jump a:hover { border-color: var(--line-2); color: var(--text); }
.group { margin-bottom: 64px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; padding-bottom: 16px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.group-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 12px; }
.group-head h2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 14px var(--c); }
.group-head p { color: var(--text-3); font-size: 15px; }
.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 22px 16px; }
@media (min-width: 700px) { .deck { grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 28px 20px; } }
.dcard { display: flex; flex-direction: column; gap: 10px; }
.dcard .img { position: relative; aspect-ratio: 3 / 5; border-radius: 8% / 4.8%; overflow: hidden; background: #1A1530; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 16px 30px -14px rgba(0, 0, 0, .9); transition: transform .3s var(--ease), box-shadow .3s; }
.dcard img { width: 100%; height: 100%; object-fit: cover; }
.dcard:hover .img { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 34px rgba(167, 139, 250, .35), 0 22px 36px -14px rgba(0, 0, 0, .9); }
.dcard b { font-size: 15px; font-weight: 700; line-height: 1.3; }
.dcard small { display: block; margin-top: 2px; font-size: 13px; color: var(--text-3); line-height: 1.4; }

/* Card page */
.card-hero { display: grid; gap: 36px; align-items: start; margin-bottom: 56px; }
.card-art { width: min(220px, 56vw); margin: 0 auto; aspect-ratio: 3 / 5; border-radius: 8% / 4.8%; overflow: hidden; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 0 80px rgba(167, 139, 250, .25), 0 40px 70px -30px rgba(0, 0, 0, .9); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-hero .h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); margin: 16px 0 16px; }
.h1-sub { display: block; margin-top: 10px; font-size: clamp(1.05rem, 1.8vw, 1.3rem); font-weight: 600; letter-spacing: 0; color: var(--text-3); }
.card-hero .lead { margin-bottom: 26px; }
.kw-row + .kw-row { margin-top: 14px; }
.kw-row h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.kw-row .chips { margin-top: 0; }
.kw-row.rev .chip { color: var(--text-3); }
@media (min-width: 860px) { .card-hero { grid-template-columns: 320px minmax(0, 1fr); gap: 64px; } .card-art { width: 100%; position: sticky; top: calc(var(--nav-h) + 28px); } }
.card-body { display: grid; gap: 40px; }
@media (min-width: 1040px) { .card-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; } }
.prose { max-width: 720px; }
.prose section { margin-bottom: 44px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.prose h2 { font-size: clamp(1.45rem, 2.6vw, 1.9rem); margin-bottom: 16px; display: flex; align-items: center; gap: 12px; }
.prose h2 i { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--violet)); box-shadow: 0 0 12px var(--c, var(--violet)); flex: none; }
.prose p { color: var(--text-2); font-size: 17.5px; line-height: 1.75; }
.prose p + p { margin-top: 14px; }
.reflect { padding: 24px 26px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(139, 92, 246, .14), rgba(242, 196, 90, .05)); border: 1px solid var(--line-2); }
.toc { position: sticky; top: calc(var(--nav-h) + 28px); display: none; align-self: start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.toc a { display: block; padding: 6px 0; font-size: 15px; color: var(--text-2); }
.toc a:hover { color: var(--text); }
@media (min-width: 1040px) { .toc { display: block; } }
.pager { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 12px 0 0; }
.pager a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.pager a:hover { border-color: var(--line-2); background: var(--surface-2); }
.pager img { width: 46px; border-radius: 8% / 4.8%; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3); flex: none; }
.pager small { display: block; font-size: 12.5px; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.pager b { font-size: 15.5px; line-height: 1.3; }
.pager .next { flex-direction: row-reverse; text-align: right; }
.promo { margin-top: 72px; display: grid; gap: 30px; align-items: center; padding: clamp(28px, 5vw, 48px); border-radius: var(--radius-lg); border: 1px solid var(--line-2); background: radial-gradient(500px 300px at 0% 0%, rgba(139, 92, 246, .3), transparent 70%), linear-gradient(135deg, #1D1540, #120E24); }
.promo .h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 14px 0 14px; }
.promo .lead { margin-bottom: 24px; }
.promo .phone { --pw: 210px; margin: 0 auto -120px; }
.promo-media { overflow: hidden; margin: 0 calc(clamp(28px, 5vw, 48px) * -1) calc(clamp(28px, 5vw, 48px) * -1); padding-top: 10px; display: flex; justify-content: center; height: 320px; }
@media (min-width: 860px) { .promo { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); } .promo-media { margin: 0 0 calc(clamp(28px, 5vw, 48px) * -1); height: 340px; } }

/* Legal */
.legal { max-width: 780px; }
.legal .lead { margin-bottom: 18px; }
.legal .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--text-3); margin-bottom: 30px; }
.legal .toc-box { padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); margin-bottom: 44px; }
.legal .toc-box h2 { font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 10px; }
.legal .toc-box ol, .legal .toc-box ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .toc-box a { color: var(--text-2); }
.legal .toc-box a:hover { color: var(--text); }
.legal section { margin-bottom: 40px; scroll-margin-top: calc(var(--nav-h) + 24px); }
.legal section > h2 { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin-bottom: 14px; }
.legal h3 { font-size: 1.1rem; font-weight: 700; margin: 20px 0 8px; }
.legal p, .legal li { color: var(--text-2); font-size: 16.5px; line-height: 1.75; }
.legal p + p { margin-top: 12px; }
.legal section ul, .legal section ol { padding-left: 22px; margin: 10px 0; display: grid; gap: 6px; }
.legal section ul { list-style: disc; }
.legal a { color: var(--violet-3); text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--text); }
.legal .callout { margin: 18px 0; padding: 18px 22px; border-radius: 18px; background: rgba(139, 92, 246, .1); border: 1px solid var(--line-2); }
.legal .callout > strong:first-child { display: block; margin-bottom: 6px; }

/* ── Reveal on scroll ────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv.d1 { transition-delay: .08s; }
.js .rv.d2 { transition-delay: .16s; }
.js .rv.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
