/* ══════════════════════════════════════════
   HOW IT WORKS — COMPLETE REBUILD
   Every critique applied:
   ✓ Body: 16px / 400 / --body (8.1:1 AAA)
   ✓ No 300-italic as reading weight
   ✓ Gold: ONLY primary buttons
   ✓ Phase colours: reinforced in headers + borders
   ✓ Deliverable names: --head (18:1)
   ✓ Deliverable descs: 15px / 400 / --body
   ✓ Tab bar: sticky, 56px height, scroll-snap mobile
   ✓ Tap targets: 44px minimum everywhere
   ✓ Pricing signal per phase: clear, visible
   ✓ Two-track section: no insider jargon
   ✓ Content journey: directed CTA at bottom
   ✓ Mobile: full single-column reflow
   ✓ Principle quote: legible size, real contrast
══════════════════════════════════════════ */

/* ══ PAGE HEADER ══ */
.hiw-header {
  padding: 72px var(--pad) 56px;
  border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.hiw-header-ghost {
  position: absolute; right: 24px; top: 50%; transform: translateY(-50%);
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(80px, 13vw, 160px);
  color: rgba(201,171,114,0.04);
  user-select: none; pointer-events: none; line-height: 1;
}

/* ══ PRINCIPLE QUOTE ══ */
.principle {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 56px var(--pad);
  text-align: center;
}
.principle-inner {
  max-width: 780px; margin: 0 auto;
  position: relative;
}
/* Opening quote mark — decorative only */
.principle-inner::before {
  content: '"';
  position: absolute; top: -28px; left: -8px;
  font-family: 'Bebas Neue', sans-serif; font-size: 80px;
  color: rgba(201,171,114,0.07); line-height: 1;
  pointer-events: none;
}
/* ✓ 18px / 400 / --body — NOT 300 italic */
.principle-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(16px, 1.8vw, 20px);
  font-style: italic;
  color: var(--body); /* 8.1:1 AAA */
  line-height: 1.8;
}

/* ══ TWO TRACKS ══ */
.tracks-section {
  border-bottom: 1px solid var(--border);
}
.tracks-grid {
  display: grid;
  grid-template-columns: 1fr 48px 1fr;
  margin-top: 44px;
  gap: 0;
}
.track {
  padding: 36px 32px;
  border: 1px solid var(--border);
}
.track-icon { font-size: 18px; margin-bottom: 12px; }
.track-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px; letter-spacing: 2px; line-height: 1; margin-bottom: 4px;
}
.track-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  /* No gold — use dim */
  color: var(--dim); margin-bottom: 18px;
}
/* ✓ 15px / 400 / --body */
.track-desc {
  font-size: 15px; font-weight: 400; color: var(--body); line-height: 1.8;
  margin-bottom: 20px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.track-list { display: flex; flex-direction: column; gap: 8px; }
/* ✓ 14px / 400 / --body */
.track-list li {
  font-size: 14px; font-weight: 400; color: var(--body);
  line-height: 1.65; padding-left: 18px; position: relative;
}
.track-list li::before {
  content: '→'; position: absolute; left: 0;
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px;
  color: var(--border2); top: 2px;
}

/* Divider between tracks */
.track-sep {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 36px 0;
}
.track-sep-line { flex: 1; width: 1px; background: var(--border); }
.track-sep-plus {
  font-family: 'Bebas Neue', sans-serif; font-size: 20px;
  color: var(--dim); opacity: 0.4;
}

/* ══ PHASE TABS ══ */
.phase-tabs-wrap {
  position: sticky; top: var(--nav-h); z-index: 100;
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  /* Hide scrollbar visually */
  scrollbar-width: none;
}
.phase-tabs-wrap::-webkit-scrollbar { display: none; }

.phase-tabs {
  display: flex; min-width: max-content;
}

.phase-tab {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; flex: 1; min-width: 140px;
  height: 56px; /* ✓ 44px+ tap target */
  background: transparent; border: none;
  border-right: 1px solid var(--border);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  scroll-snap-align: start;
  transition: background 0.2s, border-color 0.2s;
}
.phase-tab:last-child { border-right: none; }
.phase-tab:hover { background: var(--surface2); }

/* Active: coloured bottom border + light background */
.phase-tab.active {
  background: var(--bg);
  /* border-bottom colour set via inline style per phase */
}

.tab-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px; letter-spacing: 1px; line-height: 1;
}
.tab-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--dim);
  transition: color 0.2s;
}
.phase-tab.active .tab-name { color: var(--body); }

