/* ================================================================
   Call Centered AI v2 — section/component styles
   Layered on top of style.css. Reuses --cyan, --ink, --rule, etc.
================================================================ */

:root {
  --amber:        #F59E0B;
  --amber-deep:   #B45309;
  --amber-soft:   #FEF3C7;
  --amber-wash:   #FFFBEB;
  --violet:       #8B5CF6;
  --violet-deep:  #6D28D9;
  --violet-wash:  #F5F3FF;
  --blue:         #3B82F6;
  --blue-wash:    #EFF6FF;
  --green:        #22C55E;
  --green-wash:   #F0FDF4;
  --grid-dot:     #D8DEE5;
}

/* ---------- Brand logo (image-based wordmark) ---------- */
.brand-img {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}
/* Slightly more compact logo inside the floating header pill so the pill itself stays slim */
.site-header .brand-logo { height: 36px; }
@media (max-width: 560px) {
  .brand-logo { height: 36px; }
  .site-header .brand-logo { height: 30px; }
}

/* ---------- Section heads (centered) ---------- */
.section-head {
  max-width: 56rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 1rem; }
.section-head h2 { margin-bottom: 1.1rem; }
.section-head .lead { color: var(--ink-3); }
.accent-cyan { color: var(--cyan-deep); }

/* When the section-head has 2+ lead paragraphs, just give them a touch more breathing room */
.section-head .lead + .lead {
  margin-top: 0.95rem;
}

@media (max-width: 720px) {
  .section-head { margin-bottom: 2.4rem; max-width: 100%; }
  .section-head .lead + .lead { margin-top: 0.7rem; }
}

/* ===============================================================
   SECTION 1 — HOW IT WORKS / Beliefs flow
=============================================================== */
.how {
  background: var(--bg-soft);
  border-top: 1px solid var(--cyan);
}

