/* ========================================================================
   LUDO — components & sections
   ======================================================================== */

/* ---- Reveal on scroll ---- */
.reveal-out { opacity: 0; transform: translateY(22px); }
.reveal-in { opacity: 1; transform: translateY(0); }
.reveal-out, .reveal-in { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) {
  .reveal-out { opacity: 1; transform: none; }
}

/* ============ Segmented ============ */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.segmented.is-disabled { opacity: .45; }
.segmented__opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 9px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: background .14s ease, color .14s ease, box-shadow .14s ease;
  line-height: 1.1;
}
.segmented__opt:hover:not(.is-active) { color: var(--ink); background: var(--on-paper-token); }
.segmented__opt.is-active {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  border-color: var(--line);
}
.segmented__hint {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: .02em;
}

/* ============ Version picker ============ */
.vpick__rail {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vpick__chip {
  flex: 1 1 auto;
  min-width: 52px;
  padding: 9px 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  transition: transform .1s ease, border-color .14s ease, color .14s ease;
}
.vpick__chip:hover:not(.is-active) { border-color: var(--ink-3); color: var(--ink); }
.vpick__chip.is-active { font-weight: 600; }
.vpick__chip:active { transform: translateY(1px); }

/* ============ Track viz ============ */
.trackviz {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.trackviz__node { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: none; }
.trackviz__lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trackviz .piece {
  width: 30px; height: 30px; border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.trackviz .piece::after { width: 11px; height: 11px; border-radius: 4px; }
.trackviz__path {
  position: relative;
  flex: 1;
  height: 30px;
  display: flex;
  align-items: center;
}
.trackviz__dots {
  position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%);
  background-image: radial-gradient(circle, var(--line-2) 1.6px, transparent 1.7px);
  background-size: 13px 3px;
  background-repeat: repeat-x;
}
.trackviz__fill {
  position: absolute; left: 0; top: 50%; height: 3px; transform: translateY(-50%);
  border-radius: 2px;
  transition: width 1.4s cubic-bezier(.4,.8,.2,1);
}
.trackviz__runner {
  position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 5px;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px var(--paper), var(--shadow-sm);
  transition: left 1.4s cubic-bezier(.4,.8,.2,1);
}

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 22px; height: 68px; }
.nav__links { display: flex; gap: 4px; margin-left: 10px; }
.nav__link {
  font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: 8px;
  transition: color .14s, background .14s;
}
.nav__link:hover { color: var(--ink); background: var(--on-paper-token); }
.nav__spacer { flex: 1; }
.nav__right { display: flex; align-items: center; gap: 10px; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 34px; height: 34px; border-radius: 10px; position: relative;
  background: var(--ink);
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; padding: 6px;
}
.logo__mark i { border-radius: 3px; }
.logo__mark i:nth-child(1){ background: var(--ludo-green); }
.logo__mark i:nth-child(2){ background: var(--ludo-blue); }
.logo__mark i:nth-child(3){ background: var(--ludo-amber); }
.logo__mark i:nth-child(4){ background: var(--ludo-coral); }
.logo__word { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.03em; }

.lang-toggle {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden;
  font-family: var(--font-mono); font-size: 12px;
}
.lang-toggle button { padding: 7px 11px; background: transparent; color: var(--ink-3); border: 0; transition: background .14s, color .14s; }
.lang-toggle button.is-active { background: var(--ink); color: var(--paper); }

/* ============ Hero ============ */
.hero { padding: clamp(56px, 9vw, 116px) 0 64px; position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 104px); }
.hero h1 .accent { color: var(--accent); }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); max-width: 30ch; margin-top: 26px; }
.hero__cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero__stats { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat b { font-family: var(--font-display); font-size: 26px; letter-spacing: -.03em; }
.hero__stat span { font-size: 13px; color: var(--ink-3); }

/* Hero visual panel */
.hero__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__panel-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.hero__panel-dots { display: flex; gap: 6px; }
.hero__panel-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.hero__migrows { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.migrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-2); }
.migrow__ic { width: 30px; height: 30px; border-radius: 9px; background: var(--paper-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.migrow__bar { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; }
.migrow__bar i { display: block; height: 100%; border-radius: 3px; background: var(--ludo-green); transform-origin: left; }
.migrow__pct { width: 36px; text-align: right; color: var(--ink-3); }

/* Decorative track in hero bg */
.hero__bgtrack {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 80% at 80% 10%, #000 0%, transparent 60%);
  mask-image: radial-gradient(120% 80% at 80% 10%, #000 0%, transparent 60%);
}

/* ============ Marquee ============ */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 16px 0; background: var(--paper-2);
}
.marquee__row { display: flex; gap: 0; width: max-content; animation: marquee 34s linear infinite; }
.marquee__row:hover { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 14px; padding: 0 30px;
  font-family: var(--font-mono); font-size: 14px; color: var(--ink-2); letter-spacing: .02em;
}
.marquee__item::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ Section scaffolding ============ */
.section { padding: clamp(72px, 10vw, 132px) 0; }
.section__head { max-width: 64ch; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(32px, 4.4vw, 56px); margin-top: 16px; }
.section__head p { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); margin-top: 18px; max-width: 56ch; }

/* ============ How it works ============ */
.how__track { position: relative; margin-top: 12px; }
.how__line {
  position: absolute; top: 27px; left: 5%; right: 5%; height: 2px; z-index: 0;
  background-image: linear-gradient(90deg, var(--line-2) 0 55%, transparent 55%);
  background-size: 14px 2px;
}
.how__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; position: relative; z-index: 1; }
.how__step { display: flex; flex-direction: column; }
.how__node {
  width: 54px; height: 54px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 15px; font-weight: 600;
  box-shadow: var(--shadow-sm); margin-bottom: 22px; color: var(--ink);
  position: relative;
}
.how__node::after {
  content: ""; position: absolute; inset: -1px; border-radius: 16px;
  border: 2px solid var(--accent); opacity: 0; transform: scale(1.15); transition: .3s;
}
.how__step:hover .how__node::after { opacity: 1; transform: scale(1); }
.how__step h3 { font-size: 22px; margin-bottom: 10px; }
.how__step p { font-size: 15px; color: var(--ink-2); }

