/* Per-section styles below the hero, in document order. */

/* ---- 2. Proof strip ---------------------------------------------------- */

.proof {
  margin-top: var(--sp-6);
  padding-block: 56px;
  background: var(--bone-2);
}

.proof-head {
  margin-bottom: var(--sp-6);
  text-align: center;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-7);
  padding-top: var(--sp-7);
  border-top: 1px solid var(--line);
  text-align: center;
}

.proof-stats .stat {
  align-items: center;
}

/* ---- 3. Services ------------------------------------------------------- */

.svc-card {
  position: relative;
  min-height: 401px;
  overflow: hidden;
}

/* Gradient hairline across the top, hidden until the card is hovered. */
.svc-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.svc-card:hover::before {
  transform: scaleX(1);
}

/* ---- 4. Wedge (inverted) ----------------------------------------------- */

.wedge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* Before/after pair showing the gap the service closes. */
.gap-viz {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--line-ink);
  border-radius: var(--r-lg);
  background: var(--ink-3);
}

.gap-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.gap-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--on-dark-mut);
}

.gap-row-head b {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--on-dark);
  letter-spacing: -0.01em;
}

.gap-bar {
  height: 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gap-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.28);
  transition: width 0.7s var(--ease);
}

.gap-row--good .gap-bar > span {
  background: var(--accent-grad);
}

.gap-note {
  margin-top: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-ink);
  font-size: var(--fs-sm);
  color: var(--on-dark-mut);
}

/* ---- 5. Score calculator ----------------------------------------------- */

.dds-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.dds-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
}

.dds-q {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.dds-q > legend,
.dds-q > .q-title {
  padding: 0;
  font-size: var(--fs-ui);
  font-weight: 700;
  color: var(--ink);
}

.dds-q fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

/* One row of four. Answers are written short enough to fit, which keeps the
   whole tool to five compact blocks instead of fifteen stacked rows. */
.dds-opts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.dds-opts .opt {
  gap: var(--sp-2);
  padding: 10px 12px;
  font-size: var(--fs-xs);
  line-height: 1.3;
}

.dds-opts .opt input {
  width: 15px;
  height: 15px;
}

@media (max-width: 1100px) {
  .dds-opts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .dds-opts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Result panel sticks alongside the form on tall viewports. */
.dds-result {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--ink-2);
  color: var(--on-dark);
}

.dds-result h3 {
  color: var(--on-dark);
}

.dds-score {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.dds-score b {
  font-size: 56px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--on-dark);
}

.dds-score span {
  font-size: var(--fs-h4);
  color: var(--on-dark-mut);
}

.dds-result .meter {
  background: rgba(255, 255, 255, 0.12);
}

.dds-verdict {
  font-size: var(--fs-ui);
  color: var(--on-dark-mut);
}

.dds-breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-ink);
}

.dds-breakdown li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--on-dark-mut);
}

.dds-breakdown b {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--on-dark);
}

/* ---- 6. Case study ----------------------------------------------------- */

.case-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.case-media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bone-2);
}

.case-logo {
  width: 125px;
  height: auto;
  margin-bottom: var(--sp-5);
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
}

/* ---- 7. Testimonial wall ----------------------------------------------- */

.praise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: start;
}

/* Offset middle column so the wall reads as masonry, not a strict grid. */
.praise-grid > .quote:nth-child(3n + 2) {
  margin-top: var(--sp-6);
}

/* ---- 8. Value props ---------------------------------------------------- */

.value-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 2px solid var(--ink);
}

.value-item .num {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-lab);
  color: var(--coral-ink);
}

/* ---- 9. Positioning ---------------------------------------------------- */

.who {
  background: var(--bone-2);
}

