/* ═══════════════════════════════════════════════════
   attune.co — Ghost Theme Stylesheet
   Consolidated from production homepage, CU, and
   enterprise pages. Design Brief §4.1 palette.
   ═══════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Core brand palette — 8 colors only (Design Brief §4.1) */
  --ink: #0F172A;
  --dark-slate: #1C263D;
  --deep-teal: #145456;
  --teal: #0D9488;
  --orange: #EA580C;
  --warm-gold: #FF9A26;
  --light-gray: #F8F8F8;
  --surface: #FFFFFF;
  /* Lifecycle stage gradient — Ink → Teal (Design Brief §4.2) */
  --diagnosis: #0F172A;
  --routing: #0E3641;
  --intervention: #0E5559;
  --reassessment: #0D7470;
  --proof: #0D9488;
  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 8px;
  --radius-sm: 6px;
}

/* ── Reset ── */
html { scroll-behavior: smooth; }
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font); color: var(--ink); background: var(--surface); -webkit-font-smoothing: antialiased; line-height: 1.6; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 720px; }

/* ── Nav ── */
nav { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(15, 23, 42, 0.08); }
nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { font-weight: 700; font-size: 22px; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; display: inline-flex; align-items: flex-end; gap: 6px; line-height: 1; }
.logo-mark { flex-shrink: 0; margin-bottom: 1px; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.build-cursor { color: var(--orange); animation: blink 1s step-end infinite; margin-left: 1px; font-weight: 400; }
.nav-right { display: flex; align-items: center; gap: 4px; }
.nav-link { font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 14px; border-radius: var(--radius-sm); color: var(--dark-slate); transition: all 0.15s; }
.nav-link:hover { background: var(--light-gray); color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 700; background: var(--light-gray); }
.nav-cta { font-size: 14px; font-weight: 600; text-decoration: none; padding: 7px 18px; border-radius: var(--radius-sm); background: var(--orange); color: #fff; margin-left: 8px; transition: background 0.15s; }
.nav-cta:hover { background: #C2410C; }

/* ── Sections — Shared ── */
section { padding: 80px 24px; }
.section-label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--teal); margin-bottom: 12px; }
h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; }
h2 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; margin-bottom: 16px; }
h3 { font-size: 20px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.sub { font-size: clamp(16px, 1.6vw, 19px); color: var(--dark-slate); max-width: 80%; line-height: 1.65; }
.accent { color: var(--teal); }

/* ── Hero ── */
.hero { padding: 100px 24px 80px; }
.hero .tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.hero .teal-tag { color: var(--teal); }
.hero .orange-tag { color: var(--orange); }
.hero h1 { max-width: 980px; }
.hero .sub { margin-bottom: 32px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Homepage hero — full viewport height */
.home-template .hero { min-height: calc(100vh - 60px); display: flex; align-items: center; padding: 80px 0; }
.home-template .hero .sub { max-width: none; }

/* ── Buttons ── */
.btn-primary { display: inline-block; font-size: 14px; font-weight: 600; padding: 12px 24px; border-radius: var(--radius-sm); background: var(--deep-teal); color: #fff; text-decoration: none; transition: all 0.15s; }
.btn-primary:hover { background: var(--ink); }
.btn-secondary { display: inline-block; font-size: 14px; font-weight: 600; padding: 11px 24px; border-radius: var(--radius-sm); border: 1.5px solid rgba(15, 23, 42, 0.08); color: var(--dark-slate); text-decoration: none; transition: all 0.15s; }
.btn-secondary:hover { border-color: var(--dark-slate); color: var(--ink); }

/* Enterprise page uses orange buttons */
.enterprise-page .btn-primary { background: var(--orange); }
.enterprise-page .btn-primary:hover { background: #C2410C; }
.enterprise-page .section-label { color: var(--orange); }
.enterprise-page .accent { color: var(--orange); }

/* ── Trust Bar (dark — Design Brief §9) ── */
.trust-bar { background: var(--ink); padding: 64px 24px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 860px; margin: 0 auto; text-align: center; }
.trust-stat .number { font-size: 40px; font-weight: 800; color: #fff; line-height: 1; }
.trust-stat .label { font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 6px; line-height: 1.4; }
.trust-headline { text-align: center; font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.trust-logos { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 32px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,0.45); letter-spacing: 0.02em; }
.trust-logos .enterprise-note { font-weight: 400; font-style: italic; font-size: 13px; letter-spacing: 0; }

/* CU trust bar variant — no stats grid, just logos */
.page-template-page-cu .trust-bar .trust-logos { margin-top: 0; }

/* ── Gap Section (homepage) ── */
.gap-section { background: var(--light-gray); }
.gap-stats { display: flex; gap: 60px; justify-content: center; margin: 48px 0 40px; flex-wrap: wrap; }
.gap-stat { text-align: center; }
.gap-stat .big-num { font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.gap-stat .big-num.teal { color: var(--teal); }
.gap-stat .big-num.orange { color: var(--orange); }
.gap-stat .stat-desc { font-size: 15px; color: var(--dark-slate); margin-top: 16px; max-width: 240px; line-height: 1.5; }
.gap-questions { list-style: none; margin: 28px 0; }
.gap-questions li { padding: 10px 0 10px 20px; position: relative; color: var(--dark-slate); font-size: 15px; line-height: 1.6; }
.gap-questions li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); transform: translateY(-50%); }
.gap-bridge { font-size: 16px; font-weight: 600; color: var(--ink); margin-top: 28px; }
.gap-source { font-size: 12px; color: var(--dark-slate); margin-top: 16px; }
.gap-source a { color: var(--dark-slate); text-decoration: underline; }

/* ── Lifecycle Flow (homepage) ── */
.lifecycle-section { text-align: center; }
.lifecycle-section h2 { margin: 0 auto 12px; }
.lifecycle-section .sub { margin: 0 auto 48px; text-align: center; max-width: 900px; }
.lifecycle-flow { display: flex; align-items: flex-start; justify-content: space-between; position: relative; max-width: 900px; margin: 0 auto; }
.lifecycle-flow::before { content: ''; position: absolute; top: 20px; left: 60px; right: 60px; height: 2px; background: rgba(13, 148, 136, 0.15); }
.lifecycle-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1; }
.lifecycle-step .circle { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.lifecycle-step .name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }

/* ── Two Paths (homepage) ── */
.paths-section { background: var(--light-gray); }
.paths-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 32px auto 0; }
.path-card { background: var(--surface); border-radius: var(--radius); padding: 32px; border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); transition: all 0.2s; display: flex; flex-direction: column; }
.path-card:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(20, 84, 86, 0.12); }
.path-card .tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.path-card .tag.teal { color: var(--teal); }
.path-card .tag.orange { color: var(--orange); }
.path-card h3 { font-size: 24px; margin-bottom: 12px; }
.path-card p { font-size: 15px; color: var(--dark-slate); line-height: 1.6; margin-bottom: 16px; }
.path-card .proof-line { font-size: 13px; color: var(--dark-slate); font-style: italic; padding-top: 16px; border-top: 1px solid rgba(15, 23, 42, 0.08); line-height: 1.5; margin-top: auto; }
.path-card .link { display: inline-block; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--teal); text-decoration: none; }
.path-card .link:hover { color: var(--deep-teal); }
.path-card.enterprise { border-color: rgba(234, 88, 12, 0.15); }
.path-card.enterprise .link { color: var(--orange); }
.path-card.enterprise .link:hover { color: #C2410C; }
.path-card.cu { border-color: rgba(13, 148, 136, 0.15); }

/* ── Problem Section (shared CU + enterprise) ── */
.problem-section { background: var(--light-gray); }
.problem-section h2 { max-width: 95%; }
.problem-intro { font-size: 16px; color: var(--dark-slate); line-height: 1.65; max-width: none; margin-bottom: 32px; }
.problem-bridge { font-size: 16px; font-weight: 600; color: var(--ink); max-width: none; }

/* CU problem — patchwork list + disconnected flow */
.patchwork-list { list-style: none; margin: 0 0 28px; }
.patchwork-list li { padding: 10px 0 10px 20px; position: relative; color: var(--dark-slate); font-size: 15px; line-height: 1.55; }
.patchwork-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); transform: translateY(-50%); }
.patchwork-list li strong { color: var(--ink); }

