@font-face {
  font-family: 'Darker Grotesque';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/darker-grotesque-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Darker Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/darker-grotesque-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Darker Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/darker-grotesque-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/instrument-sans-700.woff2') format('woff2');
}

:root {
  --brand: #6960f7;
  --brand-bright: #b537ff;
  --brand-magenta: #e129a8;
  --violet: #9c3aed;

  --gradient: linear-gradient(135deg, var(--brand), var(--brand-bright));

  --ink: #1e1a2e;
  --ink-soft: #3d364f;
  --muted: #5f5875;
  --muted-soft: #6b6280;
  --muted-light: #7a7290;
  --faint: #a79fb8;

  --ground: #faf8fc;
  --card: #ffffff;
  --tint: #f6f3fb;
  --line: #ede7f6;

  --brand-rgb: 105, 96, 247;
  --edge: rgba(var(--brand-rgb), 0.18);
  --edge-strong: rgba(var(--brand-rgb), 0.35);
  --wash: rgba(var(--brand-rgb), 0.06);
  --wash-mid: rgba(var(--brand-rgb), 0.1);

  --ui: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Darker Grotesque', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1160px;
  --gutter: 24px;
}

*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--text);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-bright); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.mid { max-width: 900px; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  background: var(--card);
  border-radius: 0 0 10px 0;
  font-family: var(--ui);
  font-weight: 700;
}
.skip:focus { left: 0; }

h1, h2, h3 { font-family: var(--ui); letter-spacing: -0.015em; line-height: 1.05; }

h1 {
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 700; text-wrap: balance; }
h3 { font-family: var(--text); font-size: 27px; font-weight: 700; line-height: 1.1; }

.eyebrow {
  font-size: 19px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 12px;
}
.eyebrow--quiet { color: #8a82a0; }

.lead {
  font-size: 21px;
  line-height: 1.45;
  color: var(--muted);
  text-wrap: pretty;
}
.lead--wide { font-size: 22px; max-width: 540px; }

.prose p { margin-bottom: 16px; color: var(--muted); }
.prose h2 { font-size: clamp(24px, 3vw, 32px); margin: 40px 0 14px; }
.prose h3 { font-size: 22px; margin: 28px 0 10px; }
.prose ul { margin: 0 0 16px 22px; color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  background: var(--gradient);
  color: #fff;
  font-family: var(--text);
  font-size: 21px;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 8px 30px rgba(var(--brand-rgb), 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 34px rgba(var(--brand-rgb), 0.45);
}
.btn--sm { padding: 10px 20px; font-size: 18px; box-shadow: none; }
.btn--lg { padding: 16px 34px; font-size: 22px; }
.btn--block { display: flex; justify-content: center; width: 100%; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 72px;
  padding: 0 var(--gutter);
  background: rgba(250, 248, 252, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}

.wordmark {
  font-family: var(--ui);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark span { color: var(--brand); }
.wordmark:hover { color: var(--ink); }

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}
.nav__links a:not(.btn):hover { color: var(--brand); }
.nav__links .btn { color: #fff; }

@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
}

.section { padding: 80px 0; }
.section--tight { padding: 24px 0 80px; }
.section--hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.section--wash { background: linear-gradient(180deg, var(--wash), transparent); }

.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 55% 60% at 12% 0%, rgba(var(--brand-rgb), 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 50% 55% at 100% 40%, rgba(181, 55, 255, 0.16) 0%, transparent 70%);
}
.hero__grid {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
}
.hero__copy { flex: 1 1 440px; min-width: 300px; }
.hero__art { flex: 1 1 460px; min-width: 280px; display: flex; justify-content: center; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px;
  background: var(--wash-mid);
  border: 1px solid var(--edge-strong);
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 600;
  color: #5b46c9;
}
.pill__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }

.hero__cta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; margin-top: 34px; }
.hero__note { font-size: 17px; color: var(--muted-light); }

.claim {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 4px;
  padding: 8px 15px;
  background: var(--wash);
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  border-radius: 9999px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
}
.claim strong { font-weight: 700; color: var(--ink); }
.claim svg { flex-shrink: 0; }

