/* Triangula — Slate & Coral theme */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --deep-teal: #0F3D4A;
  --slate-blue: #4A6A7B;
  --cream: #E7E2D8;
  --coral: #FF5A2A;
  --bg-page: #0b2833;
  --bg-panel: #12323e;
  --bg-surface: #193d4a;
  --bg-card: rgba(15, 61, 74, 0.35);
  --bg-card-alt: rgba(74, 106, 123, 0.15);
  --text-primary: #E7E2D8;
  --text-secondary: #c5bdad;
  --text-tertiary: #a0978a;
  --text-muted: #6d7d84;
  --border-subtle: rgba(74, 106, 123, 0.15);
  --border-standard: rgba(74, 106, 123, 0.25);
  --glow-cream: rgba(231, 226, 216, 0.06);
  --glow-coral: rgba(255, 90, 42, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 0 0 1px rgba(74,106,123,0.1), 0 4px 20px rgba(0,0,0,0.2);
  --shadow-elevated: 0 0 0 1px rgba(74,106,123,0.16), 0 8px 32px rgba(0,0,0,0.3);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Ambient glow ===== */
.bg-ambient {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
}
.bg-ambient::before {
  content: '';
  position: absolute; top: -300px; right: -100px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-cream) 0%, transparent 70%);
}
.bg-ambient::after {
  content: '';
  position: absolute; bottom: -200px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-coral) 0%, transparent 70%);
}
.bg-noise {
  position: fixed; inset: 0;
  opacity: 0.02;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

.container {
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
  position: relative; z-index: 1;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 0;
  background: rgba(11, 40, 51, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
}
.topbar .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 64px;
}
.brand {
  font-size: 16px; font-weight: 510;
  color: var(--text-primary); text-decoration: none;
  letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 10px;
}
.brand-icon {
  width: 30px; height: 30px;
  border: 1.5px solid var(--slate-blue); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--cream); font-size: 13px; font-weight: 600;
  box-shadow: 0 0 12px var(--glow-cream);
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  color: var(--text-tertiary); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--coral); color: #fff !important;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 0 16px rgba(255, 90, 42, 0.25);
}
.nav-cta:hover {
  background: #ff6e42 !important; color: #fff !important;
  box-shadow: 0 0 24px rgba(255, 90, 42, 0.4) !important;
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.nav-toggle:hover { border-color: var(--slate-blue); }
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: var(--cream); border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  padding: 120px 0 90px; text-align: left;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}
.hero-copy { position: relative; z-index: 2; }
.kicker {
  font-size: 12px; font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 24px;
}
.kicker-sep {
  display: inline-block; width: 24px; height: 1px;
  background: var(--slate-blue); vertical-align: middle; margin: 0 10px;
}
.title {
  font-size: 62px; font-weight: 510;
  line-height: 1.02; letter-spacing: -1.5px;
  color: var(--text-primary); margin-bottom: 28px;
  max-width: 560px;
}
.title em {
  font-style: normal; color: var(--coral);
  text-shadow: 0 0 30px rgba(255, 90, 42, 0.15);
}
.lede {
  font-size: 17px; font-weight: 400;
  line-height: 1.65; color: var(--text-tertiary);
  max-width: 480px; margin: 0 0 40px;
}
.cta-row {
  display: flex; gap: 14px;
  justify-content: flex-start; flex-wrap: wrap;
}

