/* Loria website. One stylesheet, no framework. Night theme is the signature; legal pages follow the system theme.
   Motion: transform/opacity (+ clip-path) only, everything gated by prefers-reduced-motion. */

/* ---------------------------------------------------------------- font (SIL OFL 1.1, see /fonts/OFL.txt) */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(/fonts/nunito-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- tokens */
:root {
  --purple: #4e36fe;
  --purple-hi: #6450ff;
  --gold: #ffb703;
  --gold-soft: #ffd47a;
  --cream: #fffcf7;
  --night-0: #0c0a17;
  --night: #14121f;
  --night-2: #1e1b2e;
  --night-3: #29253d;

  --bg: var(--night);
  --bg-raised: var(--night-2);
  --surface: rgba(37, 33, 58, 0.55);
  --surface-solid: #1f1c30;
  --text: #f4f2ff;
  --text-2: #d9d4ee;
  --muted: #aaa3c2;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --link: #b8aeff;
  --accent: #b8aeff;
  --logo: #f4f2ff;
  --focus: #ffcf5c;
  --danger: #ff9b9b;
  --ok: #8be3b5;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  --r-sm: 10px;
  --r: 18px;
  --r-lg: 26px;
  --header-h: 64px;
  --wrap: 1160px;
  --gutter: 16px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);

  color-scheme: dark;
}

/* Legal pages: calm, follow the system theme. */
.theme-legal {
  color-scheme: light;
  --bg: var(--cream);
  --bg-raised: #f6f2ff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --text: #1a1625;
  --text-2: #322c42;
  --muted: #5c556c;
  --line: #e8e4f3;
  --line-2: #d9d3ea;
  --link: #4e36fe;
  --accent: #4e36fe;
  --logo: #4e36fe;
  --focus: #4e36fe;
}
@media (prefers-color-scheme: dark) {
  .theme-legal {
    color-scheme: dark;
    --bg: var(--night);
    --bg-raised: var(--night-2);
    --surface: var(--night-2);
    --surface-solid: var(--night-2);
    --text: #f4f2ff;
    --text-2: #d9d4ee;
    --muted: #aaa3c2;
    --line: rgba(255, 255, 255, 0.09);
    --line-2: rgba(255, 255, 255, 0.16);
    --link: #b8aeff;
    --accent: #b8aeff;
    --logo: #f4f2ff;
    --focus: #ffcf5c;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.62;
  font-weight: 450;
  overflow-x: hidden;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.15; letter-spacing: -0.015em; text-wrap: balance; }
p, ul, ol, dl, figure, table { margin: 0; }
p { text-wrap: pretty; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
@media (hover: hover) and (pointer: fine) {
  a:hover { text-decoration-thickness: 2px; }
}
strong { font-weight: 750; color: var(--text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }
::selection { background: rgba(78, 54, 254, 0.45); color: #fff; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-left: calc(var(--gutter) + var(--safe-l));
  padding-right: calc(var(--gutter) + var(--safe-r));
}
.wrap--narrow { max-width: calc(780px + 2 * var(--gutter)); }
@media (min-width: 720px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 12px; background: var(--gold); color: #1a1625; font-weight: 800;
  text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ---------------------------------------------------------------- buttons, chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 780; font-size: 1rem; line-height: 1.1; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 160ms var(--ease-out), background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .i-arrow { transition: transform 200ms var(--ease-out); }
.btn--primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(78, 54, 254, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn--ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border-color: var(--line-2); }
.theme-legal .btn--ghost { background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--purple-hi); }
  .btn--ghost:hover { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.26); }
  .btn:hover .i-arrow { transform: translateX(3px); }
}
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 0.95rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

.linklike {
  appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--link);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; cursor: pointer;
}

.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 800; letter-spacing: 0.02em; line-height: 1.2;
}
.pill--gold { background: var(--gold); color: #1a1625; box-shadow: 0 0 0 4px rgba(255, 183, 3, 0.14), 0 8px 24px -10px rgba(255, 183, 3, 0.8); }
.pill--soft { background: rgba(255, 255, 255, 0.07); color: var(--text-2); border: 1px solid var(--line); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.04); color: var(--text-2);
  font-size: 0.9rem; font-weight: 650;
}
.chips li svg { color: var(--gold); flex: none; }

