/* Lexicon Siege — site. The game's world: a night-blue sky, gold for the main action,
   one colour per level (A1 violet, A2 blue, B1 orange, B2 red), low-poly shapes. */

@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/fonts/figtree-latin-700-normal.woff2') format('woff2'); }

:root {
  --sky-1: #2c5cb0;
  --sky-2: #1d3a78;
  --sky-3: #172f66;
  --deep: #12254f;
  --gold: #ffc93c;
  --gold-edge: #e8960c;
  --a1: #8b5cf6;
  --a2: #2f8cff;
  --b1: #ff9a1f;
  --b2: #ff4f6d;
  --green: #2fd17a;
  --teal: #3fb8af;
  --ink: #1d2b36;
  --ink-soft: #4c5d6b;
  --paper: #ffffff;
  --paper-2: #f4f6fb;
  --on-sky: #ffffff;
  --on-sky-soft: #c9d6f5;
  --lift: 0 10px 30px rgba(9, 20, 52, 0.28);
  --radius: 22px;
  --wrap: 1120px;
  --display: 'Bricolage Grotesque', ui-rounded, 'Segoe UI', system-ui, sans-serif;
  --text: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 500 1.0625rem/1.6 var(--text);
  color: var(--on-sky);
  background: var(--sky-3) linear-gradient(180deg, var(--sky-1) 0, var(--sky-2) 700px, var(--sky-3) 1400px) no-repeat;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 12px; z-index: 50; font-weight: 700; }
