:root {
  color-scheme: dark;
  --bg: #09090b;
  --panel: #121216;
  --panel-2: #18181d;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --line: #27272f;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --good: #34d399;
  --warn: #f59e0b;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}
body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.10), transparent 28rem),
    linear-gradient(180deg, rgba(52, 211, 153, 0.04), transparent 32rem),
    var(--bg);
  color: var(--text);
}

button, input, select {
  font: inherit;
}

.shell {
  min-height: 100vh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 86px 14px 14px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: fixed;
  top: 0;
  left: 50%;
  width: min(100%, 1120px);
  z-index: 20;
  padding: 10px 14px;
  background: rgba(9, 9, 11, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244, 244, 245, 0.08);
  transform: translateX(-50%);
}

.brand,
.brand-button {
  font-weight: 800;
  letter-spacing: 0;
}

.brand-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  min-height: 42px;
}

.nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.btn {
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  min-height: 42px;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.btn:hover { border-color: #3f3f46; }
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  color: #07070a;
  font-weight: 800;
}

.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.back-btn {
  background: rgba(13, 13, 17, 0.58);
  border-color: rgba(161, 161, 170, 0.34);
  color: var(--muted);
}

.back-btn:hover {
  color: var(--text);
  border-color: rgba(56, 189, 248, 0.45);
}

.nav-primary {
  min-width: 96px;
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  list-style: none;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 14px;
  cursor: pointer;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101014;
  padding: 6px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}

.menu-item {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 11px 10px;
  cursor: pointer;
}

.menu-item:hover {
  background: var(--panel-2);
}

.menu-item.danger {
  color: #fca5a5;
}

.landing {
  display: grid;
  gap: 72px;
  padding-bottom: 52px;
}

.view-frame {
  animation: viewFade 180ms ease both;
}

.landing-hero {
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: center;
  gap: 34px;
  padding: 34px 0 28px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.hero-pattern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 86px));
  gap: 10px;
  align-items: center;
}

.hero-pattern svg {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(244, 244, 245, 0.10);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(24, 24, 29, .72), rgba(13, 13, 17, .72));
  padding: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-hero h1 {
  max-width: 880px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.96;
  margin: 0;
  letter-spacing: 0;
}

.landing-hero p,
.landing-cta p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

.hero-visual {
  position: relative;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #111115;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}

.preview-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  border: 1px solid rgba(244, 244, 245, 0.18);
  border-radius: 8px;
  padding: 14px;
  background: rgba(9, 9, 11, 0.78);
  backdrop-filter: blur(12px);
}

.preview-card span,
.feature-panel span {
  display: block;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.preview-card strong {
  display: block;
  margin-top: 5px;
  font-size: 28px;
  line-height: 1;
}

.preview-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.landing-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-links a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
}

.landing-links a:hover {
  color: var(--text);
  border-color: #3f3f46;
}

.landing-section {
  display: grid;
  gap: 24px;
  scroll-margin-top: 92px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 780px;
}

.section-heading h2,
.landing-cta h2 {
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
  margin: 0;
}

.section-heading p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.feature-grid,
.learning-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-panel,
.learning-item,
.step-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 22, 0.84);
  padding: 18px;
}

.feature-panel h3,
.learning-item b,
.step-item b {
  display: block;
  margin: 8px 0 0;
  font-size: 20px;
}

.feature-panel p,
.learning-item p,
.step-item p {
  color: var(--muted);
  line-height: 1.5;
  margin: 8px 0 0;
}

.split-section {
  grid-template-columns: 1fr;
  align-items: start;
}

.step-list,
.trust-list {
  display: grid;
  gap: 12px;
}

.trust-section {
  border-block: 1px solid var(--line);
  padding: 42px 0;
}

.trust-list p {
  margin: 0;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  color: var(--muted);
  line-height: 1.5;
}

.trust-list b {
  color: var(--text);
}

.landing-cta {
  display: grid;
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(52, 211, 153, 0.10));
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; }

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