/* ============ Tracks ============ */
.tracks__lic { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.tracks__combos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.combo {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 26px; position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.combo::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--combo-c);
}
.combo:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.combo__route { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.combo__chip {
  font-family: var(--font-mono); font-size: 12px; padding: 5px 11px; border-radius: 8px;
  background: var(--paper-2); color: var(--ink); border: 1px solid var(--line);
}
.combo__arrow { color: var(--combo-c); display: inline-flex; }
.combo__kind {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--combo-c);
  margin-bottom: 8px;
}
.combo__kind .dot { width: 8px; height: 8px; border-radius: 3px; background: var(--combo-c); }
.combo h3 { font-size: 22px; margin-bottom: 10px; }
.combo p { font-size: 15px; color: var(--ink-2); }
.combo__num {
  position: absolute; right: 18px; top: 14px; font-family: var(--font-display);
  font-size: 52px; font-weight: 700; color: var(--combo-c); opacity: .1; line-height: 1;
}

/* ============ Calculator ============ */
.calc { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px; align-items: start; }
.calc--stacked { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }
.calc__panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.calc__panel-title {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 22px; display: flex; align-items: center; gap: 8px;
}
.field { margin-bottom: 22px; }
.field:last-child { margin-bottom: 0; }
.field__label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.field__label span { font-size: 14px; font-weight: 600; }
.field__label em { font-family: var(--font-mono); font-style: normal; font-size: 11.5px; color: var(--ink-3); }
.field__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Result panel */
.result {
  background: var(--ink); color: var(--paper); border-radius: 22px; padding: 30px;
  position: sticky; top: 88px; overflow: hidden;
}
html[data-theme="terminal"] .result { background: var(--surface-2); border: 1px solid var(--line-2); }
.result__bgtrack {
  position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(100% 70% at 100% 0%, #000, transparent 70%);
  mask-image: radial-gradient(100% 70% at 100% 0%, #000, transparent 70%);
}
.result__head { display: flex; align-items: center; justify-content: space-between; position: relative; }
.result__label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.result__combo {
  display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono);
  font-size: 11px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.1);
}
.result__combo .dot { width: 8px; height: 8px; border-radius: 3px; }
.result__total {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em;
  font-size: clamp(54px, 8vw, 76px); line-height: .95; margin: 18px 0 6px;
  position: relative; font-variant-numeric: tabular-nums;
}
.result__range { font-family: var(--font-mono); font-size: 13px; opacity: .65; position: relative; }
.result__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 24px 0; position: relative; }
.result__metric { background: rgba(255,255,255,.07); border-radius: 14px; padding: 16px; }
.result__metric .mlabel { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.result__metric .mval { font-family: var(--font-display); font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.result__metric .mval small { font-size: 15px; opacity: .6; font-weight: 500; }

.result__break { position: relative; border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; }
.result__break-t { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; opacity: .55; margin-bottom: 12px; }
.bline { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; }
.bline__bar { flex: 1; height: 5px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; }
.bline__bar i { display: block; height: 100%; border-radius: 3px; transition: width .6s cubic-bezier(.3,.8,.2,1); }
.bline__name { width: 190px; opacity: .82; flex: none; white-space: nowrap; font-size: 12.5px; }
.bline__val { width: 76px; text-align: right; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; }

.result__save {
  position: relative; margin-top: 22px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-radius: 15px; border: 0;
  background: var(--accent); color: var(--accent-ink); text-align: left;
  transition: transform .12s ease, filter .15s ease;
}
.result__save:hover { filter: brightness(1.06); }
.result__save:active { transform: translateY(1px); }
.result__save b { font-family: var(--font-display); font-size: 17px; display: block; }
.result__save span { font-size: 12.5px; opacity: .85; }
.result__save .arrow { font-size: 22px; }
.result__foot { position: relative; font-family: var(--font-mono); font-size: 11px; opacity: .5; margin-top: 14px; text-align: center; }
.result__warn {
  position: relative; margin-top: 14px; font-family: var(--font-mono); font-size: 12px;
  color: var(--ludo-amber); display: flex; gap: 8px; align-items: center;
}

/* ============ Subscription ============ */
.sub { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.sub__card {
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 22px; padding: 34px; position: relative; overflow: hidden;
}
.sub__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.sub__price b { font-family: var(--font-display); font-size: 64px; font-weight: 700; letter-spacing: -.04em; color: var(--ink); }
.sub__price span { font-family: var(--font-mono); font-size: 18px; color: var(--ink-2); }
.sub__note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }
.sub__feats { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.sub__feats li { display: flex; gap: 11px; font-size: 15px; align-items: flex-start; }
.sub__feats .tick { color: var(--accent); margin-top: 2px; flex: none; }
.sub__oneoff { font-size: 14px; color: var(--ink-2); margin-top: 16px; }
.sub__oneoff em { font-style: normal; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }

/* ============ FAQ ============ */
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 24px 0; background: transparent; border: 0; text-align: left;
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 23px); font-weight: 600; color: var(--ink);
  letter-spacing: -.01em;
}
.faq__sign { flex: none; width: 26px; height: 26px; position: relative; color: var(--accent); }
.faq__sign::before, .faq__sign::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; transition: transform .25s ease, opacity .2s; }
.faq__sign::before { left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.faq__sign::after { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); }
.faq__item.is-open .faq__sign::after { transform: translateX(-50%) scaleY(0); opacity: 0; }
.faq__a { overflow: hidden; max-height: 0; transition: max-height .35s ease; }
.faq__a-inner { padding: 0 50px 26px 0; color: var(--ink-2); font-size: 16px; max-width: 70ch; }

