/* ============================================================
   CultureLogic — World-Class Redesign
   Dark navy base, teal/coral/blue/purple accents
   Space Grotesk + Playfair Display
   ============================================================ */

/* ---- hidden attribute must actually hide ----------------------------------
   FIX 2026-08-20. `.scan-form { display: flex }` is an author rule and so beats
   the UA stylesheet's `[hidden] { display: none }`. Consequence: account.html
   set emailForm.hidden / codeForm.hidden on a successful sign-in and NOTHING
   HAPPENED — the sign-in panel stayed on screen with the readings rendered
   underneath it. That is very likely the second half of what Stephen reported
   as "opens all prior searches below": the form never went away.
   Same trap applies to showStage2(), the intake page's #pair-fields, and any
   future element toggled with the hidden attribute. One global rule, so the
   next person to use `hidden` on a flex element does not rediscover this. */
[hidden] { display: none !important; }

:root {
  --navy:       #0F172A;
  --navy-mid:   #1E293B;
  --navy-light: #334155;
  --teal:       #14B8A6;
  --coral:      #F97316;
  --blue:       #3B82F6;
  --purple:     #8B5CF6;
  --gold:       #F59E0B;
  --text:       #E2E8F0;
  --text-muted: #94A3B8;
  --text-dim:   #64748B;
  --white:      #FFFFFF;
  --surface:    #1E293B;
  --surface-2:  #263348;
  --border:     rgba(255,255,255,0.08);
  --border-soft:rgba(255,255,255,0.04);
  --measure:    820px;
}

/* ---- Reset ---- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--navy);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
}
a { color: inherit; text-decoration: none; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.wrap      { max-width: var(--measure); margin: 0 auto; padding: 0 24px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-nav .inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.15rem;
  letter-spacing: 0.01em; color: var(--white);
}
.brand em { font-style: normal; color: var(--teal); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--teal);
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  position: relative;
}
.brand-mark::after {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal);
}
.nav-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted); transition: color .2s;
  font-family: 'Space Grotesk', sans-serif; font-weight: 500;
}
.nav-links a:hover { color: var(--teal); }
.nav-links a.nav-cta {
  background: var(--teal); color: var(--navy);
  padding: 8px 18px; border-radius: 4px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #0EA5A0; }
@media (max-width: 900px) {
  .site-nav .inner { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px 20px; }
  .nav-links { gap: 14px; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
}

/* ---- Sections ---- */
section { padding: 100px 0; }
section.tight { padding: 70px 0; }
section.slim  { padding: 50px 0; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 600; color: var(--teal); margin-bottom: 16px;
  display: block;
}

/* ---- Section head ---- */
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: 2.2rem; margin-bottom: 16px; }
.section-head p { color: var(--text-muted); max-width: 60ch; font-size: 1.05rem; }
@media (max-width: 700px) { .section-head h2 { font-size: 1.7rem; } }

/* ---- Hero ---- */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 80px;
  background: var(--navy);
}

/* Animated gradient orbs */
.orb {
  position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none;
  animation: orb-float 12s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(20,184,166,0.34) 0%, transparent 70%);
  top: -150px; left: -200px;
  animation-duration: 14s;
}
.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(139,92,246,0.30) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  animation-duration: 18s; animation-delay: -6s;
}
.orb-3 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(249,115,22,0.20) 0%, transparent 70%);
  top: 40%; left: 60%;
  animation-duration: 22s; animation-delay: -10s;
}
@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -40px) scale(1.05); }
  66%       { transform: translate(-20px, 30px) scale(0.97); }
}

/* Grid overlay for texture */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(20,184,166,0.12); border: 1px solid rgba(20,184,166,0.3);
  color: var(--teal); padding: 6px 16px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 28px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

#hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  max-width: 18ch;
  margin-bottom: 28px;
  line-height: 1.1;
}
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, var(--blue) 50%, var(--purple) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
#hero .lead {
  font-size: 1.18rem; color: var(--text-muted);
  max-width: 56ch; margin-bottom: 14px; line-height: 1.7;
}
#hero .sub {
  font-size: 0.98rem; color: var(--text-dim);
  max-width: 54ch; margin-bottom: 42px; line-height: 1.7;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 15px 32px; border-radius: 6px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: all .25s ease; cursor: pointer; border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal); color: var(--navy);
}
.btn-primary:hover { background: #0EA5A0; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(20,184,166,0.3); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }
.btn-coral {
  background: var(--coral); color: var(--white);
}
.btn-coral:hover { background: #EA6E0E; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(249,115,22,0.3); }

/* CTA row */
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; text-align: center; }
}