.who-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.who-statement {
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---- 10. Team ---------------------------------------------------------- */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.team-card {
  display: flex;
  flex-direction: column;
}

.team-photo {
  aspect-ratio: 267 / 320;
  border-radius: var(--r-lg);
  background: var(--bone-2);
  overflow: hidden;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.team-card h3 {
  margin-top: var(--sp-4);
  font-size: var(--fs-h4);
}

.team-role {
  margin-top: 2px;
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

.team-card p {
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
}

/* ---- 11. Engagement models --------------------------------------------- */

.engage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
}

.engage-card[data-featured] {
  border-color: var(--coral);
  box-shadow: var(--shadow-warm);
}

.engage-card .pill {
  align-self: flex-start;
  margin-bottom: var(--sp-4);
}

.engage-card .btn {
  margin-top: auto;
  padding-top: 12px;
}

/* ---- 12. Final CTA ----------------------------------------------------- */

.final-panel {
  position: relative;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, #000 0%, #1a1a1a 100%);
  color: var(--on-dark);
  overflow: hidden;
  text-align: center;
}

/* Warm bloom in the corner, same treatment as the hero. */
.final-panel::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 106, 76, 0.28), transparent 68%);
  pointer-events: none;
}

.final-panel > * {
  position: relative;
}

/* The panel isn't .band--ink, so the ghost button needs its own dark-bg colors
   here too — otherwise it renders with light-mode ink text on a light border,
   which nearly disappears against this panel's dark background. */
.final-panel .btn-ghost {
  border-color: var(--line-ink);
  color: var(--on-dark);
}

.final-panel .btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.final-panel h2 {
  max-width: 720px;
  margin-inline: auto;
  color: var(--on-dark);
}

.final-panel .lead {
  max-width: 560px;
  margin: var(--sp-4) auto 0;
  color: var(--on-dark-mut);
}

.final-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-6);
}

.final-note {
  margin-top: var(--sp-5);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--on-dark-mut);
}

/* ---- 13. Footer -------------------------------------------------------- */

.ft {
  padding: 72px 0 36px;
  background: linear-gradient(160deg, #000 0%, #1a1a1a 100%);
  color: var(--on-dark);
  --line: var(--line-ink);
}

.ft-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid var(--line-ink);
}

.ft-brand img {
  width: 136px;
  height: auto;
}

.ft-brand p {
  max-width: 300px;
  margin-top: var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--on-dark-mut);
}

.ft-col h4 {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--on-dark-mut);
}

.ft-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
}

.ft-col a {
  font-size: var(--fs-ui);
  color: var(--on-dark);
  transition: color var(--t-fast) var(--ease);
}

.ft-col a:hover {
  color: var(--amber);
}

.ft-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--on-dark-mut);
}

.ft-social {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.ft-social a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-ink);
  border-radius: 50%;
  color: var(--on-dark);
  transition:
    border-color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}

.ft-social a:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ft-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .wedge-grid,
  .dds-grid,
  .case-grid,
  .who-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dds-result {
    position: static;
  }

  .praise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .praise-grid > .quote:nth-child(3n + 2) {
    margin-top: 0;
  }
}

@media (max-width: 620px) {
  .praise-grid,
  .team-grid,
  .ft-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .proof-stats,
  .case-stats {
    grid-template-columns: minmax(0, 1fr);
    text-align: left;
  }

  .proof-stats .stat {
    align-items: flex-start;
  }

  .dds-score b {
    font-size: 46px;
  }

  .final-actions .btn {
    width: 100%;
  }
}

/* ---- Score tool: question notes and result detail ----------------------- */

.dds-note {
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--muted);
}

.dds-label {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.1);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--on-dark);
  white-space: nowrap;
}

.dds-score {
  width: 100%;
}

.dds-next {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-ink);
}

.dds-next-label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--on-dark-mut);
}

.dds-next .qlink {
  color: var(--amber);
  font-size: var(--fs-ui);
  line-height: 1.4;
  text-align: left;
  display: block;
}

.dds-next .qlink:hover {
  color: var(--on-dark);
}

/* ---- ROAS calculator ----------------------------------------------------- */

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-7);
  align-items: start;
}

.calc-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
}

.calc-form h3 {
  font-size: var(--fs-h4);
}

.field-affix {
  position: relative;
  display: flex;
  align-items: center;
}

.field-affix .control {
  padding-left: 32px;
}

.field-affix[data-affix="percent"] .control {
  padding-left: 15px;
  padding-right: 34px;
}

