/* Greenomes — Premium Apple-inspired, light-first */

/* ---- Light theme (default) ---- */
:root, [data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --bg-card: #f9f9fb;
  --bg-card-hover: #f0f0f3;
  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --accent: #0d9488;
  --accent-soft: rgba(13, 148, 136, 0.08);
  --accent-glow: rgba(13, 148, 136, 0.04);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.96);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.1);
  --toggle-bg: #e8e8ed;
  --card-glass: rgba(255,255,255,0.7);
  --process-bg: var(--bg);
  --price-glow: rgba(13,148,136,0.03);
}

/* ---- Dark theme ---- */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-elevated: #141414;
  --bg-card: #1a1a1a;
  --bg-card-hover: #1f1f1f;
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-tertiary: #6e6e73;
  --accent: #5eead4;
  --accent-soft: rgba(94,234,212,0.10);
  --accent-glow: rgba(94,234,212,0.06);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.14);
  --glass-bg: rgba(10,10,10,0.94);
  --shadow-md: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
  --toggle-bg: #2c2c2e;
  --card-glass: rgba(30,30,30,0.9);
  --process-bg: var(--bg);
  --price-glow: rgba(94,234,212,0.04);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg); color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px; line-height: 1.6; overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
a { color: inherit; text-decoration: none; }

/* ---- Animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
section, .hero-copy {
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* ---- Header ---- */
.site-header {
  position: relative; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1200px; margin: 0 auto;
  padding: 16px clamp(24px, 5vw, 80px);
  border-bottom: 1px solid var(--border);
  background: var(--glass-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: background 0.3s;
}

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.02em;
  transition: opacity 0.2s;
  line-height: 1;
}
.brand:hover { opacity: 0.7; }

.brand-mark {
  color: var(--accent);
  flex-shrink: 0;
  display: block;
  transform: translateY(1px);
  transition: color 0.3s;
}

nav { display: flex; align-items: center; gap: 28px; }
nav a {
  color: var(--text-secondary); font-size: 0.84rem; font-weight: 500;
  letter-spacing: -0.01em; transition: color 0.2s;
}
nav a:hover { color: var(--text-primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Theme toggle */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: var(--toggle-bg); color: var(--text-secondary);
  cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.2s;
}
.theme-toggle:hover { color: var(--text-primary); transform: scale(1.08); }

[data-theme="light"] .icon-moon { display: none; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: block; }

.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 20px; border: none; border-radius: 980px;
  background: var(--text-primary); color: var(--bg);
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  transition: transform 0.2s, opacity 0.2s, background 0.3s, color 0.3s;
}
.header-cta:hover { opacity: 0.85; transform: scale(1.02); }

/* ---- Hero ---- */
.hero {
  display: grid;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  min-height: calc(100vh - 68px);
  padding: clamp(40px, 5vw, 72px) clamp(24px, 5vw, 80px);
}
.hero-copy { max-width: 880px; }

.eyebrow {
  display: inline-block; margin-bottom: 16px;
  color: var(--accent); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s;
}

h1, h2, h3, p, summary, li { overflow-wrap: anywhere; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }

h1 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  background: linear-gradient(180deg, var(--text-primary) 40%, var(--text-secondary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
h3 { font-size: 1.15rem; font-weight: 600; }

.lede {
  max-width: 720px; margin-top: 20px;
  color: var(--text-secondary); font-size: 1.05rem; font-weight: 400; line-height: 1.65;
}
.lede + .lede { margin-top: 12px; }

/* CTA Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.actions a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 26px; border-radius: 980px;
  font-size: 0.9rem; font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, box-shadow 0.25s, background 0.3s, color 0.3s;
}
.actions a:first-child { background: var(--text-primary); color: var(--bg); }
.actions a:first-child:hover { transform: scale(1.03); }
.actions .secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-hover);
}
.actions .secondary:hover { border-color: var(--text-tertiary); transform: scale(1.03); }

/* Hero Stats */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 40px; }
.hero-stats div {
  padding: 18px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card); transition: border-color 0.3s, background 0.3s;
}
.hero-stats div:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.hero-stats dt { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-stats dd { margin-top: 6px; color: var(--text-tertiary); font-size: 0.78rem; line-height: 1.45; }

/* ---- Sections shared ---- */
section:not(.hero) { max-width: 1200px; margin: 0 auto; padding: clamp(64px, 10vw, 120px) clamp(24px, 5vw, 80px); }
section[id] { scroll-margin-top: 88px; }
.section-heading { max-width: 680px; margin-bottom: 48px; }
main { display: flex; flex-direction: column; }
.hero { order: 1; }
.positioning { order: 2; }
.context-puzzle { order: 3; }
.future-use { order: 4; }
.vault-overview { order: 5; }
.process { order: 6; }
.pricing { order: 7; }
.faq { order: 8; }

/* ---- Positioning ---- */
.positioning { border-top: 1px solid var(--border); }
.positioning .section-heading { margin-bottom: 28px; }
.positioning .section-heading p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}
.positioning h2 { max-width: 760px; }

