/* ==========================================================================
   Value.IO — vio-refine.css
   Pass 10 composition layer (2026-11-23). PRESENTATION ONLY: no copy edits.
   Loaded after vio-elevate.css on every page. Remove this <link> (and
   js/vio-refine.js) to return to the Pass 9 look.
   Direction: the same "signal on paper" system, now with an editorial left
   edge. Narrative sections read left to right (heading and copy on the left,
   evidence on the right); only statement moments (pricing strip, sandbox
   stats, closing card) stay centred. One numeral style and one heading rule
   on every page.
   Every colour, radius and duration comes from css/vio-tokens.css.
   This file sets no text-transform anywhere.
   ========================================================================== */

:root {
  /* The red rule, anchored to the left edge for left-aligned headings. */
  --vx-rule-left: linear-gradient(90deg, var(--vio-red) 0%, transparent 100%);
  --vx-split-gap: clamp(48px, 6.6vw, 96px);
}

/* ---------- 1. Heading rule follows the heading ---------- */
/* Subpages wrap a left-aligned heading in .before-center-line, which centred
   the rule under a heading that starts at the left edge. */
/* Closing cards are centred without the .text-center class, so they are
   excluded here and keep their own centred rule. */
.sec-head:not(.text-center):not(.get-started-with-us-inner .sec-head) h2::before {
  left: 0 !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  background: var(--vx-rule-left) !important;
}
/* The template re-centred .before-left-line headings on phones. */
.sec-head.before-left-line { text-align: left !important; }

/* Subpage body columns were centred under a left-aligned heading, so the
   copy started 85px to the right of its own heading. */
@media (min-width: 992px) {
  .before-center-line:has(> .sec-head:not(.text-center)) ~ .row > .col-lg-10.mx-auto {
    margin-left: 0 !important;
    max-width: 880px;
  }
}

/* ---------- 2. Narrative sections take the left edge (all widths) ---------- */
.problem-section .sec-head,
.our-solution-wraper .sec-head,
.risk-mitigation-wraper .sec-head,
.five-reasons .sec-head,
.key-features .sec-head,
.dev-quickstart .sec-head,
.api-surface-section .sec-head,
.dev-examples .sec-head {
  text-align: left !important;
}
.problem-section .sec-head h2 { text-align: left !important; }
.problem-section .before-center-line h2::before,
.our-solution-wraper .before-center-line h2::before,
.risk-mitigation-wraper .before-center-line h2::before,
.five-reasons .before-center-line h2::before,
.key-features .before-center-line h2::before,
.dev-quickstart .before-center-line h2::before,
.api-surface-section .before-center-line h2::before,
.dev-examples .before-center-line h2::before {
  left: 0 !important;
  right: auto !important;
  margin: 0 !important;
  transform: none !important;
  background: var(--vx-rule-left) !important;
}
.problem-section .problem-body,
.our-solution-wraper .our-solution-inner-wpr,
.our-solution-wraper .our-solution-inner-wpr > p,
.risk-mitigation-wraper .risk-mitigation-contant > p:first-child,
.api-surface-section .api-surface-subhead,
.dev-examples .dev-examples-subhead {
  text-align: left !important;
  margin-left: 0 !important;
}
.api-surface-section .api-surface-subhead,
.dev-examples .dev-examples-subhead { max-width: 720px; }
.risk-mitigation-wraper .risk-mitigation-contant { margin-left: 0 !important; }
/* The PCI line and the network link sit under the diagram as its caption, in
   the same order as the markup, so sighted and screen-reader order agree. */
.risk-mitigation-wraper .risk-mitigation-contant > p[style],
.risk-mitigation-wraper .network-view-link { text-align: center !important; }