.disconnected-flow { display: flex; align-items: flex-start; justify-content: space-between; max-width: 860px; margin: 32px auto; position: relative; }
.disconnected-flow::before { content: ''; position: absolute; top: 16px; left: 50px; right: 50px; height: 2px; background: repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.08) 0 8px, transparent 8px 16px); }
.disc-step { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1; }
.disc-step .circle { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.disc-step .circle.outline { background: transparent; border: 2px dashed var(--dark-slate); color: var(--dark-slate); }
.disc-step .name { font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.disc-step .pain { font-size: 11px; color: var(--dark-slate); max-width: 110px; text-align: center; line-height: 1.3; font-style: italic; }

/* Enterprise problem — bad options grid */
.bad-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.bad-option { padding: 24px; background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.08); border-radius: var(--radius); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); transition: all 0.2s; display: flex; flex-direction: column; }
.bad-option:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(20, 84, 86, 0.12); }
.bad-option .option-num { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--dark-slate); letter-spacing: 1px; margin-bottom: 12px; }
.bad-option h3 { font-size: 18px; margin-bottom: 8px; }
.bad-option p { font-size: 14px; color: var(--dark-slate); line-height: 1.55; margin-bottom: 12px; }
.bad-option .detail { font-size: 13px; color: var(--dark-slate); font-style: italic; line-height: 1.5; margin-top: auto; padding-top: 12px; }

