/* Apinx product website. No framework: one stylesheet, the Barlow family
   served from /fonts (the content security policy admits only our own
   fonts). A dark site: near-black, one orange accent, condensed uppercase
   headings; teal marks what is live or passed. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-lighter: #1c1c1c;
  --border: #262626;
  --fg: #ffffff;
  --text: #d4d4d8;
  --muted: #9ca3af;
  --primary: #ff6b35;
  --primary-hover: #ff8457;
  --ink: #0a0a0a;
  --primary-soft: rgb(255 107 53 / 0.12);
  --primary-line: rgb(255 107 53 / 0.35);
  --live: #2dd4bf;
  --ok: #2dd4bf;
  --bad: #f87171;
  --warn: #fbbf24;
  --radius: 16px;
  --display: "Barlow Condensed", "Bahnschrift", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; height: auto; }
code, pre, .mono { font-family: var(--mono); font-size: 0.9em; }
.mono { color: var(--fg); }
pre { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; overflow-x: auto; line-height: 1.5; }
strong, b { color: var(--fg); font-weight: 500; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--fg); text-transform: uppercase; line-height: 1; margin: 0 0 0.45em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: 0.01em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: 0.01em; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: 0.03em; line-height: 1.1; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; }
h1 .hot, h2 .hot { color: var(--primary); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgb(10 10 10 / 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font: 700 1.6rem/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg); }
.logo:hover { text-decoration: none; }
.logo .nx { color: var(--primary); }
.logo .mark { width: 40px; height: 40px; flex: none; }
nav.main { display: flex; gap: 6px; margin-inline: auto; }
nav.main a { color: var(--muted); padding: 8px 14px; font: 500 0.88rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; transition: color .15s; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--fg); text-decoration: none; }
nav.main a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--primary); }
.top .actions { display: flex; align-items: center; gap: 18px; }
.top .signin { color: var(--muted); font: 500 0.88rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; }
.top .signin:hover { color: var(--fg); text-decoration: none; }
.top .gh { display: inline-flex; color: var(--muted); padding: 4px; transition: color .15s; }
.top .gh:hover { color: var(--fg); }
.top .menu-btn { display: none; }

/* Buttons: primary is the filled orange, the default is an outline. */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 14px; border: 2px solid var(--border); background: transparent; color: var(--fg); font: 600 1rem/1.1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s, color .15s; }
.btn:hover { text-decoration: none; border-color: var(--primary); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; border-radius: 12px; }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.ghost { border-color: transparent; }
.btn.lg { padding: 16px 28px; font-size: 1.08rem; }
.btn svg { width: 18px; height: 18px; }
.btn:disabled { opacity: 0.6; cursor: wait; }

/* Section headings: a small orange line above, the heading, a muted line. */
section { padding: 96px 0; }
section.alt { background: var(--bg-card); }
.section-head { max-width: 46rem; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 40rem; }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow { display: block; font: 600 0.95rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }

/* Page header for the inner pages */
.hero { padding: 88px 0 24px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); max-width: 24ch; }
.hero .lead { margin-top: 8px; }

/* The home page hero: the copy on a plain background, the trace of one
   request beside it. */