.gradient-text {
  background: linear-gradient(120deg, var(--brand), var(--brand-bright));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand);
}

.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--trust { gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

.card {
  background: var(--card);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  border-radius: 16px;
  padding: 30px;
}
.card--feature {
  border: none;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 2px 10px rgba(30, 26, 46, 0.06), 0 0 0 1px rgba(var(--brand-rgb), 0.09);
}
.card__title { font-size: 22px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.card p { font-size: 19px; color: var(--muted); }
.card h3 { margin-bottom: 8px; }

.orb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand), var(--brand-bright));
  box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 48px 44px;
  box-shadow: 0 2px 10px rgba(30, 26, 46, 0.05);
}
.panel--split { display: flex; flex-wrap: wrap; align-items: center; gap: 36px; }
.panel--split > div { flex: 1 1 420px; min-width: 260px; }
.panel--rows { border-radius: 20px; padding: 8px 32px; }

.limit { display: flex; flex-wrap: wrap; gap: 18px 44px; align-items: flex-start; padding: 30px 0; }
.limit + .limit { border-top: 1px solid var(--line); }
.limit__head { display: flex; gap: 11px; align-items: flex-start; flex: 1 1 210px; max-width: 300px; }
.limit__head svg { flex-shrink: 0; margin-top: 5px; }
.limit__head > div { min-width: 0; }
.limit__title { font-size: 23px; font-weight: 700; color: var(--ink); line-height: 1.15; }
.limit__what { font-size: 17px; color: var(--muted-soft); line-height: 1.35; margin-top: 3px; text-wrap: pretty; }
.limit__body { flex: 3 1 340px; min-width: 0; }
.limit__claim {
  font-family: var(--ui);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: pretty;
}
.limit details { margin-top: 14px; }
.limit summary {
  display: flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
}
.limit summary::-webkit-details-marker { display: none; }
.limit summary::after {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: no-repeat center / 18px 18px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236960f7' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  transition: transform 0.25s;
}
.limit details[open] summary::after { transform: rotate(180deg); }
.limit details p { margin-top: 12px; font-size: 17.5px; color: var(--muted-soft); line-height: 1.5; text-wrap: pretty; }

.trust {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 2px 10px rgba(30, 26, 46, 0.05);
}
.trust__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(var(--brand-rgb), 0.08);
  margin-bottom: 18px;
}
.trust__title { font-size: 23px; font-weight: 700; color: var(--ink); line-height: 1.15; margin-bottom: 7px; text-wrap: balance; }
.trust__text { font-size: 18px; color: var(--muted-soft); line-height: 1.4; text-wrap: pretty; }