.context-decoder {
  display: grid;
  grid-template-columns: 1.05fr repeat(3, 1fr);
  gap: 10px;
  margin: 0 0 28px;
}

.context-decoder > * {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
}

.context-decoder .decoder-intro {
  background: linear-gradient(135deg, var(--accent-soft), transparent 68%), var(--bg-card);
}

.decoder-intro span,
.context-decoder article > span {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.context-decoder h3 {
  margin-top: 10px;
  color: var(--text-primary);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  overflow-wrap: normal;
  word-break: normal;
}

.decoder-stat {
  display: block;
  margin-top: 16px;
  color: var(--text-primary);
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.95;
}

.decoder-intro p,
.context-decoder article p,
.context-decoder article em {
  display: block;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.55;
}

.context-decoder article em {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-tertiary);
  font-style: normal;
  font-weight: 700;
}

.quality-matrix {
  display: grid;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-card);
  overflow: hidden;
}

.matrix-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border);
}

.matrix-row:first-child { border-top: 0; }

.matrix-row > * {
  min-width: 0;
  padding: clamp(18px, 2.4vw, 28px);
}

.matrix-row > * + * {
  border-left: 1px solid var(--border);
}

.matrix-head {
  background: linear-gradient(135deg, var(--accent-glow), transparent 46%), var(--bg-card);
}

.matrix-head article {
  min-height: 230px;
}

.matrix-head article.is-featured,
.matrix-row > .is-featured {
  background: linear-gradient(135deg, var(--accent-soft), transparent 62%);
}

.matrix-head article.is-featured {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--accent) 72%, transparent);
}

.matrix-guide strong,
.matrix-head article > span,
.matrix-label {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.matrix-head article > span {
  color: var(--accent);
}

.matrix-guide {
  align-self: stretch;
  background: color-mix(in srgb, var(--accent-soft) 32%, transparent);
}

.matrix-guide strong {
  color: var(--accent);
}

.matrix-guide em {
  display: block;
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
}

.matrix-head h3 {
  margin-top: 12px;
  max-width: 380px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  line-height: 1.04;
}

.matrix-head p,
.matrix-row p,
.matrix-proof {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.58;
}

.matrix-head p {
  max-width: 400px;
  margin-top: 14px;
}

.matrix-row strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.32;
}

.matrix-row em {
  display: block;
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.55;
}

.matrix-verdict {
  background: color-mix(in srgb, var(--accent-soft) 42%, transparent);
}

.matrix-proof .recovery-bar {
  margin-top: 16px;
}