/* ── Lifecycle Stage Cards (CU page) ── */
.stage-cards { display: flex; flex-direction: column; gap: 20px; max-width: 860px; }
.stage-card { display: grid; grid-template-columns: 60px 1fr; gap: 20px; padding: 28px; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: var(--radius); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); transition: all 0.2s; }
.stage-card:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(20, 84, 86, 0.12); }
.stage-card .stage-num { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; color: #fff; }
.stage-card .stage-num.outline { background: transparent !important; color: var(--dark-slate); border: 2px dashed var(--dark-slate); }
.stage-card .stage-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.stage-card .stage-name { font-size: 18px; font-weight: 700; }
.stage-card .stage-question { font-size: 14px; color: var(--dark-slate); font-style: italic; }
.stage-card .stage-badge { font-family: var(--mono); font-size: 10px; font-weight: 600; padding: 2px 8px; border-radius: 4px; letter-spacing: 0.5px; }
.stage-card .stage-badge.proven { background: rgba(13, 148, 136, 0.08); color: var(--teal); }
.stage-card .stage-badge.building { background: var(--light-gray); color: var(--dark-slate); }
.stage-card .stage-body { font-size: 15px; color: var(--dark-slate); line-height: 1.6; margin-bottom: 12px; }
.stage-details { list-style: none; }
.stage-details li { padding: 6px 0; font-size: 14px; line-height: 1.5; color: var(--dark-slate); }
.stage-details li strong { color: var(--ink); }

/* ── Maturity Tiers (CU page) ── */
.maturity-section { background: var(--light-gray); }
.tier-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.tier-card { padding: 24px; background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.08); border-radius: var(--radius); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); transition: all 0.2s; }
.tier-card:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(20, 84, 86, 0.12); }
.tier-card .tier-name { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--dark-slate); letter-spacing: 1px; margin-bottom: 8px; text-transform: uppercase; }
.tier-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.tier-card ul { list-style: none; }
.tier-card li { font-size: 13px; padding: 4px 0; color: var(--dark-slate); }
.tier-card li::before { content: '\2713\0020'; color: var(--teal); font-weight: 600; }
.tier-note { font-size: 13px; color: var(--dark-slate); text-align: center; font-style: italic; }

