/* ==========================================================================
   Typenkompass – Stylesheet
   ========================================================================== */

:root {
  --bg: #f7f5f0;
  --surface: #fffefb;
  --surface-2: #f1ede5;
  --ink: #17141f;
  --ink-soft: #3b3547;
  --muted: #6d6778;
  --line: #e3ded3;
  --line-strong: #cfc8ba;
  --brand: #4f3dc4;
  --brand-deep: #33257f;
  --brand-soft: #eeebff;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow-sm: 0 2px 8px rgba(23, 20, 31, 0.04);
  --shadow: 0 24px 60px -36px rgba(23, 20, 31, 0.38);
  --shadow-lg: 0 40px 90px -40px rgba(23, 20, 31, 0.45);
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --max: 1160px;
  --header-h: 72px;
}

[data-role="denker"]   { --role: #5b4bcf; --role-deep: #382a99; --role-soft: #efecff; }
[data-role="verbinder"]{ --role: #158a68; --role-deep: #0a5c45; --role-soft: #e8f7f1; }
[data-role="bewahrer"] { --role: #2a6db3; --role-deep: #17497d; --role-soft: #eaf3fc; }
[data-role="entdecker"]{ --role: #c26a13; --role-deep: #8a4707; --role-soft: #fff3e4; }

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(700px 500px at 12% -10%, rgba(91, 75, 207, 0.07), transparent 60%),
    radial-gradient(600px 500px at 95% 8%, rgba(194, 106, 19, 0.06), transparent 60%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

a { color: inherit; }

img, svg { max-width: 100%; }

button, input, select { font: inherit; color: inherit; }

::selection { background: #d9d2ff; color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 14px; }

#main:focus,
#main:focus-visible { outline: none; }

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 245, 240, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.site-header.is-scrolled {
  border-color: var(--line);
  background: rgba(247, 245, 240, 0.94);
}

.header-inner {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
}
.brand-mark svg { width: 20px; height: 20px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav a {
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 550;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}
.nav a:hover { background: rgba(23, 20, 31, 0.06); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--ink); color: #fff; }

.header-cta { margin-left: 8px; }

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }

/* ── Buttons ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -14px rgba(23, 20, 31, 0.7);
}
.btn-primary:hover { background: #2a2539; box-shadow: 0 14px 30px -14px rgba(23, 20, 31, 0.75); }

.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-deep); }

.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.45);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; border-color: var(--ink); }

.btn-quiet { padding-inline: 16px; color: var(--muted); }
.btn-quiet:hover { color: var(--ink); background: rgba(23, 20, 31, 0.05); }

.btn-sm { min-height: 40px; padding: 9px 17px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 16px 30px; font-size: 17px; }

.btn svg { width: 18px; height: 18px; }

/* ── Typography helpers ─────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tight { padding: clamp(44px, 6vw, 70px) 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 40px;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  max-width: 16ch;
}
.section-head p {
  max-width: 46ch;
  color: var(--muted);
  font-size: 16px;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(60px, 8vw, 100px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5.4vw, 4.8rem);
  margin: 22px 0 24px;
  letter-spacing: -0.045em;
}
.hero-copy h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.03em;
}

.hero-copy .lede { max-width: 46ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 13.5px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--role, var(--brand));
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  z-index: 0;
}
.hero-visual::before {
  width: 220px; height: 220px;
  background: #e7e0ff;
  top: 6%; left: -2%;
}
.hero-visual::after {
  width: 150px; height: 150px;
  background: #ffe7cb;
  bottom: 4%; right: 2%;
}

.sample-card {
  position: relative;
  z-index: 1;
  width: min(100%, 400px);
  padding: 30px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: rotate(1.4deg);
}

.sample-top {
  display: flex;
  align-items: center;
  gap: 16px;
}
.sample-top .sigil { width: 78px; height: 78px; flex-shrink: 0; }
.sample-top .kicker { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sample-top h3 { font-size: 23px; margin-top: 2px; }
.sample-top .code { font-family: var(--mono); font-size: 10.5px; color: var(--muted); letter-spacing: 0.06em; }

.sample-meter { margin-top: 18px; }
.sample-meter:first-of-type { margin-top: 26px; }
.sample-meter-row {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 7px;
}
.sample-meter-row span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

.sample-badge {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 650;
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}
.sample-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #8be3bd; }

.sample-badge-top {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: -16px;
  padding: 10px 15px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 650;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
  transform: rotate(-3deg);
}

/* ── Cards & grids ──────────────────────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.dimensions {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.dim-card {
  padding: 24px 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dim-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.dim-card .letters {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink-soft);
}
.dim-card h3 { font-size: 18px; margin: 16px 0 7px; }
.dim-card p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.type-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -60px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--role-soft);
  opacity: 0.8;
  transition: transform 0.3s ease;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.type-card:hover::after { transform: scale(1.15); }

.type-card .sigil { width: 58px; height: 58px; position: relative; z-index: 1; }
.type-card .sigil text { display: none; }
.type-card .type-meta {
  position: relative;
  z-index: 1;
  margin-top: 32px;
}
.type-card .code {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  color: var(--role);
  font-weight: 700;
}
.type-card h3 { font-size: 21px; margin: 4px 0 6px; letter-spacing: -0.025em; }
.type-card p { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

.type-card .arrow {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 650;
  color: var(--role-deep);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.type-card .arrow svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.type-card:hover .arrow svg { transform: translateX(3px); }

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px;
  border-top: 2px solid var(--ink);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.step h3 { font-size: 21px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */

.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 40px 18px 0;
  position: relative;
  font-weight: 650;
  font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 20px 0; color: var(--muted); font-size: 15px; }

/* ── CTA band ───────────────────────────────────────────────────────────── */

.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 6vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-band::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 100, 255, 0.55), transparent 65%);
}
.cta-band h2 { font-size: clamp(1.9rem, 3.2vw, 2.8rem); max-width: 18ch; position: relative; }
.cta-band p { color: rgba(255, 255, 255, 0.62); margin-top: 12px; max-width: 44ch; position: relative; }
.cta-band .btn { position: relative; flex-shrink: 0; background: #fff; color: var(--ink); }
.cta-band .btn:hover { background: #f0ebff; }

/* ── Pricing & Paywall ──────────────────────────────────────────────────── */

.beta-badge,
.beta-pill,
.paid-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.beta-pill,
.beta-badge {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--muted);
}
.paid-pill {
  background: #0f7b52;
  color: #fff;
}

.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.price-card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3.5vw, 38px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.price-card--featured {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: linear-gradient(180deg, var(--brand-soft), var(--surface) 70%);
  box-shadow: var(--shadow);
}
.price-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 12px 0 10px;
}
.price-amount small {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}
.price-desc {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 18px;
}
.price-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand);
  font-weight: 800;
}
.price-card .btn { margin-top: auto; }