/* Flow chart layout */
.flow {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr 1fr 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 2rem 1.25rem;
  background: #FAFBFC;
  border: 1px solid var(--rule);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.flow-col { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
.flow-col-cats { gap: 0.85rem; }

/* Flow nodes (cards on the chart) */
.flow-node {
  display: flex;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  box-shadow: 0 1px 2px rgba(10,15,20,0.04);
  transition: all 0.18s var(--ease);
  position: relative;
}
.flow-node:hover {
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(10,15,20,0.08);
  transform: translateY(-1px);
}

/* Coloured square icons */
.flow-node-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.flow-icon-blue   { background: var(--blue); }
.flow-icon-amber  { background: var(--amber); }
.flow-icon-violet { background: var(--violet); }
.flow-icon-green  { background: var(--green); }

.flow-node-body { min-width: 0; }
.flow-node-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  font-weight: 600;
  margin-bottom: 0.15rem;
}
.flow-node-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.flow-node-sub {
  font-size: 0.78rem;
  color: var(--ink-3);
  line-height: 1.45;
}
.flow-node-meta {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--rule);
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* SVG fork/merge connectors — disabled (using simpler dashed arrows instead) */
.flow-mobile-fork,
.flow-mobile-merge { display: none !important; }

/* Default state for arrowheads — hidden, then enabled per breakpoint above */
.flow-arrow-head { display: none; }

/* Bypass L-paths (mobile only) — snake from Not Qualified down on the right,
   into the dim box, then out the bottom and down on the left into Final Synthesis */
.flow-bypass,
.flow-bypass-r,
.flow-bypass-l { display: none; }

/* Variant accents */
.flow-node-gate { background: var(--amber-wash); border-color: #FCD9A1; }
.flow-node-cat  { background: var(--amber-wash); border-color: #FCD9A1; }
.flow-node-synth{ background: var(--violet-wash); border-color: #DDD2FB; }
.flow-node-input{ background: #fff; }
.flow-node-done { background: #fff; }

/* Linked state — when chart node is hovered, both nodes light up */
.flow-node-cat.is-linked,
.dim-card.is-linked {
  border-color: var(--cyan-deep) !important;
  box-shadow: 0 0 0 2px rgba(35,203,209,0.18), 0 12px 28px rgba(35,203,209,0.12);
  transform: translateY(-2px);
}
.flow-node-cat:focus { outline: none; }
.flow-node-cat:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
}

/* Pulse animation when chart node is clicked */
.dim-card.is-pulsing {
  animation: dim-pulse 1.6s ease-out;
  border-color: var(--cyan-deep);
}
@keyframes dim-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(35,203,209,0.55); }
  60%  { box-shadow: 0 0 0 18px rgba(35,203,209,0); }
  100% { box-shadow: 0 0 0 0 rgba(35,203,209,0); }
}

/* Connector lines + arrowheads between flow-cols
   .flow-arrow-head is in HTML as first child of gate/cats/synth/done cols.
   Desktop: dashed line on right of previous col + right-pointing triangle on left of next col.
   Mobile: dashed line on top of next col + down-pointing triangle on top of next col. */
.flow-col-input,
.flow-col-gate,
.flow-col-synth,
.flow-col-done { position: relative; }

@media (min-width: 721px) {
  /* Just a dashed grey horizontal line spanning the gap — no arrowhead.
     Same look across all 4 transitions (gate, cats, synth, done). */
  .flow-arrow-head {
    display: block;
    position: absolute;
    top: 50%;
    left: -1.25rem;
    transform: translateY(-50%);
    width: 1.25rem;
    height: 0;
    background: none;
    clip-path: none;
    border: none;
    border-top: 1.5px dashed #9CA3AF;
    opacity: 0.85;
    z-index: 2;
  }
  .flow-arrow-head::after { display: none; }
  /* Disable the old separate ::after lines */
  .flow-col-input::after,
  .flow-col-gate::after,
  .flow-col-cats::after,
  .flow-col-synth::after { display: none; }
}

/* Categories column: wrap the 4 parallel cards in a dashed cyan box with "Analyzed in parallel" pill */
.flow-col-cats {
  position: relative;
  background: rgba(35,203,209,0.04);
  border: 1.5px dashed var(--cyan);
  border-radius: 10px;
  padding: 1.6rem 0.85rem 0.85rem;
}
.flow-col-cats::before {
  content: 'Analyzed in parallel';
  display: block;
  position: absolute;
  top: -0.65rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: #FAFBFC;
  padding: 0.18rem 0.7rem;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--cyan-deep);
  letter-spacing: 0.04em;
  border: 1px solid var(--cyan);
  border-radius: 999px;
  width: auto;
  height: auto;
  white-space: nowrap;
  bottom: auto;
  text-align: center;
}
.flow-col-cats .flow-node::before,
.flow-col-cats .flow-node::after { display: none; }

.flow-rail { display: none; }

.flow-mobile-hint {
  display: none;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* Tablet: keep horizontal but tighter */
@media (max-width: 960px) and (min-width: 721px) {
  .flow {
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    padding: 1.25rem;
  }
  .flow-col { scroll-snap-align: start; }
  .flow-mobile-hint { display: block; }
}

/* Phone: stack the flow chart vertically — every step visible without scrolling */
@media (max-width: 720px) {
  .flow {
    grid-template-columns: 1fr;
    overflow: visible;
    padding: 1.5rem 1.5rem;
    gap: 3rem;
    background: #FAFBFC;
  }
  .flow-col { gap: 0.7rem; }
  /* Hide leftover horizontal-flow decorations on mobile (input col has no incoming arrow) */
  .flow-col-input::after { display: none; }
  .flow-col-cats .flow-node::before,
  .flow-col-cats .flow-node::after { display: none; }

  /* Wrap the 4 parallel categories in a dashed cyan group with "Analyzed in parallel" pill */
  .flow-col-cats {
    position: relative;
    background: transparent;
    border: 1.5px dashed var(--cyan);
    border-radius: 10px;
    padding: 1.6rem 0.85rem 0.85rem;
  }
  .flow-col-cats::before {
    content: 'Analyzed in parallel';
    display: block;
    position: absolute;
    top: -0.65rem;
    left: 50%;
    transform: translateX(-50%);
    background: #FAFBFC;
    padding: 0.18rem 0.7rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--cyan-deep);
    letter-spacing: 0.04em;
    border: 1px solid var(--cyan);
    border-radius: 999px;
    width: auto;
    height: auto;
    white-space: nowrap;
  }
  /* (cats col line is shown via .flow-col + .flow-col.flow-col-cats::after override below) */

  /* Thin solid vertical line between simple flow-col transitions */
  .flow-col + .flow-col {
    position: relative;
  }
  .flow-col + .flow-col::after {
    content: '';
    position: absolute;
    top: -2.4rem;
    left: 50%;
    margin-left: -0.5px;
    width: 1px;
    height: 1.5rem;
    background: #9CA3AF;
    border: none;
    opacity: 0.85;
    z-index: 1;
  }
  /* Down-pointing triangle arrowhead — uses the .flow-arrow-head span */
  .flow-arrow-head {
    display: block;
    position: absolute;
    top: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #9CA3AF;
    opacity: 0.85;
    z-index: 2;
  }

  /* Cats column: extra margin-top widens the gap above so the standard 1.5rem line
     + arrowhead can fit without overlapping the "Analyzed in parallel" pill.
     Line + arrow shape match the other transitions exactly — only their position is shifted up. */
  .flow-col-cats { margin-top: 1.25rem; }
  .flow-col + .flow-col.flow-col-cats::after {
    top: -3.4rem;
    height: 1.5rem;
  }
  .flow-col-cats > .flow-arrow-head {
    top: -2rem;
  }

  /* Old bypass spans disabled (no longer used) */
  .flow-bypass,
  .flow-bypass-r,
  .flow-bypass-l { display: none !important; }
  .flow-mobile-hint { display: none; }
}

/* "The Dimensions" header above the dim cards */
.dim-cards-header {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0.75rem 0 0.85rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  justify-content: center;
}
.dim-cards-header::before,
.dim-cards-header::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

/* Dimension cards (under the flow) */
.dim-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.75rem;
}
.dim-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--cyan);
  border-radius: 10px;
  padding: 0.95rem 1rem 1rem;
  position: relative;
  transition: all 0.2s var(--ease);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "num name"
    "q   q"
    "body body";
  column-gap: 0.55rem;
  row-gap: 0.4rem;
  align-items: center;
  align-content: start;
}
.dim-card:hover {
  border-color: var(--ink);
  border-top-color: var(--cyan-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(35,203,209,0.12);
}
.dim-num {
  grid-area: num;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--cyan-deep);
  color: #fff;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0;
  box-shadow: 0 3px 8px rgba(35,203,209,0.22);
}
.dim-name {
  grid-area: name;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 0;
  align-self: center;
  line-height: 1.2;
}
.dim-q { grid-area: q; }
.dim-body { grid-area: body; }
.dim-q {
  font-size: 0.78rem;
  color: var(--cyan-dark);
  font-style: italic;
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed var(--rule);
  min-height: 3.6rem;
  display: flex;
  align-items: center;
  line-height: 1.4;
}
.dim-body {
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.5;
}
@media (max-width: 960px) { .dim-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dim-cards { grid-template-columns: 1fr; } }