.bayern {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 34px;
  padding: 34px 36px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), 0.07), rgba(var(--brand-rgb), 0.04));
  border: 1px solid rgba(var(--brand-rgb), 0.2);
  border-radius: 20px;
}
.bayern > div { flex: 1 1 420px; min-width: 260px; }
.bayern__title {
  font-family: var(--ui);
  font-size: clamp(24px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 8px;
}
.bayern__text { font-size: 19px; color: var(--muted); line-height: 1.4; text-wrap: pretty; }

@media (max-width: 560px) {
  .panel--rows { padding: 4px 20px; }
  .bayern { padding: 26px 22px; }
  .namestory { padding: 28px 20px; }
}

.flags { display: flex; gap: 8px; flex-shrink: 0; }
.flag {
  width: 42px;
  aspect-ratio: 5 / 3;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(30, 26, 46, 0.12), 0 2px 6px rgba(30, 26, 46, 0.1);
}
.flag--de { background: linear-gradient(180deg, #000 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%); }

.flag--by {
  background: center / 100% 100% no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 5 3'%3E%3Cpath fill='%23fff' d='M0 0h5v3H0z'/%3E%3Cpath fill='%230066b3' d='M2.03 -.74 2.07 .1 1.3 -.22 1.26 -1.05ZM1.3 -.22 1.33 .61 .56 .3 .53 -.54ZM.56 .3 .59 1.13 -.18 .81 -.21 -.02ZM4.31 -.62 4.34 .21 3.57 -.11 3.54 -.94ZM3.57 -.11 3.61 .73 2.84 .41 2.8 -.42ZM2.84 .41 2.87 1.24 2.1 .93 2.07 .1ZM2.1 .93 2.13 1.76 1.36 1.44 1.33 .61ZM1.36 1.44 1.39 2.27 .62 1.96 .59 1.13ZM.62 1.96 .66 2.79 -.11 2.48 -.15 1.64ZM5.11 .52 5.15 1.36 4.38 1.04 4.34 .21ZM4.38 1.04 4.41 1.87 3.64 1.56 3.61 .73ZM3.64 1.56 3.67 2.39 2.9 2.07 2.87 1.24ZM2.9 2.07 2.93 2.9 2.16 2.59 2.13 1.76ZM2.16 2.59 2.2 3.42 1.43 3.11 1.39 2.27ZM1.43 3.11 1.46 3.94 .69 3.62 .66 2.79ZM5.18 2.19 5.21 3.02 4.44 2.7 4.41 1.87ZM4.44 2.7 4.47 3.54 3.7 3.22 3.67 2.39ZM3.7 3.22 3.74 4.05 2.97 3.74 2.93 2.9Z'/%3E%3C/svg%3E");
}

.price {
  max-width: 540px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--edge-strong);
  border-radius: 26px;
  padding: 44px 40px;
  box-shadow: 0 0 50px rgba(var(--brand-rgb), 0.18);
  text-align: left;
}
.price__amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.price__amount b { font-family: var(--ui); font-size: 64px; font-weight: 700; line-height: 1; }
.price__amount span { font-size: 22px; font-weight: 500; color: var(--muted); }
.price__rule { height: 1px; background: rgba(var(--brand-rgb), 0.25); margin-bottom: 24px; }
.price__list { display: flex; flex-direction: column; gap: 13px; margin-bottom: 22px; }
.price__list div { display: flex; align-items: center; gap: 12px; font-size: 19px; color: var(--ink-soft); }
.price__list svg { flex-shrink: 0; }
.price__fine { font-size: 18px; color: var(--muted-soft); margin-bottom: 26px; text-wrap: pretty; }
.price__after { font-size: 17px; color: var(--muted-light); line-height: 1.5; margin-top: 18px; text-align: center; }

.namestory {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 40px;
  text-align: center;
  background: var(--wash);
  border: 1px solid rgba(var(--brand-rgb), 0.16);
  border-radius: 20px;
}
.namestory__word {
  font-family: var(--ui);
  font-size: clamp(26px, 6vw, 44px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink-soft);
  margin-bottom: 16px;
  white-space: nowrap;

  height: 1.2em;
}
.namestory__word b { font-weight: 700; }
.nm__go { color: var(--faint); animation: nm-go 7s cubic-bezier(0.5, 0, 0.2, 1) infinite 0.12s; }
.nm__plus { padding: 0 0.28em; animation-delay: 0s; }
.nm__lance { color: var(--ink-soft); animation: nm-glow 7s ease-in-out infinite; }
.nm__ly { color: var(--brand); }
.nm__dot { font-size: 0; font-weight: 700; color: var(--brand); animation: nm-dot 7s cubic-bezier(0.5, 0, 0.2, 1) infinite; }

@keyframes nm-go {
  0%, 18% { font-size: 1em; opacity: 1; }
  44%, 82% { font-size: 0; opacity: 0; }
  96%, 100% { font-size: 1em; opacity: 1; }
}
@keyframes nm-dot {
  0%, 30% { font-size: 0; opacity: 0; }
  50%, 82% { font-size: 1em; opacity: 1; }
  94%, 100% { font-size: 0; opacity: 0; }
}
@keyframes nm-glow {
  0%, 34% { color: var(--ink-soft); }
  52%, 82% { color: var(--ink); }
  96%, 100% { color: var(--ink-soft); }
}

.faq { display: flex; flex-direction: column; gap: 12px; }

.faq details {
  background: var(--card);
  border: 1px solid rgba(var(--brand-rgb), 0.15);
  border-radius: 14px;
  overflow: hidden;
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-size: 21px;
  font-weight: 700;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: no-repeat center / 22px 22px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F5875' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m19.5 8.25-7.5 7.5-7.5-7.5'/%3E%3C/svg%3E");
  transition: transform 0.25s;
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details p { padding: 0 24px 22px; font-size: 19px; line-height: 1.5; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.card--feature.reveal.is-in { transition-duration: 0.6s; }
.card--feature.reveal:nth-child(2).is-in { transition-delay: 0.07s; }
.card--feature.reveal:nth-child(3).is-in { transition-delay: 0.14s; }
.card--feature.reveal:nth-child(4).is-in { transition-delay: 0.21s; }
.card--feature.reveal:nth-child(5).is-in { transition-delay: 0.28s; }
.card--feature.reveal:nth-child(6).is-in { transition-delay: 0.35s; }

.final {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 40px;
  text-align: center;
  background: radial-gradient(ellipse 80% 120% at 50% 0%, rgba(var(--brand-rgb), 0.1), transparent 70%), var(--card);
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  border-radius: 28px;
}
.final h2 { font-size: clamp(28px, 3.6vw, 42px); margin-bottom: 16px; }
.final p { font-size: 21px; color: var(--muted); margin-bottom: 32px; }

.footer { border-top: 1px solid var(--edge); padding: 44px var(--gutter) 40px; }
.footer__top {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer__tag { font-size: 18px; color: var(--muted-light); }
.footer__links { display: flex; flex-wrap: wrap; gap: 24px; font-size: 18px; }
.footer__links a { color: var(--brand); }
.footer__bottom {
  max-width: var(--shell);
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 26, 46, 0.07);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  font-size: 16px;
  color: var(--muted-light);
}

.demo { position: relative; width: 100%; max-width: 500px; }
.demo__glow {
  position: absolute;
  inset: -14% -10%;
  background: radial-gradient(ellipse at 50% 45%, rgba(var(--brand-rgb), 0.2), transparent 68%);
  filter: blur(34px);
  pointer-events: none;
}
.demo__tag {
  position: absolute;
  z-index: 3;
  font-family: var(--ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
}
.demo__tag--in {
  top: -6px;
  left: 0;
  animation: lc-fade-a 7s ease-in-out infinite;
}
.demo__tag--out {
  bottom: -6px;
  right: 0;
  color: var(--brand);
  opacity: 0.25;
  animation: lc-fade-b 7s ease-in-out infinite;
}

.demo__frame {
  position: relative;
  margin: 26px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px 20px;
  box-shadow: 0 24px 60px rgba(30, 26, 46, 0.1), 0 2px 6px rgba(30, 26, 46, 0.04);
}
.demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f1ecf8;
}
.demo__mark { font-family: var(--ui); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.demo__mark span { color: var(--brand); }
.demo__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(var(--brand-rgb), 0.08);
  border: 1px solid rgba(var(--brand-rgb), 0.22);
  border-radius: 9999px;
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1;
  animation: lc-pill 7s ease-in-out infinite;
}

.demo__scene { display: none; }
.demo__scene[data-active] { display: block; }

.demo__rows { position: relative; }

.demo__row {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 58px;
  padding: 0 12px;
  background: #fff;
  border: 1px solid rgba(var(--brand-rgb), 0.28);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.1);
  animation: lc-settle 7s cubic-bezier(0.4, 0, 0.2, 1) infinite both;
  animation-delay: var(--d, 0s);
}
.demo__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.demo__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--ui); }
.demo__line { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.demo__t { font-size: 14px; font-weight: 700; color: #111827; white-space: nowrap; }
.demo__t2 { font-size: 13px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__sub { font-size: 11.5px; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--ui);
  animation: lc-check 7s ease-in-out infinite both;
  animation-delay: var(--d, 0s);
}
.demo__chip { font-size: 10.5px; font-weight: 600; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.demo__amt { font-size: 13px; font-weight: 700; white-space: nowrap; }
.demo__dots { display: flex; flex-direction: column; gap: 2.5px; padding: 0 2px; }
.demo__dots i { width: 3px; height: 3px; border-radius: 50%; background: #d1d5db; }

@keyframes lc-settle {
  0% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.96);
    border-color: #e7e1f0;
    box-shadow: 0 8px 18px rgba(30, 26, 46, 0.12);
  }
  10%, 20% {
    opacity: 1;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(1);
    border-color: #e7e1f0;
    box-shadow: 0 8px 18px rgba(30, 26, 46, 0.12);
  }
  46%, 84% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(1);
    border-color: rgba(var(--brand-rgb), 0.28);
    box-shadow: 0 2px 8px rgba(var(--brand-rgb), 0.1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0.96);
    border-color: #e7e1f0;
    box-shadow: 0 8px 18px rgba(30, 26, 46, 0.12);
  }
}
@keyframes lc-check {
  0%, 30% { opacity: 0; transform: scale(0.5); }
  50%, 84% { opacity: 1; transform: scale(1); }
  94%, 100% { opacity: 0; transform: scale(0.5); }
}
@keyframes lc-pill {
  0%, 40% { opacity: 0; transform: translateY(5px); }
  58%, 82% { opacity: 1; transform: translateY(0); }
  94%, 100% { opacity: 0; transform: translateY(5px); }
}
@keyframes lc-fade-a {
  0%, 20% { opacity: 1; }
  46%, 100% { opacity: 0.25; }
}
@keyframes lc-fade-b {
  0%, 34% { opacity: 0.25; }
  56%, 84% { opacity: 1; }
  96%, 100% { opacity: 0.25; }
}

@media (prefers-reduced-motion: reduce) {
  .demo__row,
  .demo__right,
  .demo__pill,
  .demo__tag {
    animation: none !important;
  }
  .demo__tag--out { opacity: 1; }
}

@media (max-width: 560px) {
  .demo__sub, .demo__t2 { display: none; }
}

.fsearch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 4px; }
.fsearch__label { font-size: 18px; font-weight: 700; color: var(--ink); }
.fsearch__field {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1 1 320px;
  min-width: 0;
  max-width: 460px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 9999px;
  box-shadow: 0 2px 10px rgba(30, 26, 46, 0.05);
}
.fsearch__field:focus-within { border-color: var(--edge-strong); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12); }
.fsearch__field svg { flex-shrink: 0; }
.fsearch__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: none;
  font-family: var(--text);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.fsearch__input::placeholder { color: var(--faint); }