.field-affix::before {
  content: attr(data-symbol);
  position: absolute;
  left: 15px;
  font-family: var(--mono);
  font-size: var(--fs-ui);
  color: var(--muted);
  pointer-events: none;
}

.field-affix[data-affix="percent"]::before {
  left: auto;
  right: 15px;
}

.field-hint {
  font-size: var(--fs-xs);
  color: var(--muted-2);
}

.calc-result {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-6);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--on-dark);
}

.calc-result h3 {
  font-size: var(--fs-h4);
  color: var(--on-dark);
}

.calc-headline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.calc-headline .stat {
  padding: var(--sp-4);
  border: 1px solid var(--line-ink);
  border-radius: var(--r-md);
  background: var(--ink-3);
}

.calc-headline .stat-label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--on-dark-mut);
}

.calc-headline .stat-value {
  margin-top: var(--sp-1);
  color: var(--on-dark);
}

.calc-headline .stat-value b {
  color: var(--amber);
}

.calc-headline .stat-note {
  margin-top: var(--sp-1);
  font-size: var(--fs-xs);
  color: var(--on-dark-mut);
}

.calc-sub {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line-ink);
}

.calc-sub .stat-label {
  font-size: var(--fs-2xs);
  color: var(--on-dark-mut);
}

.calc-sub .stat-value {
  margin-top: 4px;
  font-size: 1.1rem;
  color: var(--on-dark);
}

@media (max-width: 900px) {
  .calc-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .calc-sub {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2);
  }
}

@media (max-width: 480px) {
  .calc-headline {
    grid-template-columns: 1fr;
  }

  .calc-sub {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Problem diagnostic list ---------------------------------------------
   Replaces a plain 3-card grid with an editorial stacked ledger: a ghost
   index number, the symptom copy, and a symptom-vs-reality stat pair that
   makes the gap itself the visual. Hover slides a tint in from the left. */

/* A step darker than the standard alt-band off-white, just for this
   section, so it separates cleanly from the sections above and below. */
/* Dark, same ink family as the footer and final CTA, with a subtle
   directional gradient instead of a flat fill. */
/* Matches the logo mark's black, same as the footer and final CTA. */
#problems {
  background: linear-gradient(160deg, #000 0%, #1a1a1a 100%);
}

.diag-list {
  margin-top: var(--sp-7);
  border-top: 1px solid var(--line);
}

.diag-row {
  position: relative;
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) minmax(0, 280px);
  align-items: center;
  gap: var(--sp-6);
  padding-block: var(--sp-6);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.diag-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(-100%);
  transition: transform var(--t-med) var(--ease);
  pointer-events: none;
}

.diag-row:hover::before {
  transform: translateX(0);
}

.diag-num {
  position: relative;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32);
  transition: color var(--t-med) var(--ease);
}

.diag-row:hover .diag-num {
  color: var(--amber);
  -webkit-text-stroke: 1px transparent;
}

.diag-body {
  position: relative;
}

.diag-body h3 {
  font-size: var(--fs-h4);
}

.diag-body p {
  margin-top: var(--sp-2);
  max-width: 52ch;
  color: var(--muted);
}

.diag-split {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  justify-self: end;
}

.diag-split-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bone-card);
  min-width: 108px;
}

.diag-split-item--bad {
  border-color: rgba(236, 106, 76, 0.35);
  background: rgba(236, 106, 76, 0.08);
}

.diag-arrow {
  flex: none;
  color: var(--muted-2);
}

.diag-label {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--muted-2);
}