.paywall {
  border: 1.5px dashed color-mix(in srgb, var(--role, var(--brand)) 55%, var(--line));
  background: linear-gradient(180deg, var(--role-soft, var(--brand-soft)), var(--surface) 65%);
}
.paywall-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.paywall-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--role, var(--brand));
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.paywall-price {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.03em;
}
.paywall-intro {
  color: var(--ink-soft);
  max-width: 62ch;
  margin-bottom: 18px;
}
.paywall-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 9px;
}
.paywall-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14.5px;
}
.paywall-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--role, var(--brand));
  font-weight: 800;
}
.paywall-note {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.paid-note {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #eefaf3;
  border-color: #bfe8d1;
}
.paid-note p { color: var(--muted); font-size: 14px; }
.badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #0f7b52;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.free-sub {
  margin-top: 26px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.locked-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 650;
  text-decoration: underline;
  cursor: pointer;
}
.success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eefaf3;
  color: #0f7b52;
  margin-bottom: 18px;
}
.success-mark svg { width: 30px; height: 30px; }

@media (max-width: 820px) {
  .price-grid { grid-template-columns: 1fr; }
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: clamp(60px, 8vw, 100px);
  background: #14121b;
  color: rgba(255, 255, 255, 0.66);
  padding: 56px 0 34px;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer .brand { color: #fff; }
.site-footer .brand-mark { background: #fff; color: var(--ink); }
.site-footer p { max-width: 34ch; margin-top: 16px; line-height: 1.55; }
.footer-col h4 {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer-col a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.72);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12.5px;
}

/* ── Page hero (inner pages) ────────────────────────────────────────────── */

.page-hero { padding: clamp(40px, 6vw, 70px) 0 clamp(32px, 4vw, 48px); }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 4rem); max-width: 20ch; }
.page-hero .lede { margin-top: 20px; max-width: 56ch; }