/* Textlink */
.textlink {
  color: var(--teal); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid rgba(20,184,166,0.3);
  transition: border-color .2s;
}
.textlink:hover { border-color: var(--teal); }

/* ---- Stats bar ---- */
#stats {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 50px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.stat-item {
  background: var(--surface);
  padding: 36px 32px; text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; font-weight: 700; line-height: 1;
  margin-bottom: 8px;
}
.stat-number.teal   { color: var(--teal); }
.stat-number.coral  { color: var(--coral); }
.stat-number.blue   { color: var(--blue); }
.stat-label { font-size: 0.85rem; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 2.6rem; }
}

/* ---- What it is ---- */
#what-it-is {
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.what-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
@media (max-width: 800px) { .what-grid { grid-template-columns: 1fr; gap: 40px; } }
.what-text p { color: var(--text-muted); font-size: 1rem; }
.what-text .pull {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-style: italic; color: var(--white);
  border-left: 3px solid var(--teal); padding-left: 20px; margin: 28px 0;
  line-height: 1.5;
}

/* Report artifact mockup */
.report-mock {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.report-mock-bar {
  background: var(--navy-light);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--border);
}
.report-mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.report-mock-title {
  font-size: 0.78rem; color: var(--text-muted); margin-left: 8px;
  font-family: 'Space Grotesk', sans-serif;
}
.report-mock-body { padding: 24px; }
.report-stage-tag {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 10px;
}
.report-heading {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; color: var(--white); margin-bottom: 14px;
}
.report-body {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px;
}
.report-callout {
  background: rgba(20,184,166,0.08);
  border-left: 2px solid var(--teal);
  padding: 12px 16px;
  font-size: 0.82rem; color: var(--text-muted);
}
.report-callout strong { color: var(--teal); display: block; margin-bottom: 4px; }
.report-sources {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border);
  font-size: 0.72rem; color: var(--text-dim);
}

/* ---- Why it works (comparison) ---- */
#why-it-works { background: var(--navy); }
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  margin-top: 56px;
}
@media (max-width: 700px) { .comparison-grid { grid-template-columns: 1fr; } }