/* ===============================================================
   SECTION 2 — WHAT IT DOES / Output card
=============================================================== */
.what {
  background: #fff;
  border-top: 1px solid var(--cyan);
  position: relative;
  overflow: hidden;
}

.output {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cyan);
  border-radius: 14px;
  box-shadow: 0 28px 56px -18px rgba(35,203,209,0.25), 0 6px 14px rgba(10,15,20,0.06);
  overflow: hidden;
}

/* Output card header */
.output-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--rule);
}
.output-name-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}
.output-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* Small waveform indicator next to the call name — themed audio accent */
.output-mini-wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
}
.output-mini-wave .b {
  width: 2px;
  background: var(--cyan);
  border-radius: 1px;
  opacity: 0.85;
  animation: wave 1.4s ease-in-out infinite;
  transform-origin: center;
}
.output-mini-wave .b:nth-child(1)  { height: 35%; animation-delay: 0.0s; }
.output-mini-wave .b:nth-child(2)  { height: 65%; animation-delay: 0.15s; }
.output-mini-wave .b:nth-child(3)  { height: 90%; animation-delay: 0.3s; }
.output-mini-wave .b:nth-child(4)  { height: 50%; animation-delay: 0.45s; }
.output-mini-wave .b:nth-child(5)  { height: 75%; animation-delay: 0.6s; }
.output-mini-wave .b:nth-child(6)  { height: 100%; animation-delay: 0.1s; }
.output-mini-wave .b:nth-child(7)  { height: 60%; animation-delay: 0.4s; }
.output-mini-wave .b:nth-child(8)  { height: 80%; animation-delay: 0.2s; }
.output-mini-wave .b:nth-child(9)  { height: 45%; animation-delay: 0.55s; }
.output-mini-wave .b:nth-child(10) { height: 70%; animation-delay: 0.05s; }
.output-mini-wave .b:nth-child(11) { height: 90%; animation-delay: 0.35s; }
.output-mini-wave .b:nth-child(12) { height: 55%; animation-delay: 0.5s; }
.output-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--cyan-wash);
  color: var(--cyan-dark);
  font-size: 0.7rem;
  font-weight: 700;
  margin-right: 0.25rem;
}
.avatar-sm { width: 20px; height: 20px; font-size: 0.65rem; }
.meta-rep { color: var(--ink-2); font-weight: 500; }
.meta-sep { color: var(--muted-2); }
.meta-id { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }

.output-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.output-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.output-btn:hover { border-color: var(--ink); color: var(--ink); }
.output-btn-orange { color: var(--amber-deep); border-color: #F8C374; }
.output-btn-orange:hover { border-color: var(--amber); }
.output-btn-violet { color: var(--cyan-dark); border-color: #C5EAEC; }
.output-btn-violet:hover { border-color: var(--cyan); }

/* Tabs */
.output-tabs {
  display: flex;
  gap: 0;
  padding: 0 1.5rem;
  border-bottom: 1px solid var(--rule);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.output-tabs::-webkit-scrollbar { display: none; }
.output-tab {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.95rem 1.1rem;
  background: none; border: none;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
}
.output-tab:hover { color: var(--ink); }
.output-tab.is-active {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}
.tab-score {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.4rem;
  background: var(--green-wash);
  color: var(--green);
  border-radius: 4px;
}

/* Overview panel */
.output-panel { padding: 1.75rem 1.5rem 2rem; }

.overall {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: #F7FAF8;
  border: 1px solid #E1ECE4;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.75rem;
}
.overall-ring { position: relative; flex-shrink: 0; width: 110px; height: 110px; }
.overall-ring svg { width: 100%; height: 100%; }
.overall-num {
  position: absolute;
  inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 800;
  color: var(--green);
  letter-spacing: -0.04em;
  line-height: 1;
}
.overall-num span { font-size: 0.75rem; font-weight: 600; color: var(--muted); margin-top: 0.15rem; }
.overall-text { min-width: 0; }
.overall-label {
  font-size: 1.6rem; font-weight: 700; color: var(--green);
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}
.overall-sub { color: var(--ink-3); font-size: 0.95rem; }

.breakdown-label,
.exec-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.exec-label { margin-top: 1.5rem; }

.breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; }
.bd-card {
  border: 1.5px solid #C7E9CF;
  background: var(--green-wash);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease), border-color 0.15s var(--ease);
}
.bd-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(35,203,209,0.18);
}
.bd-card:focus { outline: none; }
.bd-card:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
}
.bd-score {
  font-size: 1.85rem; font-weight: 800;
  color: var(--green); line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
}
.bd-score span { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.bd-name { font-size: 0.85rem; color: var(--ink-2); font-weight: 500; }
@media (max-width: 720px) { .breakdown { grid-template-columns: repeat(2, 1fr); } }

.exec-body {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ===============================================================
   Output card — phone responsive (everything fits without horizontal scroll)
=============================================================== */
@media (max-width: 720px) {
  .output { border-radius: 10px; }
  .output-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1rem 0.85rem;
  }
  .output-name { font-size: 1.05rem; }
  .output-meta { font-size: 0.74rem; gap: 0.35rem; }
  .meta-id { display: none; } /* drop the long ID on phone */
  .output-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 0.4rem;
  }
  .output-btn { padding: 0.4rem 0.65rem; font-size: 0.75rem; }

  /* Stack tabs vertically on mobile so all 6 are visible at once */
  .output-tabs {
    flex-direction: column;
    padding: 0;
    overflow: visible;
    border-bottom: none;
  }
  .output-tab {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--rule);
    border-left: 3px solid transparent;
    text-align: left;
  }
  .output-tab.is-active {
    background: var(--cyan-wash);
    border-left-color: var(--cyan-deep);
    border-bottom-color: var(--rule);
    color: var(--ink);
  }
  .output-tab:last-of-type { border-bottom: 1px solid var(--rule); }
  .tab-score { font-size: 0.7rem; padding: 0.12rem 0.4rem; }

  .output-panel { padding: 1rem 1rem 1.25rem; }

  .overall {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
    padding: 1.1rem;
  }
  .overall-ring { width: 84px; height: 84px; }
  .overall-num { font-size: 1.6rem; }
  .overall-label { font-size: 1.3rem; }

  /* Per-dimension score block (Trust/Needs/etc panels) — keep horizontal but smaller */
  .dim-score {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
  }
  .dim-ring { width: 52px; height: 52px; }
  .dim-ring-num { font-size: 1.25rem; }
  .dim-score-name { font-size: 1.05rem; }

  .dim-analysis { padding: 0.95rem 1rem; font-size: 0.88rem; }
}