.hero-home { padding: 96px 0 88px; min-height: calc(100vh - 76px); display: flex; align-items: center; }
.hero-home .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-home .wrap > * { min-width: 0; }
.hero-home h1 { font-size: clamp(3rem, 7.4vw, 6rem); line-height: 0.95; margin-bottom: 28px; }
.hero-home h1 span { display: block; }
.hero-home .lead { font-size: 1.2rem; }
.hero-home .cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 36px 0 18px; }
.hero-home .fine { font-size: 0.95rem; color: var(--muted); max-width: 38rem; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; margin-bottom: 32px; border-radius: 999px; background: var(--primary-soft); border: 1px solid var(--primary-line); color: var(--primary); font: 600 0.95rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgb(45 212 191 / 0.6); animation: pulse 2s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(45 212 191 / 0.55); } 70%, 100% { box-shadow: 0 0 0 9px rgb(45 212 191 / 0); } }
.hero-stats { display: flex; flex-wrap: wrap; gap: 20px 48px; margin: 44px 0 0; padding: 0; list-style: none; }
.hero-stats b { display: block; font: 700 2.4rem/1 var(--display); color: var(--fg); }
.hero-stats span { display: block; margin-top: 6px; font: 600 0.85rem/1.2 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* The live trace card */
.live { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.live-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.live-ico { width: 46px; height: 46px; border-radius: 50%; background: rgb(255 107 53 / 0.2); color: var(--primary); display: grid; place-items: center; flex: none; }
.live-ico svg { width: 22px; height: 22px; }
.live-head h2 { font-size: 1.25rem; margin: 0; letter-spacing: 0.04em; }
.live-head p { margin: 2px 0 0; font-size: 0.92rem; color: var(--muted); }
.live .status { margin-left: auto; padding: 5px 10px; border-radius: 8px; background: rgb(45 212 191 / 0.14); color: var(--live); font: 700 0.95rem/1 var(--display); letter-spacing: 0.06em; }
.live .status.stop { background: rgb(251 191 36 / 0.14); color: var(--warn); }
/* The card holds several example requests; the tabs choose one. */
.live-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.live-tabs[hidden] { display: none; }
.live-tabs button { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--border); background: transparent; color: var(--muted); font: 600 0.85rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.live-tabs button:hover { color: var(--fg); border-color: var(--primary-line); }
.live-tabs button[aria-selected="true"] { background: var(--primary-soft); border-color: var(--primary-line); color: var(--primary); }
.scene-head { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 0.92rem; }
.scene-head .mono { overflow-wrap: anywhere; }
.live-note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.steps-live { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; align-content: start; min-height: 17.6rem; }
.steps-live li.done.stop .tick { background: var(--warn); border-color: var(--warn); }
.steps-live li.stop b { color: var(--warn); }
.steps-live li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 9px 0; font-size: 0.98rem; color: var(--muted); }
.steps-live li b { color: var(--fg); font-weight: 500; margin-right: 6px; }
.steps-live .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; transition: background-color .25s, border-color .25s; }
.steps-live .tick svg { width: 12px; height: 12px; stroke: #0a0a0a; opacity: 0; transition: opacity .25s; }
.steps-live .ms { font-size: 0.9rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.steps-live li.done .tick { background: var(--live); border-color: var(--live); }
.steps-live li.done .tick svg { opacity: 1; }
.steps-live li.now b { color: var(--primary); }
.live-bar { margin-top: 18px; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; }
.live-bar i { display: block; height: 100%; width: 100%; background: var(--primary); border-radius: inherit; transition: width .35s ease-out; }
.live-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin: 10px 0 0; font-size: 0.88rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.live-foot b { color: var(--fg); }

/* The protocols strip */
.protocols { padding: 28px 0; border-block: 1px solid var(--border); }
.protocols .wrap { display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; }
.protocols h2 { font-size: 1rem; letter-spacing: 0.14em; color: var(--muted); margin: 0; }
.proto-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0; padding: 0; }
.proto-strip li { padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 0.92rem; color: var(--muted); }
.proto-strip li b { color: var(--fg); }
.proto-note { margin: 0; flex-basis: 100%; font-size: 0.9rem; }

/* Cards (inner pages, contact) */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
section.alt .card { background: var(--bg); }
.card p:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card a { overflow-wrap: anywhere; }

/* Why, beside the diagram */
.fit { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.fit > * { min-width: 0; }
.why { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 26px; }
.why li { padding-left: 20px; border-left: 3px solid var(--primary); }
.why h3 { margin-bottom: 6px; }
.why p { margin: 0; color: var(--muted); }

/* Steps: these are a sequence, so they are numbered. */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { position: relative; padding: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 12px; background: var(--primary); color: #fff; font: 700 1.6rem/1 var(--display); }
.step p { margin: 0; color: var(--muted); }
/* The walkthrough video (ADR-0090): served at /media/ by the edge. */
.watch { aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); }
.watch video { display: block; width: 100%; height: 100%; }
.watch-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.explainer { margin-top: 40px; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: var(--bg); }
.explainer iframe { display: block; width: 100%; height: 100%; border: 0; }
.explainer-note { margin: 12px 0 0; font-size: 0.92rem; color: var(--muted); }

/* Editions (features page) */
.editions { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.edition { display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg); }
.edition.saas { border-color: var(--primary); }
.edition ul { padding-left: 20px; margin: 12px 0 20px; }
.edition li { margin: 4px 0; }
.edition .btn { align-self: flex-start; margin-top: auto; }

/* Pricing: the first paid plan is filled orange, with dark ink for
   contrast. The plan cards themselves are rendered by the server. */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--bg-lighter); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
section.alt .plan { background: var(--bg); }
.plan .eyebrow { margin-bottom: 10px; }
.plan h3 { font-size: 1.7rem; margin-bottom: 10px; }
.plan .price { font: 700 3rem/1 var(--display); color: var(--fg); margin: 6px 0 14px; }
.plan .price small { font: 500 1rem/1 var(--body); color: var(--muted); }
.plan .price-then { margin: -6px 0 14px; font: 600 1.05rem/1.3 var(--body); color: var(--fg); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; flex: 1; }
.plan li { position: relative; padding: 7px 0 7px 30px; font-size: 0.97rem; }
.plan li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b35' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: var(--bg-lighter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 10px no-repeat; }
.plan li small { display: block; margin-top: 2px; font: 0.8rem/1.3 var(--mono); color: var(--muted); word-break: break-all; }
.plan .btn { width: 100%; }
.plan.featured { background: var(--primary); border-color: var(--primary); color: var(--ink); transform: scale(1.04); z-index: 1; box-shadow: 0 30px 70px rgb(255 107 53 / 0.25); }
.plan.featured::after { content: "Most popular"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 16px; border-radius: 999px; background: var(--live); color: #04201d; font: 700 0.8rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }
.plan.featured h3, .plan.featured .price, .plan.featured .eyebrow, .plan.featured strong { color: var(--ink); }
.plan.featured .muted, .plan.featured li.no, .plan.featured .price small, .plan.featured li small { color: rgb(10 10 10 / 0.78); }
.plan.featured .price-then { color: var(--ink); }
.plan.featured li::before { background-color: rgb(10 10 10 / 0.14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }
.plan.featured .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.plan.featured .btn.primary:hover { background: #262626; border-color: #262626; }
.plan.featured a:not(.btn) { color: var(--ink); text-decoration: underline; }
.plan.custom { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
.plan.custom > div { max-width: 46rem; }
/* Beside the copy the button is as wide as its label (.plan .btn is 100%,
   which would squeeze the copy into a sliver); stacked, it is full width. */
.plan.custom .btn { margin-top: 0; flex-shrink: 0; width: auto; }
@media (max-width: 900px) {
  .plan.custom { flex-direction: column; align-items: stretch; }
  .plan.custom .btn { width: 100%; }
}
.plans-note { margin: 28px auto 0; text-align: center; color: var(--muted); font-size: 0.95rem; max-width: 46rem; }

/* FAQ */
.faq details { border-top: 1px solid var(--border); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; color: var(--fg); font-weight: 500; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font: 600 1.5rem/1 var(--display); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* The closing call to action */
.closing { text-align: center; }
.closing .box { padding: 64px 32px; border-radius: 24px; background: var(--primary); color: var(--ink); }
.closing h2 { color: var(--ink); }
.closing p { color: rgb(10 10 10 / 0.82); max-width: 38rem; margin-inline: auto; font-size: 1.15rem; }
.closing .cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.closing .btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.closing .btn.primary:hover { background: #262626; border-color: #262626; }
.closing .btn:not(.primary) { border-color: rgb(10 10 10 / 0.6); color: var(--ink); }
.closing .btn:not(.primary):hover { border-color: var(--ink); }
.closing :focus-visible { outline-color: var(--ink); }
.plan.featured :focus-visible { outline-color: var(--ink); }

/* Forms */
form.contact { display: grid; gap: 18px; max-width: 44rem; padding: 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; }
.field { display: grid; gap: 8px; }
.field label { color: var(--fg); font: 600 0.95rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; }
.field input, .field select, .field textarea { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field textarea::placeholder { color: #6b7280; }
.field .hint, .hint { font-size: 0.88rem; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.notice { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); }
.notice.ok { border-color: var(--ok); }
.notice.err { border-color: var(--bad); }
.notice:empty { display: none; }

/* Prose pages */
.prose > * { max-width: 46rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.7rem; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.draft { border-left: 4px solid var(--warn); padding: 10px 14px; background: var(--bg-card); border-radius: 0 12px 12px 0; margin: 0 0 24px; }

/* Footer */
.site-foot { border-top: 1px solid var(--border); padding: 72px 0 0; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 40px; }
.foot-grid p { color: var(--muted); max-width: 22rem; margin: 18px 0 0; }
.foot-grid h4 { color: var(--fg); margin-bottom: 18px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-grid ul a { color: var(--muted); }
.foot-grid ul a:hover { color: var(--fg); text-decoration: none; }
.foot-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding: 28px 0 36px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.9rem; }
.foot-bar nav { display: flex; gap: 24px; }
.foot-bar a { color: var(--muted); }
.foot-bar a:hover { color: var(--fg); text-decoration: none; }

/* The diagram of how the parts fit. Hover or focus a part to read what it
   does; the dot runs the call's path. */
.arch { margin: 0; }
.arch-svg { display: block; width: 100%; height: auto; font: 500 13px/1 var(--body); }
.arch-svg text { fill: var(--fg); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.arch-svg .col { fill: var(--muted); font: 600 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; }
.arch-svg .gw { fill: var(--bg-card); stroke: var(--border); stroke-width: 1.5; }
.arch-svg .gw-title { text-anchor: start; font: 700 19px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; fill: var(--primary); }
.arch-svg .gw-sub { text-anchor: start; fill: var(--muted); font-size: 12px; }
.arch-svg .wire { fill: none; stroke: #3a3a3a; stroke-width: 2; marker-end: url(#ah); transition: stroke .25s; }
.arch-svg .ah { fill: #3a3a3a; }
.arch-svg .hn rect { fill: var(--bg-lighter); stroke: var(--border); stroke-width: 1.5; transition: stroke .2s, fill .2s, filter .2s; }
.arch-svg .hn { cursor: pointer; outline: none; }
.arch-svg .hn.part rect { fill: var(--bg); }
.arch-svg .hn.part text { font: 600 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.arch-svg .hn:hover rect, .arch-svg .hn:focus-visible rect, .arch-svg .hn.is-on rect { stroke: var(--primary); fill: #2a1710; filter: drop-shadow(0 4px 14px rgb(255 107 53 / 0.35)); }
.arch-svg.lit .wire.main { stroke: var(--primary); }
.arch-svg .dot { fill: var(--primary); opacity: 0; offset-path: path("M136 187 H192 H246 H250 H304 H308 H362 H366 H420 H424 H478 H482 H536 H584"); offset-distance: 0%; }
.arch-svg .dot.run { animation: arch-run 1.4s ease-in-out forwards; }
@keyframes arch-run { 0% { opacity: 0; offset-distance: 0%; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { opacity: 0; offset-distance: 100%; } }
.arch-caption { min-height: 2.6em; margin: 12px 0 0; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 0.95rem; }
.arch-caption.is-on { color: var(--fg); border-color: var(--primary); }
.arch-list { display: none; list-style: none; margin: 12px 0 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.arch-list li { padding: 6px 0; border-top: 1px solid var(--border); }
.card.is-hl, section.is-hl { outline: 2px solid var(--primary); outline-offset: 4px; transition: outline-color 1.2s; }

/* The name, measured: one sheet per brand word. The figure is on the left
   of each row, what it was measured on beside it. */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec { padding: 32px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); }
.spec h3 { font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 700; letter-spacing: 0.01em; line-height: 1; color: var(--primary); margin-bottom: 12px; }
.spec dl { margin: 0; }
.spec dl > div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 6px 24px; padding: 18px 0; border-top: 1px solid var(--border); }
.spec dl > div:last-child { padding-bottom: 0; }
.spec dt { font: 700 1.55rem/1.05 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--fg); font-variant-numeric: tabular-nums; }
.spec dd { margin: 0; font-size: 0.97rem; color: var(--muted); }

/* What you can do with it: the copy beside a real screen, sides alternating. */
.duo { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--border); }
.duo:last-child { padding-bottom: 0; }
.section-head + .duo { border-top: 0; padding-top: 0; }
.duo.flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
.duo.flip .duo-copy { order: 2; }
.duo h3 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: 0.01em; line-height: 1; margin-bottom: 14px; }
.duo-copy > p { color: var(--fg); font-size: 1.1rem; margin-bottom: 20px; }
.caps { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.caps li { position: relative; padding-left: 20px; font-size: 0.97rem; color: var(--muted); }
.caps li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 2px; background: var(--primary); }
.more { font: 600 1rem/1 var(--display); letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 2px solid var(--primary-line); padding-bottom: 4px; }
.more:hover { text-decoration: none; border-color: var(--primary); }
.duo-pic { margin: 0; }
.duo-pic img { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 30px 80px rgb(0 0 0 / 0.55); }
.duo-pic figcaption { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.duo-pic.wire { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.duo-pic.wire figcaption { grid-column: 1 / -1; margin-top: 0; }
.pane { min-width: 0; padding: 18px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); }
.pane pre { margin: 12px 0 0; padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.8rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }
.pane-tag { font: 600 0.85rem/1 var(--display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.pane-tag.hot { color: var(--primary); }

/* What is checked: teal is the colour of a check that passed. */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.checks > div { padding: 32px; border-radius: 20px; background: var(--bg-card); border: 1px solid var(--border); }
.checks h3 { margin-bottom: 18px; }
.checks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 20px; height: 20px; border-radius: 50%; background: var(--live) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0a0a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* What comes next: in rough order, so it is numbered. */
.next { counter-reset: n; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.next li { position: relative; padding: 20px 0 0 44px; border-top: 2px solid var(--border); }
.next li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 16px; font: 700 1.8rem/1 var(--display); color: var(--primary); }
.next h3 { margin-bottom: 8px; }
.next p { margin: 0; font-size: 0.97rem; color: var(--muted); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-home .wrap, .fit, .duo, .duo.flip { grid-template-columns: 1fr; }
  .duo { gap: 32px; }
  .duo.flip .duo-copy { order: 0; }
  .hero-home { min-height: 0; }
  .live { max-width: 34rem; }
  .foot-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .cards, .cards.four, .steps, .editions, .next { grid-template-columns: 1fr 1fr; }
  .proof, .checks { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; gap: 32px; }
  .plan.featured { transform: none; }
  nav.main { display: none; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 8px; }
  nav.main a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--primary); }
  .top .actions { margin-left: auto; }
  .top .menu-btn { display: inline-flex; padding: 10px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .cards, .cards.two, .cards.four, .steps, .editions, .row2, .next, .duo-pic.wire { grid-template-columns: 1fr; }
  .spec, .checks > div { padding: 22px; }
  .spec dl > div { grid-template-columns: 1fr; }
  .duo { padding: 40px 0; }
  .steps-live { min-height: 0; }
  .top .signin { display: none; }
  .top .wrap { gap: 12px; min-height: 68px; }
  .top .btn.primary { padding: 10px 14px; font-size: 0.9rem; }
  .logo { font-size: 1.35rem; }
  .logo .mark { width: 34px; height: 34px; }
  nav.main { top: 68px; }
  section { padding: 64px 0; }
  .hero { padding: 56px 0 16px; }
  .hero-home { padding: 56px 0 64px; }
  .hero-home .cta .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
  .hero-stats { gap: 20px 32px; }
  .hero-stats b { font-size: 2rem; }
  .live { padding: 18px; }
  .steps-live li { grid-template-columns: 22px 1fr; }
  .steps-live .ms { display: none; }
  form.contact { padding: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .closing .box { padding: 48px 20px; }
}
/* Very narrow phones: the hero already carries the sign-up button. */
@media (max-width: 400px) {
  .top .actions .btn.primary { display: none; }
}
@media (hover: none) {
  .arch-caption { display: none; }
  .arch-list { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pulse, .arch-svg .dot.run { animation: none; }
  .steps-live .tick, .live-bar i, .live-tabs button { transition: none; }
}