.comparison-card {
  border-radius: 12px; padding: 36px; border: 1px solid var(--border);
}
.comparison-card.them {
  background: var(--surface);
  opacity: 0.8;
}
.comparison-card.us {
  background: linear-gradient(135deg, rgba(20,184,166,0.12) 0%, rgba(59,130,246,0.08) 100%);
  border-color: rgba(20,184,166,0.3);
}
.comparison-card h3 {
  font-size: 1.1rem; margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.comparison-card h3 .badge {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}
.badge-blocked { background: rgba(239,68,68,0.15); color: #F87171; }
.badge-works   { background: rgba(20,184,166,0.15); color: var(--teal); }

.comparison-list { list-style: none; }
.comparison-list li {
  padding: 12px 0; border-bottom: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 12px;
}
.comparison-list li:last-child { border-bottom: none; }
.comparison-list .icon { flex: 0 0 auto; margin-top: 2px; }
.icon-x    { color: #F87171; font-size: 1rem; }
.icon-check { color: var(--teal); font-size: 1rem; }

/* Bar chart comparison */
.bar-chart { margin-top: 56px; }
.bar-chart-title { font-size: 1rem; color: var(--text-muted); margin-bottom: 28px; }
.bar-row { margin-bottom: 20px; }
.bar-label {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.bar-label span { font-size: 0.85rem; color: var(--text-muted); }
.bar-label .bar-val { font-weight: 600; color: var(--white); font-size: 0.9rem; }
.bar-track {
  height: 8px; background: rgba(255,255,255,0.06); border-radius: 100px; overflow: hidden;
}
.bar-fill {
  height: 100%; border-radius: 100px;
  width: 0; transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.teal   { background: linear-gradient(90deg, var(--teal), #0EA5A0); }
.bar-fill.coral  { background: linear-gradient(90deg, var(--coral), #EA6E0E); }
.bar-fill.blue   { background: linear-gradient(90deg, var(--blue), #2563EB); }
.bar-fill.muted  { background: rgba(255,255,255,0.15); }

/* ---- Process flow (methodology) ---- */
#method { background: var(--surface); border-top: 1px solid var(--border); }
.process-flow {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; margin-top: 20px;
}
@media (max-width: 900px) {
  .process-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .process-flow { grid-template-columns: 1fr; }
}
.process-step {
  padding: 40px 32px; position: relative; overflow: hidden;
}
.process-step::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: opacity .3s;
}
.process-step:hover::before { opacity: 1; }
.process-step.step-1 { background: var(--navy); }
.process-step.step-2 { background: var(--navy); }
.process-step.step-3 { background: var(--navy); }
.process-step.step-4 { background: var(--navy); }
.process-step.step-1::before { background: linear-gradient(135deg, rgba(20,184,166,0.15) 0%, transparent 100%); }
.process-step.step-2::before { background: linear-gradient(135deg, rgba(249,115,22,0.15) 0%, transparent 100%); }
.process-step.step-3::before { background: linear-gradient(135deg, rgba(59,130,246,0.15) 0%, transparent 100%); }
.process-step.step-4::before { background: linear-gradient(135deg, rgba(139,92,246,0.15) 0%, transparent 100%); }

.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700; line-height: 1; margin-bottom: 16px;
  opacity: 0.15;
}
.step-num.c-teal   { color: var(--teal); }
.step-num.c-coral  { color: var(--coral); }
.step-num.c-blue   { color: var(--blue); }
.step-num.c-purple { color: var(--purple); }
.step-icon {
  width: 48px; height: 48px; border-radius: 10px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.step-icon.teal   { background: rgba(20,184,166,0.15); border: 1px solid rgba(20,184,166,0.3); color: var(--teal); }
.step-icon.coral  { background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.3); color: var(--coral); }
.step-icon.blue   { background: rgba(59,130,246,0.15); border: 1px solid rgba(59,130,246,0.3); color: var(--blue); }
.step-icon.purple { background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3); color: var(--purple); }

.step-tag {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; margin-bottom: 8px;
}
.step-tag.teal   { color: var(--teal); }
.step-tag.coral  { color: var(--coral); }
.step-tag.blue   { color: var(--blue); }
.step-tag.purple { color: var(--purple); }

.process-step h3 { font-size: 1.05rem; margin-bottom: 12px; }
.process-step p  { font-size: 0.85rem; color: var(--text-muted); line-height: 1.65; }

/* ---- Evidence / Boeing ---- */
#evidence { background: var(--navy); }
.evidence-container {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
}
.evidence-header {
  padding: 32px 40px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.evidence-header h3 { font-size: 1.4rem; }
.evidence-meta { font-size: 0.78rem; color: var(--text-dim); }

.evidence-stages { display: grid; }
.evidence-stage {
  padding: 32px 40px; border-bottom: 1px solid var(--border);
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
  transition: background .2s;
}
.evidence-stage:last-child { border-bottom: none; }
.evidence-stage:hover { background: rgba(255,255,255,0.02); }
.ev-stage-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700; line-height: 1; opacity: 0.2;
}
.ev-stage-num.teal   { color: var(--teal); }
.ev-stage-num.coral  { color: var(--coral); }
.ev-stage-num.blue   { color: var(--blue); }
.ev-stage-num.purple { color: var(--purple); }
.ev-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 8px;
}
.ev-label.teal   { color: var(--teal); }
.ev-label.coral  { color: var(--coral); }
.ev-label.blue   { color: var(--blue); }
.ev-label.purple { color: var(--purple); }
.ev-content h4 { font-size: 1.1rem; margin-bottom: 10px; }
.ev-content p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 10px; }
.ev-content .verdict {
  font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic;
  color: var(--white); margin-bottom: 12px;
}
.signal-list { list-style: none; }
.signal-list li {
  padding: 6px 0 6px 20px; position: relative;
  font-size: 0.85rem; color: var(--text-muted);
}
.signal-list li::before {
  content: ''; position: absolute; left: 0; top: 0.9em;
  width: 8px; height: 1px; background: var(--teal);
}
.board-questions { list-style: none; margin-top: 12px; }
.board-questions li {
  padding: 10px 0 10px 20px; position: relative;
  font-size: 0.87rem; color: var(--text-muted); border-bottom: 1px solid var(--border);
  font-style: italic;
}
.board-questions li:last-child { border-bottom: none; }
.board-questions li::before {
  content: '?'; position: absolute; left: 0; top: 10px;
  color: var(--purple); font-weight: 700; font-size: 0.85rem;
}

@media (max-width: 700px) {
  .evidence-stage { grid-template-columns: 1fr; gap: 12px; }
  .ev-stage-num { font-size: 2rem; }
  .evidence-header, .evidence-stage { padding: 24px; }
}

/* Boeing timeline */
.boeing-timeline {
  margin-top: 48px; position: relative;
  padding-left: 28px;
}
.boeing-timeline::before {
  content: ''; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 2px; background: linear-gradient(180deg, var(--teal), var(--purple));
}
.timeline-item {
  position: relative; margin-bottom: 28px;
  padding-left: 20px;
}
.timeline-item::before {
  content: ''; position: absolute; left: -34px; top: 4px;
  width: 10px; height: 10px; border-radius: 50%;
  border: 2px solid var(--teal); background: var(--navy);
}
.timeline-year {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; color: var(--teal); margin-bottom: 4px;
}
.timeline-event { font-size: 0.88rem; color: var(--text-muted); }
.timeline-item:nth-child(2)::before { border-color: var(--coral); }
.timeline-item:nth-child(3)::before { border-color: var(--blue); }
.timeline-item:nth-child(4)::before { border-color: var(--purple); }
.timeline-item:nth-child(5)::before { border-color: var(--gold); }

/* ---- Video section ---- */
#video-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-wrapper {
  position: relative; border-radius: 16px; overflow: hidden;
  background: var(--navy); border: 1px solid var(--border);
  aspect-ratio: 16/9;
}
.video-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(20,184,166,0.08) 0%, rgba(139,92,246,0.08) 100%);
}
.play-button {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 2px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .3s;
  backdrop-filter: blur(8px);
}
.play-button:hover {
  background: var(--teal); border-color: var(--teal); transform: scale(1.05);
}
.play-button::after {
  content: '▶'; color: var(--white); font-size: 1.6rem; margin-left: 4px;
}
.video-caption {
  font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-top: 20px;
}

/* ---- Pricing tiers ---- */
#pricing { background: var(--navy); }
.tier-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(2, 1fr); margin-top: 16px;
}
@media (min-width: 1100px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px) { .tier-grid { grid-template-columns: 1fr; } }

.tier-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 28px;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(0,0,0,0.4); }
.tier-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.tier-card.t-free::before   { background: var(--teal); }
.tier-card.t-99::before     { background: var(--coral); }
.tier-card.t-499::before    { background: var(--blue); }
.tier-card.t-2500::before   { background: var(--purple); }

.tier-card.t-recommended {
  border-color: rgba(59,130,246,0.4);
  background: linear-gradient(160deg, rgba(59,130,246,0.08) 0%, var(--surface) 60%);
}
.tier-card.t-recommended::after {
  content: 'Recommended';
  position: absolute; top: 16px; right: -28px;
  background: var(--blue); color: var(--white);
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 36px; transform: rotate(45deg);
}

.tier-label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  margin-bottom: 10px;
}
.tier-label.teal   { color: var(--teal); }
.tier-label.coral  { color: var(--coral); }
.tier-label.blue   { color: var(--blue); }
.tier-label.purple { color: var(--purple); }