.eyebrow {
  display: inline-block; margin-bottom: 14px; color: var(--gold-soft); font-size: 0.82rem; font-weight: 850;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.theme-legal .eyebrow { color: var(--accent); }

/* ---------------------------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: var(--safe-t);
  background: rgba(18, 16, 29, 0.82);
  border-bottom: 1px solid var(--line);
  transition: background-color 250ms ease, border-color 250ms ease;
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header { background: rgba(18, 16, 29, 0.68); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
}
.site-header.is-top { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.theme-legal .site-header { background: color-mix(in srgb, var(--bg) 88%, transparent); }
.theme-legal .site-header.is-top { background: color-mix(in srgb, var(--bg) 88%, transparent); border-color: var(--line); }
.site-header__in { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; flex: none; }
.brand__logo {
  display: block; width: 78px; height: 26px; background: var(--logo);
  -webkit-mask: url(/img/loria-logo.png) center / contain no-repeat;
  mask: url(/img/loria-logo.png) center / contain no-repeat;
}
.nav-desktop { display: none; margin-left: 12px; }
.nav-desktop ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 999px;
  color: var(--text-2); font-weight: 680; font-size: 0.97rem; text-decoration: none;
  transition: background-color 200ms ease, color 200ms ease;
}
.nav-desktop a[aria-current='page'] { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.theme-legal .nav-desktop a[aria-current='page'] { background: var(--bg-raised); }
@media (hover: hover) and (pointer: fine) {
  .nav-desktop a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
  .theme-legal .nav-desktop a:hover { background: var(--bg-raised); }
}
.site-header__end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 999px;
  color: var(--text-2); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.06em; text-decoration: none;
}
@media (hover: hover) and (pointer: fine) { .lang-switch:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); } }
.header-cta { padding: 0 14px; }

.menu { position: static; }
.menu__toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; cursor: pointer;
  list-style: none; color: var(--text); border: 1px solid var(--line-2);
  transition: transform 160ms var(--ease-out), background-color 200ms ease;
}
.menu__toggle::-webkit-details-marker { display: none; }
.menu__toggle:active { transform: scale(0.95); }
.menu[open] .menu__toggle { background: rgba(255, 255, 255, 0.1); }
.menu__panel {
  position: absolute; top: calc(100% + 8px); left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r));
  padding: 8px; border-radius: 22px; background: var(--surface-solid); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform-origin: top right;
}
.menu__panel ul { list-style: none; margin: 0; padding: 0; display: grid; }
.menu__panel a {
  display: flex; align-items: center; min-height: 50px; padding: 0 16px; border-radius: 14px;
  color: var(--text); font-weight: 720; text-decoration: none;
}
.menu__panel a[aria-current='page'] { background: rgba(255, 255, 255, 0.07); }
.theme-legal .menu__panel a[aria-current='page'] { background: var(--bg-raised); }
@media (prefers-reduced-motion: no-preference) {
  .menu[open] .menu__panel { animation: pop-in 200ms var(--ease-out); }
}
@keyframes pop-in { from { opacity: 0; transform: scale(0.97) translateY(-4px); } }
@media (max-width: 379px) { .header-cta { display: none; } }
@media (min-width: 1040px) {
  .nav-desktop { display: block; }
  .menu { display: none; }
  .header-cta { padding: 0 18px; }
}

/* ---------------------------------------------------------------- sky (shared by hero, page heads, CTA) */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; contain: strict; }
.sky__layer { position: absolute; inset: -6% 0; }
.sky__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1400ms ease; }
.sky.is-ready .sky__canvas { opacity: 1; }
.tw {
  position: absolute; width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 6px 1px rgba(255, 255, 255, 0.7);
  opacity: 0.8;
}
.tw--gold { background: #ffe3a1; box-shadow: 0 0 8px 2px rgba(255, 196, 70, 0.55); }
.tw--lav { background: #e0daff; box-shadow: 0 0 7px 1px rgba(170, 155, 255, 0.7); }
.tw--l { width: 4px; height: 4px; margin: -2px 0 0 -2px; }
@media (prefers-reduced-motion: no-preference) {
  .tw { animation: twinkle var(--d, 4s) ease-in-out var(--dl, 0s) infinite; }
  .sky.is-paused .tw { animation-play-state: paused; }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.6); }
}

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + var(--safe-t) + 36px) 0 72px;
  background:
    radial-gradient(60% 50% at 85% 18%, rgba(78, 54, 254, 0.33), transparent 70%),
    radial-gradient(45% 40% at 8% 80%, rgba(255, 183, 3, 0.08), transparent 70%),
    radial-gradient(80% 60% at 50% 110%, rgba(78, 54, 254, 0.22), transparent 70%),
    linear-gradient(180deg, var(--night-0) 0%, #110f1d 55%, var(--night) 100%);
}
.hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 120px; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--night));
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 44px; align-items: center; }
.hero__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 20px; color: var(--text-2); font-weight: 700; }
.hero h1 {
  font-size: clamp(2.15rem, 1.25rem + 4.1vw, 4.05rem); line-height: 1.05; letter-spacing: -0.028em; font-weight: 850;
  max-width: 15ch;
}
.hero h1 .glow {
  background: linear-gradient(100deg, #ffe0a0 0%, var(--gold) 45%, #ffcf7a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { margin-top: 22px; max-width: 34em; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem); color: var(--text-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__note { margin-top: 16px; color: var(--muted); font-size: 0.93rem; }
.hero__facts { margin-top: 28px; }
.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero__const { position: absolute; width: min(560px, 120%); left: 50%; top: 50%; translate: -50% -52%; opacity: 0.95; z-index: -1; }
@media (min-width: 900px) {
  .hero { padding-bottom: 96px; }
  .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; }
  .hero__visual { min-height: 600px; }
}
@media (max-width: 899px) {
  .hero__visual { min-height: 0; padding-top: 8px; }
  .hero__const { width: 135%; }
}

/* the hero constellation: draws itself once after first paint */
.const line { stroke: rgba(214, 205, 255, 0.55); stroke-width: 1.4; stroke-linecap: round; }
.const .c-star { fill: #fff6dd; }
.const .c-halo { fill: url(#halo); }
.const .c-star--gold { fill: var(--gold); }
.const .c-star, .const .c-halo { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .const line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 900ms var(--ease-in-out) forwards; }
  .const .c-star, .const .c-halo { opacity: 0; animation: star-in 700ms var(--ease-out) forwards; }
  .const .l1 { animation-delay: 700ms; } .const .l2 { animation-delay: 950ms; } .const .l3 { animation-delay: 1200ms; }
  .const .l4 { animation-delay: 1450ms; } .const .l5 { animation-delay: 1750ms; } .const .l6 { animation-delay: 1900ms; }
  .const .l7 { animation-delay: 2050ms; }
  .const .s1 { animation-delay: 450ms; } .const .s2 { animation-delay: 750ms; } .const .s3 { animation-delay: 1000ms; }
  .const .s4 { animation-delay: 1250ms; } .const .s5 { animation-delay: 1550ms; } .const .s6 { animation-delay: 1850ms; }
  .const .s7 { animation-delay: 2000ms; } .const .s8 { animation-delay: 2150ms; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes star-in { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: scale(1); } }

/* ---------------------------------------------------------------- phone mockup + drawn placeholders */
.phone {
  position: relative; width: min(290px, 74vw); aspect-ratio: 9 / 19.5; margin: 0; padding: 9px; border-radius: 46px;
  background: linear-gradient(155deg, #34304b 0%, #17152a 40%, #0c0b15 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 50px 90px -30px rgba(0, 0, 0, 0.8),
    0 0 140px -30px rgba(78, 54, 254, 0.55);
}
.phone__img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone__screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 37px;
  display: flex; flex-direction: column; gap: 14px; padding: 40px 16px 20px;
  background: radial-gradient(120% 60% at 50% 0%, #241f42 0%, #15132a 55%, #12101e 100%);
}
.phone__screen::before {
  content: ''; position: absolute; top: 12px; left: 50%; width: 84px; height: 22px; translate: -50% 0;
  border-radius: 999px; background: #07060c;
}
@media (prefers-reduced-motion: no-preference) {
  .hero .phone { animation: rise-in 1000ms var(--ease-out) 120ms both; }
}
@keyframes rise-in { from { opacity: 0; transform: translateY(26px) scale(0.98); } }

.ui-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ui-chip {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: var(--text-2);
}
.ui-chip svg { width: 12px; height: 12px; }
.ui-chip--gold { background: rgba(255, 183, 3, 0.16); color: #ffd27a; }
.ui-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--purple), #8f7dff); }
.ui-title { font-weight: 850; font-size: 0.95rem; }
.ui-progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.ui-progress span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--purple), #9d8cff); transform: scaleX(0.42); transform-origin: left; }
.ui-card {
  flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 22px 18px; border-radius: 22px;
  background: linear-gradient(160deg, #fffcf7, #f1ecff); color: #1a1625; text-align: center;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7);
}
.ui-card__kicker { font-size: 0.66rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; color: #6b6375; }
.ui-card__term { font-size: 1.32rem; font-weight: 850; line-height: 1.15; hyphens: manual; }
.ui-card__hint { margin-top: 6px; font-size: 0.68rem; color: #6b6375; font-weight: 700; }
.ui-line { display: block; height: 7px; border-radius: 99px; background: rgba(26, 22, 37, 0.12); width: 80%; margin-inline: auto; }
.ui-line--s { width: 55%; }
.phone .ui-panel .ui-line, .phone .ui-panel--row .ui-line { background: rgba(255, 255, 255, 0.12); margin-inline: 0; }
.ui-actions { display: flex; justify-content: center; gap: 22px; padding-bottom: 6px; }
.ui-round { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; }
.ui-round svg { width: 22px; height: 22px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ui-round--no { background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.ui-round--no svg { stroke: #ffb3b3; }
.ui-round--yes { background: var(--purple); box-shadow: 0 10px 24px -8px rgba(78, 54, 254, 0.9); }
.ui-round--yes svg { stroke: #fff; }
.ui-panel { display: grid; gap: 9px; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); }
.ui-panel--row { display: flex; align-items: center; gap: 10px; }
.ui-date { font-size: 1.2rem; font-weight: 850; }
.ui-dot { width: 12px; height: 12px; border-radius: 50%; background: #9d8cff; flex: none; }
.ui-dot--gold { background: var(--gold); }
.ui-bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 0 4px; }
.ui-bars__b { flex: 1; height: 100%; border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #9d8cff, var(--purple)); transform-origin: bottom; }
.ui-bars__b--0 { transform: scaleY(0.35); } .ui-bars__b--1 { transform: scaleY(0.6); } .ui-bars__b--2 { transform: scaleY(0.5); }
.ui-bars__b--3 { transform: scaleY(0.75); } .ui-bars__b--4 { transform: scaleY(0.55); } .ui-bars__b--5 { transform: scaleY(0.7); }
.ui-bars__b--6 { transform: scaleY(0.45); } .ui-bars__b--7 { transform: scaleY(0.4); }
.ui-bars__b--8 { transform: scaleY(0.9); background: linear-gradient(180deg, #ffe0a0, var(--gold)); }
.ui-sky { flex: 1; margin: -8px -6px 0; border-radius: 22px; background: radial-gradient(90% 70% at 50% 30%, #2a2356, #110f1f); overflow: hidden; }
.ui-sky__svg { width: 100%; height: 100%; }
.ui-sky__dim circle { fill: rgba(255, 255, 255, 0.45); }
.ui-sky__lines { fill: none; stroke: rgba(214, 205, 255, 0.6); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.ui-sky__lit circle { fill: #ffe7a6; }

/* ---------------------------------------------------------------- sections */
.section { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section__head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section h2, .article h2, .faq-group h2 { font-size: clamp(1.65rem, 1.15rem + 2vw, 2.55rem); letter-spacing: -0.022em; }
.answer { margin-top: 16px; font-size: clamp(1.06rem, 1rem + 0.25vw, 1.18rem); color: var(--text-2); max-width: 44em; }
.section__head--center .answer { margin-inline: auto; }
.more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; min-height: 44px;
  color: var(--link); font-weight: 780; text-decoration: none;
}
.more .i-arrow { transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .more:hover .i-arrow { transform: translateX(3px); } .more:hover { text-decoration: underline; } }

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split--rev > :first-child { order: 2; }
}

.card {
  position: relative; padding: 24px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(43, 38, 66, 0.55), rgba(30, 27, 46, 0.45));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.theme-legal .card { background: var(--surface); }
.card h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
.card p { margin-top: 8px; color: var(--text-2); }

.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.grid-2 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

.ticks { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 22px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text-2); }
.ticks li::before {
  content: ''; position: absolute; left: 2px; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff2c9 0 18%, var(--gold) 19% 42%, rgba(255, 183, 3, 0.18) 43% 100%);
}

/* intro "Was ist Loria" */
.intro { display: grid; gap: 28px; }
.pillars { display: grid; gap: 12px; list-style: none; padding: 0; }
.pillars li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.pillars .pi { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(78, 54, 254, 0.2); color: #cfc7ff; }
.pillars .pi svg { width: 22px; height: 22px; }
.pillars strong { display: block; font-size: 1.04rem; }
.pillars span { color: var(--muted); font-size: 0.97rem; }
@media (min-width: 900px) {
  .intro { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
}

/* steps with a constellation line that fills as you scroll */
.steps { position: relative; }
.steps__list { display: grid; gap: 30px; list-style: none; padding: 0; margin: 0; }
.steps__rail { display: block; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: linear-gradient(180deg, var(--gold), #b8aeff); transform-origin: top; transform: scaleY(var(--p, 1)); }
.step { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: start; }
.step__star {
  position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--night-2); border: 1px solid var(--line-2); color: var(--muted);
  transition: background-color 400ms ease, border-color 400ms ease, color 400ms ease, box-shadow 600ms var(--ease-out), transform 500ms var(--ease-out);
}
.step__star svg { width: 18px; height: 18px; }
.step.is-lit .step__star, .steps:not(.is-live) .step__star {
  background: radial-gradient(circle, #fff2c9 0 20%, var(--gold) 60%); border-color: transparent; color: #4a3500;
  box-shadow: 0 0 0 6px rgba(255, 183, 3, 0.12), 0 0 28px 4px rgba(255, 183, 3, 0.45);
}
.steps.is-live .step:not(.is-lit) .step__star { transform: scale(0.86); }
.step__n { display: block; color: var(--gold-soft); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; }
.step h3 { margin-top: 4px; font-size: 1.25rem; }
.step p { margin-top: 6px; color: var(--text-2); }
@media (min-width: 860px) {
  .steps__list { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .steps__rail { left: 44px; right: 44px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps__fill { background: linear-gradient(90deg, var(--gold), #b8aeff); transform-origin: left; transform: scaleX(var(--p, 1)); }
  .step { grid-template-columns: 1fr; gap: 18px; }
}

/* exam plan chart */
.plan { padding: 22px 18px 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(43, 38, 66, 0.6), rgba(24, 21, 38, 0.6)); border: 1px solid var(--line); }
.plan svg { width: 100%; height: auto; overflow: visible; }
.plan .p-grid { stroke: rgba(255, 255, 255, 0.07); stroke-width: 1; }
.plan .p-goal { stroke: rgba(255, 210, 122, 0.55); stroke-width: 1.5; stroke-dasharray: 5 6; }
.plan .p-area { fill: url(#planArea); }
.plan .p-curve { fill: none; stroke: url(#planLine); stroke-width: 3.2; stroke-linecap: round; }
.plan .p-day { fill: rgba(255, 255, 255, 0.16); }
.plan .p-txt { fill: var(--muted); font: 700 12.5px Nunito, system-ui, sans-serif; }
.plan .p-txt--gold { fill: #ffd27a; }
.plan .p-star { fill: var(--gold); }
.plan .p-halo { fill: rgba(255, 183, 3, 0.2); }
.plan__cap { margin-top: 10px; color: var(--muted); font-size: 0.88rem; }
.plan .p-reveal { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .rv-pre .p-reveal, .rv-pre.p-reveal { clip-path: inset(0 100% 0 0); }
  .rv-in .p-reveal { clip-path: inset(0 0 0 0); transition: clip-path 1600ms var(--ease-in-out) 200ms; }
  .rv-pre .p-pop { opacity: 0; transform: scale(0.5); }
  .rv-in .p-pop { opacity: 1; transform: none; transition: opacity 500ms ease 1600ms, transform 700ms var(--ease-out) 1600ms; }
}
.plan .p-pop { transform-box: fill-box; transform-origin: center; }

/* night-sky preview card */
.skycard {
  position: relative; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 4 / 3.2;
  background: radial-gradient(90% 80% at 60% 30%, #2a2356 0%, #15122a 55%, #0f0d1c 100%);
  border: 1px solid var(--line);
}
.skycard svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.skycard .k-dim circle { fill: rgba(255, 255, 255, 0.5); }
.skycard .k-line { fill: none; stroke: rgba(214, 205, 255, 0.55); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.skycard .k-lit { fill: #fff1c4; }
.skycard .k-halo { fill: rgba(255, 196, 70, 0.18); }
.skycard .k-lit, .skycard .k-halo { transform-box: fill-box; transform-origin: center; }
.skycard__label {
  position: absolute; left: 16px; bottom: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.skycard__story {
  padding: 10px 14px; border-radius: 14px; background: rgba(12, 10, 23, 0.72); border: 1px solid var(--line);
  font-size: 0.92rem; color: var(--text-2);
}
.skycard__story b { color: #ffd27a; }
@media (prefers-reduced-motion: no-preference) {
  .rv-pre .k-line { clip-path: inset(0 100% 0 0); }
  .rv-in .k-line { clip-path: inset(0 0 0 0); transition: clip-path 1800ms var(--ease-in-out) 500ms; }
  .rv-pre .k-lit, .rv-pre .k-halo { opacity: 0; transform: scale(0.4); }
  .rv-in .k-lit, .rv-in .k-halo { opacity: 1; transform: none; transition: opacity 500ms ease, transform 700ms var(--ease-out); }
  .rv-in .k-n1 { transition-delay: 200ms; } .rv-in .k-n2 { transition-delay: 380ms; } .rv-in .k-n3 { transition-delay: 560ms; }
  .rv-in .k-n4 { transition-delay: 740ms; } .rv-in .k-n5 { transition-delay: 920ms; } .rv-in .k-n6 { transition-delay: 1100ms; }
  .rv-in .k-n7 { transition-delay: 1280ms; }
}

.phone--side { width: min(260px, 70vw); margin-inline: auto; }
.only-wide { display: none; }
@media (min-width: 900px) { .only-wide { display: block; } }

/* feature mini grid */
.features { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; padding: 0; margin-top: 28px; }
@media (min-width: 560px) { .features { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.features li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); color: var(--text-2); }
.features li svg { flex: none; width: 22px; height: 22px; color: var(--gold); margin-top: 2px; }
.features li strong { display: block; }

/* starter sets */
.sets { display: grid; gap: 16px; }
@media (min-width: 900px) { .sets { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.set { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.set__art { position: relative; height: 150px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.set__art--en { background: radial-gradient(80% 90% at 30% 20%, rgba(78, 54, 254, 0.45), transparent 70%), #17142a; }
.set__art--kana { background: radial-gradient(80% 90% at 70% 20%, rgba(255, 120, 150, 0.25), transparent 70%), #17142a; }
.set__art--sky { background: #1b2140; }
.set__art img { width: 100%; height: 100%; object-fit: cover; }
.levels { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; padding: 0 16px; }
.levels span {
  display: grid; place-items: center; min-width: 46px; height: 40px; padding: 0 8px; border-radius: 12px;
  font-weight: 850; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line-2); color: var(--text);
}
.levels span:nth-child(5), .levels span:nth-child(6) { background: rgba(255, 183, 3, 0.15); border-color: rgba(255, 183, 3, 0.35); color: #ffd27a; }
.kana { display: flex; gap: 14px; font-size: 3rem; font-weight: 800; line-height: 1; color: #fff; }
.kana span:last-child { color: #ffc6d3; }
.set__body { padding: 20px 22px 24px; }
.set__meta { margin-top: 4px; color: var(--gold-soft); font-weight: 750; font-size: 0.93rem; }
.langs { margin-top: 26px; color: var(--muted); font-size: 0.96rem; }

/* comparison teaser */
.vs { display: grid; gap: 12px; margin-top: 8px; }
.vs__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 18px; border-radius: var(--r); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.vs__row dt { color: var(--muted); font-size: 0.9rem; font-weight: 700; }
.vs__row dd { margin: 0; color: var(--text-2); }
.vs__row dd b { color: var(--text); }
@media (min-width: 760px) { .vs__row { grid-template-columns: 220px 1fr; gap: 16px; align-items: baseline; } }
.stand { margin-top: 14px; color: var(--muted); font-size: 0.88rem; }

/* founder */
.founder { display: grid; gap: 24px; align-items: center; }
.founder__mark {
  width: 88px; height: 88px; border-radius: 28px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #6a55ff, #2a1f8f); box-shadow: 0 20px 50px -20px rgba(78, 54, 254, 0.8);
  color: #fff; font-size: 2.2rem; font-weight: 900;
}
.founder blockquote { margin: 0; font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.5; color: var(--text); font-weight: 600; }
.founder figcaption { margin-top: 14px; color: var(--muted); }
@media (min-width: 760px) { .founder { grid-template-columns: auto 1fr; gap: 40px; } }

/* faq accordion */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq__item { border-radius: var(--r); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 18px;
  cursor: pointer; list-style: none; border-radius: var(--r);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q { font-size: 1.06rem; font-weight: 760; letter-spacing: 0; line-height: 1.35; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.faq__icon::before, .faq__icon::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--text-2);
  transition: transform 250ms var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { padding: 0 18px 18px; color: var(--text-2); }
.faq__a p + p { margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover .faq__icon { background: rgba(255, 255, 255, 0.12); } }
@media (prefers-reduced-motion: no-preference) {
  @supports (interpolate-size: allow-keywords) {
    .faq { interpolate-size: allow-keywords; }
    .faq__item::details-content { height: 0; overflow: clip; transition: height 280ms var(--ease-out), content-visibility 280ms allow-discrete; }
    .faq__item[open]::details-content { height: auto; }
  }
}

/* final CTA */
.cta-band { padding-block: clamp(56px, 8vw, 112px); }
.cta-band__card {
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(40px, 7vw, 80px) clamp(22px, 5vw, 64px);
  border-radius: 32px; text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(78, 54, 254, 0.55), transparent 70%),
    radial-gradient(50% 60% at 50% 120%, rgba(255, 183, 3, 0.16), transparent 70%),
    #120f22;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.cta-band__card > :not(.cta-band__sky) { position: relative; z-index: 1; }
.cta-band__sky { position: absolute; inset: 0; z-index: 0; }
.cta-band h2 { font-size: clamp(1.7rem, 1.15rem + 2.3vw, 2.8rem); max-width: 18ch; margin-inline: auto; }
.cta-band p { margin: 16px auto 28px; max-width: 34em; color: var(--text-2); }

/* ---------------------------------------------------------------- content pages */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + var(--safe-t) + 28px) 0 clamp(40px, 6vw, 72px);
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(78, 54, 254, 0.3), transparent 70%),
    linear-gradient(180deg, var(--night-0), var(--night));
  border-bottom: 1px solid var(--line);
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 18px; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); letter-spacing: -0.025em; line-height: 1.08; font-weight: 850; max-width: 20ch; }
.page-hero .lead { margin-top: 18px; font-size: clamp(1.08rem, 1rem + 0.35vw, 1.24rem); color: var(--text-2); max-width: 40em; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; gap: 4px; }
.crumbs li + li::before { content: '›'; color: var(--muted); margin-right: 2px; }
.crumbs a { color: var(--muted); text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

.byline { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 22px; color: var(--muted); font-size: 0.92rem; }

.article { padding-block: clamp(40px, 6vw, 72px) 0; }
.article > .wrap > * + * { margin-top: 18px; }
.article h2 { margin-top: clamp(48px, 6vw, 72px) !important; scroll-margin-top: calc(var(--header-h) + 20px); }
.article h3 { margin-top: 32px !important; font-size: 1.22rem; }
.article h2 + p, .article h2 + .answer { margin-top: 16px !important; }
.article p, .article li { color: var(--text-2); }
.article ul, .article ol { padding-left: 1.3em; display: grid; gap: 8px; }
.article .answer { color: var(--text); font-size: clamp(1.08rem, 1rem + 0.3vw, 1.2rem); padding-left: 16px; border-left: 3px solid var(--gold); }
.note {
  padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--text-2);
}
.note--gold { border-color: rgba(255, 183, 3, 0.35); background: rgba(255, 183, 3, 0.06); }
.toc { padding: 18px 20px; border-radius: var(--r); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.toc h2 { font-size: 0.86rem !important; margin: 0 !important; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin-top: 10px; padding-left: 1.2em; display: grid; gap: 4px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.sources { padding-left: 1.2em; display: grid; gap: 10px; font-size: 0.96rem; }
.sources li { color: var(--text-2); }

figure.chart { margin-top: 28px !important; padding: 20px 16px 16px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(43, 38, 66, 0.55), rgba(24, 21, 38, 0.55)); border: 1px solid var(--line); }
figure.chart svg { width: 100%; height: auto; overflow: visible; }
figure.chart figcaption { margin-top: 12px; color: var(--muted); font-size: 0.9rem; }
.fc-axis { stroke: rgba(255, 255, 255, 0.3); stroke-width: 1.2; }
.fc-grid { stroke: rgba(255, 255, 255, 0.07); }
.fc-none { fill: none; stroke: #9089ad; stroke-width: 2.4; stroke-dasharray: 6 6; }
.fc-rep { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.fc-mark { fill: #fff2c9; }
.fc-txt { fill: var(--muted); font: 700 13px Nunito, system-ui, sans-serif; }
.fc-txt--gold { fill: #ffd27a; }
.fc-txt--dim { fill: #b3adca; }
.chart .p-reveal { clip-path: inset(0 0 0 0); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 0.9rem; color: var(--text-2); list-style: none; padding: 0 !important; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 22px; height: 3px; border-radius: 2px; }
.legend .lg-rep { background: var(--gold); }
.legend .lg-none { background: repeating-linear-gradient(90deg, #9089ad 0 6px, transparent 6px 12px); }

/* comparison table */
.table-wrap { position: relative; margin-top: 24px !important; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table-scroll:focus-visible { outline-offset: -3px; }
.cmp { width: 100%; min-width: 860px; border-collapse: separate; border-spacing: 0; font-size: 0.94rem; line-height: 1.45; }
.cmp th, .cmp td { padding: 13px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp thead th { position: sticky; top: 0; background: #1c192c; font-size: 0.95rem; font-weight: 850; color: var(--text); white-space: nowrap; }
.cmp tbody th { font-weight: 760; color: var(--text); }
.cmp th[scope='row'] { position: sticky; left: 0; z-index: 1; background: #17152a; min-width: 140px; max-width: 160px; box-shadow: 1px 0 0 var(--line); }
.cmp thead th:first-child { position: sticky; left: 0; z-index: 2; }
.cmp td { color: var(--text-2); min-width: 150px; }
.cmp .us { background: rgba(78, 54, 254, 0.1); }
.cmp thead .us { background: #2a2260; color: #fff; }
.cmp tr:last-child > * { border-bottom: 0; }
.cmp .na { color: var(--muted); font-style: italic; }
.cmp sup a { text-decoration: none; font-weight: 800; margin-left: 2px; }
.scroll-hint { display: block; padding: 8px 14px; font-size: 0.84rem; color: var(--muted); background: #17152a; border-top: 1px solid var(--line); }
/* on wide screens the table breaks out of the narrow text column so every app fits */
@media (min-width: 1000px) {
  .article .table-wrap { width: min(1120px, calc(100vw - 64px)); margin-left: calc(50% - min(560px, 50vw - 32px)); }
  .scroll-hint { display: none; }
}

.strengths { display: grid; gap: 14px; margin-top: 20px !important; }
.strengths .card { padding: 20px 22px; }
.strengths .card h3 { margin: 0 !important; }
.fit { list-style: none; padding: 0 !important; display: grid; gap: 10px !important; }
.fit li { padding: 14px 16px; border-radius: var(--r); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.fit li b { color: var(--text); }

/* ---------------------------------------------------------------- FAQ page */
.faq-groups { padding-block: clamp(32px, 5vw, 56px) 0; }
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 8px; }
.faq-nav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 0.94rem; }
@media (hover: hover) and (pointer: fine) { .faq-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); } }
.faq-group { padding-top: clamp(36px, 5vw, 56px); scroll-margin-top: calc(var(--header-h) + 8px); }
.faq-group h2 { margin-bottom: 18px; }
.qa { padding: 20px 0; border-top: 1px solid var(--line); }
.qa h3 { font-size: 1.15rem; letter-spacing: -0.005em; }
.qa__a { margin-top: 8px; color: var(--text-2); max-width: 46em; }

/* ---------------------------------------------------------------- night-sky demo */
.demo { position: relative; margin-top: 28px !important; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(90% 80% at 50% 25%, #2a2356 0%, #15122a 60%, #0e0c1b 100%); }
.demo__sky { position: relative; aspect-ratio: 4 / 3; }
.demo__sky svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo .d-dim circle { fill: rgba(255, 255, 255, 0.45); }
.demo .d-line { stroke: rgba(222, 214, 255, 0.75); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.demo .d-line.is-on { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) { .demo .d-line { transition: stroke-dashoffset 700ms var(--ease-in-out); } }
.d-star {
  position: absolute; width: 52px; height: 52px; margin: -26px 0 0 -26px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; cursor: pointer; display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
}
.d-star::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.05);
  transition: transform 500ms var(--ease-out), background-color 300ms ease, box-shadow 600ms var(--ease-out);
}
.d-star[aria-pressed='true']::before {
  background: #fff1c4; transform: scale(1.55);
  box-shadow: 0 0 0 5px rgba(255, 196, 70, 0.18), 0 0 22px 6px rgba(255, 183, 3, 0.55);
}
.d-star:active::before { transform: scale(0.85); }
.d-star[aria-pressed='true']:active::before { transform: scale(1.4); }
@media (hover: hover) and (pointer: fine) { .d-star:not([aria-pressed='true']):hover::before { transform: scale(1.3); background: #fff; } }
.d-star:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); background: rgba(12, 10, 23, 0.6); }
.demo__count { color: var(--text-2); font-weight: 700; }
.demo__story { padding: 0 18px; max-height: 0; overflow: hidden; opacity: 0; transition: opacity 500ms ease; }
.demo.is-done .demo__story { max-height: none; padding: 18px; opacity: 1; border-top: 1px solid var(--line); }
.demo__story h3 { margin: 0 !important; color: #ffd27a; font-size: 1.15rem; }
.demo__story p { margin-top: 8px; }
.demo__hint { position: absolute; left: 50%; bottom: 12px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: rgba(12, 10, 23, 0.7); border: 1px solid var(--line); color: var(--text-2); font-size: 0.86rem; font-weight: 700; white-space: nowrap; pointer-events: none; transition: opacity 400ms ease; }
.demo.is-touched .demo__hint { opacity: 0; }
.demo-fallback { color: var(--muted); font-size: 0.92rem; }
.demo:not(.is-live) .demo__hint, .demo.is-live .demo-fallback { display: none; }
.demo .d-fig circle { fill: #fff1c4; }
.demo { max-width: 640px; margin-inline: auto; }

.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-top: 18px !important; }
.figures figure { margin: 0; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #1b2140; }
.figures img { width: 100%; height: auto; aspect-ratio: 204 / 124; }
.figures figcaption { padding: 8px 12px; font-size: 0.88rem; color: var(--text-2); background: #151a33; }

/* values + roadmap */
.values { display: grid; gap: 14px; margin-top: 20px !important; }
@media (min-width: 700px) { .values { grid-template-columns: 1fr 1fr; } }
.values .card h3 { margin: 0 !important; display: flex; align-items: center; gap: 10px; }
.values .card h3 svg { color: var(--gold); }
.roadmap { list-style: none; padding: 0 !important; display: grid; gap: 0 !important; margin-top: 20px !important; }
.roadmap li { position: relative; padding: 0 0 22px 34px; }
.roadmap li::before { content: ''; position: absolute; left: 7px; top: 0.45em; width: 12px; height: 12px; border-radius: 50%; background: var(--night-3); border: 2px solid var(--line-2); }
.roadmap li::after { content: ''; position: absolute; left: 12px; top: 1.4em; bottom: -0.2em; width: 2px; background: var(--line); }
.roadmap li:last-child::after { display: none; }
.roadmap li.now::before { background: var(--gold); border-color: transparent; box-shadow: 0 0 14px 2px rgba(255, 183, 3, 0.5); }
.roadmap b { display: block; color: var(--text); }
.roadmap .tag { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: var(--muted); vertical-align: 2px; }

/* ---------------------------------------------------------------- tester page + form */
.tester-grid { display: grid; gap: 32px; padding-block: clamp(36px, 5vw, 64px) 0; }
@media (min-width: 980px) { .tester-grid { grid-template-columns: 1fr 460px; gap: 56px; align-items: start; } .tester-grid .form-card { position: sticky; top: calc(var(--header-h) + 24px); } }
.tester-copy > * + * { margin-top: 18px; }
.tester-copy h2 { margin-top: 44px !important; font-size: clamp(1.45rem, 1.1rem + 1.4vw, 2rem); }
.tester-copy h2:first-child { margin-top: 0 !important; }
.tester-copy p, .tester-copy li { color: var(--text-2); }
.process { list-style: none; padding: 0; display: grid; gap: 12px; counter-reset: p; }
.process li { counter-increment: p; position: relative; padding: 16px 16px 16px 60px; border-radius: var(--r); background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.process li::before {
  content: counter(p); position: absolute; left: 16px; top: 15px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(78, 54, 254, 0.25); color: #d6cfff; font-weight: 850; font-size: 0.95rem;
}
.process b { display: block; color: var(--text); }
.form-card { padding: clamp(20px, 4vw, 32px); border-radius: var(--r-lg); background: linear-gradient(180deg, #221e36, #1a1729); border: 1px solid var(--line-2); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7); }
.form-card h2 { font-size: 1.5rem; }
.form-card > p { margin-top: 8px; color: var(--text-2); }
.form { margin-top: 20px; }
.form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 760; color: var(--text); }
.field input[type='text'], .field input[type='email'], .field textarea, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field select { appearance: auto; }
.field select option { color: #1a1729; background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: #9d8cff; box-shadow: 0 0 0 4px rgba(120, 100, 255, 0.28); background: rgba(255, 255, 255, 0.06); }
.field [aria-invalid='true'] { border-color: var(--danger) !important; }
.field__hint { color: var(--muted); font-size: 0.9rem; }
.field__err { color: var(--danger); font-size: 0.92rem; font-weight: 700; }
.field--check { grid-template-columns: 24px 1fr; column-gap: 12px; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--purple); }
.field--check label { font-weight: 600; color: var(--text-2); }
.field--check .field__err { grid-column: 2; }
.req { color: var(--gold); }
.opt { color: var(--muted); font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__status { padding: 12px 14px; border-radius: 12px; font-weight: 700; background: rgba(255, 155, 155, 0.1); border: 1px solid rgba(255, 155, 155, 0.35); color: #ffd2d2; }
.form__note { color: var(--muted); font-size: 0.86rem; text-align: center; }
.form-card .privacy-mini { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.9rem; color: var(--muted); }

.thanks { padding: calc(var(--header-h) + var(--safe-t) + 56px) 0 80px; text-align: center; position: relative; isolation: isolate; overflow: hidden; min-height: 70vh; }
.thanks .wrap { position: relative; z-index: 1; }
.thanks h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); margin-top: 22px; }
.thanks p { margin: 16px auto 0; max-width: 34em; color: var(--text-2); }
.thanks .btn { margin-top: 28px; }
.thanks__star { width: 84px; height: 84px; margin: 0 auto; }
.thanks__star path { fill: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .thanks__star { animation: star-in 900ms var(--ease-out) 150ms both; }
}

/* ---------------------------------------------------------------- legal */
.legal-head { padding: calc(var(--header-h) + var(--safe-t) + 24px) 0 0; }
.legal { padding-block: 16px 64px; }
.legal h1 { margin-top: 12px; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); letter-spacing: -0.02em; }
.legal h2 { margin: 2.4rem 0 0.6rem; font-size: 1.35rem; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal h3 { margin: 1.6rem 0 0.4rem; font-size: 1.1rem; }
.legal p, .legal ul, .legal ol, .legal address, .legal .table-scroll { margin: 0 0 1rem; }
.legal ul, .legal ol { padding-left: 1.4rem; }
.legal li { margin-bottom: 0.35rem; }
.legal address { font-style: normal; }
.legal .stand { margin: 8px 0 1.5rem; }
.legal .box { background: var(--bg-raised); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.15rem; margin: 0 0 1rem; }
.legal .box > :last-child { margin-bottom: 0; }
.legal table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 0.5rem 0.55rem; border-bottom: 1px solid var(--line); }
.legal th { font-weight: 750; }
.legal .table-scroll { overflow-x: auto; }
.legal .table-scroll table { min-width: 520px; }

/* ---------------------------------------------------------------- footer */
.site-footer { position: relative; margin-top: 24px; padding: 56px 0 calc(32px + var(--safe-b)); border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.18)); font-size: 0.95rem; }
.theme-legal .site-footer { background: var(--bg-raised); margin-top: 0; }
.footer-top { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 360px; }
.footer-brand p { margin-top: 12px; color: var(--muted); }
.footer-col__title { font-size: 0.8rem; font-weight: 850; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 2px; }
.footer-col a, .footer-col .linklike { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-2); text-decoration: none; font-weight: 650; }
.footer-col .linklike { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-col a:hover, .footer-col .linklike:hover { color: var(--text); text-decoration: underline; } }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.88rem; }
.footer-bottom a { color: var(--text-2); display: inline-flex; min-height: 40px; align-items: center; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }

/* ---------------------------------------------------------------- consent banner */
.consent {
  position: fixed; z-index: 60; left: calc(12px + var(--safe-l)); right: calc(12px + var(--safe-r)); bottom: calc(12px + var(--safe-b));
  max-width: 560px; margin-inline: auto; padding: 20px; border-radius: 22px;
  background: var(--surface-solid); color: var(--text); border: 1px solid var(--line-2);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7);
}
.theme-night .consent { background: #221e36; }
.consent h2 { font-size: 1.1rem; letter-spacing: 0; }
.consent p { margin-top: 8px; color: var(--text-2); font-size: 0.95rem; }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.consent__btns .btn { width: 100%; padding: 0 12px; background: rgba(255, 255, 255, 0.07); color: var(--text); border-color: var(--line-2); }
.theme-legal .consent__btns .btn { background: var(--bg-raised); }
@media (hover: hover) and (pointer: fine) { .consent__btns .btn:hover { border-color: var(--accent); } }
@media (prefers-reduced-motion: no-preference) {
  .consent { transition: opacity 300ms ease, transform 400ms var(--ease-out); }
  .consent.is-entering { opacity: 0; transform: translateY(16px); }
  .consent.is-leaving { opacity: 0; transform: translateY(12px); transition-duration: 200ms; }
}

/* ---------------------------------------------------------------- scroll reveal (JS adds .rv-pre only to elements below the fold) */
@media (prefers-reduced-motion: no-preference) {
  .rv-pre { opacity: 0; transform: translateY(18px); }
  .rv-in { opacity: 1; transform: none; transition: opacity 800ms var(--ease-out), transform 1000ms var(--ease-out); transition-delay: calc(var(--rv-i, 0) * 80ms); }
  .rv-pre.rv-static, .rv-in.rv-static { transform: none; }
}

/* ---------------------------------------------------------------- accessibility preferences */
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.is-top { background: var(--night); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .theme-legal .site-header { background: var(--bg); }
}
@media (prefers-contrast: more) {
  :root { --line: rgba(255, 255, 255, 0.3); --line-2: rgba(255, 255, 255, 0.45); --muted: #cfc9e6; --text-2: #eeeaff; }
}
@media (forced-colors: active) {
  .brand__logo { background: CanvasText; }
  .btn { border: 1px solid ButtonText; }
}
@media print {
  .site-header, .site-footer, .sky, .consent, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