/* ── Test ───────────────────────────────────────────────────────────────── */

body.is-test .site-footer { display: none; }
body.is-test::before { background: none; }

.test-shell {
  width: min(780px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(24px, 4vw, 46px) 0 60px;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
}

.test-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.test-top .test-count { font-variant-numeric: tabular-nums; }
.test-top .test-time { display: inline-flex; align-items: center; gap: 7px; }
.test-top .test-time svg { width: 15px; height: 15px; }

.progress {
  height: 5px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: clamp(28px, 5vw, 46px);
}
.progress > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.question-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 54px);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 430px;
}

.question-kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.question-text {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  margin: clamp(20px, 3vw, 32px) 0 auto;
  max-width: 22ch;
  text-wrap: balance;
}

.scale-block { margin-top: 38px; }

.scale {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: clamp(6px, 1.4vw, 12px);
  align-items: center;
}

.scale-btn {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  max-width: 56px;
  margin-inline: auto;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}
.scale-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
  transform: scale(1.06);
}
.scale-btn[data-value="3"] { border-style: dashed; }

.scale-btn.is-selected {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  transform: scale(1.06);
}

.scale-legend {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.scale-legend span:last-child { text-align: right; }

.test-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 30px;
}
.test-nav .hint { font-size: 12px; color: var(--muted); }
.test-nav .hint kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
}

.test-finish {
  text-align: center;
  align-items: center;
  justify-content: center;
}
.test-finish .big-mark {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  margin-bottom: 24px;
}
.test-finish .big-mark svg { width: 34px; height: 34px; }
.test-finish h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.test-finish p { color: var(--muted); max-width: 38ch; margin-bottom: 28px; }

/* ── Result ─────────────────────────────────────────────────────────────── */

.result-hero {
  position: relative;
  margin-top: 20px;
  border-radius: 32px;
  overflow: hidden;
  background: var(--role-soft, var(--brand-soft));
  border: 1px solid color-mix(in srgb, var(--role, var(--brand)) 18%, transparent);
  padding: clamp(28px, 5vw, 56px);
}
.result-hero::before {
  content: "";
  position: absolute;
  width: 560px;
  height: 560px;
  right: -180px;
  top: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--role, var(--brand)) 22%, transparent), transparent 68%);
  pointer-events: none;
}
.result-hero::after {
  content: attr(data-code);
  position: absolute;
  right: 1%;
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 16vw, 15rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  color: color-mix(in srgb, var(--role, var(--brand)) 9%, transparent);
  pointer-events: none;
}
.result-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 44px);
  align-items: center;
}
.result-hero .sigil {
  width: clamp(120px, 18vw, 168px);
  height: clamp(120px, 18vw, 168px);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.18));
}
.result-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--role-deep, var(--brand-deep));
}
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(0, 0, 0, 0.06);
  letter-spacing: 0.06em;
}
.identity-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--role, var(--brand));
  color: #fff;
  letter-spacing: 0.06em;
}
.result-hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  letter-spacing: -0.045em;
}
.result-hero .type-code {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 1.4vw, 1rem);
  letter-spacing: 0.24em;
  color: var(--role-deep, var(--brand-deep));
  font-weight: 700;
  margin-top: 6px;
}
.result-hero .tagline {
  margin-top: 14px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 44ch;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.result-actions .btn { background: rgba(255, 255, 255, 0.72); border-color: rgba(0, 0, 0, 0.08); }
.result-actions .btn:hover { background: #fff; }
.result-actions .btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }

.result-body { padding-top: clamp(32px, 5vw, 56px); display: grid; gap: clamp(20px, 3vw, 32px); }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
}
.panel h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 20px;
}
.panel h2 .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}
.panel-note {
  margin: -8px 0 24px;
  color: var(--muted);
  font-size: 13.5px;
}
.panel .prose p { margin-bottom: 16px; color: var(--ink-soft); }
.panel .prose p:last-child { margin-bottom: 0; }
.panel .prose { max-width: 72ch; }