.tier-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; margin-bottom: 6px; }
.tier-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem; font-weight: 700; color: var(--white); margin: 16px 0 4px; line-height: 1;
}
.tier-price-meta { font-size: 0.75rem; color: var(--text-dim); margin-bottom: 20px; letter-spacing: 0.05em; }
.tier-desc { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; line-height: 1.6; }
.tier-features { list-style: none; margin-bottom: 28px; flex: 1; }
.tier-features li {
  padding: 8px 0; border-bottom: 1px solid var(--border-soft);
  font-size: 0.83rem; color: var(--text-muted);
  display: flex; align-items: flex-start; gap: 10px;
}
.tier-features li:last-child { border-bottom: none; }
.tier-features .feat-check { color: var(--teal); flex: 0 0 auto; font-weight: 700; }

.tier-card .btn { width: 100%; text-align: center; margin-top: auto; }
.tier-kicker {
  font-family: 'Playfair Display', serif; font-size: 0.9rem; font-style: italic;
  color: var(--text-muted); margin-bottom: 20px;
}

/* ---- Comparison table ---- */
#compare { background: var(--surface); border-top: 1px solid var(--border); }
.ships-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--border); }
.ships-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.85rem; min-width: 640px;
  background: var(--surface);
}
.ships-table th {
  padding: 16px 18px; font-weight: 600; text-align: center;
  border-bottom: 2px solid var(--border);
  color: var(--white); background: var(--navy-mid);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.8rem;
}
.ships-table th:first-child { text-align: left; padding-left: 20px; }
.ships-table td {
  padding: 13px 18px; text-align: center;
  border-bottom: 1px solid var(--border); color: var(--text-muted);
}
.ships-table td:first-child { text-align: left; padding-left: 20px; color: var(--text); font-weight: 500; }
.ships-table th:first-child, .ships-table td:first-child {
  position: sticky; left: 0; background: var(--navy-mid);
  box-shadow: 1px 0 0 var(--border);
}
.ships-table .yes  { color: var(--teal); font-weight: 700; font-size: 1.1rem; }
.ships-table .val  { color: var(--white); font-weight: 600; font-size: 0.82rem; }
.ships-table tr:hover td { background: rgba(255,255,255,0.02); }