.bar-track {
  display: flex;
  height: 34px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.bar-track span {
  display: block;
  width: var(--w);
}

.bar-track .called { background: var(--accent); }
.bar-track .visible { background: #64a0ff; }
.bar-track .missed { background: var(--text-tertiary); opacity: 0.36; }

.bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.bar-legend b {
  color: var(--text-primary);
}

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

.evidence-grid article {
  min-height: 240px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.evidence-grid article:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.evidence-grid span {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.evidence-grid strong {
  display: block;
  margin-top: 12px;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.28;
}

.evidence-grid p {
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.6;
}

.quality-pair {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.quality-pair p {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
}

.quality-pair b {
  display: block;
  color: var(--text-primary);
  font-size: 0.8rem;
  line-height: 1.25;
}

.quality-pair em {
  display: block;
  margin-top: 5px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.45;
}

.evidence-note {
  max-width: 760px;
  margin-top: 18px;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  line-height: 1.65;
}

.evidence-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 44%, transparent);
  text-underline-offset: 3px;
}

.evidence-callout {
  max-width: 760px;
  margin-top: 36px;
  padding: 24px 28px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
}

.evidence-callout strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
}

.evidence-callout p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ---- Future Uses ---- */
.future-use { border-top: 1px solid var(--border); }
.future-use .section-heading { margin-bottom: 28px; }
.future-use .section-heading p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.reanalysis-story {
  display: grid;
  gap: 14px;
  counter-reset: reanalysis;
}

.story-step {
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: clamp(22px, 3.4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-glow), transparent 48%), var(--bg-card);
}

.story-step::before {
  content: "";
  position: absolute;
  left: clamp(55px, 6.8vw, 72px);
  top: calc(100% - 4px);
  width: 1px;
  height: 22px;
  background: var(--border-hover);
}

.story-step:last-child::before {
  display: none;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid color-mix(in srgb, var(--accent) 44%, var(--border));
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
}

.step-copy > span,
.model-progress-copy span {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.step-copy h3,
.model-progress-copy h3 {
  margin-top: 10px;
  color: var(--text-primary);
  font-size: clamp(1.35rem, 2.6vw, 2.1rem);
  line-height: 1.08;
}

.step-copy > p,
.model-progress-copy p {
  max-width: 680px;
  margin-top: 12px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.68;
}

.source-signal {
  max-width: 560px;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
  border-radius: 12px;
  background: var(--accent-soft);
}

.source-signal strong {
  display: block;
  color: var(--text-primary);
  font-size: 0.92rem;
  line-height: 1.3;
}

.source-signal p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.5;
}

.source-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.source-metrics div {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.source-metrics strong {
  display: block;
  color: var(--text-primary);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 900;
  line-height: 1;
}

.source-metrics span {
  display: block;
  margin-top: 9px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.45;
}

.impact-stack {
  display: grid;
  gap: 12px;
}

.impact-stack article {
  position: relative;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}

.impact-stack article.is-most-relevant {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: linear-gradient(135deg, var(--accent-soft), transparent 72%), var(--bg-card);
}

.impact-stack span {
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1;
}

.impact-stack strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.25;
}

.impact-stack p {
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.45;
}

.impact-stack em {
  display: block;
  margin-top: 7px;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.42;
}

.impact-stack i {
  grid-column: 1 / -1;
  display: block;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.impact-stack i::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.model-step .impact-stack {
  max-width: 720px;
  margin-top: 20px;
}

.chart-sources {
  margin-top: 12px;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  line-height: 1.55;
}

.chart-sources a,
.model-progress a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 44%, transparent);
  text-underline-offset: 3px;
}

.action-lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.action-lanes div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.action-lanes strong {
  display: block;
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.25;
}

.action-lanes p {
  margin-top: 8px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.52;
}

.model-progress {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
}

.model-progress-copy h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.model-progress-copy p {
  font-size: 0.88rem;
}

.model-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.model-timeline article {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}

.model-timeline span {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.model-timeline strong {
  display: block;
  margin-top: 8px;
  color: var(--text-primary);
  font-size: 0.96rem;
  line-height: 1.25;
}

.model-timeline p {
  margin-top: 6px;
  color: var(--text-tertiary);
  font-size: 0.76rem;
  line-height: 1.45;
}

/* ---- Context Puzzle ---- */
.context-puzzle { border-top: 1px solid var(--border); }

.puzzle-heading { max-width: 760px; }
.puzzle-heading p:not(.eyebrow) {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 680px;
}

.puzzle-shell {
  display: grid;
  gap: 12px;
}

.puzzle-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.puzzle-tab {
  min-height: 118px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
}

.puzzle-tab:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.puzzle-tab.is-active {
  border-color: color-mix(in srgb, var(--accent) 64%, var(--border));
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent);
}

.puzzle-tab span {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.puzzle-tab strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  font-weight: 800;
  line-height: 1.15;
}

.puzzle-tab em {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-top: 14px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}

.puzzle-stage {
  padding: clamp(18px, 2.8vw, 28px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-glow), transparent 44%), var(--bg-card);
  box-shadow: none;
  transition: background 0.3s, border-color 0.3s;
}

.puzzle-stage-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.puzzle-stage-head span {
  display: block;
  color: var(--text-tertiary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}

.puzzle-stage-head h3 {
  margin-top: 6px;
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}

.puzzle-stage-head strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--accent);
  font-size: 0.86rem;
  line-height: 1;
  white-space: nowrap;
}