.fsearch__count { font-size: 17px; font-weight: 600; color: var(--muted-light); white-space: nowrap; }

.fempty { margin-top: 8px; font-size: 19px; color: var(--muted-soft); text-wrap: pretty; }
.fempty b { color: var(--ink); }

.fgrid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }

.fgrid--packed { grid-auto-rows: 1px; row-gap: 0; }

.fgroup {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px 14px;
  box-shadow: 0 2px 10px rgba(30, 26, 46, 0.05);
}
.fgroup__head { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.fgroup__head > div { flex: 1; min-width: 0; }
.fgroup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: rgba(var(--brand-rgb), 0.08);
}
.fgroup h2 { font-size: 25px; margin-bottom: 1px; }
.fgroup__note { font-size: 17px; color: var(--muted-light); line-height: 1.2; }
.fgroup__count {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(var(--brand-rgb), 0.07);
  font-size: 16px;
  font-weight: 700;
  color: var(--brand);
}

.flist { display: flex; flex-direction: column; }
.fitem { display: flex; gap: 11px; align-items: flex-start; padding: 15px 0; }
.fitem:not([hidden]) ~ .fitem:not([hidden]) { border-top: 1px solid var(--tint); }
.fitem svg { flex-shrink: 0; margin-top: 3px; }
.fitem > div { flex: 1; min-width: 0; }
.fitem b { display: block; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.fitem span { font-size: 17.5px; color: var(--muted-soft); }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.backlink {
  display: inline-block;
  margin-bottom: 26px;
  font-size: 18px;
  font-weight: 600;
  color: var(--muted);
}
.backlink:hover { color: var(--brand); }

.legal { display: flex; flex-direction: column; gap: 10px; }
.legal h2 {
  font-size: 25px;
  margin-top: 28px;
  color: var(--ink);
}
.legal h2:first-child { margin-top: 0; }
.legal p { font-size: 18.5px; color: var(--muted-soft); line-height: 1.55; }
.legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(var(--brand-rgb), 0.08);
  color: var(--brand);
}