/* Carousel arrows on phone — sit in their own row below the card so they don't crowd it */
@media (max-width: 720px) {
  .output-stage { padding: 0 1rem; }
  .output-nav-side {
    width: 36px; height: 36px;
    top: auto;
    bottom: -50px;
    transform: none;
    box-shadow: 0 4px 10px rgba(10,15,20,0.08);
  }
  .output-nav-prev { left: 35%; }
  .output-nav-next { right: 35%; }
  .output-nav-meta { margin-top: 4.5rem; }
}

/* Panel show/hide (JS toggles .is-active and [hidden]) */
.output-panel[hidden] { display: none; }

/* Overview: Key Topics + Action Items two-col */
.twocol-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.75rem;
}
.kt-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.kt-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.kt-chip {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  background: var(--cyan-wash);
  color: var(--cyan-dark);
  border: 1px solid #C5EAEC;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
}

/* Areas of Improvement — replaces Key Topics in the twocol; mirrors one-pager pattern */
.aoi-block { min-width: 0; }
.aoi-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.aoi-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.aoi-tag {
  flex: 0 0 auto;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.22rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  margin-top: 0.18rem;
  white-space: nowrap;
}
.aoi-tag-red   { background: #FEE4E2; color: #B42318; }
.aoi-tag-amber { background: #FEF3C7; color: #B54708; }
.aoi-tag-green { background: #E6F4EA; color: #1A7F37; }

/* Key Topics: now a smaller horizontal strip beneath the twocol row */
.kt-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.kt-strip-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: 0 0 auto;
}
.kt-chip-sm {
  padding: 0.22rem 0.55rem;
  font-size: 0.7rem;
}
.ai-list { list-style: none; padding: 0; margin: 0; }
.ai-list li {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 0.45rem 0 0.45rem 1.3rem;
  position: relative;
}
.ai-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.95rem;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan-deep);
}
@media (max-width: 720px) {
  .twocol-row { grid-template-columns: 1fr; gap: 1.75rem; }
  /* Mobile: Action Items above Key Topics */
  .twocol-row .ai-block { order: -1; }
}

/* Per-dimension panel — score block */
.dim-score {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: #F7FAF8;
  border: 1px solid #E1ECE4;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.dim-ring {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(34,197,94,0.25);
}
.dim-ring-num {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  display: flex; flex-direction: column; align-items: center;
}
.dim-ring-num em {
  font-style: normal;
  font-size: 0.6rem;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 0.1rem;
}
.dim-score-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.dim-score-sub { font-size: 0.92rem; color: var(--ink-3); }

/* Per-dimension Analysis */
.dim-section-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.dim-analysis {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.2rem 1.3rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-2);
  margin-bottom: 1.75rem;
}

/* Per-dimension Strengths / Areas two-col */
.dim-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.dim-col-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.dim-col-strengths { color: var(--cyan-dark); }
.dim-col-areas    { color: var(--amber-deep); }
.dim-col-list { list-style: none; padding: 0; margin: 0; }
.dim-col-list li {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--rule);
}
.dim-col-list li:last-child { border-bottom: none; }
@media (max-width: 720px) {
  .dim-twocol { grid-template-columns: 1fr; gap: 1.5rem; }
  .dim-score { flex-direction: row; }
}

/* Transcript teaser */
.transcript-teaser {
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
}
.tt-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--cyan-wash);
  color: var(--cyan-deep);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.tt-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.tt-body {
  max-width: 30rem;
  margin: 0 auto 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-3);
  line-height: 1.6;
}

/* Feature cards (under the output) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.feature-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-top: 4px solid var(--cyan);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  transition: all 0.2s var(--ease);
  /* Icon inline with title; body wraps below across both columns */
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon name"
    "body body";
  column-gap: 0.85rem;
  row-gap: 0.55rem;
  align-items: center;
}
.feature-card:hover {
  border-color: var(--cyan);
  border-top-color: var(--cyan-deep);
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(35,203,209,0.18);
}
.feat-icon {
  grid-area: icon;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--cyan-wash);
  color: var(--cyan-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0;
  flex-shrink: 0;
}
.feat-name {
  grid-area: name;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 0;
  align-self: center;
}
.feat-body {
  grid-area: body;
  font-size: 0.88rem;
  color: var(--ink-3);
  line-height: 1.55;
}
@media (max-width: 960px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-cards { grid-template-columns: 1fr; } }

/* ===============================================================
   SECTION 3 — ACTIONABLE DATA
=============================================================== */
.actionable {
  background: var(--bg-soft);
  border-top: 1px solid var(--cyan);
}

/* 3-col card grid for 6 service cards */
.action-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}
@media (max-width: 960px) { .action-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .action-cards { grid-template-columns: 1fr; } }