.paragraph-window {
  min-height: 250px;
  padding: clamp(16px, 2.5vw, 24px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.marker-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 6px;
  align-content: flex-start;
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(0.96rem, 1.9vw, 1.22rem);
  line-height: 1.8;
}

.marker-word {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text-primary);
  font-weight: 700;
}

.marker-copy.is-revealed {
  color: var(--text-primary);
}

.marker-reveal-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: var(--blank-width);
  min-height: 32px;
}

.marker-word.is-revealed-word {
  animation: markerRevealPop 0.42s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--pop-delay);
  background: color-mix(in srgb, var(--accent-soft) 68%, var(--bg));
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.08);
}

.marker-blank {
  display: inline-flex;
  width: var(--blank-width);
  min-width: 34px;
  height: 32px;
  border-bottom: 2px solid var(--border-hover);
  border-radius: 6px;
  background: linear-gradient(180deg, transparent 58%, var(--bg-elevated) 58%);
}

.marker-blank.is-revealing {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  animation: markerBlankOut 0.32s ease both;
  animation-delay: var(--pop-delay);
}

@keyframes markerRevealPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.86);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes markerBlankOut {
  0% {
    opacity: 1;
    transform: scaleX(1);
  }
  100% {
    opacity: 0;
    transform: scaleX(0.85);
  }
}

.puzzle-build {
  min-height: 104px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px dashed var(--border-hover);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elevated) 58%, var(--bg));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
  transition: background 0.25s, border-color 0.25s;
}

.puzzle-build.is-complete {
  border-style: solid;
  border-color: color-mix(in srgb, var(--accent) 56%, var(--border));
  background: var(--accent-soft);
}

.ghost-line {
  display: block;
  height: 34px;
  flex: 1 1 48%;
  min-width: 160px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--bg-card), var(--bg-elevated));
}

.ghost-line.short { flex-basis: 30%; min-width: 110px; }
.ghost-line.tiny { flex-basis: 18%; min-width: 76px; }

.puzzle-fragments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-content: flex-start;
}

.frag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 0 rgba(0,0,0,0.03);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.25;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.frag-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

.frag-chip.is-short {
  min-height: 30px;
  padding: 6px 8px;
  font-size: 0.76rem;
}

.frag-chip.is-long {
  justify-content: flex-start;
  min-height: 42px;
  max-width: 100%;
  padding: 10px 12px;
  text-align: left;
}

.frag-chip.is-placed {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--accent-soft) 82%, var(--bg));
}

.puzzle-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.puzzle-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--text-primary);
  border-radius: 999px;
  background: var(--text-primary);
  color: var(--bg);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.2s, opacity 0.2s, background 0.3s, color 0.3s, border-color 0.3s;
}

.puzzle-action:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.puzzle-action.secondary {
  border-color: var(--border-hover);
  background: transparent;
  color: var(--text-primary);
}

.puzzle-caption {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.65;
}

.puzzle-bottom-line {
  margin: 8px 0 0;
  color: var(--text-primary);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
}

/* ---- Vault Overview (unified) ---- */
.vault-overview { border-top: 1px solid var(--border); }

.vault-intro { max-width: 640px; margin-bottom: 48px; }
.vault-lead {
  margin-top: 16px; color: var(--text-secondary);
  font-size: 1.0625rem; line-height: 1.7;
}

.vault-subhead {
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-tertiary);
  margin-bottom: 16px;
}

.vault-files { margin-bottom: 64px; }

.deliverables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.deliverables div {
  padding: 20px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--bg-card); transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.deliverables div:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.deliverables strong { display: block; font-size: 0.875rem; font-weight: 600; }
.deliverables span { display: block; margin-top: 6px; color: var(--text-tertiary); font-size: 0.78rem; line-height: 1.5; }

.vault-divider {
  border: none; height: 1px; background: var(--border);
  margin: 0 0 64px; transition: background 0.3s;
}

.vault-compare { margin-bottom: 64px; }
.vault-compare-intro { margin-bottom: 28px; }
.vault-compare-intro h3 { font-size: 1.5rem; letter-spacing: -0.03em; }
.vault-compare-intro p { margin-top: 6px; color: var(--text-secondary); font-size: 0.9375rem; }