.skip:focus { left: 16px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(29, 58, 120, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.2rem/1 var(--display); letter-spacing: -0.01em; margin-right: auto; min-height: 44px; }
.brand img { width: 40px; height: 40px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { text-decoration: none; font-weight: 700; font-size: 0.95rem; color: var(--on-sky-soft); padding: 10px 12px; border-radius: 12px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { color: var(--on-sky); background: rgba(255, 255, 255, 0.08); }
.lang-switch { font-weight: 700; font-size: 0.9rem; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0 14px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; }
.lang-switch:hover { border-color: rgba(255, 255, 255, 0.6); }
.lang-switch .flag { width: 22px; height: 15px; border-radius: 3px; }
@media (max-width: 760px) { .nav { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 16px; cursor: pointer;
  font: 800 1.05rem/1 var(--display); letter-spacing: 0; text-decoration: none;
  background: var(--gold); color: var(--ink); box-shadow: 0 5px 0 var(--gold-edge);
  transition: transform 0.08s, box-shadow 0.08s;
}
.btn:hover { filter: brightness(1.04); }
.btn:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--gold-edge); }

/* ---------- Night sky: stars behind every dark section ---------- */
body::before, body::after {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-repeat: repeat;
}
body::before {
  background-image:
    radial-gradient(1.4px 1.4px at 22px 34px, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 140px 90px, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1.6px 1.6px at 260px 20px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 90px 210px, rgba(255, 255, 255, 0.55), transparent 60%),
    radial-gradient(1.2px 1.2px at 230px 250px, rgba(255, 233, 170, 0.7), transparent 60%),
    radial-gradient(1px 1px at 300px 160px, rgba(255, 255, 255, 0.45), transparent 60%);
  background-size: 320px 300px;
  opacity: 0.7;
}
body::after {
  background-image:
    radial-gradient(1.8px 1.8px at 60px 120px, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1.2px 1.2px at 400px 60px, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1.5px 1.5px at 310px 330px, rgba(200, 220, 255, 0.8), transparent 60%);
  background-size: 470px 410px;
  opacity: 0.5;
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 48px 0 104px; isolation: isolate; overflow-x: clip; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 420px at 78% 42%, rgba(139, 92, 246, 0.32), transparent 70%),
    radial-gradient(520px 360px at 12% 10%, rgba(47, 140, 255, 0.28), transparent 70%);
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(255, 201, 60, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 201, 60, 0.28);
}
.eyebrow::before { content: ''; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); border-radius: 2px; flex: none; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4rem); margin-bottom: 22px; text-shadow: 0 2px 30px rgba(10, 20, 60, 0.35); }
.hero h1 em { font-style: normal; color: var(--gold); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--on-sky-soft); max-width: 36em; }
.hero .lead { margin-bottom: 30px; }
.store-note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 0.95rem; color: var(--on-sky-soft); }
.store-note svg { width: 18px; height: 18px; flex: none; }
.hero-badge {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 28px; padding: 10px 18px 10px 12px;
  border-radius: 18px; background: rgba(255, 255, 255, 0.07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-weight: 700; font-size: 0.95rem; color: #fff;
}
.hero-badge .flags { display: flex; gap: 5px; }
.hero-badge .flag { width: 27px; height: 18px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }

/* Email capture */
.notify { display: flex; gap: 10px; max-width: 480px; }
.notify input[type='email'] {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 18px; border-radius: 16px; border: 2px solid transparent;
  font: 500 1rem var(--text); color: var(--ink); background: var(--paper); box-shadow: 0 8px 24px rgba(5, 14, 40, 0.25);
}
.notify input[type='email']::placeholder { color: #6b7a88; }
.notify input[type='email']:focus { outline: none; border-color: var(--gold); }
.notify .btn { min-height: 54px; }
.hp { position: absolute; left: -9999px; }
@media (max-width: 480px) { .notify { flex-direction: column; } .notify .btn { width: 100%; } }

/* Phone mock-up on its floating island */
.stage { --pw: min(280px, 70vw); position: relative; display: flex; flex-direction: column; align-items: center; padding: 24px 0 calc(var(--pw) * 0.62); }
.phone {
  position: relative; z-index: 2; width: var(--pw, min(300px, 74vw)); aspect-ratio: 390 / 844; border-radius: 44px; padding: 10px;
  background: linear-gradient(145deg, #34416a, #0d1630 60%, #1b2547);
  box-shadow: 0 40px 70px rgba(5, 12, 35, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06), inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 35px; }
.phone::after {
  content: ''; position: absolute; inset: 10px; border-radius: 35px; pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 32%);
}
.phone.tilt { transform: rotate(-4deg); }
.island { position: absolute; z-index: 1; pointer-events: none; filter: drop-shadow(0 30px 40px rgba(5, 12, 35, 0.45)); }
.hero-island { width: calc(var(--pw) * 1.6); left: 50%; top: calc(24px + var(--pw) * 1.68); transform: translateX(-50%); }
.shard { position: absolute; z-index: 1; width: var(--s, 60px); filter: drop-shadow(0 10px 14px rgba(5, 12, 35, 0.35)); }
.shard.s1 { --s: 74px; top: 8%; left: 4%; animation: float 7s ease-in-out infinite; }
.shard.s2 { --s: 46px; bottom: 22%; left: 6%; animation: float 6s ease-in-out -2s infinite; }
.shard.s3 { --s: 58px; top: 18%; right: 2%; animation: float 8s ease-in-out -4s infinite; }
.shard.s4 { --s: 36px; top: 47%; right: 1%; animation: float 5.5s ease-in-out -1s infinite; }
.glow { position: absolute; inset: 0 -4% 10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(139, 92, 246, 0.5), rgba(47, 140, 255, 0.15) 60%, transparent); filter: blur(12px); }
.tag {
  position: absolute; z-index: 3; padding: 6px 13px; border-radius: 999px; background: #fff; color: var(--ink);
  font: 700 0.95rem/1.2 var(--text); box-shadow: 0 8px 18px rgba(5, 12, 35, 0.3);
  animation: float-tag 6s ease-in-out infinite;
}
.tag::after { content: ''; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.tag.t1 { top: 30%; left: -2%; }
.tag.t2 { top: 1%; right: 2%; animation-delay: -2s; }
.tag.t3 { top: 64%; right: -2%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px) rotate(6deg); } }
@keyframes float-tag { 50% { transform: translateY(-8px); } }

@media (max-width: 900px) {
  .hero { padding: 28px 0 88px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .stage { padding-top: 12px; }
  .hero-island { top: calc(12px + var(--pw) * 1.68); }
  .tag { font-size: 0.85rem; }
  .tag.t1 { left: 0; }
  .tag.t3 { top: auto; bottom: 16%; right: 0; }
}

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 14px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.kicker::before { content: ''; width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); border-radius: 2px; }