/* Legacy .results kept as alias in case of stragglers */
.results {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

/* ===============================================================
   Customize The Platform callout (sits below the dim-cards)
=============================================================== */
.custom-layer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.6rem;
  background: linear-gradient(135deg, var(--cyan-wash) 0%, #fff 70%);
  border: 1px solid #C5EAEC;
  border-radius: 14px;
  padding: 1.6rem 1.9rem;
  margin: 2.25rem 0 0;
  position: relative;
  overflow: hidden;
}
.custom-layer::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cyan);
}
.cl-content { min-width: 0; }
.cl-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.cl-content p {
  font-size: 0.94rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}
.cl-cta { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 820px) {
  .custom-layer {
    grid-template-columns: 1fr;
    gap: 1.1rem;
    padding: 1.4rem 1.5rem;
  }
  .cl-cta { justify-self: stretch; text-align: center; justify-content: center; }
}

/* ===============================================================
   SECTION 4 — FAQ accordion (native <details>)
=============================================================== */
.faq {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.faq .section-head { margin-bottom: 2.5rem; }

.faq-list {
  border-top: 1px solid var(--rule);
}
.faq-item {
  border-bottom: 1px solid var(--rule);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 2.5rem 1.4rem 0;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  position: relative;
  transition: color 0.15s var(--ease);
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 0.25rem;
  top: 50%;
  width: 11px; height: 11px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: translateY(-75%) rotate(45deg);
  transition: transform 0.2s var(--ease), border-color 0.15s var(--ease);
}
.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
  border-color: var(--cyan-deep);
}
.faq-item summary:hover { color: var(--cyan-deep); }
.faq-item summary:hover::after { border-color: var(--cyan-deep); }
.faq-item summary:focus { outline: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 4px;
  border-radius: 4px;
}
.faq-answer {
  padding: 0 2.5rem 1.6rem 0;
  color: var(--ink-3);
}
.faq-answer p {
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--ink-3);
  margin: 0;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3.5rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  text-align: left;
  position: relative;
}
.stat-card::before {
  content: '';
  position: absolute;
  left: 1.4rem; top: 0;
  width: 28px; height: 3px;
  background: var(--cyan);
  border-radius: 0 0 3px 3px;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.stat-num span { color: var(--cyan-deep); font-size: 0.7em; margin-left: 0.05em; }
.stat-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.stat-sub { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }

/* Before / After */
.ba {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 3.5rem;
}
.ba-col {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.75rem;
}
.ba-before { background: #FEFCFB; border-color: #FCE7E7; }
.ba-after { background: var(--cyan-wash); border-color: #B7E7E9; }
.ba-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1rem;
}
.ba-before .ba-tag { color: #B91C1C; }
.ba-after .ba-tag { color: var(--cyan-dark); }
.ba-list { list-style: none; padding: 0; margin: 0; }
.ba-list li {
  font-size: 0.95rem;
  color: var(--ink-2);
  line-height: 1.5;
  padding: 0.65rem 0 0.65rem 1.6rem;
  border-bottom: 1px dashed var(--rule);
  position: relative;
}
.ba-list li:last-child { border-bottom: none; }
.ba-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05rem;
  width: 14px; height: 14px;
  border-radius: 50%;
}
.ba-before .ba-list li::before {
  background: #FEE4E2;
  border: 2px solid #F97066;
}
.ba-after .ba-list li::before {
  background: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
@media (max-width: 720px) { .ba { grid-template-columns: 1fr; } }

/* ===============================================================
   v3 SPACING + SECTION-LABEL OVERRIDES (load last)
=============================================================== */

/* Uniform vertical rhythm — every section matches the hero's 3rem top/bottom */
section { padding: 3rem 0; }
@media (max-width: 720px) { section { padding: 2rem 0; } }

/* Hero — bring text up so top distance matches bottom */
.hero-stacked { padding: 3rem 0 3rem; }
@media (max-width: 720px) { .hero-stacked { padding: 2rem 0 2.25rem; } }

/* Wider hero text container + slightly smaller h1 so the new longer headline fits in a clean 2-line layout */
.hero-stacked .hero-text { max-width: 56rem; }
.hero h1 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.03em;
}
/* Hide the manual <br> on small screens — let natural wrap take over */
@media (max-width: 720px) {
  .hero h1 br { display: none; }
}

/* Mobile-only waveforms flanking the hero Book a Demo button */
.btn-wave { display: none; }
@media (max-width: 720px) {
  .hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* Break out of parent padding so waves can extend toward the screen edges */
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0.5rem;
  }
  .btn-wave {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 28px;
    flex: 1 1 0;
    min-width: 0;
    gap: 2px;
  }
  .btn-wave .b {
    width: 2px;
    flex-shrink: 0;
    background: var(--cyan);
    border-radius: 1px;
    animation: wave 1.4s ease-in-out infinite;
    transform-origin: center;
    opacity: 0.95;
  }
  /* Left wave fades away from the button (most opaque near button on right) */
  .btn-wave-l {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 100%);
            mask-image: linear-gradient(to right, transparent 0%, #000 100%);
  }
  /* Right wave fades away from the button (most opaque near button on left) */
  .btn-wave-r {
    -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 100%);
            mask-image: linear-gradient(to right, #000 0%, transparent 100%);
  }
}

/* Hero — teal ombre on both sides framing the waveform, white center for the text */
.hero-stacked {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to right,
      rgba(35,203,209,0.22) 0%,
      rgba(35,203,209,0.10) 18%,
      transparent 30%,
      transparent 70%,
      rgba(35,203,209,0.10) 82%,
      rgba(35,203,209,0.22) 100%
    ),
    #fff;
}
.hero-stacked .hero-text { position: relative; z-index: 2; }