/* ============ About ============ */
.about__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.about__card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.about__card .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--paper-2); display: grid; place-items: center; color: var(--accent); font-size: 20px; margin-bottom: 18px; }
.about__card h3 { font-size: 20px; margin-bottom: 10px; }
.about__card p { font-size: 15px; color: var(--ink-2); }

/* ============ Footer ============ */
.footer { background: var(--paper-2); border-top: 1px solid var(--line); padding: 72px 0 30px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer__col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; font-weight: 500; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 11px; }
.footer__col a { font-size: 14.5px; color: var(--ink-2); transition: color .14s; }
.footer__col a:hover { color: var(--ink); }
.footer__brand { display: flex; flex-direction: column; gap: 16px; }
.footer__brand p { font-size: 14px; color: var(--ink-2); max-width: 30ch; }
.news__form { display: flex; gap: 8px; margin: 6px 0 10px; }
.news__form input {
  flex: 1; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font-family: var(--font-body); font-size: 14px;
}
.news__form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.news__consent { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.news__done { font-size: 13px; color: var(--accent); display: flex; gap: 8px; align-items: center; }
.news__unsub { font-size: 12.5px; color: var(--ink-3); text-decoration: underline; margin-top: 8px; display: inline-block; }
.footer__bottom {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-3); font-family: var(--font-mono);
}
.footer__bottom .endorse { color: var(--ink-2); }
.footer__bottom .sep { flex: 1; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-2); transition: .14s; }
.footer__social a:hover { color: var(--ink); border-color: var(--ink-3); }