/* Paper band: white cards on a light background, for reading. Its edges are a low-poly ridge. */
.paper { background: var(--paper-2); color: var(--ink); position: relative; }
.paper + .paper { margin-top: -1px; } /* no hairline between two light bands */
.paper .lead, .paper .muted { color: var(--ink-soft); }
.paper .kicker { color: #5b35d5; }
.edge-top::before, .edge-bottom::after {
  content: ''; position: absolute; left: 0; right: 0; height: 30px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 30' preserveAspectRatio='none'%3E%3Cpolygon points='0,30 0,18 34,6 70,17 104,2 140,15 172,8 206,21 240,18 240,30' fill='%23f4f6fb'/%3E%3Cpolygon points='34,6 70,17 52,30' fill='%23ffffff' opacity='.7'/%3E%3Cpolygon points='104,2 140,15 112,30' fill='%23e3e9f5'/%3E%3Cpolygon points='172,8 206,21 180,30' fill='%23ffffff' opacity='.7'/%3E%3Cpolygon points='0,18 34,6 20,30' fill='%23e3e9f5'/%3E%3C/svg%3E") repeat-x bottom / 240px 30px;
}
.edge-top::before { top: -29px; }
.edge-bottom::after { bottom: -29px; transform: scaleY(-1); z-index: 1; }

/* How it plays: three steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step {
  background: var(--paper); border-radius: var(--radius); padding: 30px 26px 28px; position: relative;
  box-shadow: 0 1px 0 rgba(23, 47, 102, 0.04), 0 12px 32px rgba(23, 47, 102, 0.09);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px;
  font: 800 1.35rem/1 var(--display); color: #fff;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 78%, #fff) 0 50%, var(--c) 50%);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 50px; right: -17px; z-index: 1; width: 12px; height: 12px;
  border-top: 3px solid #b8c4dc; border-right: 3px solid #b8c4dc; transform: rotate(45deg);
}
.step:nth-child(1) { --c: var(--a1); }
.step:nth-child(2) { --c: var(--a2); }
.step:nth-child(3) { --c: var(--b1); }
.step h3 { font-size: 1.35rem; margin-bottom: 8px; }
.step p { color: var(--ink-soft); }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .step:not(:last-child)::after { display: none; } }

/* Features: a bento of glass cards on the night sky */
.features-band { position: relative; padding-top: 120px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  position: relative; border-radius: var(--radius); padding: 26px 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(5, 12, 35, 0.22);
  transition: transform 0.25s, box-shadow 0.25s;
}
.feature:hover { transform: translateY(-4px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 24px 48px rgba(5, 12, 35, 0.3); }
.feature.f-book { grid-column: span 2; }
.feature.f-shield { grid-column: 1 / -1; padding: 22px 28px; }
.feature.f-book { background: radial-gradient(420px 220px at 100% 0, rgba(139, 92, 246, 0.3), transparent 70%), linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 70%); }
.feature.f-shield { display: flex; gap: 22px; align-items: center; background: radial-gradient(420px 220px at 100% 100%, rgba(47, 209, 122, 0.18), transparent 70%), linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 70%); }
.feature.f-shield .ico-tile { margin-bottom: 0; flex: none; }
.ico-tile {
  display: grid; place-items: center; width: 68px; height: 68px; margin-bottom: 18px; border-radius: 20px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06) 70%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.feature .ico { width: 46px; height: 46px; }
.feature h3 { font-size: 1.25rem; margin-bottom: 8px; }
.feature p { color: var(--on-sky-soft); }
@media (max-width: 1000px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .feature.f-book, .feature.f-shield { grid-column: auto; }
  .feature.f-shield { display: block; }
  .feature.f-shield .ico-tile { margin-bottom: 18px; }
}

/* Exercise chips, each with the colour of its enemy */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.92rem; padding: 7px 13px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.chips li::before { content: ''; width: 9px; height: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--dot, var(--gold)); }