/* Hero waveform — sits BEHIND the text, centered vertically.
   Bars spread across full viewport with space-between, so the side bands have visible bars.
   Mask is anchored to the text container edges via calc(). */
.hero-wave {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  height: 140px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
  /* Solid bar zone outside the text, with a soft fade only at the very screen edges */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    #000 8%,
    #000 calc(50% - 28.5rem),
    transparent calc(50% - 28rem),
    transparent calc(50% + 28rem),
    #000 calc(50% + 28.5rem),
    #000 92%,
    transparent 100%);
          mask-image: linear-gradient(to right,
    transparent 0%,
    #000 8%,
    #000 calc(50% - 28.5rem),
    transparent calc(50% - 28rem),
    transparent calc(50% + 28rem),
    #000 calc(50% + 28.5rem),
    #000 92%,
    transparent 100%);
}
.hero-wave .bar {
  width: 4px;
  flex: 0 0 4px;
  background: var(--cyan);
  border-radius: 2px;
  opacity: 1;
  animation: wave 1.8s ease-in-out infinite;
  transform-origin: center;
}

@media (max-width: 960px) {
  .hero-wave {
    -webkit-mask-image: linear-gradient(to right,
      transparent 0%,
      #000 calc(50% - 22.5rem),
      transparent calc(50% - 22rem),
      transparent calc(50% + 22rem),
      #000 calc(50% + 22.5rem),
      transparent 100%);
            mask-image: linear-gradient(to right,
      transparent 0%,
      #000 calc(50% - 22.5rem),
      transparent calc(50% - 22rem),
      transparent calc(50% + 22rem),
      #000 calc(50% + 22.5rem),
      transparent 100%);
  }
}
@media (max-width: 720px) {
  .hero-wave { display: none; }
}

/* Highlighter-pen text accent — matches the hero h1 treatment exactly */
.text-hl {
  background: linear-gradient(transparent 58%, rgba(35,203,209,0.85) 58%);
  padding: 0 0.1em;
}

/* ===============================================================
   Output card score-tier color variants (green / amber / red)
=============================================================== */
:root {
  --red:        #EF4444;
  --red-deep:   #B91C1C;
  --red-soft:   #FEE4E2;
  --red-wash:   #FEF2F2;
}

/* Overall ring container tints by tier */
.overall.tier-green  { background: #F7FAF8; border-color: #E1ECE4; }
.overall.tier-amber  { background: var(--amber-wash); border-color: #FCD9A1; }
.overall.tier-red    { background: var(--red-wash); border-color: #FECACA; }
.overall.tier-green .overall-num,
.overall.tier-green .overall-label { color: var(--green); }
.overall.tier-amber .overall-num,
.overall.tier-amber .overall-label { color: var(--amber-deep); }
.overall.tier-red .overall-num,
.overall.tier-red .overall-label   { color: var(--red-deep); }

/* Score-breakdown cards by tier */
.bd-card.tier-green { border-color: #C7E9CF; background: var(--green-wash); }
.bd-card.tier-green .bd-score { color: var(--green); }
.bd-card.tier-amber { border-color: #FCD9A1; background: var(--amber-wash); }
.bd-card.tier-amber .bd-score { color: var(--amber-deep); }
.bd-card.tier-red   { border-color: #FECACA; background: var(--red-wash); }
.bd-card.tier-red .bd-score { color: var(--red-deep); }

/* Tab-strip score chips by tier */
.tab-score.tier-green { background: var(--green-wash); color: var(--green); }
.tab-score.tier-amber { background: var(--amber-wash); color: var(--amber-deep); }
.tab-score.tier-red   { background: var(--red-wash); color: var(--red-deep); }

/* Per-dimension panel ring badge by tier */
.dim-ring.tier-green { background: var(--green); box-shadow: 0 4px 12px rgba(34,197,94,0.25); }
.dim-ring.tier-amber { background: var(--amber); box-shadow: 0 4px 12px rgba(245,158,11,0.25); }
.dim-ring.tier-red   { background: var(--red);   box-shadow: 0 4px 12px rgba(239,68,68,0.25); }

/* ===============================================================
   Output carousel — side arrows + dots/label below
=============================================================== */
.output-stage {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
}
.output-nav-side {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 6px 16px rgba(10,15,20,0.08);
  transition: all 0.15s var(--ease);
}
.output-nav-side:hover {
  color: var(--ink);
  border-color: var(--ink);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 8px 20px rgba(10,15,20,0.12);
}
.output-nav-side:focus { outline: none; }
.output-nav-side:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
}
.output-nav-prev { left: -22px; }
.output-nav-next { right: -22px; }
@media (max-width: 1080px) {
  .output-nav-prev { left: 0.5rem; }
  .output-nav-next { right: 0.5rem; }
}

/* Dots + label sit below the card, centered */
.output-nav-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
}
.output-nav-label {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.output-nav-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.output-nav-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--rule);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s var(--ease);
}
.output-nav-dot:hover { border-color: var(--cyan-deep); }
.output-nav-dot.is-active {
  background: var(--cyan-deep);
  border-color: var(--cyan-deep);
  width: 22px;
  border-radius: 5px;
}
.output-nav-dot:focus { outline: none; }
.output-nav-dot:focus-visible {
  outline: 2px solid var(--cyan-deep);
  outline-offset: 3px;
}

/* ===============================================================
   v3 — WARMER LABEL TREATMENT (drop all-caps, drop mono on labels)
=============================================================== */
.eyebrow,
.section-head h2.section-name,
.exec-label,
.breakdown-label,
.kt-label,
.dim-section-label,
.dim-col-label,
.flow-node-tag,
.calc-tag,
.calc-col-label,
.ba-tag,
.placeholder-tag,
.placeholder-mini {
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}

/* The pulsing dot on .eyebrow stays — just sized softer + add a matching dot on the other side */
.eyebrow {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--cyan-deep);
}
.eyebrow::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(35,203,209,0.6);
  animation: pulse 2.4s ease-in-out infinite;
  margin-left: 0.55rem;
}

/* Section name (small label above the editorial h3 in section heads) */
.section-head h2.section-name {
  font-family: var(--sans);
  font-size: clamp(0.95rem, 1.4vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cyan-deep);
  line-height: 1.2;
  margin: 0 0 0.65rem;
}

/* Solo section name (FAQ + Contact — no editorial subhead, just one big header) */
.section-name-solo {
  font-family: var(--sans);
  font-size: clamp(2rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 0.5rem;
  text-align: center;
}

/* Inner card labels — small, not screaming */
.exec-label,
.breakdown-label,
.kt-label,
.dim-section-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
  letter-spacing: 0;
}

/* Strengths / Areas labels keep their cyan / amber accent color */
.dim-col-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
}