.diag-value {
  font-family: var(--mono);
  font-size: var(--fs-ui);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.diag-split-item--bad .diag-value {
  color: var(--coral-deep);
}

@media (max-width: 900px) {
  .diag-row {
    grid-template-columns: 56px minmax(0, 1fr);
    grid-template-areas:
      "num body"
      "split split";
    row-gap: var(--sp-4);
  }

  .diag-num {
    grid-area: num;
    font-size: 28px;
  }

  .diag-body {
    grid-area: body;
  }

  .diag-split {
    grid-area: split;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .diag-split {
    flex-wrap: wrap;
  }
}

/* ---- Journey / flow pathway ----------------------------------------------
   Two rows read like an ox-plough (boustrophedon): row one runs left to
   right, a connector drops down at the right edge, and row two continues
   right to left. Nodes prone to the most loss carry a risk badge. Wraps to
   a single vertical chain below the desktop breakpoint. */

.flow-path {
  margin-top: var(--sp-7);
}

.flow-row {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Dashed line running behind the row, tying the nodes together as one
   path rather than a loose row of boxes. */
.flow-row::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%;
  right: 5%;
  height: 0;
  border-top: 2px dashed rgba(21, 32, 59, 0.14);
  z-index: 0;
}

.flow-row > * {
  position: relative;
  z-index: 1;
}

/* DOM order stays in step order (Checkout, Conversion, Reporting); reversing
   the row visually is what makes it read right to left, continuing from
   where row one ended. */
.flow-row--reverse {
  flex-direction: row-reverse;
}

.flow-node {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 250px;
  padding: var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bone-card);
  text-align: center;
  overflow: hidden;
  transition:
    transform var(--t-med) var(--ease),
    box-shadow var(--t-med) var(--ease),
    border-color var(--t-med) var(--ease);
}

.flow-node::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med) var(--ease);
}

.flow-node:hover {
  transform: translateY(-3px);
  border-color: rgba(21, 32, 59, 0.16);
  box-shadow: var(--shadow-md);
}

.flow-node:hover::before {
  transform: scaleX(1);
}

.flow-node:hover .flow-node-icon {
  transform: scale(1.08) rotate(-4deg);
}

.flow-node--risk {
  border-color: rgba(236, 106, 76, 0.4);
  box-shadow: 0 0 0 3px rgba(236, 106, 76, 0.08);
}

.flow-node--risk:hover {
  border-color: rgba(236, 106, 76, 0.55);
  box-shadow: 0 0 0 3px rgba(236, 106, 76, 0.1), var(--shadow-md);
}

/* Green on every stage that isn't flagged, so the two risk nodes read as
   the exception against a normally-healthy path. */
.flow-node--ok {
  border-color: rgba(31, 138, 91, 0.35);
  box-shadow: 0 0 0 3px rgba(31, 138, 91, 0.07);
}

.flow-node--ok:hover {
  border-color: rgba(31, 138, 91, 0.5);
  box-shadow: 0 0 0 3px rgba(31, 138, 91, 0.09), var(--shadow-md);
}

.flow-risk-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(236, 106, 76, 0.12);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--coral-deep);
}

.flow-risk-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--coral);
}

.flow-node-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-inline: auto;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  transition: transform var(--t-med) var(--ease);
}

.flow-node h3 {
  font-size: var(--fs-ui);
}

.flow-node p {
  font-size: var(--fs-xs);
  color: var(--muted);
}

.flow-connector {
  flex: 0 1 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 64px;
  max-width: 90px;
  padding-inline: var(--sp-3);
}

.flow-connector svg {
  flex: none;
  color: var(--coral-deep);
}

.flow-fix {
  font-size: var(--fs-xs);
  line-height: 1.4;
  text-align: center;
  color: var(--muted);
}

.flow-fix b {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: var(--ls-lab);
  text-transform: uppercase;
  color: var(--coral-deep);
}

/* Vertical drop between row one and row two, right-aligned so the chain
   reads as continuous rather than two unrelated rows. */
.flow-row-break {
  display: flex;
  justify-content: flex-end;
  padding-right: clamp(20px, 8%, 68px);
}

.flow-row-break-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 160px;
  padding-block: var(--sp-3);
  color: var(--coral-deep);
}

.flow-row-break-inner svg {
  flex: none;
}

.flow-row-break-inner .flow-fix {
  max-width: 140px;
}

@media (max-width: 900px) {
  .flow-row,
  .flow-row--reverse {
    flex-direction: column;
  }

  .flow-connector {
    min-width: 0;
    max-width: none;
    flex-direction: row;
    padding-block: var(--sp-3);
  }

  .flow-connector svg {
    transform: rotate(90deg);
  }

  .flow-row-break {
    display: none;
  }
}