.meters { display: grid; gap: 24px; }
.meter-row { display: grid; gap: 8px; }
.meter-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.meter-head .meter-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.meter-head .meter-value { font-size: 14px; font-weight: 700; }
.meter-head .meter-value small { color: var(--muted); font-weight: 500; margin-left: 6px; }

.meter-track {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.meter-track::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: rgba(23, 20, 31, 0.2);
}
.meter-fill {
  position: absolute;
  top: 0;
  bottom: 0;
  transition: width 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.meter-fill.to-right {
  left: 50%;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(90deg, var(--role, var(--brand)), color-mix(in srgb, var(--role, var(--brand)) 62%, #fff));
}
.meter-fill.to-left {
  right: 50%;
  border-radius: 999px 0 0 999px;
  background: linear-gradient(270deg, var(--role, var(--brand)), color-mix(in srgb, var(--role, var(--brand)) 62%, #fff));
}
.meter-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.meter-foot .is-dominant { color: var(--ink); font-weight: 700; }

.sw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 32px);
}
.sw-card { padding: clamp(24px, 3.5vw, 38px); }
.sw-card h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.sw-card h2 .icon {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--role-soft, var(--brand-soft));
  color: var(--role-deep, var(--brand-deep));
  flex-shrink: 0;
}
.sw-card h2 .icon svg { width: 15px; height: 15px; }

.sw-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 16px; }
.sw-list li { padding-left: 18px; border-left: 2px solid var(--role, var(--brand)); }
.sw-list h3 { font-size: 15px; margin-bottom: 3px; letter-spacing: -0.01em; }
.sw-list p { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 32px); }

.careers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.careers span {
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--role-soft, var(--brand-soft));
  color: var(--role-deep, var(--brand-deep));
  font-size: 13px;
  font-weight: 600;
}

.axis-legend {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.axis-legend div { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.axis-legend strong { display: block; color: var(--ink); font-size: 12px; margin-bottom: 2px; }

.share-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 14px;
}

.result-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding-top: 6px;
}
.result-foot .fine { font-size: 12.5px; color: var(--muted); max-width: 52ch; }

/* ── Type index ─────────────────────────────────────────────────────────── */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-btn {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}
.filter-btn:hover { background: #fff; }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.type-grid .is-hidden { display: none; }

.role-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 34px 0 16px;
}
.role-heading h2 { font-size: 1.45rem; }
.role-heading span { color: var(--muted); font-size: 13.5px; }

/* ── Type detail ────────────────────────────────────────────────────────── */

.type-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: 32px;
  background: var(--role-soft);
  border: 1px solid color-mix(in srgb, var(--role) 18%, transparent);
}
.type-hero::after {
  content: attr(data-code);
  position: absolute;
  right: 1%;
  bottom: -0.16em;
  z-index: 0;
  font-family: var(--font-display);
  font-size: clamp(7rem, 16vw, 14rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
  color: color-mix(in srgb, var(--role) 9%, transparent);
  pointer-events: none;
}
.type-hero > * { position: relative; z-index: 1; }
.type-hero .sigil { width: clamp(120px, 16vw, 170px); height: clamp(120px, 16vw, 170px); }
.type-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: 6px; }
.type-hero .code-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--role-deep);
  font-weight: 700;
}
.type-hero .tagline { margin-top: 14px; font-size: 1.08rem; color: var(--ink-soft); max-width: 44ch; }
.type-hero .motto {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 2px solid var(--role);
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
  font-size: 15.5px;
}