/* Flow chart "Category" tag */
.flow-node-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--amber-deep);
  letter-spacing: 0;
}

/* Calculator labels — already mostly title case in HTML */
.calc-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
}
.calc-col-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

/* Before/After tags (legacy — block isn't rendered in v3 but kept for safety) */
.ba-tag {
  font-size: 0.85rem;
  font-weight: 700;
}

/* ===============================================================
   ROI Calculator overhaul — soft, no caps, no mono on labels/values
=============================================================== */

/* Outer card */
.lr-chart.calculator {
  border: 1px solid var(--rule) !important;
  background: #fff !important;
  border-radius: 12px;
  overflow: hidden;
}

/* Header bar — drop dark background, center the tag */
.calc-head {
  padding: 1rem 1.25rem !important;
  background: #fff !important;
  border-bottom: 1px solid var(--rule);
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}
.calc-tag {
  font-family: var(--sans) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--cyan-deep) !important;
  display: inline-flex !important;
  align-items: center;
}
.calc-tag::before {
  width: 8px !important;
  height: 8px !important;
  margin-right: 0.55rem;
}
.calc-tag::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(35,203,209,0.6);
  animation: pulse 2.4s ease-in-out infinite;
  margin-left: 0.55rem;
}

/* 3-column layout — give each column the same internal structure so they line up */
.calc-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  align-items: stretch;
  gap: 0;
}
.calc-col {
  padding: 1.25rem 1.1rem !important;
  border-right: 1px solid var(--rule) !important;
  background: #fff !important;
  display: flex;
  flex-direction: column;
}
.calc-col:last-child { border-right: none !important; }
.calc-col-current { background: var(--bg-soft) !important; }
.calc-col-gains { background: #fff !important; }

/* Column labels — soft, one line, aligned across all 3 cols */
.calc-col-label {
  font-family: var(--sans) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--muted) !important;
  margin-bottom: 0.85rem !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-col-gains .calc-col-label { color: var(--cyan-dark) !important; }

/* Inputs row */
.calc-inputs-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  flex: 1;
}
.calc-field { display: flex; flex-direction: column; gap: 0.4rem; }
.calc-field label {
  font-family: var(--sans) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--muted) !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.calc-field input {
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: var(--ink) !important;
  text-align: center !important;
  padding: 0.6rem 0.5rem !important;
  background: #fff !important;
  border: 1px solid var(--rule) !important;
  border-radius: 8px !important;
  letter-spacing: 0 !important;
}
.calc-field input:focus {
  border-color: var(--cyan-deep) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(35,203,209,0.12) !important;
}

/* Projections (middle col) — label above each value box, matching inputs layout */
.calc-current-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  align-items: end;
  flex: 1;
}
.calc-stat {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
}
.calc-stat .cs-label {
  font-family: var(--sans) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
  display: block;
}
.calc-stat .cs-box {
  font-family: var(--sans);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.6rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.calc-stat .cs-value {
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-align: center;
}

/* Gains (right col) — label above each value box, matching inputs layout */
.calc-gains-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  align-items: end;
  flex: 1;
}
.calc-gain {
  display: flex !important;
  flex-direction: column;
  gap: 0.4rem;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  text-align: left !important;
}
.cg-delta {
  font-family: var(--sans) !important;
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--muted) !important;
  margin-bottom: 0 !important;
  display: block;
}
.calc-gain .cg-box {
  font-family: var(--sans);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.6rem 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}
.calc-gain.featured .cg-delta { color: var(--cyan-dark) !important; font-weight: 600 !important; }
.calc-gain.featured .cg-box {
  background: var(--cyan-wash);
  border-color: #B7E7E9;
}
.cg-value {
  font-family: var(--sans) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--ink) !important;
  letter-spacing: 0 !important;
  line-height: 1.1 !important;
  text-align: center;
}
.calc-gain.featured .cg-value { color: var(--cyan-dark) !important; }

/* Make sure the input boxes share the same min-height for visual parity */
.calc-field input {
  min-height: 42px;
}

/* Footnote */
.calc-foot {
  font-family: var(--sans) !important;
  color: var(--muted) !important;
  font-size: 0.78rem !important;
  text-align: center;
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-soft);
}