/* ---------- 3. Home: editorial split sections (desktop) ---------- */
@media (min-width: 992px) {
  /* 3a. Problem band: the claim on the left, the argument on the right. */
  .problem-section > .container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    column-gap: var(--vx-split-gap);
    align-items: start;
  }
  .problem-section .sec-head { margin: 0 !important; }
  .problem-section .sec-head h2 {
    font-size: clamp(2.25rem, 3.6vw, 3rem) !important;
    line-height: 1.08 !important;
    margin-bottom: 0 !important;
  }
  .problem-section .problem-body {
    margin: var(--vio-s-2) 0 0 !important;
    max-width: none !important;
  }

  /* 3b. What Value.IO Does: definition on the left, the four facts on the right. */
  .our-solution-wraper > .container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    grid-template-rows: auto 1fr;
    column-gap: var(--vx-split-gap);
    align-items: start;
  }
  .our-solution-wraper .our-solution-inner-wpr { display: contents; }
  .our-solution-wraper .sec-head {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 var(--vio-s-5) !important;
  }
  .our-solution-wraper .before-center-line h2 { margin-bottom: 0 !important; }
  .our-solution-wraper .our-solution-inner-wpr > p {
    grid-column: 1;
    grid-row: 2;
    max-width: none !important;
    margin: 0 !important;
  }
  /* The four facts become one joined spec list. */
  .our-solution-wraper .bullet-list {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    margin: 0 !important;
    text-align: left;
    border: 1px solid var(--vio-hairline);
    border-radius: var(--vio-r-xl);
    overflow: hidden;
    background: var(--vio-surface);
    box-shadow: var(--vio-shadow-3);
  }
  .our-solution-wraper .bullet-list li,
  .our-solution-wraper .bullet-list li:last-child {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: var(--vio-s-5) var(--vio-s-6) var(--vio-s-5) var(--vio-s-8) !important;
  }
  .our-solution-wraper .bullet-list li + li,
  .our-solution-wraper .bullet-list li + li:last-child { border-top: 1px solid var(--vio-hairline) !important; }
  .our-solution-wraper .bullet-list li:hover {
    background: var(--vio-paper-raised);
    box-shadow: none !important;
  }
  .our-solution-wraper .bullet-list li::before { left: var(--vio-s-5) !important; top: var(--vio-s-5) !important; }

  /* 3c. Network: the statement on the left; the network and its caption on
     the right. Columns read in markup order (heading, intro, diagram, PCI
     line, link). */
  .risk-mitigation-wraper > .container {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: 1fr auto auto 1fr auto auto;
    column-gap: var(--vio-s-8);
  }
  .risk-mitigation-wraper .risk-mitigation-contant { display: contents; }
  .risk-mitigation-wraper .sec-head {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 var(--vio-s-5) !important;
    max-width: none !important;
  }
  .risk-mitigation-wraper .before-center-line h2 { margin-bottom: 0 !important; }
  .risk-mitigation-wraper .risk-mitigation-contant > p:first-child {
    grid-column: 1;
    grid-row: 3;
    margin: 0 !important;
    max-width: none !important;
  }
  .risk-mitigation-wraper .network-viz-wrap {
    grid-column: 2;
    grid-row: 1 / span 4;
    width: 100%;
    max-width: none !important;
    margin: 0 !important;
  }
  .risk-mitigation-wraper .risk-mitigation-contant > p[style] {
    grid-column: 2;
    grid-row: 5;
    margin: 0 0 var(--vio-s-2) !important;
  }
  .risk-mitigation-wraper .network-view-link {
    grid-column: 2;
    grid-row: 6;
    margin: 0 !important;
  }
}
@media (min-width: 768px) {
  .five-reasons .sec-head,
  .key-features .sec-head { margin-bottom: var(--vio-s-7) !important; }
}

/* ---------- 4. Home: the network diagram sits open on the page ---------- */
/* No frame (Mark, 2026-11-23: "I don't like the box"). The diagram floats on
   the section's paper with a glow behind the hub and a grid that fades out
   well inside the edge, so nothing draws a rectangle around it. */
