:root {
  --bg: #f4f1ec;
  --bg-2: #ebe7df;
  --ink: #0f1e3a;
  --ink-2: #25324f;
  --muted: #686e7b;
  --muted-2: #8d92a0;
  --line: #ddd6c7;
  --line-2: #c4bba6;
  --accent: #b8893a;
  --accent-hover: #9c7330;
  --accent-soft: #ece0c5;
  --paper: #fbf8f1;
  --paper-doc: #fbf8f1;
  --topbar-bg: rgba(244, 241, 236, 0.92);
  --doc-shadow-1: rgba(15,30,58,0.04);
  --doc-shadow-2: rgba(15,30,58,0.18);
  --photo-overlay: rgba(255,255,255,0.18);
  --photo-caption: rgba(255,255,255,0.55);
  --radius: 10px;
  --radius-sm: 6px;
}
[data-theme="dark"] {
  --bg: #16181d;
  --bg-2: #1d2026;
  --ink: #ebe9e4;
  --ink-2: #c9c6c0;
  --muted: #9499a3;
  --muted-2: #71747d;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --accent: #d4a14a;
  --accent-hover: #e0b057;
  --accent-soft: rgba(212,161,74,0.14);
  --paper: #21242b;
  --topbar-bg: rgba(22, 24, 29, 0.85);
  --doc-shadow-1: rgba(0,0,0,0.5);
  --doc-shadow-2: rgba(0,0,0,0.6);
}
html { color-scheme: light dark; }