.compare-table { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 0.3s; }
.compare-row { display: grid; grid-template-columns: 0.66fr repeat(3, 1fr); border-top: 1px solid var(--border); }
.compare-row:first-child { border-top: 0; }
.compare-row > * { margin: 0; padding: 16px 20px; }
.compare-row > * + * { border-left: 1px solid var(--border); }
.compare-row span { color: var(--text-primary); font-weight: 600; font-size: 0.84rem; }
.compare-row p { color: var(--text-secondary); font-size: 0.84rem; line-height: 1.55; }
.compare-head { background: var(--bg-elevated); transition: background 0.3s; }
.compare-head strong { font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); }
.compare-row p:last-child { color: var(--text-primary); }
.compare-row p:last-child strong { font-weight: 600; }

.vault-callout {
  border-left: 3px solid var(--accent);
  padding: 28px 32px;
  border-radius: 0 14px 14px 0;
  background: var(--accent-soft);
  max-width: 640px;
  transition: background 0.3s, border-color 0.3s;
}
.vault-callout-text {
  color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.7; margin: 0;
}
.vault-callout-accent {
  margin-top: 12px; color: var(--text-primary);
  font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em;
}

.storage-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1.15fr);
  gap: 24px;
  align-items: start;
  margin: -12px 0 64px;
  padding: clamp(24px, 4vw, 36px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 72%), var(--bg-card);
  transition: background 0.3s, border-color 0.3s;
}
.storage-brief h3 { font-size: clamp(1.4rem, 2.3vw, 2rem); letter-spacing: -0.035em; }
.storage-brief p {
  margin-top: 12px; color: var(--text-secondary);
  font-size: 0.95rem; line-height: 1.7;
}
.storage-brief ul {
  display: grid; gap: 10px; list-style: none;
}
.storage-brief li {
  padding: 16px; border: 1px solid var(--border); border-radius: 12px;
  background: var(--card-glass);
}
.storage-brief li strong { display: block; font-size: 0.86rem; }
.storage-brief li span {
  display: block; margin-top: 5px; color: var(--text-tertiary);
  font-size: 0.78rem; line-height: 1.55;
}
.storage-brief > a {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; justify-content: center;
  justify-self: start; min-height: 42px; padding: 0 20px;
  border: 1px solid var(--border-hover); border-radius: 980px;
  color: var(--text-primary); font-size: 0.84rem; font-weight: 700;
  transition: border-color 0.2s, transform 0.2s;
}
.storage-brief > a:hover { border-color: var(--text-tertiary); transform: translateY(-1px); }