.panel {
  background: rgba(18, 18, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.span-4 { grid-column: span 12; }
.span-6 { grid-column: span 12; }
.span-8 { grid-column: span 12; }
.span-12 { grid-column: span 12; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.kicker { color: var(--accent); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; }

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--muted);
  font-size: 13px;
}

.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d0d11;
  color: var(--text);
  border-radius: 8px;
  padding: 12px;
}

.question {
  max-width: 760px;
  margin: 0 auto;
  animation: questionFade 180ms ease both;
}

.progress {
  height: 8px;
  background: #202028;
  border-radius: 999px;
  overflow: hidden;
  margin: 18px 0 26px;
}

.progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.question h2 {
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.05;
  margin: 10px 0 18px;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 8px;
  padding: 15px 16px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.answer:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.answer:focus {
  outline: none;
  border-color: var(--line);
  box-shadow: none;
}

.answer:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

.answer:active {
  transform: translateY(1px) scale(0.995);
  background: #18181d;
}

.pillrow { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
}

.notice {
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  padding: 14px;
  margin: 14px 0;
}

.notice span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.notice strong {
  display: block;
  margin-top: 7px;
  font-size: 30px;
  letter-spacing: .08em;
}

.invite-link-text {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
  font-size: clamp(13px, 3.3vw, 16px);
  line-height: 1.45;
  letter-spacing: 0;
}

.result-title {
  font-size: clamp(38px, 7vw, 78px);
  line-height: 0.95;
  margin: 0 0 12px;
}

.lead {
  color: var(--text);
  font-size: 18px;
  line-height: 1.55;
  max-width: 720px;
}

.build-by-line {
  color: var(--text);
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  max-width: 720px;
  line-height: 1.45;
}

.result-hero {
  display: grid;
  gap: 18px;
  align-items: center;
  min-width: 0;
}

.pattern-mark {
  width: min(190px, 52vw);
  aspect-ratio: 1;
}

.mini-mark {
  width: 72px;
  min-width: 72px;
}

.archetype-svg {
  width: 100%;
  height: auto;
  display: block;
}

.results-grid,
.results-grid > *,
.result-section-panel,
.result-hero > div,
.overview-card,
.summary-card {
  min-width: 0;
}

.metric p {
  margin: 7px 0 0;
  line-height: 1.45;
}

.insight-row {
  border: 1px solid rgba(244, 244, 245, 0.08);
  border-radius: 8px;
  background: rgba(13, 13, 17, 0.66);
  padding: 12px;
}

.insight-row .row b {
  color: var(--accent);
  font-size: 13px;
  text-align: right;
}

.tiny-action {
  border-left: 3px solid var(--good);
  padding-left: 10px;
  color: var(--text);
  font-size: 13px;
}

.share-card {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  background: #0d0d11;
  border-radius: 8px;
  padding: 14px;
  margin: 12px 0;
}

.result-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.summary-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(24, 24, 29, .95), rgba(13, 13, 17, .95));
  border-radius: 8px;
  padding: 14px;
  min-height: 104px;
}

.summary-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.summary-card strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
}

.summary-card strong small {
  color: var(--muted);
  font-size: 16px;
  margin-left: 3px;
}

.summary-card em {
  display: block;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 8px;
}

.share-summary p {
  margin: 8px 0 12px;
  color: var(--text);
  line-height: 1.4;
}

.result-share-link {
  display: block;
  max-width: 100%;
  margin-top: 8px;
  color: var(--accent);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.shared-result-page {
  animation: questionIn .24s ease both;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  margin: 4px 0 0;
  border: 1px solid rgba(52, 211, 153, 0.42);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--good);
  background: rgba(52, 211, 153, 0.08);
  font-size: 13px;
  font-weight: 800;
}

.stage-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  margin-top: 12px;
}

.stage-ladder span {
  border: 1px solid rgba(244, 244, 245, 0.10);
  border-radius: 6px;
  padding: 7px 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.15;
  text-align: center;
}

.stage-ladder span.active {
  border-color: rgba(56, 189, 248, 0.66);
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
}

.result-tabs {
  position: sticky;
  top: 64px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 13, 17, 0.88);
  backdrop-filter: blur(10px);
}

.result-tab {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 10px 8px;
  cursor: pointer;
  font-weight: 800;
}