.legal a { font-weight: 600; }
.legal__cta { margin: 6px 0 18px; }

.prose h2:first-child { margin-top: 0; }

.xr-nojs {
  padding: 18px 20px;
  border: 1px dashed var(--edge-strong);
  border-radius: 14px;
  color: var(--muted);
}

.xr-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 210px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--card);
  border: 2px dashed var(--edge-strong);
  border-radius: 20px;
  transition: border-color 0.15s, background-color 0.15s;
}
.xr-drop:hover,
.xr-drop--over { border-color: var(--brand); background: rgba(var(--brand-rgb), 0.05); }
.xr-drop:focus-within { outline: 2px solid var(--brand); outline-offset: 3px; }
.xr-drop svg { margin-bottom: 6px; }
.xr-drop__title { font-family: var(--ui); font-size: 22px; font-weight: 700; color: var(--ink); }
.xr-drop__hint { font-size: 17px; color: var(--muted-soft); }
.xr-drop__pick { color: var(--brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.xr-drop__input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.xr--loaded .xr-drop { min-height: 0; padding: 18px 24px; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
.xr--loaded .xr-drop svg { width: 24px; height: 24px; margin: 0; }
.xr--loaded .xr-drop__title { font-size: 18px; }

.xr-privacy {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-soft);
}
.xr-privacy svg { flex-shrink: 0; margin-top: 3px; }

.xr-status {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #7c2d12;
  font-size: 17px;
}

.xr-result { padding-bottom: 12px; }
.xr-after { margin-top: 22px; }
.xr-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.xr-link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
}
.xr-link:hover { color: var(--brand-bright); }
.xr-cta {
  margin-top: 24px;
  padding: 22px 24px;
  border: 1px solid var(--edge-strong);
  border-radius: 16px;
  background: rgba(var(--brand-rgb), 0.05);
  font-size: 18px;
  color: var(--muted);
}
.xr-cta__title { margin-bottom: 4px; font-family: var(--ui); font-size: 20px; font-weight: 700; color: var(--ink); }
.xr-cta__action { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.xr-cta__action span { font-size: 16px; color: var(--muted-soft); }
.xr-cta__action span a { font-weight: 700; }

.inv {
  margin-top: 28px;
  padding: 40px 44px 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(30, 26, 46, 0.05);
  color: var(--ink);
  font-size: 17px;
}
.inv h3 {
  margin-bottom: 12px;
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.inv__kind { font-size: 13px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--brand); }
.inv__title { margin-top: 4px; font-size: clamp(26px, 3.4vw, 34px); overflow-wrap: anywhere; }
.inv__title:focus { outline: none; }
.inv__no { color: var(--muted); }

.inv__top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 290px);
  gap: 28px 48px;
  margin-top: 30px;
}
.inv__parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 22px 32px; }
.inv__label {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-light);
}
.inv__address { line-height: 1.45; overflow-wrap: anywhere; }
.inv__small { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--muted-soft); overflow-wrap: anywhere; }

