/* Cesura. Editorial monochrome with night stills. 0 corners except pills, no shadows.
   One accent, the icon's purple: deep only as light inside the stills, bright only for focus. */

@font-face {
  font-family: "Inter Variable";
  src: url(/fonts/inter.woff2) format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader Variable";
  src: url(/fonts/newsreader.woff2) format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url(/fonts/plex-mono.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* One-line swap: set these to "GT Flexa", "Tobias" and "GT Flexa Mono" once licensed and self-hosted. */
  --font-sans: "Inter Variable", system-ui, sans-serif;
  --font-serif: "Newsreader Variable", Georgia, serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ink: #000;
  --paper: #fff;
  --inkstone: #181818;
  --muted: #6d6d6d;
  --hairline: #e4e4e4;
  --wash: #f5f5f5;

  --night: #09080c;
  --night-text: #ede8f0;   /* 16.55:1 on --night */
  --night-muted: #8c8c8c;  /* 5.94:1 on --night */
  --night-rule: #2a2733;
  --accent-deep: #271a76;  /* light only, never text or a fill */
  --accent: #432ec2;       /* focus on paper: 8.72:1 on white */
  --accent-on-night: #8d7aff; /* focus on night: 6.05:1 */

  --glide: cubic-bezier(0.19, 1, 0.22, 1);
  --page: 1078px;
  --gutter: 20px;
  --section: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 18px/1.5 var(--font-sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, .pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.night a:focus-visible, .night .pill:focus-visible, .bar a:focus-visible { outline-color: var(--accent-on-night); }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 300; }
h1, h2 { font-family: var(--font-serif); }
code, kbd { font-family: var(--font-mono); font-size: 0.85em; }
kbd { border: 1px solid var(--hairline); border-radius: 4px; padding: 1px 6px; }

.skip { position: absolute; left: var(--gutter); top: -60px; z-index: 10; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.skip:focus { top: 12px; }

.wrap { max-width: calc(var(--page) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font: 400 11px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 33px;
  border-radius: 75px;
  border: 1px solid var(--ink);
  font: 400 16px/1.2 var(--font-sans);
  transition: background-color 0.6s var(--glide), color 0.6s var(--glide);
}
.pill:hover { background: var(--ink); color: var(--paper); }
.pill.on-dark { border-color: rgba(255, 255, 255, 0.55); color: var(--paper); }
.pill.on-dark:hover { background: var(--paper); color: var(--ink); }
.pill.solid { background: var(--ink); color: var(--paper); }
.pill.solid:hover { background: var(--paper); color: var(--ink); }
.pill.solid.on-dark { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.pill.solid.on-dark:hover { background: transparent; color: var(--paper); }

/* Header, over the hero */
.bar {
  position: absolute; inset: 0 0 auto; z-index: 2;
  display: flex; align-items: center; gap: 32px;
  padding: 22px var(--gutter);
  color: var(--paper);
}
.mark { font: 400 26px/1 var(--font-serif); }
.bar nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.bar nav a { opacity: 0.85; transition: opacity 0.6s var(--glide); }
.bar nav a:hover { opacity: 1; }
.bar .pill { min-height: 40px; padding: 8px 24px; font-size: 15px; }
@media (max-width: 760px) { .bar nav { display: none; } .bar .pill { margin-left: auto; } }

/* Night: the hero and two bands. A graded still sits behind live text; the text side always has a scrim. */
.night { position: relative; overflow: hidden; isolation: isolate; background: var(--night); color: var(--night-text); }
.night .still { position: absolute; inset: 0; z-index: -2; }
.night .still img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.night::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, var(--night) 0%, rgb(9 8 12 / 0.86) 42%, rgb(9 8 12 / 0.2) 78%, rgb(9 8 12 / 0) 100%); }
.night .label, .night .fine { color: var(--night-muted); }
.night .part-head { border-top-color: var(--night-rule); }
.credit { position: absolute; right: var(--gutter); bottom: 14px; margin: 0; max-width: calc(100% - 2 * var(--gutter));
  font: 500 10px/1.4 var(--font-sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--night-muted); text-align: right; }
.spark { display: inline-block; width: 9px; height: 9px; margin-right: 12px; vertical-align: 0; background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }

.hero { min-height: min(100svh, 980px); display: flex; align-items: flex-end; }
.hero-inner { width: 100%; padding-top: 140px; padding-bottom: 96px; }
.hero h1 {
  font-size: 72px;
  line-height: 0.9;
  margin: 18px 0 32px;
}
.lede { max-width: 640px; font-size: 19px; line-height: 1.45; color: var(--night-text); }
.aside { position: absolute; top: 96px; right: var(--gutter); margin: 0; max-width: 18ch; text-align: right;
  font: italic 300 17px/1.35 var(--font-serif); color: var(--night-muted); }
@media (max-width: 760px) { .aside { display: none; } }

.band { padding: var(--section) 0 calc(var(--section) * 0.8); }
.band::after { background: linear-gradient(to bottom, rgb(9 8 12 / 0.15) 0%, rgb(9 8 12 / 0.88) 34%, var(--night) 60%); }
.band .points p, .band .facts p, .band figcaption { color: var(--night-muted); }
.band .points strong { color: var(--night-text); }
.band kbd { border-color: var(--night-rule); }
.band figure .shot { border-color: var(--night-rule); background: var(--night); }

.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.fine { font-size: 14px; color: var(--muted); }


/* Sections: one gesture each, room around it */
section.part { padding: var(--section) 0 0; }
.part-head { display: grid; grid-template-columns: 1fr; gap: 22px; border-top: 1px solid var(--hairline); padding-top: 22px; }
.part h2, .band h2 { font-size: 40px; line-height: 1.04; max-width: 15ch; }
.part h2.wide { max-width: 20ch; }
.intro { max-width: 640px; color: var(--muted); margin-top: 26px; }
.intro strong { color: var(--ink); font-weight: 500; }

.points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; margin-top: 64px; }
.points p { color: var(--muted); max-width: 46ch; }
.points strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .points { grid-template-columns: 1fr; gap: 26px; margin-top: 44px; } }

figure { margin: 64px 0 0; }
figure .shot { border: 1px solid var(--hairline); background: var(--paper); }
figure.narrow { max-width: 660px; }
figure.inbox { max-width: 620px; }
figcaption { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 60ch; }
.pair { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 64px; }
.pair figure { margin: 0; }
.pair .points { grid-template-columns: 1fr; margin-top: 0; }
@media (max-width: 900px) { .pair { grid-template-columns: 1fr; gap: 40px; } }

/* Router layers, as a spec sheet */
.layers { margin: 64px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.layers li { display: grid; grid-template-columns: 80px 220px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--hairline); }
.layers .label { padding-top: 5px; }
.layers h3 { font-size: 20px; font-weight: 400; }
.layers p { color: var(--muted); max-width: 58ch; }
@media (max-width: 760px) { .layers li { grid-template-columns: 1fr; gap: 6px; } }
.why { margin-top: 28px; font: 400 14px/1.6 var(--font-mono); color: var(--inkstone); background: var(--wash); padding: 16px 20px; max-width: 760px; overflow-wrap: anywhere; }

/* Proof: the comparison scale */
.scale { margin: 72px 0 0; padding: 0; list-style: none; }
.scale li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 14px 24px; padding: 22px 0 0; }
.scale .who { font-size: 16px; }
.scale .who span { display: block; font-size: 14px; color: var(--muted); }
.scale .cost { font: 300 44px/1 var(--font-serif); text-align: right; }
.scale .track { grid-column: 1 / -1; height: 2px; background: var(--hairline); }
.scale .track i { display: block; height: 100%; background: var(--ink); transform-origin: left; }
.scale li.ours .track i { height: 4px; margin-top: -1px; }
.w100 { width: 100%; } .w62 { width: 62.2%; } .w57 { width: 56.2%; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 48px; margin-top: 56px; }
.facts p { color: var(--muted); max-width: 46ch; }
.facts strong { color: var(--ink); font-weight: 500; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 26px; } }

