:root {
  color-scheme: light;
  --paper: #f8f8f3;
  --ink: #192521;
  --muted: #45534c;
  --line: #cbd1c9;
  --blue: #233ecb;
  --dark: #152732;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.55 var(--sans); }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #db742a; outline-offset: 4px; }
.skip { position: absolute; top: .6rem; left: .6rem; transform: translateY(-180%); padding: .5rem; background: white; z-index: 5; }
.skip:focus { transform: none; }
.wrap { width: min(1190px, calc(100% - 7rem)); margin-inline: auto; }
.mast { display: flex; align-items: center; gap: 2.4rem; min-height: 84px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; font-size: 1.22rem; font-weight: 720; letter-spacing: -.055em; }
.brand-mark { width: 1.92rem; height: 1.92rem; display: grid; place-content: center; color: white; background: var(--blue); font: bold 1rem/1 var(--mono); letter-spacing: -.13em; padding-right: .13em; }
nav { display: flex; align-items: center; gap: 1.65rem; margin-left: auto; font-size: .88rem; }
nav a, .quiet-link { text-decoration: none; }
nav a:hover, .quiet-link:hover { text-decoration: underline; }
nav .contact-link { color: var(--blue); font-weight: 670; }
.hero { display: grid; grid-template-columns: 1.03fr 1fr; align-items: center; gap: clamp(2rem, 5.4vw, 5.7rem); padding-block: clamp(3.9rem, 7vw, 6.5rem); }
.role, .overline { font: 600 .73rem/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--blue); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 560; letter-spacing: -.058em; }
h1 { max-width: 12ch; margin: 1.12rem 0 1.28rem; font-size: clamp(3.45rem, 5.9vw, 5.6rem); line-height: .99; }
h1 em { color: var(--blue); font-style: normal; }
.intro { max-width: 47ch; font-size: clamp(1.04rem, 1.48vw, 1.24rem); line-height: 1.52; color: var(--muted); }
.action { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.7rem; padding: .85rem 1.14rem; background: var(--blue); color: white; font-size: .95rem; text-decoration: none; font-weight: 620; }
.action:hover { background: #142a9e; }
.hero .action { margin-top: 1.65rem; }
.arrow { font: 1.25em/1 var(--sans); }
.example { color: #eff6ff; background: var(--dark); border-radius: 5px; overflow: hidden; position: relative; }
.figure-head, .figure-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-inline: 1.35rem; font: .73rem/1.5 var(--mono); }
.figure-head { min-height: 51px; border-bottom: 1px solid #49606c; color: #e1e9ea; }
.figure-head span:last-child { color: #b1c9d1; }
.schematic { --wire: 14px; --route-gap: 1.8rem; min-height: 238px; padding: 2.1rem 1.15rem; display: grid; grid-template-columns: 1fr 12% 1.16fr; align-items: center; background-image: radial-gradient(#48616e 1px, transparent 1px); background-size: 16px 16px; }
.node { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: .75rem .95rem; min-width: 0; border: 1px solid #97b6d7; border-radius: 4px; background: #192e3c; }
.node small { color: #bdced7; font: .68rem/1.4 var(--mono); }
.node strong { font-weight: 620; font-size: 1rem; letter-spacing: -.025em; }
.origin { min-height: 85px; border-color: #acbafc; border-left: 4px solid #98abff; }
.routes { display: grid; gap: var(--route-gap); }
.routes .node { position: relative; }
.routes .node::before, .routes .node::after { content: ""; position: absolute; left: calc(-1 * var(--wire) - 1px); }
.routes .node::before { top: 50%; width: var(--wire); border-top: 1px solid #aac5dd; }
.routes .node::after { border-left: 1px solid #aac5dd; }
.routes .node:first-child::after { top: 50%; bottom: calc(-1 * var(--route-gap) - 2px); }
.routes .node:last-child::after { top: -1px; bottom: 50%; }
.fork { width: calc(100% - var(--wire) + 1px); border-top: 1px solid #aac5dd; }
.controls { display: flex; gap: .3rem; flex-wrap: wrap; padding: .6rem 1.1rem; border-top: 1px solid #49606c; }
.controls[hidden] { display: none; }
.controls button { background: transparent; color: #cfdee2; border: 1px solid transparent; padding: .31rem .58rem; border-radius: 3px; cursor: pointer; font: .73rem/1.35 var(--mono); }
.controls button[aria-pressed=true] { color: white; background: #304c61; border-color: #6b879a; }
.controls button:hover { border-color: #839caa; }
.figure-foot { align-items: flex-start; justify-content: flex-start; min-height: 61px; padding-block: .72rem; background: #0f1f29; color: #d1dfe3; }
.prompt { color: #a6b7ff; font-weight: 700; }
.rule-section { display: grid; grid-template-columns: minmax(12.3rem,.77fr) 2.23fr; gap: clamp(2rem,6vw,6rem); border-top: 1px solid var(--line); padding-block: 3.4rem; }
h2 { font-size: clamp(2rem, 3.4vw, 3.65rem); line-height: 1.05; }
.section-aside { max-width: 23rem; }
.section-aside .overline { margin-bottom: .8rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem,3.6vw,3.5rem); }
h3 { font-size: clamp(1.35rem,1.8vw,1.68rem); line-height: 1.16; margin-bottom: .65rem; }
.copy { color: var(--muted); }
.price { margin-top: .85rem; font-size: .93rem; }
.example-case { border-left: 2px solid var(--blue); padding-left: 1rem; margin-top: 1.1rem; max-width: 70ch; }
.flow { list-style: none; padding: 0; margin: 0; }
.flow li { display: grid; grid-template-columns: 2.1rem 1fr; gap: .8rem; border-top: 1px solid var(--line); padding: 1rem 0; }
.flow li:first-child { border-top: none; padding-top: .2rem; }
.flow .num { color: var(--blue); font: .76rem/1.8 var(--mono); }
.flow strong { display: block; font-weight: 650; margin-bottom: .14rem; }
.flow p { color: var(--muted); }
footer { background: var(--dark); color: #f5f7ef; }
.foot-main { display: grid; grid-template-columns: 1fr .9fr; gap: 3rem; padding-block: 3.9rem; }
.foot-main h2 { max-width: 14ch; }
.foot-main p { color: #d1dedf; margin: .3rem 0 1rem; max-width: 47ch; }
footer .action { background: #ecf1ff; color: #163042; }
footer .action:hover { background: white; }
.foot-small { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #4b5d65; padding-block: 1.15rem; color: #cbd8da; font: .77rem/1.45 var(--mono); }
@media(max-width: 930px) {
  .wrap { width: calc(100% - 4rem); }
  .hero { gap: 2.2rem; }
  .schematic { padding-inline: .8rem; }
}
@media(max-width: 740px) {
  .wrap { width: min(540px, calc(100% - 2.5rem)); }
  .mast { min-height: 67px; gap: 1rem; }
  nav { gap: .85rem; }
  nav a:first-child { display: none; }
  .hero, .rule-section, .foot-main { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-block: 2.9rem; }
  h1 { font-size: clamp(3.3rem, 10.4vw, 4.5rem); }
  .rule-section, .foot-main { padding-block: 2.55rem; }
  .schematic { min-height: 205px; padding-inline: 1.1rem; }
}
@media(max-width: 490px) {
  .pair { grid-template-columns: 1fr; gap: 1.55rem; }
  .figure-head { padding-inline: .9rem; }
  .controls { padding-inline: .55rem; }
  .figure-foot { min-height: 76px; }
}
@media(max-width: 350px) { .mast nav a:not(.contact-link) { display: none; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