/* ---- Free scan ---- */
#scan {
  background: var(--navy);
  border-top: 1px solid var(--border);
}
.scan-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: 16px; padding: 44px;
  max-width: 660px; margin: 0 auto;
}
.scan-badge {
  display: inline-block;
  background: rgba(20,184,166,0.12); border: 1px solid rgba(20,184,166,0.25);
  color: var(--teal); padding: 5px 14px; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.scan-desc { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 24px; }
.scan-callout {
  background: rgba(245,158,11,0.08);
  border-left: 2px solid var(--gold);
  padding: 14px 18px; border-radius: 4px;
  font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px;
}
.scan-callout strong { color: var(--gold); }
.scan-form {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px;
}
.scan-form input {
  width: 100%; padding: 14px 18px;
  background: var(--navy); border: 1px solid var(--border);
  border-radius: 8px; color: var(--white);
  font-family: 'Space Grotesk', sans-serif; font-size: 0.95rem;
  transition: border-color .2s;
}
.scan-form input::placeholder { color: var(--text-dim); }
.scan-form input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(20,184,166,0.15); }
.scan-form button {
  width: 100%; padding: 16px;
  background: var(--teal); color: var(--navy);
  border: none; border-radius: 8px; cursor: pointer;
  font-family: 'Space Grotesk', sans-serif; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  transition: background .2s, transform .2s;
}
.scan-form button:hover { background: #0EA5A0; transform: translateY(-1px); }
.scan-form button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.scan-fine { font-size: 0.78rem; color: var(--text-dim); text-align: center; }
.scan-status { margin-top: 14px; font-size: 0.88rem; color: var(--text-muted); }
.scan-status.error { color: #F87171; }

/* ---- About / founder ---- */
#founder {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.founder-grid {
  display: grid; grid-template-columns: 240px 1fr; gap: 60px; align-items: start;
}
@media (max-width: 800px) { .founder-grid { grid-template-columns: 1fr; gap: 32px; } }
.founder-portrait {
  width: 240px; aspect-ratio: 1;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--border);
}
.founder-portrait img { width: 100%; height: 100%; object-fit: cover; }
.founder-portrait-placeholder {
  width: 100%; height: 100%; background: var(--navy-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; color: var(--text-dim);
}
.founder-name { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 4px; }
.founder-role {
  font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 20px;
}
.founder-bio p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.75; }
.founder-creds {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px;
}
.cred-tag {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 14px;
  font-size: 0.78rem; color: var(--text-muted);
}
.cred-tag strong { color: var(--white); display: block; }

/* ---- Self-correction pull quote ---- */
.self-correction {
  background: linear-gradient(135deg, rgba(20,184,166,0.08), rgba(139,92,246,0.06));
  border: 1px solid rgba(20,184,166,0.2);
  border-radius: 16px; padding: 40px;
  margin-top: 56px;
}
.self-correction .pq-label {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin-bottom: 16px; display: block;
}
.self-correction blockquote {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-style: italic; color: var(--white);
  line-height: 1.6; border: none; padding: 0; margin: 0 0 16px;
}
.self-correction p { font-size: 0.88rem; color: var(--text-muted); }

/* ---- Footer ---- */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 60px 0 36px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px;
  margin-bottom: 48px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand {
  font-family: 'Playfair Display', serif; font-size: 1.3rem;
  color: var(--white); margin-bottom: 10px;
  display: flex; align-items: center; gap: 10px;
}
.footer-brand em { font-style: normal; color: var(--teal); }
.footer-tagline { font-size: 0.88rem; color: var(--text-dim); max-width: 36ch; line-height: 1.65; }
footer h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600; margin-bottom: 16px;
}
footer ul { list-style: none; }
footer li { margin-bottom: 10px; }
footer a { color: var(--text-dim); font-size: 0.87rem; transition: color .2s; }
footer a:hover { color: var(--teal); }
.footer-base {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.78rem; color: var(--text-dim);
}
.footer-base a { color: var(--text-dim); }
.footer-base a:hover { color: var(--teal); }