/* View Transitions — circular reveal for theme toggle */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-weight: 400;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  font-size: 16px;
  letter-spacing: -0.005em;
}
::selection { background: var(--accent); color: #fff; }
a { color: inherit; text-decoration: none; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.top-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.theme-toggle {
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  width: 34px; height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
  padding: 0;
}
.theme-toggle:hover { background: var(--bg-2); border-color: var(--line); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.logo {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.015em;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.logo .mark {
  width: 22px; height: 22px;
  border-radius: 5px;
  background: var(--ink);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px;
  background: var(--paper);
}
.lang button {
  font: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  letter-spacing: 0;
}
.lang button.active {
  background: var(--ink);
  color: var(--bg);
}
.lang button:not(.active):hover { color: var(--ink); }

/* ===== Typography utilities ===== */
h1, h2, h3 { font-weight: 500; letter-spacing: -0.022em; color: var(--ink); margin: 0; }
h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: 36px; line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.35; letter-spacing: -0.015em; font-weight: 500; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0;
  margin-bottom: 20px;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 20px auto 0;
  max-width: 56ch;
  text-wrap: pretty;
}

/* ===== Sections ===== */
section { padding: 88px 0; }
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-head h2 { max-width: 22ch; margin: 0 auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  padding: 15px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
  letter-spacing: -0.005em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

/* ===== HERO ===== */
.hero {
  padding: 96px 0 88px;
  text-align: center;
}
.hero h1 {
  max-width: 18ch;
  margin: 0 auto;
}
.hero .lede {
  max-width: 52ch;
  font-size: 19px;
}
.hero-cta {
  margin-top: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta-meta {
  font-size: 13px;
  color: var(--muted);
}
.cta-meta .sep { color: var(--line-2); margin: 0 7px; }

/* ===== PROBLEM ===== */
.problem { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .tag {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.card .stat {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
}
.card .stat b {
  font-weight: 500;
  color: var(--ink);
}

/* ===== FEATURES ===== */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px 56px;
}
.feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  align-items: flex-start;
}
.feature-icon {
  width: 40px; height: 40px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature h3 { margin: 4px 0 8px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.6; max-width: 42ch; font-size: 15px; }

/* ===== PDF PREVIEW ===== */
.preview { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.preview-wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.preview-text h2 { max-width: 18ch; }
.preview-text > p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 16px 0 28px; max-width: 44ch; }
.preview-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.preview-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink-2);
  align-items: baseline;
}
.preview-list li .check {
  color: var(--accent);
  margin-top: 4px;
}
.preview-list .lt-de { font-weight: 500; color: var(--ink); }
.preview-list .lt-en { color: var(--muted); font-size: 13.5px; display: block; margin-top: 2px; }

.pdf-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.34;
  max-width: 360px;
  margin: 0;
}
.pdf-page {
  position: absolute;
  inset: 0;
  background: var(--paper-doc);
  border-radius: 3px;
  box-shadow:
    0 0 0 1px rgba(15,30,58,0.08),
    0 1px 2px var(--doc-shadow-1),
    0 12px 28px -16px var(--doc-shadow-2);
  background-image:
    radial-gradient(ellipse at top left, rgba(15,30,58,0.02), transparent 60%);
}
.pdf-page::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(15,30,58,0.01) 0 1px, transparent 1px 3px);
  pointer-events: none;
  border-radius: inherit;
}
.pdf-cover {
  position: relative;
  padding: 44px 38px 28px;
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #0f1e3a;
  font-family: 'Geist', sans-serif;
}
.pdf-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 8px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8d92a0;
  margin-bottom: 50px;
}
.pdf-rule { height: 1px; background: #0f1e3a; width: 32px; margin-bottom: 22px; }
.pdf-kicker {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #686e7b;
  margin-bottom: 14px;
}
.pdf-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 1.16;
  color: #0f1e3a;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
}
.pdf-sub {
  font-size: 10.5px;
  color: #686e7b;
  margin-bottom: 28px;
  line-height: 1.5;
}
.pdf-meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
  padding: 16px 0 0;
  border-top: 1px solid #ddd6c7;
}
.pdf-meta .lbl {
  color: #8d92a0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 7.5px;
  margin-bottom: 3px;
  font-weight: 500;
}
.pdf-meta .val { color: #0f1e3a; font-size: 11px; font-weight: 500; }
.pdf-foot {
  margin-top: 20px;
  padding-top: 12px;
  border-top: 1px solid #ddd6c7;
  display: flex; justify-content: space-between;
  font-size: 7.5px;
  color: #8d92a0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}

/* Marginalia callouts — rail on the LEFT, leader lines point right */
.callouts {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 36px;
  align-items: stretch;
  position: relative;
}
.callout-rail {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 6% 0;
}
.callout {
  position: relative;
  font-size: 11.5px;
  color: var(--ink);
  line-height: 1.4;
  text-align: right;
  padding-right: 18px;
}
.callout .de { font-weight: 500; color: var(--ink); display: block; margin-bottom: 2px; font-size: 13px; }
.callout .en { color: var(--muted); font-size: 11.5px; display: block; line-height: 1.45; }
.callout::after {
  content: '';
  position: absolute;
  right: -36px;
  top: 8px;
  width: 28px;
  height: 1px;
  background: var(--line-2);
}
.callout .dot {
  position: absolute;
  right: -10px;
  top: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step-num {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--bg-2);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 18px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

/* ===== PRICING ===== */
.pricing { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 48px 44px;
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
}
.price-card h3 { font-size: 19px; margin: 0 0 6px; }
.price-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 28px; }
.price { font-size: 68px; line-height: 1; margin: 0 0 6px; color: var(--ink); font-weight: 500; letter-spacing: -0.035em; }
.price .cur { font-size: 36px; vertical-align: 18px; color: var(--muted); margin-right: 2px; font-weight: 400; }
.price-note { font-size: 13px; color: var(--muted); margin-bottom: 32px; }
.price-card .btn { width: 100%; justify-content: center; }
.trust {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { color: var(--accent); }

/* ===== FAQ ===== */
.faq-list { border-top: 1px solid var(--line); max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--accent); }
.faq-q .toggle {
  width: 22px; height: 22px;
  position: relative;
  flex-shrink: 0;
  transition: transform .25s ease;
  color: var(--muted);
}
.faq-q .toggle::before, .faq-q .toggle::after {
  content: '';
  position: absolute;
  background: currentColor;
}
.faq-q .toggle::before { top: 10px; left: 4px; right: 4px; height: 1.5px; }
.faq-q .toggle::after { left: 10px; top: 4px; bottom: 4px; width: 1.5px; transition: transform .25s ease; }
.faq-item.open .faq-q .toggle { color: var(--accent); }
.faq-item.open .faq-q .toggle::after { transform: rotate(90deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq-a > div { padding: 0 0 24px; max-width: 60ch; }
.faq-item.open .faq-a { max-height: 320px; }

/* ===== FOUNDER ===== */
.founder { background: var(--bg-2); border-top: 1px solid var(--line); }
.founder-wrap {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  max-width: 760px;
  margin: 0 auto;
  align-items: center;
}
.founder-photo {
  width: 180px; height: 220px;
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(135deg, #d8c5a7 0%, #b59874 50%, #8e6f4c 100%);
  position: relative;
}
.founder-photo::after {
  content: 'photo';
  position: absolute;
  bottom: 10px; right: 10px;
  color: var(--photo-caption);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.founder-photo svg {
  position: absolute;
  inset: 0; margin: auto;
  width: 60%; height: auto;
  color: var(--photo-overlay);
}
.founder-body p {
  margin: 0 0 14px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  max-width: 52ch;
}
.founder-body .sig {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.founder-body .sig b { color: var(--ink); font-weight: 500; }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
  font-size: 13.5px;
  color: var(--muted);
}
footer .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer .tag { color: var(--ink-2); }
footer a:hover { color: var(--accent); }
footer .meta { display: flex; gap: 18px; }

/* ===== Responsive ===== */
@media (max-width: 880px) {
  .container, .container-narrow { padding: 0 24px; }
  .hero { padding: 64px 0 56px; }
  section { padding: 64px 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .cards-3 { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; gap: 32px; }
  .preview-wrap { grid-template-columns: 1fr; gap: 64px; }
  .callouts { grid-template-columns: 1fr; gap: 24px; }
  .callout-rail { flex-direction: row; flex-wrap: wrap; gap: 16px 24px; padding: 0; justify-content: center; }
  .callout { text-align: left; padding-right: 0; width: 160px; }
  .callout::after, .callout .dot { display: none; }
  .pdf-stage { max-width: 340px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .founder-wrap { grid-template-columns: 1fr; gap: 28px; text-align: left; }
  .founder-photo { width: 140px; height: 170px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  h1 { font-size: 36px; }
  .cta-meta .sep { display: none; }
  .cta-meta span.item { display: block; margin: 4px 0; }
}

/* ===== Language toggle ===== */
.t-de { display: none; }
[data-lang="de"] .t-en { display: none; }
[data-lang="de"] .t-de { display: inline; }