.inv__facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  padding: 16px 18px;
  background: var(--tint);
  border-radius: 12px;
}
.inv__facts > div { display: flex; justify-content: space-between; gap: 16px; }
.inv__facts dt { font-size: 15px; color: var(--muted-soft); }
.inv__facts dd { font-weight: 700; text-align: right; overflow-wrap: anywhere; }

.inv__missing {
  margin-top: 22px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--tint);
  border: 1px solid var(--line);
  font-size: 16px;
  color: var(--muted);
}
.inv__missing-title { font-weight: 700; color: var(--ink-soft); }
.inv__missing ul { margin: 6px 0 6px 20px; }
.inv__rule-id { font-size: 14px; color: var(--faint); }
.inv__missing-note { font-size: 14px; color: var(--muted-light); }

.inv__scroll { margin-top: 34px; overflow-x: auto; }
.inv__lines { width: 100%; border-collapse: collapse; }
.inv__lines th {
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-light);
  white-space: nowrap;
}
.inv__lines td { padding: 14px 10px; vertical-align: top; border-bottom: 1px solid var(--line); }
.inv__lines th:first-child,
.inv__lines td:first-child { padding-left: 0; }
.inv__lines th:last-child,
.inv__lines td:last-child { padding-right: 0; }
.inv__lines .inv__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.inv__pos { width: 1%; white-space: nowrap; color: var(--muted-light); }
.inv__item { min-width: 180px; overflow-wrap: anywhere; }
.inv__name { display: block; font-weight: 700; }
.inv__detail { display: block; margin-top: 2px; font-size: 15px; color: var(--muted-soft); }
.inv__unit { color: var(--muted-soft); }
.inv__sub .inv__item { padding-left: 28px; }
.inv__sub td { color: var(--muted); }
.inv__sub .inv__name { font-weight: 600; }