/* ── Methodology (enterprise page) ── */
.method-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.method-stat { text-align: center; padding: 20px; background: var(--light-gray); border-radius: var(--radius); border: 1px solid rgba(15, 23, 42, 0.08); }
.method-stat .number { font-size: 32px; font-weight: 800; color: var(--orange); line-height: 1; }
.method-stat .label { font-size: 13px; color: var(--dark-slate); margin-top: 6px; }

/* ── Integration Model (enterprise page) ── */
.integration-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 32px; }
.int-card { padding: 28px; border-radius: var(--radius); border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); }
.int-card.from-attune { border-color: var(--orange); }
.int-card .int-label { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.int-card .int-label.orange { color: var(--orange); }
.int-card .int-label.default { color: var(--dark-slate); }
.int-card ul { list-style: none; }
.int-card li { padding: 10px 0; border-bottom: 1px solid rgba(15, 23, 42, 0.08); font-size: 14px; line-height: 1.55; }
.int-card li:last-child { border-bottom: none; }
.int-card li strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 2px; }
.int-card li span { color: var(--dark-slate); font-size: 13px; }

/* ── Code Section (enterprise — dark, Design Brief §9) ── */
.code-section { background: var(--ink); color: #fff; }
.code-section .section-label { color: var(--orange); }
.code-section h2 { color: #fff; }
.code-section .sub { color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.code-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.code-block { background: var(--dark-slate); border-radius: var(--radius); padding: 24px; overflow-x: auto; }
.code-block pre { font-family: var(--mono); font-size: 13px; line-height: 1.65; color: #E2E8F0; white-space: pre; }
.code-block .comment { color: #64748B; }
.code-block .method { color: #6EE7B7; font-weight: 600; }
.code-block .string { color: #FDE68A; }
.code-block .key { color: #93C5FD; }
.code-block .number { color: #F9A8D4; }
.code-block .punct { color: #94A3B8; }
.code-label { font-family: var(--mono); font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 12px; letter-spacing: 0.5px; }
.delivery-list { list-style: none; }
.delivery-list li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 14px; color: rgba(255,255,255,0.75); }
.delivery-list li:last-child { border-bottom: none; }
.method-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px; flex-shrink: 0; margin-top: 2px; min-width: 76px; text-align: center; }
.method-tag.api { background: rgba(5, 150, 105, 0.2); color: #6EE7B7; }
.method-tag.embed { background: rgba(37, 99, 235, 0.2); color: #93C5FD; }
.method-tag.push { background: rgba(217, 119, 6, 0.2); color: #FDE68A; }
.method-tag.bulk { background: rgba(124, 58, 237, 0.2); color: #C4B5FD; }

/* ── Business Case Flow (enterprise page) ── */
.biz-case { background: var(--light-gray); }
.flow-visual { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 0; align-items: stretch; margin: 32px 0 0; }
.flow-box { padding: 20px; border-radius: var(--radius); border: 1px solid rgba(15, 23, 42, 0.08); display: flex; flex-direction: column; box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); }
.flow-box.attune { border-color: var(--orange); background: var(--surface); }
.flow-box h4 { font-size: 15px; margin-bottom: 6px; }
.flow-box p { font-size: 13px; color: var(--dark-slate); line-height: 1.5; }
.flow-label-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; margin-bottom: 8px; }
.flow-arrow { display: flex; align-items: center; font-size: 24px; color: var(--dark-slate); text-align: center; padding: 0 8px; }

/* ── Proof Story — Enterprise (3-phase timeline) ── */
.proof-section { }
.phase-timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 32px 0; }
.phase-step { padding: 24px; border: 1px solid rgba(15, 23, 42, 0.08); border-radius: var(--radius); position: relative; box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); transition: all 0.2s; }
.phase-step:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(20, 84, 86, 0.12); }
.phase-label-tag { font-family: var(--mono); font-size: 11px; font-weight: 600; color: var(--dark-slate); letter-spacing: 1px; margin-bottom: 8px; }
.phase-step .phase-title { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.phase-step .phase-duration { font-family: var(--mono); font-size: 12px; color: var(--orange); margin-bottom: 8px; }
.phase-step .phase-desc { font-size: 14px; color: var(--dark-slate); line-height: 1.55; }

/* ── Evidence (shared) ── */
.evidence-section { background: var(--light-gray); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 32px; }
.evidence-card { padding: 28px; background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.08); border-radius: var(--radius); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); transition: all 0.2s; display: flex; flex-direction: column; }
.evidence-card:hover { transform: translateY(-2px); box-shadow: 0 4px 24px rgba(20, 84, 86, 0.12); }
.evidence-card .stat-big { font-size: 36px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 8px; letter-spacing: -0.02em; }
.evidence-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.evidence-card p { font-size: 14px; color: var(--dark-slate); line-height: 1.55; }
.evidence-card .source { font-size: 12px; color: var(--dark-slate); margin-top: auto; padding-top: 10px; font-style: italic; }

/* Enterprise evidence uses orange stat color */
.enterprise-page .evidence-card .stat-big { color: var(--orange); }
/* Enterprise evidence uses 2-col grid (3 items, 3rd spans full or wraps) */
.enterprise-evidence { grid-template-columns: repeat(2, 1fr); }

/* ── Competitive Table (enterprise page) ── */
.comp-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; }
.comp-table th { text-align: left; padding: 12px 16px; background: var(--light-gray); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--dark-slate); border-bottom: 2px solid rgba(15, 23, 42, 0.08); }
.comp-table td { padding: 14px 16px; border-bottom: 1px solid rgba(15, 23, 42, 0.08); vertical-align: top; line-height: 1.55; }
.comp-table .problem-cell { color: var(--dark-slate); }
.comp-table .attune-cell { color: var(--ink); }

/* ── Heritage (shared) ── */
.heritage-section { background: var(--light-gray); text-align: center; }
.heritage-body { font-size: 17px; color: var(--dark-slate); line-height: 1.7; max-width: 800px; margin: 0 auto 56px; text-align: center; }
.heritage-body strong { color: var(--ink); }
.heritage-timeline { display: flex; align-items: flex-start; justify-content: space-between; max-width: 800px; margin: 0 auto 48px; position: relative; }
.heritage-timeline::before { content: ''; position: absolute; top: 12px; left: 60px; right: 60px; height: 2px; background: rgba(13, 148, 136, 0.15); }
.heritage-node { display: flex; flex-direction: column; align-items: center; flex: 1; position: relative; z-index: 1; }
.heritage-node .dot { width: 24px; height: 24px; border-radius: 50%; background: var(--teal); margin-bottom: 12px; }
.heritage-node .year { font-size: 13px; font-weight: 700; color: var(--teal); margin-bottom: 4px; }
.heritage-node .event { font-size: 13px; color: var(--dark-slate); text-align: center; line-height: 1.4; max-width: 140px; }
.heritage-node .event strong { color: var(--ink); }

/* ── Founder Card (homepage) ── */
.founder-card { display: flex; align-items: flex-start; gap: 20px; max-width: 700px; margin: 40px auto 0; padding: 24px; background: var(--surface); border: 1px solid rgba(15, 23, 42, 0.08); border-radius: var(--radius); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); text-align: left; }
.founder-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--teal); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700; flex-shrink: 0; }
.founder-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.founder-info .title { font-size: 13px; color: var(--teal); font-weight: 600; margin-bottom: 8px; }
.founder-info p { font-size: 14px; color: var(--dark-slate); line-height: 1.55; }

/* ── Regulatory Momentum (enterprise page) ── */
.reg-section { background: var(--surface); }
.reg-section .section-label { color: var(--orange); }
.reg-section .sub { margin-bottom: 32px; }
.reg-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.reg-card { padding: 20px; background: var(--light-gray); border-radius: var(--radius); border: 1px solid rgba(15, 23, 42, 0.08); box-shadow: 0 1px 12px rgba(20, 84, 86, 0.08); display: flex; flex-direction: column; }
.reg-card .source { font-size: 12px; color: var(--dark-slate); font-style: italic; margin-top: auto; padding-top: 10px; }
.reg-card .reg-year { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--orange); margin-bottom: 8px; }
.reg-card h4 { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; line-height: 1.3; min-height: 2.6em; }
.reg-card p { font-size: 13px; color: var(--dark-slate); line-height: 1.5; }
.reg-quote { border-left: 3px solid var(--orange); padding: 20px 24px; }
.reg-quote p { font-size: 16px; font-style: italic; color: var(--dark-slate); line-height: 1.6; margin-bottom: 8px; }
.reg-quote .attr { font-size: 13px; color: var(--dark-slate); }