/* --- Specimen frame (the face under measurement) --- */
.hero-visual { position: relative; z-index: 2; }
.specimen-frame {
  position: relative;
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-panel);
  box-shadow: var(--shadow-elevated), 0 0 60px rgba(255, 90, 42, 0.06);
  aspect-ratio: 1 / 1;
  transform: rotate(0.6deg);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
}
.specimen-frame:hover {
  transform: rotate(0deg) translateY(-4px);
  box-shadow: var(--shadow-elevated), 0 0 80px rgba(255, 90, 42, 0.14);
}
.specimen-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.02);
}
.mesh-svg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
/* mesh line draw-in */
.mesh-svg .tri {
  fill: none;
  stroke: rgba(255, 115, 55, 0.88);
  stroke-width: 1.9;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: mesh-draw 1.6s ease forwards;
  filter: drop-shadow(0 0 3px rgba(255, 90, 42, 0.55));
}
@keyframes mesh-draw { to { stroke-dashoffset: 0; } }
.mesh-svg .node {
  fill: #fff;
  opacity: 0;
  animation: node-pop 0.5s ease forwards;
  filter: drop-shadow(0 0 3px rgba(255, 140, 80, 0.7));
}
.mesh-svg .node.key {
  fill: var(--coral);
  filter: drop-shadow(0 0 6px rgba(255, 90, 42, 0.8));
}
@keyframes node-pop {
  0% { opacity: 0; r: 0; }
  60% { opacity: 1; }
  100% { opacity: 1; }
}
.mesh-svg .measure {
  stroke: rgba(255, 255, 255, 0.85);
  stroke-width: 2;
  stroke-dasharray: 6 5;
  fill: none;
  opacity: 0;
  animation: measure-in 0.8s ease 1.4s forwards;
  filter: drop-shadow(0 0 4px rgba(255, 90, 42, 0.6));
}
@keyframes measure-in { to { opacity: 1; } }
/* scanning sweep */
.scanline {
  position: absolute; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 42, 0.7), transparent);
  box-shadow: 0 0 18px rgba(255, 90, 42, 0.5);
  animation: scan 4.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scan {
  0% { top: 4%; opacity: 0; }
  8% { opacity: 1; }
  45% { top: 92%; opacity: 1; }
  55% { opacity: 0; }
  100% { top: 4%; opacity: 0; }
}
/* HUD corner labels */
.hud {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px; letter-spacing: 0.06em;
  color: var(--cream);
  background: rgba(11, 40, 51, 0.72);
  border: 1px solid var(--border-standard);
  padding: 4px 8px; border-radius: 4px;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.hud-tl { top: 12px; left: 12px; }
.hud-tr { top: 12px; right: 12px; }
.hud-bl { bottom: 12px; left: 12px; }
.hud-br { bottom: 12px; right: 12px; color: var(--coral); }
.specimen-caption {
  margin-top: 14px;
  font-size: 12px; color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.02em;
}
.cta-primary {
  background: var(--coral); color: #fff; text-decoration: none;
  padding: 14px 32px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px;
  border: none; cursor: pointer; font-family: 'Inter', sans-serif;
  transition: all 0.2s;
  box-shadow: 0 0 24px rgba(255, 90, 42, 0.2);
  display: inline-block;
}
.cta-primary:hover:not(:disabled) {
  background: #ff6e42; transform: translateY(-1px);
  box-shadow: 0 0 36px rgba(255, 90, 42, 0.35);
}
.cta-primary:disabled {
  background: var(--slate-blue); cursor: not-allowed; opacity: 0.4;
}
.cta-ghost {
  color: var(--text-tertiary); text-decoration: none;
  padding: 14px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 500;
  background: var(--bg-card); border: 1px solid var(--border-standard);
  transition: all 0.2s;
  cursor: pointer; font-family: 'Inter', sans-serif; display: inline-block;
}
.cta-ghost:hover { border-color: var(--slate-blue); color: var(--text-primary); }
.caption {
  font-size: 13px; color: var(--text-muted); margin-top: 20px;
}

/* ===== Sections ===== */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}
.section-alt { background: var(--bg-panel); }
.section-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: 44px; font-weight: 510;
  line-height: 1.04; letter-spacing: -0.97px;
  color: var(--text-primary); margin-bottom: 24px;
}
.section-title em {
  font-style: normal; color: var(--coral);
  text-shadow: 0 0 20px rgba(255, 90, 42, 0.1);
}
.section-lede {
  font-size: 16px; font-weight: 400;
  line-height: 1.70; color: var(--text-tertiary);
  max-width: 600px;
}
.prose {
  font-size: 15px; font-weight: 400;
  line-height: 1.75; color: var(--text-secondary);
  max-width: 620px;
}
.prose p { margin-bottom: 18px; }