.inv__block--sums { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; margin-top: 18px; }
.inv__sums { width: min(100%, 380px); border-collapse: collapse; font-variant-numeric: tabular-nums; }
.inv__sums th { padding: 5px 24px 5px 0; text-align: left; font-weight: 500; color: var(--muted); }
.inv__sums td { padding: 5px 0; text-align: right; white-space: nowrap; }
.inv__rule th,
.inv__rule td { padding-top: 10px; border-top: 1px solid var(--line); }
.inv__strong th,
.inv__strong td { font-weight: 700; color: var(--ink); }
.inv__due th,
.inv__due td { padding-top: 12px; border-top: 2px solid var(--ink); font-family: var(--ui); font-size: 20px; font-weight: 700; color: var(--ink); }

.inv__exempt {
  width: min(100%, 380px);
  padding: 12px 16px;
  border: 1px solid var(--edge-strong);
  border-radius: 10px;
  background: rgba(var(--brand-rgb), 0.06);
}
.inv__exempt--e { border-color: var(--brand); }
.inv__exempt-title { font-weight: 700; }
.inv__exempt-reason { color: var(--ink-soft); overflow-wrap: anywhere; }
.inv__exempt-code { font-size: 14px; color: var(--muted-light); }

.inv__pay { margin-top: 34px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; }
.inv__paylist { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px 28px; }
.inv__paylist dt { font-size: 14px; color: var(--muted-soft); }
.inv__paylist dd { font-weight: 700; overflow-wrap: anywhere; }

.inv__notes { margin-top: 28px; }
.inv__note { margin-bottom: 8px; color: var(--ink-soft); white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 700px) {
  .inv { padding: 24px 18px; }
  .inv__top { grid-template-columns: 1fr; }
}

@media print {
  @page { margin: 16mm 14mm; }

  .nav,
  .footer,
  .skip,
  .no-print { display: none !important; }

  body { background: #fff; }
  .shell { max-width: none; padding: 0; }
  .xr-result { padding: 0; }

  .inv { margin: 0; padding: 0; border: 0; box-shadow: none; }
  .inv__exempt { background: none; }
  .inv__lines tr,
  .inv__top,
  .inv__pay,
  .inv__block--sums { break-inside: avoid; }
  .inv__facts { padding: 0; background: none; }
  .inv h3 { break-after: avoid; }
  a { color: inherit; }
}
.xr-actions .btn { border: 0; cursor: pointer; }