/* ── CTA (dark — Design Brief §9) ── */
.cta-section { background: var(--deep-teal); color: #fff; }
.cta-section .section-label { color: var(--warm-gold); }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section .sub { color: rgba(255,255,255,0.65); max-width: 80%; margin-bottom: 32px; }
.cta-section .accent { color: var(--warm-gold); }
.cta-btn { display: inline-block; font-size: 15px; font-weight: 600; padding: 14px 32px; border-radius: var(--radius-sm); background: var(--orange); color: #fff; text-decoration: none; transition: background 0.15s; }
.cta-btn:hover { background: #C2410C; }

/* ── Footer (dark — Design Brief §9) ── */
footer { padding: 60px 24px 40px; background: var(--ink); }
.footer-grid { display: grid; grid-template-columns: 2fr auto; gap: 40px; max-width: 1080px; margin: 0 auto; }
.footer-brand { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; display: inline-flex; align-items: flex-end; gap: 6px; line-height: 1; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.6; max-width: 420px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); text-decoration: none; transition: color 0.15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: 1080px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 12px; color: rgba(255,255,255,0.4); }

/* ── Post / Page Templates ── */
.post-header, .page-header { padding: 100px 24px 60px; }
.post-header h1, .page-header h1 { font-size: clamp(28px, 3.5vw, 44px); max-width: 800px; }
.post-tag { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--teal); text-decoration: none; margin-bottom: 12px; }
.post-tag:hover { color: var(--deep-teal); }
.post-excerpt, .page-excerpt { font-size: 19px; color: var(--dark-slate); line-height: 1.6; max-width: 700px; margin-top: 12px; }
.post-meta { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: 13px; color: var(--dark-slate); }
.post-meta .post-author { font-weight: 600; color: var(--ink); }
.post-feature-image { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.post-feature-image img { width: 100%; border-radius: var(--radius); }
.post-feature-image figcaption { font-size: 13px; color: var(--dark-slate); text-align: center; margin-top: 8px; }
.post-body, .page-body { padding: 48px 24px 80px; }
.post-body .container, .page-body .container { max-width: 720px; }

/* Ghost content styles */
.post-body p, .page-body p { font-size: 17px; line-height: 1.75; color: var(--dark-slate); margin-bottom: 24px; }
.post-body h2, .page-body h2 { margin-top: 48px; margin-bottom: 16px; }
.post-body h3, .page-body h3 { margin-top: 36px; margin-bottom: 12px; }
.post-body a, .page-body a { color: var(--teal); text-decoration: underline; }
.post-body img, .page-body img { max-width: 100%; border-radius: var(--radius); }
.post-body blockquote, .page-body blockquote { border-left: 3px solid var(--teal); padding: 16px 24px; margin: 24px 0; font-style: italic; color: var(--dark-slate); }
.post-body ul, .post-body ol, .page-body ul, .page-body ol { margin: 0 0 24px 24px; }
.post-body li, .page-body li { font-size: 17px; line-height: 1.75; color: var(--dark-slate); margin-bottom: 8px; }
.post-body pre, .page-body pre { background: var(--dark-slate); color: #E2E8F0; padding: 20px; border-radius: var(--radius); overflow-x: auto; margin: 24px 0; font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.post-body code, .page-body code { font-family: var(--mono); font-size: 0.9em; background: var(--light-gray); padding: 2px 6px; border-radius: 4px; }
.post-body pre code, .page-body pre code { background: none; padding: 0; }

/* Ghost Koenig editor — wide and full-width content */
.kg-width-wide { max-width: 1080px; margin-left: auto; margin-right: auto; }
.kg-width-full { max-width: none; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); width: 100vw; }
.kg-width-wide img, .kg-width-full img { max-width: 100%; }

/* ── Error Page ── */
.error-section { padding: 160px 24px; text-align: center; }
.error-code { font-size: 120px; font-weight: 800; color: var(--teal); line-height: 1; margin-bottom: 16px; letter-spacing: -0.04em; opacity: 0.2; }
.error-section h1 { font-size: 32px; margin-bottom: 12px; }
.error-section .sub { margin: 0 auto 32px; text-align: center; }

/* ── Fade-in Animation ── */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity 0.3s ease, transform 0.3s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════════════
   Responsive — 768px
   ═══════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  nav .container { height: auto; padding-top: 10px; padding-bottom: 10px; }
  .logo { font-size: 18px; }
  .nav-right { gap: 2px; }
  .nav-link { padding: 6px 8px; font-size: 13px; }
  .nav-cta { padding: 6px 12px; font-size: 13px; margin-left: 4px; }

  /* Footer */
  .footer-col { text-align: right; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Trust bar */
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
  .trust-stat .number { font-size: 32px; }
  .trust-logos { gap: 16px; }
  .trust-logos .enterprise-note { width: 100%; text-align: center; }

  /* Homepage */
  .gap-stats { flex-direction: column; align-items: center; }
  .lifecycle-flow { flex-direction: column; gap: 24px; align-items: center; }
  .lifecycle-flow::before { display: none; }
  .paths-grid { grid-template-columns: 1fr; }

  /* Heritage (shared) */
  .heritage-timeline { flex-direction: column; gap: 20px; align-items: center; }
  .heritage-timeline::before { display: none; }

  /* CU page */
  .disconnected-flow { flex-direction: column; gap: 16px; align-items: center; }
  .disconnected-flow::before { display: none; }
  .stage-card { grid-template-columns: 1fr; }
  .stage-card .stage-header { flex-wrap: wrap; }
  .stage-card .stage-question { width: 100%; margin-top: 2px; }
  .tier-grid { grid-template-columns: 1fr; }

  /* Enterprise page */
  .bad-options { grid-template-columns: 1fr; }
  .method-stats { grid-template-columns: repeat(2, 1fr); }
  .integration-cols { grid-template-columns: 1fr; }
  .code-layout { grid-template-columns: 1fr; }
  .code-block pre { font-size: 11px; white-space: pre-wrap; word-break: break-word; }
  .code-section { overflow: hidden; }
  .delivery-list li { flex-wrap: wrap; }
  .method-tag { min-width: auto; }
  .flow-visual { grid-template-columns: 1fr !important; gap: 8px; }
  .flow-arrow { transform: rotate(90deg); font-size: 18px; padding: 4px 0; justify-content: center; }
  .flow-box { padding: 20px; }
  .phase-timeline { grid-template-columns: 1fr; }
  .evidence-grid { grid-template-columns: 1fr; }
  .enterprise-evidence { grid-template-columns: 1fr; }
  .comp-table { font-size: 12px; }
  .comp-table th, .comp-table td { padding: 10px 8px; }
  .comp-table th:first-child, .comp-table td:first-child { width: 30%; }
  .reg-grid { grid-template-columns: 1fr; }
}