/* ---- Vault console page ---- */
.vault-console {
  display: block;
  min-height: calc(100vh - 70px);
  background:
    linear-gradient(180deg, var(--bg-elevated), transparent 420px),
    var(--bg);
}
.vault-console .console-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(18px, 4vw, 56px) clamp(48px, 7vw, 80px);
}
.console-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 24px;
}
.console-head h1 {
  max-width: 800px;
  color: var(--text-primary);
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  font-size: clamp(2.15rem, 4vw, 4rem);
  letter-spacing: 0;
}
.console-status {
  min-width: 220px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-glass);
  box-shadow: var(--shadow-md);
}
.console-status span,
.panel-title span {
  display: block;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.console-status strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  line-height: 1.2;
}
.console-status a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 14px;
  padding: 0 15px;
  border-radius: 980px;
  background: var(--text-primary);
  color: var(--bg);
  font-size: 0.78rem;
  font-weight: 800;
}
.console-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(360px, 1.35fr) minmax(250px, 0.82fr);
  gap: 14px;
  align-items: start;
}
.vault-console .console-panel {
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg-card);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.04);
  transition: background 0.3s, border-color 0.3s;
}
.manifest-panel {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.export-panel {
  grid-column: 3;
  grid-row: 1;
}
.analysis-panel {
  grid-column: 1;
  grid-row: 2;
}
.todo-panel {
  grid-column: 3;
  grid-row: 2;
}
.gene-panel {
  grid-column: 1 / -1;
  grid-row: 3;
}
.panel-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-title h2 {
  color: var(--text-primary);
  font-size: 1.04rem;
  line-height: 1.2;
  letter-spacing: 0;
}
.drop-zone {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 148px;
  padding: 22px;
  border: 1px dashed var(--border-hover);
  border-radius: 14px;
  background: var(--accent-soft);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone:hover,
.drop-zone:focus-within {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.drop-zone strong {
  align-self: end;
  font-size: 1rem;
}
.drop-zone span {
  align-self: start;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}
.intake-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.intake-meter span,
.file-table [role="columnheader"],
.console-note,
.queue-list span,
.gene-grid span,
.todo-list label {
  color: var(--text-secondary);
}
.intake-meter span,
.file-table [role="columnheader"] {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.intake-meter strong {
  color: var(--accent);
  font-size: 1rem;
}
.mini-list,
.todo-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  list-style: none;
}
.mini-list li,
.todo-list label,
.queue-list article,
.gene-grid article {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
}
.mini-list li {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
}
.mini-list strong,
.queue-list strong,
.gene-grid strong {
  overflow-wrap: anywhere;
  font-size: 0.88rem;
  line-height: 1.35;
}
.mini-list span,
.queue-list span,
.gene-grid span,
.gene-grid em {
  font-size: 0.78rem;
  line-height: 1.5;
}
.file-table {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}
.file-table [role="row"] {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(112px, 0.5fr) minmax(104px, 0.45fr);
  min-width: 0;
  border-top: 1px solid var(--border);
}
.file-table [role="row"]:first-child {
  border-top: 0;
  background: var(--bg-elevated);
}
.file-table [role="cell"],
.file-table [role="columnheader"] {
  min-width: 0;
  padding: 13px 14px;
}
.file-table [role="cell"] + [role="cell"],
.file-table [role="columnheader"] + [role="columnheader"] {
  border-left: 1px solid var(--border);
}
.file-table strong {
  overflow-wrap: anywhere;
  font-size: 0.86rem;
  line-height: 1.35;
}
.file-table span,
.file-table em {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.45;
}
.file-table em {
  color: var(--accent);
  font-weight: 700;
}
.export-actions {
  display: grid;
  gap: 10px;
}
.export-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.export-actions button:first-child {
  border-color: transparent;
  background: var(--text-primary);
  color: var(--bg);
}
.export-actions button:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.console-note {
  min-height: 22px;
  margin-top: 14px;
  font-size: 0.8rem;
  line-height: 1.5;
}
.queue-list {
  display: grid;
  gap: 8px;
}
.queue-list article {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
}
.gene-search {
  width: 100%;
  min-height: 42px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 13px;
  background: var(--bg);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.88rem;
}
.gene-search:focus {
  outline: none;
  border-color: var(--accent);
}
.gene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.gene-grid article {
  display: grid;
  gap: 5px;
  padding: 14px;
}
.gene-grid strong {
  color: var(--text-primary);
  font-size: 1rem;
}
.gene-grid em {
  color: var(--accent);
  font-style: normal;
  font-weight: 700;
}
.todo-list label {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.45;
}
.todo-list input {
  margin-top: 2px;
  accent-color: var(--accent);
}

/* ---- Process ---- */
.process { border-top: 1px solid var(--border); }
.process ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; list-style: none; }
.process li {
  padding: clamp(22px, 3vw, 32px); border: 1px solid var(--border); border-radius: 18px;
  background: var(--bg-card); transition: border-color 0.3s, transform 0.3s, background 0.3s;
}
.process li:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.process li span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-bottom: 18px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 0.78rem; font-weight: 700; transition: background 0.3s, color 0.3s;
}
.process h3 { margin-bottom: 10px; }
.process p { color: var(--text-tertiary); font-size: 0.84rem; line-height: 1.6; }

/* ---- Pricing ---- */
.pricing { border-top: 1px solid var(--border); display: flex; justify-content: center; }
.price-card {
  max-width: 520px; width: 100%; padding: clamp(32px, 5vw, 48px);
  border: 1px solid var(--border); border-radius: 22px;
  background: radial-gradient(ellipse at 50% 0%, var(--price-glow), transparent 40%), var(--bg-card);
  box-shadow: var(--shadow-md); text-align: center; transition: background 0.3s, border-color 0.3s;
}
.price-card .eyebrow { margin-bottom: 10px; }
.price-card h2 { font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.price { margin-top: 20px; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.price-note { margin: 14px auto 0; color: var(--text-tertiary); font-size: 0.84rem; line-height: 1.6; max-width: 400px; }
.included-heading {
  margin-top: 28px; font-size: 0.75rem; font-weight: 600;
  color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.06em;
}
.included-list { margin-top: 14px; list-style: none; text-align: left; }
.included-list li {
  padding: 9px 0 9px 20px; border-top: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.84rem; line-height: 1.55; position: relative;
}
.included-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.price-card a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 48px; margin-top: 28px; border: none; border-radius: 980px;
  background: var(--text-primary); color: var(--bg);
  font-size: 0.9rem; font-weight: 600;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s, background 0.3s, color 0.3s;
}
.price-card a:hover { transform: scale(1.02); opacity: 0.9; }

.checkout-form { margin-top: 28px; text-align: left; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkout-form label { display: block; margin-top: 10px; }
.checkout-form label span {
  display: block; margin-bottom: 7px; color: var(--text-secondary);
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
}
.checkout-form input[type="text"],
.checkout-form input[type="email"],
.checkout-form input[type="tel"] {
  width: 100%; min-height: 44px; border: 1px solid var(--border); border-radius: 12px;
  padding: 0 13px; background: var(--bg-elevated); color: var(--text-primary);
  font: inherit; font-size: 0.88rem; transition: border-color 0.2s, background 0.2s;
}
.checkout-form input:focus {
  outline: none; border-color: var(--accent);
}
.checkout-ack {
  display: grid !important; grid-template-columns: 18px 1fr; align-items: start; gap: 10px;
  margin-top: 14px !important; color: var(--text-secondary); font-size: 0.78rem; line-height: 1.5;
}
.checkout-ack input { margin-top: 2px; accent-color: var(--accent); }
.checkout-ack span {
  margin: 0 !important; color: var(--text-secondary) !important;
  font-size: inherit !important; font-weight: 500 !important; letter-spacing: 0 !important;
  line-height: inherit !important; text-transform: none !important;
}
.checkout-form button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; margin-top: 18px; border: 0; border-radius: 980px;
  background: var(--text-primary); color: var(--bg); cursor: pointer;
  font: inherit; font-size: 0.9rem; font-weight: 700;
  transition: transform 0.2s, opacity 0.2s, background 0.3s, color 0.3s;
}
.checkout-form button:hover { transform: scale(1.02); opacity: 0.92; }
.checkout-form button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.checkout-status { min-height: 22px; margin-top: 12px; color: var(--text-tertiary); font-size: 0.78rem; line-height: 1.5; text-align: center; }
.honeypot,
.honeypot[hidden] {
  display: none !important;
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.price-card .manual-link {
  width: auto; height: auto; margin-top: 6px; background: transparent; color: var(--text-tertiary);
  font-size: 0.78rem; font-weight: 600;
}
.price-card .manual-link:hover { color: var(--text-primary); transform: none; }

/* ---- FAQ — clean centered accordion ---- */
.faq { border-top: 1px solid var(--border); }
.faq .section-heading { text-align: center; margin-left: auto; margin-right: auto; }

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}
.faq-list details {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  background: transparent;
  transition: background 0.25s;
}
.faq-list details:first-child { border-top: 1px solid var(--border); }
.faq-list details[open] { background: transparent; }

summary {
  cursor: pointer; color: var(--text-primary);
  font-size: 1rem; font-weight: 600; letter-spacing: -0.015em;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  transition: color 0.2s;
}
summary:hover { color: var(--accent); }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; flex-shrink: 0; margin-left: 20px;
  color: var(--text-tertiary); font-size: 1.4rem; font-weight: 300;
  transition: transform 0.3s, color 0.3s;
}
details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
details p { margin-top: 14px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; max-width: 600px; }

/* ---- Footer ---- */
.site-footer {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 28px clamp(24px, 5vw, 80px); border-top: 1px solid var(--border);
  color: var(--text-tertiary); font-size: 0.78rem; transition: border-color 0.3s;
}
.site-footer div { display: flex; flex-direction: column; gap: 4px; }
.site-footer strong { color: var(--text-secondary); font-weight: 600; }
.site-footer p { max-width: 420px; margin: 0; text-align: right; line-height: 1.55; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  nav { display: none; }
  .hero { min-height: auto; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .context-decoder { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .context-decoder .decoder-intro { grid-column: 1 / -1; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .matrix-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix-guide { display: none; }
  .matrix-label {
    grid-column: 1 / -1;
    padding-bottom: 0;
  }
  .matrix-label + * { border-left: 0; }
  .action-lanes { grid-template-columns: 1fr; }
  .model-progress { grid-template-columns: 1fr; }
  .model-timeline { grid-template-columns: repeat(3, 1fr); }
  .puzzle-tabs { grid-template-columns: 1fr; }
  .puzzle-tab { min-height: auto; }
  .process ol { grid-template-columns: repeat(2, 1fr); }
  .deliverables { grid-template-columns: repeat(2, 1fr); }
  .storage-brief { grid-template-columns: 1fr; }
  .console-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .console-status {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
    width: 100%;
    align-items: center;
  }
  .console-status strong { grid-column: 1; }
  .console-status a {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin-top: 0;
  }
  .console-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manifest-panel,
  .export-panel,
  .analysis-panel,
  .todo-panel,
  .gene-panel {
    grid-column: auto;
    grid-row: auto;
  }
  .manifest-panel,
  .gene-panel {
    grid-column: 1 / -1;
  }
  .gene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-row { grid-template-columns: 1fr; }
  .compare-row > * + * { border-left: 0; border-top: 1px solid var(--border); }
  .compare-head { display: none; }
  .compare-row p::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--text-tertiary);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}
@media (max-width: 680px) {
  .site-header { padding: 14px 20px; }
  .header-cta { height: 32px; padding: 0 14px; font-size: 0.75rem; }
  .theme-toggle { width: 32px; height: 32px; }
  .hero-stats, .evidence-grid, .model-timeline, .deliverables, .process ol { grid-template-columns: 1fr; }
  .context-decoder { grid-template-columns: 1fr; }
  .context-decoder > * { padding: 18px; }
  .context-decoder .decoder-intro { grid-column: auto; }
  .matrix-row,
  .matrix-head { grid-template-columns: 1fr; }
  .matrix-row > * + * {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
  .matrix-label + * { border-top: 0; }
  .matrix-head article { min-height: auto; }
  .matrix-row [data-col]::before {
    content: attr(data-col);
    display: block;
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
  }
  .story-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .story-step::before { display: none; }
  .source-metrics { grid-template-columns: 1fr; }
  .impact-stack article { grid-template-columns: 1fr; }
  .impact-stack span { font-size: 1.1rem; }
  .site-header { position: static; }
  .puzzle-stage-head { flex-direction: column; gap: 12px; }
  .puzzle-stage-head strong { white-space: normal; }
  .evidence-grid article { min-height: auto; }
  .paragraph-window { min-height: 280px; }
  .puzzle-controls { justify-content: stretch; }
  .puzzle-action { width: 100%; }
  .frag-chip.is-long { width: 100%; }
  .faq-list details { padding: 18px 20px; }
  .checkout-fields { grid-template-columns: 1fr; gap: 0; }
  .storage-brief { margin-top: -18px; padding: 20px; }
  .storage-brief > a { width: 100%; }
  .vault-console .console-shell {
    padding: 24px 16px 44px;
  }
  .console-head h1 {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }
  .console-status {
    grid-template-columns: 1fr;
  }
  .console-status strong,
  .console-status a {
    grid-column: auto;
    grid-row: auto;
  }
  .console-status a {
    width: 100%;
    margin-top: 14px;
  }
  .console-grid {
    grid-template-columns: 1fr;
  }
  .manifest-panel,
  .gene-panel {
    grid-column: auto;
  }
  .vault-console .console-panel {
    padding: 18px;
    border-radius: 14px;
  }
  .panel-title {
    display: grid;
    gap: 4px;
  }
  .drop-zone {
    min-height: 132px;
    padding: 18px;
  }
  .file-table [role="row"]:first-child {
    display: none;
  }
  .file-table [role="row"] {
    grid-template-columns: 1fr;
    min-width: 0;
    padding: 12px;
    gap: 5px;
  }
  .file-table [role="row"] + [role="row"] {
    border-top: 1px solid var(--border);
  }
  .file-table [role="cell"] {
    padding: 0;
  }
  .file-table [role="cell"] + [role="cell"] {
    border-left: 0;
  }
  .file-table [role="cell"]:nth-child(2)::before,
  .file-table [role="cell"]:nth-child(3)::before {
    color: var(--text-tertiary);
    font-weight: 800;
  }
  .file-table [role="cell"]:nth-child(2)::before {
    content: 'Type: ';
  }
  .file-table [role="cell"]:nth-child(3)::before {
    content: 'Status: ';
  }
  .export-actions button {
    min-height: 46px;
  }
  .gene-grid {
    grid-template-columns: 1fr;
  }
  .site-footer { flex-direction: column; align-items: flex-start; }
  .site-footer p { text-align: left; }
  .actions a { width: 100%; }
}