/* Archetype grid */
.archetype-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px; margin-top: 48px;
}
details.arch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all 0.25s;
  box-shadow: 0 0 0 1px rgba(74,106,123,0.06);
  cursor: pointer;
  overflow: hidden;
}
details.arch-card summary {
  list-style: none;
  display: block;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
}
details.arch-card summary::-webkit-details-marker {
  display: none;
}
details.arch-card summary::after {
  content: '';
  display: block;
  margin: 6px auto 0;
  width: 12px; height: 1px;
  background: var(--text-muted);
  opacity: 0;
  transition: all 0.25s;
}
details.arch-card[open] summary::after {
  opacity: 0.5;
}
details.arch-card:hover,
details.arch-card[open] {
  border-color: rgba(74, 106, 123, 0.3);
  box-shadow: 0 0 20px var(--glow-cream), 0 0 0 1px rgba(74,106,123,0.12);
  background: rgba(15, 61, 74, 0.5);
}
.arch-desc {
  padding: 0 14px 16px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-tertiary);
  border-top: 1px solid var(--border-subtle);
  margin: 0 10px;
  padding-top: 10px;
}

/* CULT 2026-08-26: "What you'll walk away with" section */
.takeaway-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.takeaway-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  transition: border-color .2s, box-shadow .2s;
}
.takeaway-card:hover {
  border-color: rgba(200, 169, 110, 0.4);
  box-shadow: 0 0 24px var(--glow-cream);
}
.takeaway-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--coral);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.takeaway-title {
  font-size: 1.08rem;
  font-weight: 500;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}
.takeaway-desc {
  font-size: 0.92rem;
  color: var(--text-tertiary);
  line-height: 1.65;
}
@media (max-width: 700px) {
  .takeaway-grid { grid-template-columns: 1fr; gap: 14px; }
}
.arch-code {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 500;
  color: var(--cream); margin-bottom: 6px;
  letter-spacing: 0.05em;
}
.arch-name {
  display: block; font-size: 12px;
  font-weight: 400; color: var(--text-tertiary);
}

/* ===== Steps section (Begin a reading) ===== */
.steps-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-bottom: 64px;
}
.step-card {
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}
.step-card:hover {
  border-color: var(--border-standard);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px);
  background: rgba(74, 106, 123, 0.2);
}
.step-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px; font-weight: 500;
  color: var(--coral); margin-bottom: 14px;
  line-height: 1; opacity: 0.6;
}
.step-card-title {
  font-size: 18px; font-weight: 590;
  color: var(--text-primary); margin-bottom: 12px;
}
.step-card-desc {
  font-size: 14px; font-weight: 400;
  line-height: 1.70; color: var(--text-tertiary);
}

/* ===== Interactive reading area ===== */
.reading-area {
  max-width: 720px; margin: 0 auto;
}
/* ===== License unlock bar (Already purchased?) ===== */
.license-unlock-bar {
  margin: 0 auto 64px;
  max-width: 600px;
  padding: 24px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: center;
}
.license-unlock-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: block;
}
.license-unlock-input-group {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}
.license-unlock-input {
  flex: 1;
  padding: 12px 16px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: var(--bg-page);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s;
  min-width: 0;
}
.license-unlock-input:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 2px rgba(255, 90, 42, 0.12);
}
.license-unlock-input::placeholder {
  color: var(--text-muted);
}
.license-unlock-btn {
  white-space: nowrap;
  flex-shrink: 0;
  padding: 12px 24px;
}
.license-status {
  font-size: 13px;
  margin-top: 12px;
  min-height: 20px;
  color: var(--text-tertiary);
}
.license-unlock-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.5;
}
@media (max-width: 480px) {
  .license-unlock-input-group {
    flex-direction: column;
    gap: 8px;
  }
  .license-unlock-input {
    font-size: 16px; /* чтобы не зумило на iOS */
    padding: 14px 16px;
  }
  .license-unlock-btn {
    width: 100%;
  }
  .license-unlock-bar {
    padding: 20px 16px;
  }
}