/* ── Method ─────────────────────────────────────────────────────────────── */

.method-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.method-list { display: grid; gap: 0; }
.method-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.method-item:last-child { border-bottom: 1px solid var(--line); }
.method-item .letters {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--role, var(--brand));
  padding-top: 2px;
}
.method-item h3 { font-size: 19px; margin-bottom: 5px; }
.method-item p { color: var(--muted); font-size: 14.5px; max-width: 68ch; }

.note-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.note-card h3 { font-size: 17px; margin-bottom: 10px; }
.note-card p { font-size: 14px; color: var(--muted); }
.note-card p + p { margin-top: 10px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-top: 28px;
}
.stat-row div {
  background: var(--surface);
  padding: 22px;
  text-align: center;
}
.stat-row strong { display: block; font-family: var(--font-display); font-size: 28px; letter-spacing: -0.03em; }
.stat-row span { font-size: 12px; color: var(--muted); }

/* ── Toast ──────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ── Utilities ──────────────────────────────────────────────────────────── */

.mt-0 { margin-top: 0; }
.center { text-align: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.reveal {
  opacity: 1;
  transform: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; padding: 20px 0 10px; }
  .sample-card { transform: none; }
  .dimensions { grid-template-columns: repeat(3, 1fr); }
  .type-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-grid .footer-col:last-child { display: none; }
}

@media (max-width: 820px) {
  .header-inner { gap: 12px; }
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: calc(var(--header-h) - 2px);
    left: 16px;
    right: 16px;
    margin: 0;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    z-index: 60;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 10px; }
  .header-cta { display: none; }
  .hero-copy h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .dimensions { grid-template-columns: repeat(2, 1fr); }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .step { padding: 22px 0; }
  .sw-grid, .two-col { grid-template-columns: 1fr; }
  .result-hero-inner { grid-template-columns: 1fr; }
  .result-hero .sigil { width: 104px; height: 104px; }
  .type-hero { grid-template-columns: 1fr; }
  .type-hero .sigil { width: 96px; height: 96px; }
  .axis-legend { grid-template-columns: repeat(2, 1fr); }
  .method-intro { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:last-child { display: block; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap, .header-inner { width: calc(100% - 32px); }
  .brand span { font-size: 17px; }
  .header-cta { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-trust { gap: 6px 14px; font-size: 12.5px; }
  .sample-badge { right: 8px; bottom: -16px; }
  .sample-badge-top { left: 8px; top: -14px; }
  .dimensions { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .type-card .type-meta { margin-top: 24px; }
  .question-card { min-height: 0; border-radius: 24px; padding: 26px 20px 24px; }
  .question-text { max-width: none; }
  .scale-btn { max-width: none; }
  .scale-btn::after { width: 8px; height: 8px; }
  .test-nav .hint { display: none; }
  .panel { border-radius: 22px; }
  .result-hero { border-radius: 24px; }
  .result-hero::after, .type-hero::after { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { border-radius: 24px; }
  .result-actions .btn { flex: 1 1 auto; }
  .axis-legend { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */

@media print {
  :root { --bg: #fff; --surface: #fff; }
  body { background: #fff; font-size: 11pt; }
  body::before, .site-header, .site-footer, .no-print, .result-actions, .toast, .result-foot { display: none !important; }
  .wrap { width: 100%; }
  .result-hero {
    border: 1px solid #ddd;
    border-radius: 0;
    margin: 0 0 18pt;
    padding: 22pt;
    background: #f4f1ea !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .result-hero .sigil { width: 90pt; height: 90pt; }
  .result-body { padding-top: 0; gap: 14pt; }
  .panel, .sw-card {
    border: 1px solid #ddd;
    border-radius: 0;
    padding: 18pt;
    break-inside: avoid;
    box-shadow: none;
  }
  .panel h2 { font-size: 17pt; }
  .sw-grid, .two-col { gap: 14pt; }
  .meter-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { text-decoration: none; }
  .page-break { break-before: page; }
}