/* ============ Sticky mobile CTA ============ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  display: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.sticky-cta .btn { width: 100%; }

/* ============ Modals (claim / share) ============ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 20px;
  background: color-mix(in srgb, var(--ink) 38%, transparent);
  backdrop-filter: blur(6px); animation: ludo-rise .25s ease;
}
.modal {
  position: relative; width: 100%; max-width: 480px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow-lg);
  animation: ludo-rise .35s cubic-bezier(.2,.7,.2,1);
}
.modal--wide { max-width: 760px; }
.modal__x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 10px; background: var(--paper-2); border: 0; color: var(--ink-2); display: grid; place-items: center; font-size: 18px; }
.modal__x:hover { color: var(--ink); }
.modal h3 { font-size: 28px; margin-bottom: 10px; }
.modal__sub { color: var(--ink-2); font-size: 15px; margin-bottom: 24px; max-width: 42ch; }
.oauth-btn {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 15px 18px; margin-bottom: 12px;
  border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink);
  font-size: 15px; font-weight: 500; transition: transform .12s, border-color .14s, background .14s;
}
.oauth-btn:hover { border-color: var(--ink-3); background: var(--on-paper-token); }
.oauth-btn:active { transform: translateY(1px); }
.oauth-btn.gh { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.oauth-btn .ic { font-size: 20px; }
.oauth-btn .arrow { margin-left: auto; opacity: .5; }
.modal__attach { background: var(--paper-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 22px; }
.modal__attach .lab { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.modal__attach .row { display: flex; align-items: baseline; justify-content: space-between; }
.modal__attach .row b { font-family: var(--font-display); font-size: 24px; }
.modal__attach .row span { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); }
.modal__legal { font-size: 12px; color: var(--ink-3); margin-top: 16px; text-align: center; line-height: 1.5; }

/* claim success */
.claim-busy { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 30px 0; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.checklist { list-style: none; padding: 0; margin: 8px 0 24px; }
.checklist li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: 0; }
.checklist .num { width: 28px; height: 28px; border-radius: 8px; background: var(--paper-2); display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); flex: none; }
.checklist li:first-child .num { background: var(--accent); color: var(--accent-ink); }
.checklist .ct b { font-size: 15px; display: block; }
.checklist .ct span { font-size: 13px; color: var(--ink-2); }
.modal__actions { display: flex; gap: 10px; }
.modal__actions .btn { flex: 1; }

/* share form */
.sharef { display: flex; flex-direction: column; gap: 14px; }
.sharef label { font-size: 13px; font-weight: 600; margin-bottom: 6px; display: block; }
.sharef input, .sharef textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink); font-family: var(--font-body); font-size: 14px; resize: vertical;
}
.sharef input:focus, .sharef textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.share-sent { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding: 16px 0; }
.share-sent .big { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 28px; }