/* Calculator phone — stack the 3 columns vertically; keep inner rows compact */
@media (max-width: 720px) {
  .calc-bar {
    grid-template-columns: 1fr !important;
  }
  .calc-col {
    border-right: none !important;
    border-bottom: 1px solid var(--rule);
    padding: 0.95rem 0.95rem !important;
  }
  .calc-col:last-child { border-bottom: none; }
  .calc-col-current { background: var(--bg-soft) !important; }

  /* Inputs: 3 fields stay side-by-side but tighter */
  .calc-inputs-row { gap: 0.4rem; }
  .calc-field input { font-size: 0.92rem !important; padding: 0.5rem 0.4rem !important; min-height: 40px; }
  .calc-field label { font-size: 0.66rem !important; }

  /* Projections: 2 stat boxes stay side-by-side */
  .calc-current-row { gap: 0.4rem; }
  .calc-stat .cs-box { min-height: 40px; padding: 0.5rem 0.4rem; }
  .calc-stat .cs-value { font-size: 0.92rem !important; }
  .calc-stat .cs-label { font-size: 0.66rem !important; }

  /* Gains: 3 boxes stay side-by-side */
  .calc-gains-row { gap: 0.4rem; }
  .calc-gain .cg-box { min-height: 40px; padding: 0.5rem 0.3rem; }
  .calc-gain .cg-value { font-size: 0.85rem !important; }
  .calc-gain .cg-delta { font-size: 0.66rem !important; }

  .calc-col-label { font-size: 0.72rem !important; margin-bottom: 0.55rem !important; }

  .calc-head { padding: 0.85rem 0.95rem !important; }
  .calc-foot { padding: 0.7rem 0.95rem; font-size: 0.72rem !important; }
}

/* ===============================================================
   FAQ ↔ Contact visual break
=============================================================== */
.faq {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.cta {
  background:
    linear-gradient(to right,
      rgba(35,203,209,0.22) 0%,
      rgba(35,203,209,0.10) 18%,
      transparent 30%,
      transparent 70%,
      rgba(35,203,209,0.10) 82%,
      rgba(35,203,209,0.22) 100%
    ),
    #fff;
  border-top: 1px solid var(--cyan);
  position: relative;
  overflow: hidden;
}
.cta .wrap-narrow { position: relative; z-index: 2; }
.hero-wave-cta { /* same waveform component as hero, just lives inside .cta */ }

/* ===============================================================
   Contact form (Formspree-ready, action="#" placeholder)
=============================================================== */
.contact-form {
  margin: 1.5rem auto 0;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem 1.4rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.cf-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}
.cf-row-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  .cf-row-2 { grid-template-columns: 1fr; }
}
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cf-field label {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0;
}
.cf-req {
  color: var(--cyan-deep);
  font-weight: 700;
  margin-left: 0.15rem;
}
.cf-opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.78rem;
  margin-left: 0.25rem;
}
.cf-field input,
.cf-field textarea {
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.55rem 0.75rem;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 7px;
  outline: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  letter-spacing: 0;
  line-height: 1.4;
}
.cf-field textarea {
  resize: vertical;
  min-height: 70px;
  font-family: var(--sans);
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color: var(--cyan-deep);
  box-shadow: 0 0 0 3px rgba(35,203,209,0.12);
}
.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: var(--muted-2);
}
.cf-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.3rem;
}
@media (max-width: 600px) {
  .cf-actions { flex-direction: column-reverse; align-items: stretch; }
  .cf-actions .btn { width: 100%; justify-content: center; }
}

/* Tighter gap between section-head and the content below */
.section-head { margin-bottom: 2.5rem; }
@media (max-width: 720px) { .section-head { margin-bottom: 2rem; } }

/* FAQ keeps the eyebrow + h2 pattern; bump it to feel substantial */
.faq .section-head .eyebrow {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
}
.faq .section-head .eyebrow::before {
  width: 8px;
  height: 8px;
}
@media (max-width: 560px) {
  .faq .section-head .eyebrow { font-size: 0.88rem; }
}

/* Section-head hierarchy: h2 (small label-style section name) + h3 (big editorial headline) */
.section-head h2.section-name {
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--cyan-deep);
  line-height: 1.2;
  margin: 0 0 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: none;
  padding: 0;
  border-radius: 0;
}
.section-head h2.section-name::before,
.section-head h2.section-name::after {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(35,203,209,0.6);
  animation: pulse 2.4s ease-in-out infinite;
}
.section-head h3.section-sub {
  font-size: clamp(1.85rem, 3.6vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  margin: 0 0 1.1rem;
}
.section-head .lead { color: var(--ink-3); }

/* Hero eyebrow — also bumped, since hero uses .hero-eyebrow not .section-head */
.hero-eyebrow {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.22em !important;
  gap: 0.7rem;
}
.hero-eyebrow::before {
  width: 8px !important;
  height: 8px !important;
}

/* ---------- Trust callout (HIPAA / PHI) — matches .custom-layer styling ---------- */
.trust-callout {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1.4rem;
  background: linear-gradient(135deg, var(--cyan-wash) 0%, #fff 70%);
  border: 1px solid #C5EAEC;
  border-radius: 14px;
  padding: 1.6rem 1.9rem;
  margin: 2.25rem 0 0;
  position: relative;
  overflow: hidden;
}
.trust-callout::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--cyan);
}
.tc-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #C5EAEC;
  color: var(--cyan-deep);
}
.tc-content { min-width: 0; }
.tc-content h3 {
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-weight: 700;
}
.tc-content p {
  font-size: 0.94rem;
  color: var(--ink-3);
  line-height: 1.6;
  margin: 0;
}
@media (max-width: 820px) {
  .trust-callout {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.4rem 1.5rem;
  }
  .tc-content h3 { font-size: 1.2rem; }
}