/* Screens gallery: staggered phones; scrolls sideways on phones */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; padding-bottom: 32px; }
.gallery::before {
  content: ''; position: absolute; left: 6%; right: 6%; bottom: 0; height: 160px; z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, 0.35), transparent); filter: blur(8px);
}
.gallery figure { margin: 0; }
.gallery figure:nth-child(even) { transform: translateY(40px); }
.gallery .phone { width: 100%; border-radius: 36px; padding: 8px; transition: transform 0.3s; }
.gallery .phone::after { inset: 8px; border-radius: 29px; }
.gallery figure:hover .phone { transform: translateY(-6px); }
.gallery .phone img { border-radius: 29px; }
.gallery figcaption { position: relative; z-index: 3; margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 10px; font-weight: 700; color: #fff; text-align: left; line-height: 1.3; text-wrap: balance; }
.gallery figcaption span {
  display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 9px;
  font: 800 0.9rem/1 var(--display); color: var(--ink); background: var(--gold); box-shadow: 0 3px 0 var(--gold-edge);
}
.screens { padding-bottom: 120px; }
@media (max-width: 900px) {
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px; padding: 4px 16px 16px; margin-inline: -16px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery::before { display: none; }
  .gallery figure { flex: 0 0 64%; max-width: 260px; scroll-snap-align: center; }
  .gallery figure:nth-child(even) { transform: none; }
}

/* Languages */
.langs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.langs li {
  background: var(--paper); border-radius: 20px; padding: 22px 12px 18px; text-align: center; font-weight: 700; font-size: 1.05rem;
  box-shadow: 0 12px 28px rgba(23, 47, 102, 0.08); transition: transform 0.2s, box-shadow 0.2s;
}
.langs li:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(23, 47, 102, 0.13); }
.langs .flag { width: 56px; height: 38px; border-radius: 8px; margin: 0 auto 14px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 6px 12px rgba(23, 47, 102, 0.15); }
.langs small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 0.88rem; }
@media (max-width: 900px) { .langs { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 400px) { .langs { gap: 10px; } .langs li { padding: 18px 6px 14px; font-size: 0.98rem; } }

/* Levels: a path from A1 to B2, each level in the colour of the mage's hat */
.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; list-style: none; padding: 0; margin: 56px 0 0; position: relative; }
.levels::before { content: ''; position: absolute; left: 8%; right: 8%; top: 52px; border-top: 3px dashed #c3cde2; }
.level {
  position: relative; border-radius: var(--radius); padding: 22px 22px 24px; color: var(--ink);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 13%, #fff), #fff 58%);
  box-shadow: inset 0 4px 0 var(--c), 0 12px 28px rgba(23, 47, 102, 0.09);
}
.level .hat { position: absolute; top: 16px; right: 16px; width: 54px; height: 54px; filter: drop-shadow(0 6px 6px rgba(23, 47, 102, 0.18)); }
.level b { font: 800 2.4rem/1 var(--display); display: block; color: var(--c-ink); letter-spacing: -0.02em; }
.level span { display: block; font: 800 1.15rem/1.2 var(--display); margin: 8px 0 10px; }
.level p { font-size: 0.97rem; color: var(--ink-soft); }
.level.a1 { --c: var(--a1); --c-ink: #5b35d5; }
.level.a2 { --c: var(--a2); --c-ink: #1a5fc0; }
.level.b1 { --c: var(--b1); --c-ink: #a85300; }
.level.b2 { --c: var(--b2); --c-ink: #c22a47; }
@media (max-width: 900px) { .levels { grid-template-columns: 1fr 1fr; } .levels::before { display: none; } }
@media (max-width: 480px) { .levels { grid-template-columns: 1fr; } }

/* FAQ */
.faq-band { padding-top: 0; padding-bottom: 104px; }
.faq { max-width: 780px; margin-inline: auto; }
.faq details { background: var(--paper); border-radius: 18px; margin-bottom: 12px; box-shadow: 0 8px 22px rgba(23, 47, 102, 0.07); transition: box-shadow 0.2s; }
.faq details[open] { box-shadow: inset 0 0 0 2px rgba(139, 92, 246, 0.35), 0 12px 28px rgba(23, 47, 102, 0.1); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 68px 20px 24px; font: 800 1.12rem/1.3 var(--display); position: relative; min-height: 44px; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 34px; height: 34px; margin-top: -17px; border-radius: 11px;
  background: linear-gradient(#5b35d5, #5b35d5) center / 12px 3px no-repeat, linear-gradient(#5b35d5, #5b35d5) center / 3px 12px no-repeat, #efeaff;
  transition: transform 0.25s, background-color 0.25s;
}
.faq summary:hover::after { background-color: #e4dcff; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 24px 22px; color: var(--ink-soft); }
.faq details > div p + p { margin-top: 10px; }
.faq a, .faq-more a { color: #5b35d5; font-weight: 700; }
.faq-more { text-align: center; margin-top: 26px; color: var(--ink-soft); font-weight: 700; }
.faq-more a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }

/* Final call */
.cta-band { text-align: center; padding: 120px 0 96px; }
.cta-card {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 34px; padding: 40px 24px 60px;
  background:
    radial-gradient(420px 260px at 50% 0, rgba(255, 201, 60, 0.22), transparent 70%),
    linear-gradient(160deg, #46339e, #271a69 60%, #1d1452);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 70px rgba(5, 12, 35, 0.45);
}
.cta-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.7;
  background-image:
    radial-gradient(1.5px 1.5px at 30px 40px, #fff, transparent 60%),
    radial-gradient(1px 1px at 120px 130px, #fff, transparent 60%),
    radial-gradient(1.2px 1.2px at 210px 60px, #ffe9aa, transparent 60%);
  background-size: 260px 190px;
}
.cta-card .shard { opacity: 0.85; z-index: -1; }
.cta-card .shard.s1 { top: 14%; left: 7%; }
.cta-card .shard.s2 { bottom: 12%; left: 12%; }
.cta-card .shard.s3 { top: 16%; right: 8%; }
.cta-card .shard.s4 { bottom: 16%; right: 13%; }
.cta-art { position: relative; width: 220px; height: 214px; margin: 0 auto 18px; }
.cta-island { width: 220px; left: 0; bottom: 0; }
.cta-art .mark { position: absolute; z-index: 2; left: 50%; top: 8px; width: 108px; height: 108px; transform: translateX(-50%); filter: drop-shadow(0 10px 10px rgba(5, 12, 35, 0.35)); }
.cta-card h2, .cta-card .lead, .cta-card .notify { position: relative; z-index: 2; }
.cta-card h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-bottom: 14px; }
.cta-card .lead { margin: 0 auto 30px; }
.cta-card .notify { margin-inline: auto; }
@media (max-width: 600px) {
  .cta-band { padding: 104px 0 72px; }
  .cta-card { padding: 28px 18px 40px; border-radius: 28px; }
  .cta-card .shard { opacity: 0.5; --s: 34px; }
  .cta-card .shard.s2, .cta-card .shard.s4 { display: none; }
}

/* ---------- Text pages (privacy, legal, help) ---------- */
.doc { background: var(--paper); color: var(--ink); border-radius: 28px; padding: clamp(28px, 5vw, 56px); margin: 40px auto 80px; max-width: 820px; box-shadow: var(--lift); }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc .updated { color: var(--ink-soft); margin-bottom: 28px; }
.doc h2 { font-size: 1.45rem; margin: 34px 0 10px; }
.doc p, .doc li { color: #334452; }
.doc p + p { margin-top: 10px; }
.doc ul { padding-left: 1.2em; margin: 10px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: #5b35d5; font-weight: 700; }
.doc table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #e3e8f0; vertical-align: top; }
.doc th { font-weight: 700; color: var(--ink); }
.table-scroll { overflow-x: auto; }
.form { display: grid; gap: 14px; margin-top: 16px; }
.form label { font-weight: 700; display: grid; gap: 6px; }
.form input, .form textarea, .form select { font: 500 1rem var(--text); padding: 12px 14px; min-height: 48px; border-radius: 12px; border: 2px solid #d6deea; color: var(--ink); background: #fff; }
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--a1); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { justify-self: start; }


/* ---------- Footer ---------- */
.foot { position: relative; padding: 48px 0 40px; color: var(--on-sky-soft); font-size: 0.95rem; background: linear-gradient(180deg, rgba(10, 20, 52, 0), rgba(10, 20, 52, 0.45)); }
.foot::before { content: ''; position: absolute; top: 0; left: 50%; width: min(var(--wrap), 100% - 32px); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent); }
.foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 20px 40px; align-items: center; }
.foot-brand .brand { color: #fff; margin: 0 0 6px -2px; display: inline-flex; }
.foot-brand p { max-width: 28em; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px 6px; }
.foot nav a { text-decoration: none; padding: 10px 10px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; font-weight: 700; }
.foot nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.foot nav .flag { width: 22px; height: 15px; border-radius: 3px; }
.foot .copy { grid-column: 1 / -1; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.88rem; }
@media (max-width: 720px) {
  .foot .wrap { grid-template-columns: 1fr; }
  .foot nav { justify-content: flex-start; margin-left: -10px; }
}

/* Reveal on scroll (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s, transform 0.6s; }
  .reveal.in { opacity: 1; transform: none; }
  .gallery figure.reveal.in:nth-child(even) { transform: translateY(40px); }
  .steps .reveal:nth-child(2), .features .reveal:nth-child(3n + 2) { transition-delay: 0.08s; }
  .steps .reveal:nth-child(3), .features .reveal:nth-child(3n) { transition-delay: 0.16s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .gallery figure.reveal.in:nth-child(even) { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shard, .tag { animation: none; }
  .btn, .feature, .langs li, .gallery .phone, .faq summary::after { transition: none; }
}

/* ---------- Small screens: tighter rhythm ---------- */
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .features-band { padding-top: 88px; }
  .screens { padding-bottom: 88px; }
  .faq-band { padding-bottom: 80px; }
  .section-head { margin-bottom: 36px; }
  .eyebrow { font-size: 0.75rem; letter-spacing: 0.04em; }
  .hero { padding-bottom: 56px; }
  .stage { --pw: min(250px, 64vw); }
  .step { padding: 24px 22px; }
  .step::before { margin-bottom: 14px; }
}