/* HUD legend */
.dots { display: flex; flex-wrap: wrap; gap: 28px 56px; margin: 64px 0 0; padding: 36px 0; list-style: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--hairline); }
.dots li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.dots svg { width: 22px; height: 22px; flex: none; }

/* Servers */
.prompt { margin-top: 56px; font: 400 20px/1.3 var(--font-mono); overflow-wrap: anywhere; }
.prompt b { font-weight: 400; color: var(--muted); }

/* Coverage */
.agents { width: 100%; margin-top: 64px; border-collapse: collapse; font-size: 16px; }
.agents th, .agents td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.agents thead th { font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--ink); }
.agents td { color: var(--muted); }
.agents th[scope="row"] { font-weight: 400; color: var(--ink); white-space: nowrap; }
@media (max-width: 760px) { .agents thead { display: none; } .agents tr { display: grid; padding: 12px 0; border-bottom: 1px solid var(--hairline); } .agents th, .agents td { border: 0; padding: 2px 0; } }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; margin-top: 64px; border-top: 1px solid var(--ink); }
.tier { padding: 28px 0; }
.tier h3 { font: 300 32px/1.1 var(--font-serif); }
.tier p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.tier[aria-disabled="true"] h3 { color: var(--muted); }
.tier .soon { display: inline-block; margin-top: 18px; font: 400 11px/1.4 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink); border: 1px solid var(--hairline); padding: 6px 12px; }
.link { color: var(--ink); font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
@media (max-width: 760px) { .tiers { grid-template-columns: 1fr; } .tier + .tier { border-top: 1px solid var(--hairline); } }

/* Download, a night band */
.download { padding: var(--section) 0 calc(var(--section) + 24px); }
.download .app-icon { display: block; width: 128px; height: 128px; margin: 0 0 32px -12px; } /* the icon art sits inside a 10% margin */
.download h2 { font-size: 60px; line-height: 0.92; max-width: none; }
.download .actions { margin-top: 44px; }
.download .fine { max-width: 60ch; }
.download .part-head { border-top: 0; padding-top: 0; }

footer { border-top: 1px solid var(--hairline); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; }
footer .mark { font-size: 20px; color: var(--ink); }
footer .note { max-width: 52ch; }
footer nav { display: flex; gap: 24px; margin-left: auto; }
footer a:hover { color: var(--ink); }

/* Long-form pages */
.doc { padding: 160px 0 var(--section); }
.doc h1 { font-size: 52px; line-height: 1; }
.doc h2 { font-size: 26px; font-weight: 400; margin-top: 56px; }
.doc p, .doc li { max-width: 64ch; color: var(--inkstone); margin-top: 14px; }
.doc ul { padding-left: 20px; }
.doc .label { margin-top: 18px; }
.doc-bar { color: var(--ink); position: absolute; }

/* Type steps up at fixed breakpoints, never with the viewport width. */
@media (min-width: 600px) {
  :root { --gutter: 32px; --section: 120px; }
  .hero h1 { font-size: 120px; }
  .part h2, .band h2 { font-size: 52px; }
  .download h2 { font-size: 96px; }
  .scale .cost { font-size: 56px; }
  .prompt { font-size: 26px; }
  .doc h1 { font-size: 72px; }
}
@media (min-width: 960px) {
  :root { --gutter: 48px; --section: 152px; }
  .hero h1 { font-size: 168px; }
  .hero-inner { padding-bottom: 88px; }
  .lede { font-size: 21px; }
  .part h2, .band h2 { font-size: 72px; }
  .download h2 { font-size: 132px; }
  .scale .cost { font-size: 72px; }
  .prompt { font-size: 30px; }
  .tier h3 { font-size: 44px; }
  .doc h1 { font-size: 96px; }
}
@media (min-width: 1280px) {
  .hero h1 { font-size: 216px; }
  .part h2, .band h2 { font-size: 78px; }
  .download h2 { font-size: 150px; }
}

/* The patient glide, for the site only. Text never waits on it. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .glide { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 1.1s var(--glide), transform 1.1s var(--glide); }
  .glide.in { opacity: 1; transform: none; }
  .scale .track i { transform: scaleX(0); transition: transform 1.25s var(--glide); }
  .scale.in .track i { transform: scaleX(1); }
  .scale.in li:nth-child(2) .track i { transition-delay: 0.12s; }
  .scale.in li:nth-child(3) .track i { transition-delay: 0.24s; }
}
@media (prefers-reduced-motion: reduce) {
  .pill, .bar nav a { transition: none; }
}