/* ============ Language-switch stability ============ */
/* Short UI strings must never wrap — keeps controls/nav the same shape in DE & EN */
.nav__link,
.segmented__opt span,
.field__label > span,
.field__label > em,
.combo__chip,
.combo__kind,
.result__combo,
.result__label,
.result__break-t,
.calc__panel-title,
.eyebrow,
.btn,
.lang-toggle button,
.footer__col h4,
.hero__stat b,
.tag {
  white-space: nowrap;
}
/* Crossfade longer prose so differing line-counts don't snap on toggle */
main, .footer { transition: opacity .22s ease; }
html.lang-switching main,
html.lang-switching .footer { opacity: .32; transition: opacity .1s ease; }
@media (prefers-reduced-motion: reduce) {
  main, .footer { transition: none; }
  html.lang-switching main, html.lang-switching .footer { opacity: 1; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
}
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__panel { order: -1; }
  .calc { grid-template-columns: 1fr; }
  .result { position: static; }
  .sub { grid-template-columns: 1fr; gap: 28px; }
  .how__steps { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .how__line { display: none; }
  .about__cards { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 20px; }
  .tracks__combos { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .sticky-cta { display: block; }
  .nav__right .signin-text { display: none; }
  .bline { gap: 10px; }
  .bline__bar { display: none; }
  .bline__name { width: auto; flex: 1; overflow: hidden; text-overflow: ellipsis; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ============================================================
   MULTI-PAGE: router transitions, nav active, overview sections
   ============================================================ */

/* ---- Page mount transition ---- */
.page { animation: page-in .42s cubic-bezier(.2,.7,.2,1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .page { animation: none; } }

/* ---- Nav active link ---- */
.nav__link { position: relative; }
.nav__link.is-active { color: var(--ink); }

/* ---- Nav account chip (signed in) ---- */
.nav__account {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px 6px 7px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  color: var(--ink); font-weight: 500; font-size: 14px; box-shadow: var(--shadow-sm);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.nav__account:hover { border-color: var(--line-2); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.nav__account:hover .arrow { transform: translateX(3px); }
.nav__avatar {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
}
.nav__acctxt { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .01em; }
.nav__account .arrow { color: var(--ink-3); transition: transform .15s; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent);
}

/* ---- Tighter stacked sections on the home overview ---- */
.section--tight { padding: clamp(46px, 6.5vw, 84px) 0; }

/* ============ Seven components ============ */
.seven__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.seven__card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s;
}
.seven__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.seven__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.seven__ic { width: 40px; height: 40px; border-radius: 11px; background: var(--paper-2); display: grid; place-items: center; color: var(--accent); font-size: 18px; }
.seven__n { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: .08em; }
.seven__card h3 { font-size: 18px; margin-bottom: 8px; }
.seven__card p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.seven__via {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px;
  padding: 22px; border: 1px dashed var(--line-2); border-radius: 16px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); line-height: 1.45;
}
.seven__via-dot { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 18px; }

/* ============ Version matrix ============ */
.matrix { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 30px); }
.matrix__scroll { overflow-x: auto; }
.matrix__grid { display: grid; gap: 6px; min-width: 600px; }
.matrix__corner { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-left: 4px; }
.matrix__axis { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.matrix__head { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); display: grid; place-items: center; padding: 6px 0; }
.matrix__row-h { font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); display: flex; align-items: center; padding-right: 12px; padding-left: 4px; }
.matrix__cell { height: 34px; border-radius: 8px; display: grid; place-items: center; }
.matrix__cell.is-ok { background: var(--accent-soft); }
.matrix__cell.is-na { background: var(--paper-2); }
.matrix__dot { width: 12px; height: 12px; border-radius: 4px; background: var(--accent); }
.matrix__na { color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; opacity: .35; }
.matrix__note { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); margin-top: 18px; line-height: 1.5; }

/* ============ Explore row (home) ============ */
.explore { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.explore__card {
  display: flex; flex-direction: column; color: inherit;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.explore__card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.explore__cardhead h3 { font-size: clamp(21px, 2.3vw, 28px); margin-top: 12px; }
.explore__how { position: relative; display: flex; justify-content: space-between; margin: 32px 0; }
.explore__how-line { position: absolute; top: 17px; left: 18px; right: 18px; height: 2px; background-image: linear-gradient(90deg, var(--line-2) 0 55%, transparent 55%); background-size: 10px 2px; }
.explore__node { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; z-index: 1; flex: 1; }
.explore__dot { width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); }
.explore__nlbl { font-size: 12px; color: var(--ink-2); font-family: var(--font-mono); text-align: center; }
.explore__tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 32px 0; }
.explore__combo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--paper-2); border: 1px solid var(--line); }
.explore__piece { width: 16px; height: 16px; border-radius: 5px; background: var(--combo-c); flex: none; }
.explore__route { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.explore__kind { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }
.explore__link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 500; }
.explore__card:hover .explore__link .arrow { transform: translateX(3px); }