/* ══ PHASE PANELS ══ */
.phases-section { padding-top: 64px; }
.phase-panel { display: none; }
.phase-panel.active { display: block; }

/* Panel header */
.panel-hd {
  display: grid; grid-template-columns: 1fr auto;
  gap: 52px; align-items: start;
  margin-bottom: 48px; padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}
.panel-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(52px, 7vw, 80px);
  letter-spacing: 2px; line-height: 0.85; margin-bottom: 4px;
}
.panel-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(24px, 3.5vw, 36px);
  letter-spacing: 3px; line-height: 1; margin-bottom: 6px;
}
.panel-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--dim); margin-bottom: 18px;
}
/* ✓ 16px / 400 / --body — no italic, no 300 */
.panel-meaning {
  font-size: 16px; font-weight: 400; color: var(--body); line-height: 1.85;
  padding-left: 16px;
  /* Phase accent line — set inline per phase */
  border-left: 2px solid var(--border2);
}
.panel-stats { display: flex; flex-direction: column; gap: 18px; align-items: flex-end; padding-top: 8px; }
.pstat { text-align: right; }
.pstat-n {
  display: block; font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; letter-spacing: 1px; line-height: 1;
  /* Phase colour applied inline */
}
.pstat-l {
  font-family: 'Barlow Condensed', sans-serif; font-size: 8px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--dim);
}

/* Deliverables grid */
.deliv-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
}
.deliv-col { background: var(--bg); }

/* Column header — phase colour top border */
.deliv-col-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
  border-top: 2px solid; /* colour set inline */
  background: var(--surface);
}
.deliv-col-icon { font-size: 12px; }
.deliv-col-title {
  font-family: 'Barlow Condensed', sans-serif; font-size: 10px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--body);
}

.deliv-list { display: flex; flex-direction: column; }
.deliv-item {
  padding: 18px 26px; border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.deliv-item:last-child { border-bottom: none; }
.deliv-item:hover { background: var(--surface); }

/* ✓ Deliverable name: 16px / serif / --head (18:1) */
.deliv-name {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 16px; color: var(--head);
  margin-bottom: 6px; line-height: 1.3;
}
/* ✓ Deliverable desc: 14px / 400 / --body (8.1:1) — NOT muted */
.deliv-desc {
  font-size: 14px; font-weight: 400; color: var(--body); line-height: 1.75;
}

/* ══ PRICING SIGNAL ══ */
.price-row {
  margin-top: 40px; padding: 26px 28px;
  border: 1px solid var(--border2);
  background: var(--surface);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.price-left { display: flex; flex-direction: column; gap: 4px; }
.price-label {
  font-family: 'Barlow Condensed', sans-serif; font-size: 9px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase; color: var(--dim);
}
/* Price: large, phase colour, display font */
.price-val {
  font-family: 'Bebas Neue', sans-serif; font-size: 40px;
  letter-spacing: 1px; line-height: 1;
  /* colour set inline per phase */
}
/* ✓ 14px / 400 / --body */
.price-note { font-size: 14px; font-weight: 400; color: var(--body); }

/* ══ CONVERGENCE SECTION ══ */
.convergence {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* ✓ 16px / 400 / --body */
.convergence .sbody { color: var(--body); font-size: 16px; font-weight: 400; }

/* ══ NEXT STEP CTA ══
   Fix C4: Directed "next step" not generic */
.next-step {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ══ RESPONSIVE ══ */
@media (max-width: 1024px) {
  .panel-hd { grid-template-columns: 1fr; gap: 24px; }
  .panel-stats { flex-direction: row; align-items: flex-start; }
  .pstat { text-align: left; }
  .deliv-grid { grid-template-columns: 1fr; }
  .tracks-grid { grid-template-columns: 1fr; }
  .track-sep { flex-direction: row; height: 28px; padding: 0; }
  .track-sep-line { flex: 1; height: 1px; width: auto; }
}

@media (max-width: 768px) {
  .track { padding: 24px 18px; }
  .phase-tab { min-width: 120px; }
  .tab-name { font-size: 10px; letter-spacing: 2px; }
  .deliv-item { padding: 14px 18px; }
  .deliv-col-hd { padding: 14px 18px; }
  .price-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .price-row .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hiw-header { padding: 48px var(--pad) 40px; }
  .phase-tab { min-width: 90px; height: 52px; }
  .tab-name { display: none; }
  .panel-num { font-size: 48px; }
  .phases-section { padding-top: 48px; }
}