.result-tab.active {
  background: var(--panel-2);
  border-color: rgba(56, 189, 248, 0.38);
  color: var(--text);
}

.result-section-panel {
  display: grid;
  gap: 18px;
}

.compact-heading h2 {
  font-size: clamp(26px, 4vw, 42px);
}

.overview-grid,
.focus-card-grid,
.foundation-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.overview-card,
.result-info-card,
.why-result-card,
.life-family {
  border: 1px solid rgba(244, 244, 245, 0.08);
  border-radius: 8px;
  background: rgba(13, 13, 17, 0.66);
  padding: 14px;
}

.overview-card span,
.card-topline span,
.why-result-card > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.overview-card b,
.card-topline b {
  display: block;
  margin-top: 7px;
  color: var(--text);
}

.overview-card p,
.result-info-card p {
  color: var(--muted);
  line-height: 1.45;
  margin: 9px 0 0;
}

.why-result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.why-result-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.why-result-grid b {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

.result-info-card h3 {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text);
}

.card-topline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
}

.card-topline b {
  margin-top: 0;
  color: var(--accent);
  font-size: 13px;
  text-align: right;
}

.compact-share {
  margin: 0;
}

.life-area-grid {
  margin-top: -4px;
}

.life-family-list {
  display: grid;
  gap: 14px;
}

.life-family-heading h4 {
  margin: 0;
  font-size: 18px;
}