.step { display: none; }
.step.active { display: block; }
.step-label {
  font-size: 13px; font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 8px;
}
.step-hint {
  font-size: 15px; color: var(--text-tertiary);
  margin-bottom: 32px; line-height: 1.6;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border-standard);
  padding: 56px 24px; text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.upload-zone:hover, .upload-zone.has-file {
  border-color: var(--coral);
  background: rgba(255, 90, 42, 0.06);
}
.upload-title {
  font-size: 16px; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 8px;
}
.upload-sub {
  font-size: 13px; color: var(--text-muted);
}
.upload-actions {
  display: flex; gap: 12px;
  margin-bottom: 24px; justify-content: center;
  flex-wrap: wrap;
}
.upload-action {
  display: inline-flex; align-items: center;
  gap: 10px; padding: 12px 22px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s;
}
.upload-action:hover {
  border-color: var(--slate-blue);
  color: var(--text-primary);
  background: rgba(74, 106, 123, 0.2);
}
.upload-action svg { stroke: currentColor; flex-shrink: 0; }

.photo-preview {
  max-width: 240px; max-height: 240px;
  display: block; margin: 0 auto 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-standard);
}
.upload-status {
  font-size: 14px; color: var(--text-tertiary);
  margin-bottom: 24px; min-height: 20px;
}
.upload-status.error { color: var(--coral); }

/* Survey */
.survey { margin-bottom: 24px; }
.survey-q {
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.survey-q:first-child { padding-top: 0; }
.survey-q-text {
  font-size: 18px; font-weight: 500;
  line-height: 1.4; margin-bottom: 16px;
  color: var(--text-primary);
}
.survey-scale {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.survey-scale label {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 18px;
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-sm);
  cursor: pointer; font-size: 14px;
  transition: all 0.15s;
  background: var(--bg-card);
  color: var(--text-tertiary);
}
.survey-scale label:hover {
  border-color: var(--slate-blue);
  background: rgba(74, 106, 123, 0.2);
}
.survey-scale input { display: none; }
.survey-scale input:checked + span {
  color: var(--coral); font-weight: 600;
}
.survey-scale label:has(input:checked) {
  border-color: var(--coral);
  background: rgba(255, 90, 42, 0.08);
  box-shadow: 0 0 12px rgba(255, 90, 42, 0.12);
}
.survey-scale-num {
  font-size: 16px; font-weight: 500;
}

/* Result card */
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border-standard);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.result-loading {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
}
.result-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px; font-weight: 500;
  color: var(--coral);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.result-name {
  font-weight: 510;
  font-size: 42px; line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}
.result-confidence {
  font-size: 13px; color: var(--text-muted);
  letter-spacing: 1px; text-transform: uppercase;
  margin-bottom: 28px;
}
.result-bar {
  display: flex; height: 6px;
  margin-bottom: 28px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
}
.result-bar > div { height: 100%; }
.result-bar .a { background: var(--coral); }
.result-bar .b { background: var(--slate-blue); }
.result-bar .c { background: var(--cream); }