.network-viz-wrap {
  position: relative;
  isolation: isolate;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: radial-gradient(closest-side, var(--vio-tint-10) 0%, transparent 62%);
  box-shadow: none;
  overflow: visible;
}
.network-viz-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--vio-hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--vio-hairline) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center center;
  -webkit-mask-image: radial-gradient(closest-side, #000 0%, transparent 88%);
  mask-image: radial-gradient(closest-side, #000 0%, transparent 88%);
}
.network-viz-wrap .inner-node {
  fill: var(--vio-surface) !important;
  stroke: var(--vio-tint-18) !important;
}
/* Outer ring (Mark, 2026-11-23: "the text in the outside circles is too
   small"). vio-refine.js enlarges the rings and their type; here they get a
   white face and body-ink labels so the words carry, with a neutral ring that
   keeps them a tier below the processors' red one. */
.network-viz-wrap .outer-node {
  fill: var(--vio-surface) !important;
  /* The hairline token alone is too faint for a ring on paper, so the ring
     is a mix of two tokens; the first line is the fallback for browsers
     without color-mix(). */
  stroke: var(--vio-hairline) !important;
  stroke: color-mix(in srgb, var(--vio-mute) 32%, var(--vio-surface)) !important;
  stroke-width: 1.25 !important;
}
.network-viz-wrap #outerNodes .node-label { fill: var(--vio-body) !important; }
.network-viz-wrap #innerNodes .node-label { fill: var(--vio-ink) !important; }
.network-viz-wrap .spoke { stroke: var(--vio-red) !important; stroke-opacity: 0.32; stroke-width: 1.25 !important; }
.network-viz-wrap .node-label { font-family: var(--vio-font-display) !important; font-weight: 500 !important; }

/* ---------- 5. One numeral style on every page ---------- */
/* Why, Developers and Agentic each drew their list numbers differently
   (52px red, 52px red, 64px at 15% opacity). They now share one mono index
   in brand red, the larger sibling of the numerals on the home page's six
   reasons. */
.difference-number,
.quickstart-num,
.agentic-pillar-num {
  font-family: var(--vio-font-mono) !important;
  font-size: var(--vio-text-xl) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
  color: var(--vio-red) !important;
  opacity: 1 !important;
}
@media (min-width: 768px) {
  .difference-item, .agentic-pillar { grid-template-columns: var(--vio-s-7) minmax(0, 1fr) !important; }
}
.quickstart-num {
  display: flex;
  align-items: center;
  gap: var(--vio-s-3);
  margin-bottom: var(--vio-s-5) !important;
}
.quickstart-num::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--vio-hairline);
}

/* ---------- 6. Navigation: show where you are ---------- */
@media (min-width: 1025px) {
  /* The template sets width: 0 on this bar, so neither the hover underline
     from Pass 8 nor a current-page underline could paint. */
  .main-head .navbar-nav > li > a::after { width: auto !important; }
  .main-head .navbar-nav > li > a[aria-current="page"] { color: var(--vio-ink) !important; }
  .main-head .navbar-nav > li > a[aria-current="page"]::after { transform: scaleX(1) !important; }
}

/* ---------- 7. Small type floor ---------- */
/* Pricing table notes and callouts were 13px; body copy never drops under 15. */
.addon-desc, .callout-box > p, .reveal > p.footnote { font-size: var(--vio-text-base) !important; line-height: 1.65 !important; }
.addon-desc { max-width: 56ch; }
.addon-desc, .reveal > p.footnote { color: var(--vio-body) !important; }

/* ---------- 8. Thank-you page: the same button as everywhere else ---------- */
.home-link {
  border-radius: var(--vio-r-pill) !important;
  padding: var(--vio-s-3) var(--vio-s-5) !important;
  background: var(--vio-red) !important;
  font-family: var(--vio-font-body) !important;
  font-size: var(--vio-text-base) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  transition: background-color var(--vio-dur-2) var(--vio-ease) !important;
}
.home-link:hover { background: var(--vio-red-dark) !important; transform: none !important; }

/* ---------- 9. Motion manners ---------- */
@media (prefers-reduced-motion: reduce) {
  .home-link { transition: none !important; }
  /* Three animations from the original site ran regardless of the visitor's
     setting: the hero gradient drift, the bird float and the network pulses. */
  .banner-main-wraper,
  .banner-main-wraper::before,
  .banner-main-wraper::after,
  .banner-right-bird-img,
  .network-viz-wrap .pulse-dot { animation: none !important; }
}

/* ---------- 10. Developers: API cards share the left edge ---------- */
.api-surface-section .api-card { text-align: left !important; align-items: flex-start !important; }
.api-surface-section .api-card h3 { text-align: left !important; }
.api-surface-section .api-card-icon { margin-left: 0 !important; margin-right: 0 !important; }

/* ---------- 11. Keyboard focus ---------- */
/* style.css sets `a { outline: none !important }`, which beat the focus ring
   added in Pass 8. Two tones so the ring shows on paper, ink and red. */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--vio-ink) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 2px var(--vio-surface) !important;
}
/* On the red closing card an ink ring measured 2.23:1. White ring, with a
   deep-red gap so it reads as a ring and not as a larger button. */
.get-started-with-us-inner :is(a, button):focus-visible {
  outline-color: var(--vio-surface) !important;
  box-shadow: 0 0 0 2px var(--vio-red-deep) !important;
}

/* ---------- 12. Network caption holds still ---------- */
/* The PCI line is a scroll reveal and the link under it is not, so the line
   slid through the link while it settled. It now fades in place. */
.risk-mitigation-wraper .risk-mitigation-contant > p[style] { transform: none !important; }