.life-family-heading p {
  margin: 6px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.embedded-compat {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 4px;
}

.compare-layout {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.compare-intro {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.partner-link-card {
  margin: 0;
}

.icon-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.icon-btn.primary {
  border: 0;
  color: #07070a;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.icon-btn:hover {
  border-color: #3f3f46;
}

.icon-btn:active {
  transform: translateY(1px) scale(0.985);
}

.icon-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bond-preview {
  display: grid;
  place-items: center;
  min-height: 260px;
  border: 1px solid rgba(244, 244, 245, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 45%, rgba(56, 189, 248, 0.12), transparent 12rem),
    rgba(13, 13, 17, 0.66);
  overflow: hidden;
}

.bond-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.bond-orbit {
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 7 9;
  opacity: .72;
  animation: bondFlow 4.8s linear infinite;
}

.orbit-left { stroke: url(#bond-a); }
.orbit-right {
  stroke: url(#bond-b);
  animation-direction: reverse;
}

.bond-node circle {
  fill: rgba(18, 18, 22, 0.96);
  stroke-width: 2;
}

.your-node circle { stroke: #38bdf8; }
.partner-node circle { stroke: #a78bfa; }

.bond-node text {
  fill: var(--text);
  font-size: 13px;
  font-weight: 800;
}

.bond-node text:first-of-type {
  fill: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.bond-core circle:first-child {
  fill: rgba(52, 211, 153, 0.12);
  stroke: url(#bond-a);
  stroke-width: 2;
  animation: bondPulse 2.8s ease-in-out infinite;
}

.bond-core path {
  fill: url(#bond-b);
}

.bond-meter {
  fill: none;
  stroke: url(#bond-b);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 210px 128px;
}

.bond-label {
  fill: var(--text);
  font-size: 17px;
  font-weight: 800;
}

.pattern-combo-grid {
  display: grid;
  gap: 10px;
  align-items: stretch;
  margin-top: 16px;
}

.pattern-combo-card {
  border: 1px solid rgba(244, 244, 245, 0.08);
  border-radius: 8px;
  background: rgba(13, 13, 17, 0.66);
  padding: 14px;
}

.pattern-combo-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.pattern-combo-card b {
  display: block;
  margin-top: 7px;
}

.pattern-combo-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.4;
}

.bond-card {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}

.bond-equation {
  display: grid;
  place-items: center;
  min-height: 42px;
  color: var(--accent);
  font-weight: 900;
  font-size: 22px;
}

.compat-detail-grid {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.compare-ready-panel {
  gap: 20px;
}

.compare-ready-heading {
  max-width: 780px;
}

.compare-result-summary {
  min-width: 0;
}

.compat-result-primary {
  display: grid;
  gap: 16px;
  align-content: start;
}

.partner-invite-followup {
  border: 1px solid rgba(244, 244, 245, 0.08);
  border-radius: 8px;
  background: rgba(13, 13, 17, 0.58);
  padding: 0;
  overflow: hidden;
}

.partner-invite-followup > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.partner-invite-followup > summary::-webkit-details-marker {
  display: none;
}

.partner-invite-followup[open] {
  padding-bottom: 14px;
}

.partner-invite-followup[open] > :not(summary) {
  margin-left: 14px;
  margin-right: 14px;
}

.result-details {
  padding: 0;
  overflow: hidden;
}

.result-details > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
}

.result-details > summary::-webkit-details-marker {
  display: none;
}

.result-details > summary span {
  font-weight: 800;
}

.result-details > summary small {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.result-details[open] {
  padding-bottom: 18px;
}

.result-details[open] > :not(summary) {
  margin-left: 18px;
  margin-right: 18px;
}

.list {
  display: grid;
  gap: 12px;
}

.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 520px) {
  .topbar {
    padding: 8px 14px;
  }
  .nav {
    flex-wrap: nowrap;
    margin-left: auto;
  }
  .btn {
    padding-inline: 10px;
  }
  .nav-primary,
  .nav-menu summary {
    width: auto;
    min-width: auto;
  }
  .nav-popover {
    position: fixed;
    right: 14px;
    top: 58px;
  }
  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .question h2 {
    font-size: 30px;
  }
  .answer {
    padding: 16px;
  }
  .share-card {
    align-items: flex-start;
  }
  .result-details > summary {
    align-items: flex-start;
  }
  .result-details > summary small {
    max-width: 160px;
  }
  .result-tabs {
    top: 58px;
    gap: 4px;
    padding: 6px;
  }
  .result-tab {
    padding: 9px 5px;
    font-size: 12px;
  }
  .stage-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card-topline {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .card-topline b {
    text-align: left;
  }
  .icon-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .icon-btn {
    width: 100%;
  }
  .bond-preview {
    min-height: 220px;
  }
  .bond-label {
    font-size: 15px;
  }
  .landing {
    gap: 38px;
  }
  .landing-hero {
    min-height: auto;
    padding-top: 12px;
    gap: 20px;
  }
  .landing-hero h1 {
    font-size: 40px;
    line-height: 1;
  }
  .landing-hero p,
  .landing-cta p {
    font-size: 15px;
    line-height: 1.48;
  }
  .hero-copy {
    gap: 14px;
  }
  .hero-pattern {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-pattern svg {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    padding: 13px;
  }
  .hero-visual,
  .hero-visual img {
    min-height: 220px;
  }
  .landing-section {
    gap: 16px;
  }
  .section-heading h2,
  .landing-cta h2 {
    font-size: 28px;
    line-height: 1.08;
  }
  .section-heading p {
    font-size: 14px;
  }
  .feature-panel,
  .learning-item,
  .step-item {
    padding: 14px;
  }
  .feature-panel p,
  .learning-item p,
  .step-item p {
    font-size: 13px;
    line-height: 1.42;
  }
  .trust-section {
    padding: 28px 0;
  }
}

@media (min-width: 761px) {
  .shell { padding: 92px 20px 20px; }
  .landing-hero {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
  .span-8 { grid-column: span 8; }
  .result-hero {
    grid-template-columns: 210px 1fr;
  }
  .result-summary {
    grid-template-columns: .75fr 1fr 1.35fr;
  }
  .compare-layout {
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
  }
  .pattern-combo-grid {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  }
  .bond-equation {
    min-height: auto;
  }
  .compat-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .focus-card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .foundation-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-result-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .learning-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .split-section {
    grid-template-columns: .85fr 1fr;
    gap: 40px;
  }
  .landing-cta {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

@keyframes viewFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes questionFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bondFlow {
  to { stroke-dashoffset: -64; }
}

@keyframes bondPulse {
  0%, 100% { transform: scale(1); transform-origin: 210px 128px; }
  50% { transform: scale(1.08); transform-origin: 210px 128px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view-frame,
  .question {
    animation: none;
  }
  .btn,
  .answer,
  .bond-orbit,
  .bond-core circle:first-child {
    transition: none;
    animation: none;
  }
}