.result-scores {
  display: flex; gap: 16px;
  margin-bottom: 28px;
  font-size: 14px;
}
.result-score {
  flex: 1;
  padding: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.result-score-label {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 6px;
}
.result-score-value {
  font-size: 28px; font-weight: 600;
  color: var(--text-primary);
}

.result-narrative {
  font-size: 15px; line-height: 1.7;
  color: var(--text-secondary);
}
.result-narrative p { margin-bottom: 16px; }
.result-narrative p:last-child {
  margin-bottom: 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 14px;
}

.result-professions {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}
.result-professions-label {
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 12px;
}
.result-professions-list {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.result-professions-list span {
  padding: 6px 14px;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--text-secondary);
}

/* ===== Compatibility (CULT pivot 2026-08-22) ===== */
.result-compat {
  margin-top: 28px;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.06), rgba(255, 215, 0, 0.02));
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: var(--radius-md, 12px);
}
.result-compat-row {
  margin-bottom: 14px;
}
.result-compat-row:last-of-type { margin-bottom: 10px; }
.result-compat-label {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.result-compat-match .result-compat-label { color: #b89c4a; }
.result-compat-clash .result-compat-label { color: #b54a3a; }
.result-compat-list {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.compat-chip {
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  line-height: 1.2;
}
.compat-syn {
  background: rgba(255, 215, 0, 0.18);
  border: 1px solid rgba(255, 215, 0, 0.45);
  color: #d4af37;
}
.compat-ten {
  background: rgba(181, 74, 58, 0.10);
  border: 1px solid rgba(181, 74, 58, 0.35);
  color: #b54a3a;
}
.compat-empty {
  font-size: 13px;
  font-style: italic;
  color: var(--text-muted);
}
.result-compat-cta {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 215, 0, 0.20);
  font-size: 13px;
  color: var(--text-secondary);
}
.result-compat-cta a {
  display: inline-block;
  margin-left: 6px;
  color: #d4af37;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.result-compat-cta a:hover { color: #f5d76e; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 44px 0; text-align: center;
}
.footer p { font-size: 13px; color: var(--text-muted); }
.footer a { color: var(--cream); text-decoration: none; }
.footer a:hover { color: var(--coral); }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .steps-info { grid-template-columns: 1fr; gap: 16px; }
}

/* Tablet portrait / small laptop */
@media (max-width: 820px) {
  .title { font-size: clamp(36px, 6vw, 48px); letter-spacing: -0.88px; }
  .section-title { font-size: clamp(28px, 4.5vw, 36px); letter-spacing: -0.6px; }

  /* --- Mobile navigation: hamburger + slide-down panel --- */
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(11, 40, 51, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-standard);
    padding: 12px 24px 20px;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  }
  .nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav a {
    font-size: 16px; padding: 14px 4px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav a:last-of-type { border-bottom: none; }
  .nav-cta { margin-top: 10px; text-align: center; border-bottom: none !important; }

  .hero { padding: 36px 0 56px; text-align: center; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .title, .lede { max-width: 620px; margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .hero-visual { max-width: 480px; margin: 0 auto; width: 100%; }
  .section { padding: 60px 0; }
  .archetype-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .lede { font-size: 16px; max-width: 100%; }
  .prose { max-width: 100%; }
  .section-lede { max-width: 100%; }
  .kicker { font-size: 11px; }
  .container { padding: 0 24px; }
}

/* Mobile large (phones in landscape / large phones) */
@media (max-width: 640px) {
  .topbar .container { height: 56px; }
  .hero { padding: 28px 0 44px; }
  .brand { font-size: 18px; gap: 10px; }
  .brand-icon { width: 32px; height: 32px; font-size: 13px; }
  .title { font-size: clamp(32px, 8vw, 40px); letter-spacing: -0.7px; }
  .lede { font-size: 15px; max-width: 100%; margin-bottom: 32px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-primary, .cta-ghost { width: 100%; text-align: center; }
  .cta-primary { padding: 14px 24px; font-size: 14px; }
  .cta-ghost { padding: 14px 24px; font-size: 14px; }
  .section { padding: 50px 0; }
  .section-title { font-size: clamp(26px, 6vw, 32px); }
  .section-lede { font-size: 15px; }
  .archetype-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  details.arch-card summary { padding: 18px 12px; }
  .arch-code { font-size: 10px; }
  .arch-name { font-size: 11px; }
  .step-card { padding: 28px 20px; }
  .step-card-num { font-size: 24px; }
  .step-card-title { font-size: 16px; }
  .step-card-desc { font-size: 13px; }
  .result-card { padding: 28px 20px; }
  .result-name { font-size: 32px; }
  .result-scores { flex-direction: column; gap: 12px; }
  .result-score { padding: 12px; }
  .result-score-value { font-size: 24px; }
  .result-narrative { font-size: 14px; }
  .footer { padding: 32px 0; }
  .container { padding: 0 20px; }
}

/* Mobile small (phones < 400px) */
@media (max-width: 420px) {
  .topbar .container { height: 48px; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-icon { width: 30px; height: 30px; font-size: 12px; }
  .hero { padding: 24px 0 36px; }
  .title { font-size: clamp(26px, 10vw, 32px); letter-spacing: -0.6px; }
  .kicker { font-size: 10px; margin-bottom: 16px; }
  .lede { font-size: 14px; }
  .caption { font-size: 12px; }
  .archetype-grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  details.arch-card summary { padding: 14px 10px; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .reading-area { padding: 0; }
  .upload-zone { padding: 40px 16px; }
  .upload-title { font-size: 14px; }
  .upload-action { padding: 10px 16px; font-size: 13px; }
  .survey-q-text { font-size: 16px; }
  .survey-scale label { padding: 6px 14px; font-size: 13px; }
  .result-card { padding: 24px 16px; }
  .result-name { font-size: 28px; }
}

/* ===== Photo requirements ===== */
.photo-requirements {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 24px;
}
.req-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.45;
  color: var(--text-secondary);
}
.req-icon {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 12px; font-weight: 700;
  margin-top: 1px;
}
.req-do .req-icon { background: rgba(45,122,78,0.18); color: #4caf7d; }
.req-dont .req-icon { background: rgba(255,90,42,0.15); color: var(--coral); }

/* ===== Famous faces gallery ===== */
.faces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 48px;
}
.face-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s;
}
.face-card:hover {
  border-color: var(--border-standard);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-3px);
}
.face-img-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-surface);
}
.face-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) contrast(1.05);
  transition: filter 0.3s, transform 0.4s;
}
.face-card:hover .face-img-wrap img {
  filter: grayscale(0) contrast(1.05);
  transform: scale(1.04);
}
.face-body { padding: 18px 20px 22px; }
.face-name {
  font-size: 18px; font-weight: 590;
  color: var(--text-primary);
  margin-bottom: 8px; letter-spacing: -0.2px;
}
.face-arch {
  font-size: 13px; font-weight: 500;
  color: var(--coral);
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.face-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 2px 7px;
  background: rgba(255,90,42,0.1);
  border: 1px solid rgba(255,90,42,0.2);
  border-radius: 4px;
  color: var(--cream);
}
.face-note {
  font-size: 13px; line-height: 1.55;
  color: var(--text-tertiary);
}
.faces-note {
  margin-top: 32px;
  font-size: 12px; line-height: 1.6;
  color: var(--text-muted);
  max-width: 640px;
  font-style: italic;
}

.faces-show-all {
  display: none;
  margin: 24px auto 0;
  padding: 12px 28px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 0.5px;
  color: var(--coral);
  background: rgba(255,90,42,0.08);
  border: 1px solid rgba(255,90,42,0.25);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s;
}
.faces-show-all:hover {
  background: rgba(255,90,42,0.15);
  border-color: rgba(255,90,42,0.45);
  transform: translateY(-1px);
}

@media (max-width: 820px) {
  .faces-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 480px) {
  .photo-requirements { grid-template-columns: 1fr; }
  .faces-grid { grid-template-columns: 1fr; gap: 16px; }
  .face-body { padding: 16px 18px 20px; }
  .faces-show-all { display: block; }
  .faces-grid:not(.faces-expanded) .face-extra { display: none; }
}