/* ---- Utilities ---- */
.prose { max-width: 66ch; }
.prose p { color: var(--text-muted); font-size: 0.95rem; }
.callout {
  background: rgba(245,158,11,0.08); border-left: 2px solid var(--gold);
  padding: 18px 22px; border-radius: 4px;
  font-size: 0.88rem; color: var(--text-muted); margin: 20px 0;
}
.callout strong { color: var(--gold); }

/* ---- Animations ---- */
.fade-in-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* Delay variants */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* ---- Mobile adjustments ---- */
@media (max-width: 700px) {
  section { padding: 64px 0; }
  .section-head { margin-bottom: 36px; }
  .scan-panel { padding: 28px 20px; }
  .process-flow { border-radius: 8px; }
  .process-step { padding: 28px 20px; }
  .tier-card { padding: 28px 22px; }
  .evidence-header { padding: 20px; }
  .evidence-stage { padding: 20px; }
  #hero h1 { font-size: 2.2rem; }
}

/* v3-gaps (2026-08-14) */

/* Gap 1: Persona grid locked to 3 columns (spec §3: exactly three persona cards) */
#who-uses-it .process-flow {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) {
  #who-uses-it .process-flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  #who-uses-it .process-flow { grid-template-columns: 1fr; }
}

/* Gap 4: Nav menu — show links at 390px (flex-wrap, no hamburger) */
@media (max-width: 600px) {
  .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
  }
}

/* ---- Responsive fix for inline grids ---- */
@media (max-width: 700px) {
  /* founder creds 3-col → 1-col */
  #founder .founder-grid + div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
  /* Method "what it is not" grid → 1-col */
  #method div[style*="grid-template-columns: repeat(2"] {
    grid-template-columns: 1fr !important;
  }
  /* Evidence bottom section */
  #evidence div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* logo-v3 (2026-08-14) */
/* Inline SVG brand mark in nav — replaces .brand-mark CSS placeholder span */
.brand-svg {
  display: inline-block;
  vertical-align: middle;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  margin-right: 6px;
  overflow: visible;
}
.brand { display: flex; align-items: center; gap: 0; }
/* .brand-mark retained for footer-brand spans (still in use) */

/* v3.1 account+badge (2026-08-14) */
/* Hero badge is now a link (<a class="hero-badge">) — keep the teal pill,
   drop anchor defaults, hover slightly brighter. Existing .hero-badge rule
   (inline-flex pill, var(--teal)) still applies; this only adds link behavior. */
a.hero-badge {
  color: var(--teal);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
a.hero-badge:hover,
a.hero-badge:focus-visible {
  background: rgba(20,184,166,0.2);
  border-color: rgba(20,184,166,0.5);
}

/* Role line under the three persona cards */
.role-line strong { color: var(--teal); }

/* Account / sign-in page (panel reuses .scan-panel; .scan-form already stacks) */
#account .lead {
  font-size: 1.05rem; color: var(--text-muted);
  max-width: 60ch; margin: 0 auto; line-height: 1.7;
}
.reading-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 22px; margin-top: 12px;
}
@media (max-width: 600px) {
  .reading-row { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ---- "What we read" source disclosure (tiers.html #scan) -------------------
   ADDED 2026-08-21. Stephen asked for the scanned sources to be listed. Uses
   <details> so it is collapsed by default — the six searches are reassurance
   for someone deciding whether to run a scan, not something to push in front
   of everyone before the form. */
.scan-sources { margin-top: 18px; text-align: left; }
.scan-sources summary {
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  color: var(--teal); letter-spacing: 0.02em; list-style: none;
}
.scan-sources summary::-webkit-details-marker { display: none; }
.scan-sources summary::after { content: ' ↓'; opacity: 0.7; }
.scan-sources[open] summary::after { content: ' ↑'; }
.scan-sources-body { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }
.scan-sources-body ul { margin: 10px 0 0; padding-left: 18px; }
.scan-sources-body li { margin-bottom: 6px; }
.scan-sources-body strong { color: var(--white); font-weight: 600; }
.scan-sources-note { margin-top: 12px; font-size: 0.8rem; color: var(--text-dim); }