/* ============ Price teaser (home) ============ */
.priceteaser { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(28px, 4vw, 52px); overflow: hidden; }
.priceteaser__bgtrack { position: absolute; inset: 0; opacity: .5; pointer-events: none; background-image: radial-gradient(circle, var(--line) 1px, transparent 1.5px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(110% 80% at 100% 0%, #000, transparent 60%); mask-image: radial-gradient(110% 80% at 100% 0%, #000, transparent 60%); }
.priceteaser__text { position: relative; }
.priceteaser__text h2 { font-size: clamp(28px, 3.4vw, 44px); margin: 14px 0 16px; }
.priceteaser__lead { color: var(--ink-2); font-size: 16px; max-width: 40ch; margin-bottom: 26px; }
.priceteaser__card { position: relative; background: var(--ink); color: var(--paper); border-radius: 20px; padding: 28px; }
html[data-theme="terminal"] .priceteaser__card { background: var(--surface-2); border: 1px solid var(--line-2); }
.priceteaser__lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.priceteaser__num { font-family: var(--font-display); font-weight: 700; letter-spacing: -.04em; font-size: clamp(44px, 6vw, 60px); line-height: 1; display: block; margin: 10px 0 6px; }
.priceteaser__range { font-family: var(--font-mono); font-size: 12.5px; opacity: .65; display: block; }
.priceteaser__metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 18px; }
.priceteaser__metrics > div { background: rgba(255,255,255,.07); border-radius: 12px; padding: 14px; }
.priceteaser__metrics b { font-family: var(--font-display); font-size: 26px; letter-spacing: -.03em; }
.priceteaser__metrics small { font-size: 14px; opacity: .6; }
.priceteaser__metrics span { display: block; font-family: var(--font-mono); font-size: 11px; opacity: .6; margin-top: 2px; }
.priceteaser__stat { display: block; border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; font-family: var(--font-mono); font-size: 11.5px; opacity: .6; }

/* ============ CTA band ============ */
.ctaband { padding: clamp(64px, 9vw, 110px) 0; background: var(--paper-2); border-top: 1px solid var(--line); }
.ctaband__inner { max-width: 760px; text-align: center; display: flex; flex-direction: column; align-items: center; margin: 0 auto; }
.ctaband__inner .eyebrow::before { display: none; }
.ctaband__track { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.ctaband__track .piece { width: 26px; height: 26px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.ctaband h2 { font-size: clamp(30px, 4.2vw, 50px); margin-top: 14px; }
.ctaband__lead { color: var(--ink-2); font-size: clamp(16px, 1.6vw, 19px); margin: 18px 0 30px; max-width: 52ch; }
.ctaband__btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- Responsive: overview sections ---- */
@media (max-width: 980px) {
  .explore { grid-template-columns: 1fr; }
  .priceteaser { grid-template-columns: 1fr; gap: 28px; }
  .seven__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .seven__grid { grid-template-columns: 1fr; }
  .explore__tracks { grid-template-columns: 1fr; }
}
