/* Orbit website. Light, with hand-drawn illustrations: tokens first, then shared parts, then the
   illustrations, then one block per section. Interface corners are square on purpose; the drawings are not. */

/* ============================== Tokens ============================== */
:root {
  --bg: #ffffff;
  --soft: #f8f6f1;
  --peach: #fdf0e7;
  --ink: #0c1a38;
  --ink-2: #33405c;
  --muted: #566279;
  --line: #e7e3da;
  --line-2: #d4cfc3;
  --accent: #e8663a;
  --accent-text: #bf461a;
  --accent-soft: #fde6da;
  --sky-soft: #e8f0ff;
  --sky-text: #2f53c8;
  --butter-soft: #fff4d4;
  --mint-soft: #e2f4e8;
  --ok: #157a46;
  --bad: #c0352b;
  --pen: #1d2742;

  --sans: "Instrument Sans", "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --brand: "Sora", var(--sans);
  --wrap: 1160px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 1px 2px rgba(12, 26, 56, .05), 0 18px 40px -22px rgba(12, 26, 56, .22);
}

/* ============================== Base ============================== */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  :root { interpolate-size: allow-keywords; }
}
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: inherit; }
p a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }
p a:hover { color: var(--accent-text); }
button, input { font: inherit; color: inherit; }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; }
.skip:focus { top: 16px; }
html:not(.js) .needs-js { display: none; }

/* ============================== Honesty chips ============================== */
/* Square, small, one colour per status: Live, Preview, Coming, Concept, Illustrative */
.st { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; font: 600 11.5px/1 var(--sans); letter-spacing: .01em; white-space: nowrap; vertical-align: middle; }
.st-live { background: var(--mint-soft); color: var(--ok); }
.st-pv { background: var(--sky-soft); color: var(--sky-text); }
.st-soon { background: var(--butter-soft); color: #7a4f00; }
.st-ill { background: #f1efe9; color: var(--muted); }
.st-concept { background: var(--accent-soft); color: var(--accent-text); }
.kicker .st { margin-left: 8px; }
h3 .st { margin-left: 6px; }

/* ============================== Type ============================== */
.kicker { margin: 0 0 16px; color: var(--accent-text); font-size: 15px; font-weight: 600; }
h1, .h1 { margin: 0; color: var(--ink); font: 600 clamp(40px, 5.4vw, 68px)/1.04 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
.h2 { margin: 0; color: var(--ink); font: 600 clamp(30px, 3.6vw, 46px)/1.1 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
.lead { max-width: 560px; margin: 24px 0 0; color: var(--muted); font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; text-wrap: pretty; }
.sub { max-width: 600px; margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; text-wrap: pretty; }
/* A marker stroke under the words that matter, drawn on once */
.scribble { position: relative; isolation: isolate; white-space: nowrap; }
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -3%;
  bottom: -.12em;
  height: .32em;
  z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M3 15C60 8 140 6 296 10M14 20C90 15 180 14 270 17' fill='none' stroke='%23f6a37c' stroke-width='6' stroke-linecap='round' stroke-dasharray='320' stroke-dashoffset='320'%3E%3Canimate attributeName='stroke-dashoffset' to='0' dur='.9s' begin='.5s' fill='freeze'/%3E%3C/path%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}
.hand-note { color: var(--pen); font: 600 22px/1.1 var(--hand); }

/* ============================== Buttons ============================== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 1px solid transparent; font: 600 15.5px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1e3263; }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; text-decoration: none; }
.text-link .ic { width: 16px; height: 16px; color: var(--accent); transition: transform .25s var(--ease); }
.text-link:hover .ic { transform: translateX(3px); }

/* ============================== Navigation ============================== */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); border-bottom: 1px solid transparent; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: border-color .3s; }
.nav.scrolled, .nav.open { border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; width: min(100% - 48px, var(--wrap)); height: 68px; margin: 0 auto; }
/* The wordmark, as in the app: the mark is the "O" of Orbit, then "AI" in orange. The ring is drawn the size of a
   capital at 20px, with the app's gap before the "r" (icons.svg#mark is cropped to the ring, the app's mark isn't). */
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; font: 600 20px/1 var(--brand); letter-spacing: -.025em; }
.brand-mark { width: .83em; height: .83em; margin-right: .11em; color: var(--ink); }
.brand-ai { margin-left: .34em; color: var(--accent); }
.nav-links { display: flex; align-self: stretch; margin: 0 auto; }
.nav-links a { display: flex; align-items: center; padding: 0 15px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; transition: color .2s, box-shadow .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-signin { padding: 10px 14px; color: var(--ink-2); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-signin:hover { color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-2); background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn .ic { width: 20px; height: 20px; }
.mobile-menu { border-top: 1px solid var(--line); background: #fff; }
.mobile-menu nav { width: min(100% - 48px, var(--wrap)); margin: 0 auto; padding: 6px 0 16px; }
.mobile-menu a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 17px; text-decoration: none; }
.mobile-menu a[aria-current="page"] { color: var(--accent-text); }
@media (max-width: 920px) {
  .nav-links, .nav-signin { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-in { justify-content: space-between; }
}

/* ============================== Sections ============================== */
.section { padding: clamp(80px, 9vw, 120px) 0; }
.section.soft { background: var(--soft); }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .sub { margin-inline: auto; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.ticks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.ticks li { display: flex; gap: 11px; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.ticks .ic { width: 17px; height: 17px; margin-top: 3px; color: var(--accent); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Simple cards: square, hairline, sharing their borders inside a grid */
.spot { position: relative; padding: 30px; background: #fff; transition: background .2s; }
.spot:hover { background: #fffdf9; }
.spot > svg.ic, .tile-copy > svg.ic { width: 42px; height: 42px; margin-bottom: 22px; padding: 10px; background: var(--accent-soft); color: var(--accent-text); }
.spot:nth-child(4n + 2) > svg.ic, .tile:nth-child(4n + 2) .tile-copy > svg.ic { background: var(--sky-soft); color: var(--sky-text); }
.spot:nth-child(4n + 3) > svg.ic, .tile:nth-child(4n + 3) .tile-copy > svg.ic { background: var(--butter-soft); color: #8a5a00; }
.spot:nth-child(4n) > svg.ic, .tile:nth-child(4n) .tile-copy > svg.ic { background: var(--mint-soft); color: var(--ok); }
.spot h3 { margin: 0; color: var(--ink); font: 600 19px/1.3 var(--sans); letter-spacing: -.015em; }
.spot p { margin: 8px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.levers, .trust, .roles-grid, .model-grid, .bento, .plans { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }

/* Small parts used inside the product pictures */
.v-label { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip, .m { padding: 5px 8px; background: #f1efe9; color: var(--ink-2); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.chip.c-max, .m-max { background: var(--accent-soft); color: var(--accent-text); }
.chip.c-fast, .m-fast { background: var(--sky-soft); color: var(--sky-text); }
.team-dot { width: 9px; height: 9px; flex: none; }
.t-eng { background: var(--accent); }
.t-sales { background: #f2c14e; }
.t-sup { background: #7ea6f5; }
.org-logo { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: var(--ink); color: #fff; font: 600 14px/1 var(--brand); }
.bar { position: relative; height: 6px; background: #efece5; overflow: hidden; }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--accent); }
.cost { display: inline-flex; gap: 3px; }
.cost i { width: 7px; height: 7px; background: var(--line-2); }
.cost i.on { background: var(--accent); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }

/* Segmented switch with a sliding block (--n buttons, --i the pressed one; set by main.js) */
.seg { position: relative; isolation: isolate; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border: 1px solid var(--line-2); background: #fff; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 18px; border: 0; background: none; color: var(--muted); font: 600 14.5px/1 var(--sans); white-space: nowrap; cursor: pointer; transition: color .3s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: #fff; }
.seg-thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); background: var(--ink); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .4s var(--ease); }

/* Scroll reveal: only with JavaScript, and only when motion is welcome */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ============================== Hand-drawn illustrations ============================== */
.illo { display: block; width: 100%; height: auto; overflow: visible; }
.illo path { fill: none; }
.illo .ln { fill: none; stroke: var(--pen); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.illo .ln-thin { stroke-width: 1.4; }
.illo .ln-faint { stroke-opacity: .4; }
.illo .ln-ghost { stroke-width: 1; stroke-opacity: .4; }
.illo .ln-accent { stroke: #e2602f; stroke-width: 2.8; }
.illo .ln-dash { stroke-dasharray: 4 5; }
.illo .ln-needle { stroke-width: 3.4; }
.illo .p-orange { fill: #f8955f; }
.illo .p-butter { fill: #ffd76e; }
.illo .p-sky { fill: #b7d3ff; }
.illo .p-mint { fill: #b4e5c6; }
.illo .p-cream { fill: #fff0c9; }
.illo .p-steel { fill: #d6deeb; }
.illo .p-wood { fill: #f0c38a; }
.illo .p-peg { fill: #f7ecdc; }
.illo .p-paper { fill: #ffffff; }
.illo .p-shadow { fill: rgba(29, 39, 66, .08); }
.illo .p-pink { fill: #ffc3b1; }
.illo .p-cork { fill: #ecd3ae; }
.illo .pp { fill: #fff; stroke: var(--pen); stroke-width: 1.3; }
.illo .ink-fill { fill: var(--pen); }
.illo .hole { fill: rgba(29, 39, 66, .25); }
.illo .hand { font-family: var(--hand); font-weight: 600; fill: var(--pen); }
.illo .hand-accent { fill: #d6542a; }
/* The mobile sways, each part on its own string */
.illo .sw { transform-box: view-box; animation: sway var(--d, 6s) var(--w, 0s) ease-in-out infinite alternate; }
@keyframes sway { from { rotate: calc(var(--a, 2deg) * -1); } to { rotate: var(--a, 2deg); } }

/* ============================== Home: hero ============================== */
.hero { padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 7vw, 96px); overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(40px, 5.2vw, 64px); }
.hero h1 { position: relative; z-index: 0; }
.hero-note { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.hero-note .ic { color: var(--ok); }
.hero-art { margin-right: -8px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; margin: 8px auto 0; }
}

/* The hero mobile plays four values in turn (main.js sets data-scene); one scene's extras show at a time */
.illo-mobile .sc { opacity: 0; transition: opacity .5s; }
[data-scene="bill"] .sc-bill, [data-scene="rules"] .sc-rules, [data-scene="route"] .sc-route, [data-scene="usage"] .sc-usage { opacity: 1; }
.illo-mobile .pop { transform-box: fill-box; transform-origin: 50% 0; transform: scale(.3); transition: transform .7s var(--ease) calc(var(--i, 0) * 140ms); }
[data-scene="bill"] .sc-bill .pop, [data-scene="rules"] .sc-rules .pop, [data-scene="route"] .sc-route .pop, [data-scene="usage"] .sc-usage .pop { transform: none; }
.illo-mobile .meter-fill { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1.3s var(--ease) .25s; }
[data-scene="usage"] .meter-fill { transform: scaleY(var(--lv)); }
.illo-mobile .mark-ring { opacity: 0; transform-box: fill-box; transform-origin: center; }
.illo-mobile .mark-ring .ln { stroke: var(--accent); stroke-width: 2.6; }
.illo-mobile .mark-ring.hit { animation: ring .7s var(--ease); }
@keyframes ring { from { opacity: 1; transform: scale(.85); } to { opacity: 0; transform: scale(1.3); } }
.illo-mobile .mtag { transform-box: fill-box; transform-origin: 50% 0; }
.illo-mobile .mtag.hit { animation: tag-hit .6s var(--ease); }
@keyframes tag-hit { 40% { transform: scale(1.18) rotate(-4deg); } }
.illo-mobile .bub { stroke: var(--pen); stroke-width: 1.4; stroke-linejoin: round; }
.hero-values { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 14px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.hero-values button { position: relative; display: block; width: 100%; height: 100%; padding: 14px 12px 4px 0; border: 0; background: none; color: var(--muted); font: 600 14px/1.35 var(--sans); text-align: left; cursor: pointer; transition: color .3s; }
.hero-values li + li button { padding-left: 12px; }
.hero-values button:hover { color: var(--ink); }
.hero-values button::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.hero-values button[aria-pressed="true"] { color: var(--ink); }
.hero-values button[aria-pressed="true"]::before { transform: scaleX(1); }
.hero-values button.auto::before { animation: value-bar var(--scene, 5s) linear both; }
@keyframes value-bar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-values b { display: block; margin-bottom: 2px; color: var(--accent-text); font: 600 20px/1 var(--hand); }
@media (max-width: 600px) {
  /* Two by two: the marker runs down the left of each value, so it can't read as the one above */
  .hero-values { grid-template-columns: 1fr 1fr; row-gap: 6px; padding-top: 10px; }
  .hero-values button, .hero-values li + li button { padding: 4px 8px 4px 12px; }
  .hero-values button::before { top: 2px; bottom: 2px; left: 0; right: auto; width: 2px; height: auto; background: var(--line-2); transform: none; transform-origin: top; }
  .hero-values button[aria-pressed="true"]::before { background: var(--accent); }
  .hero-values button.auto::before { animation-name: value-bar-down; }
}
@keyframes value-bar-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ============================== Home: four things ============================== */
.four { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: -24px; }
.four::before { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 1px; background: var(--line); }
.four article { display: flex; flex-direction: column; padding: 32px 24px 8px; }
.four article + article { border-left: 1px solid var(--line); }
.four .illo { margin: 0 0 26px; }
.four h3 { margin: 0; color: var(--ink); font: 600 20px/1.25 var(--sans); letter-spacing: -.02em; }
.four p { margin: 10px 0 18px; color: var(--muted); font-size: 16px; line-height: 1.55; }
.four .text-link { margin-top: auto; font-size: 15px; }
@media (max-width: 1000px) {
  .four { grid-template-columns: 1fr 1fr; }
  .four article:nth-child(3) { border-left: 0; }
  .four article:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .four { grid-template-columns: 1fr; margin-inline: 0; }
  .four::before { left: 0; right: 0; }
  .four article, .four article + article { padding: 28px 0 8px; border-left: 0; }
  .four article + article { border-top: 1px solid var(--line); }
  .four .illo { max-width: 340px; }
}

/* ============================== Home: the tangle, and what changes ============================== */
.wide-art { margin: 0; }
.wide-art .illo { max-width: 1040px; margin: 0 auto; }
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 36px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.value-row li { padding: 24px 28px 0 0; }
.value-row li + li { padding-left: 28px; border-left: 1px solid var(--line-2); }
.value-row b { display: block; color: var(--ink); font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.value-row span { display: block; margin-top: 6px; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  /* Kept large enough to read on a phone: it scrolls sideways instead of shrinking */
  .wide-art { margin-inline: -24px; padding: 0 24px 4px; overflow-x: auto; scrollbar-width: none; }
  .wide-art::-webkit-scrollbar { display: none; }
  .wide-art .illo { width: 780px; max-width: none; }
  .wide-art::after { content: "swipe to see the rest →"; display: block; margin-top: 4px; color: var(--muted); font: 600 19px/1 var(--hand); }
  .value-row { grid-template-columns: 1fr; }
  .value-row li, .value-row li + li { padding: 20px 0 0; border-left: 0; }
}

/* ============================== Home: two drawn promises side by side ============================== */
.duo { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-2); }
.duo article { display: flex; flex-direction: column; padding: 36px 44px 8px 0; }
.duo article + article { padding: 36px 0 8px 44px; border-left: 1px solid var(--line-2); }
.duo .illo { max-width: 400px; margin: 0 0 26px; }
.duo h3 { margin: 0; color: var(--ink); font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; }
.duo p { max-width: 470px; margin: 10px 0 18px; color: var(--muted); font-size: 16.5px; line-height: 1.6; }
.duo .text-link { margin-top: auto; }
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .duo article, .duo article + article { padding: 28px 0 8px; border-left: 0; }
  .duo article + article { border-top: 1px solid var(--line-2); }
}

/* A section heading with a drawing beside it, and a drawing in a split section */
.head-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 5vw, 64px); }
.head-split .section-head { margin-bottom: 0; }
.head-art .illo { max-width: 420px; margin-left: auto; }
.art .illo { max-width: 460px; margin-inline: auto; }
@media (max-width: 860px) {
  .head-split { grid-template-columns: 1fr; }
  .head-art .illo { max-width: 380px; margin: 0; }
}

/* ============================== Home: getting started ============================== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding: 0 36px 0 0; }
.steps li + li { padding-left: 36px; border-left: 1px solid var(--line-2); }
.s-num { display: block; margin-bottom: 14px; color: var(--accent-text); font: 600 34px/1 var(--hand); }
.steps h3 { margin: 0; color: var(--ink); font: 600 21px/1.25 var(--sans); letter-spacing: -.02em; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .steps li, .steps li + li { padding: 0; border: 0; }
}

/* ============================== Closing call to action (every page) ============================== */
.closing { padding: 0 0 clamp(72px, 8vw, 104px); }
.cta-box { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 48px; align-items: center; padding: clamp(36px, 5vw, 60px) clamp(28px, 5vw, 64px); background: var(--peach); border: 1px solid #f6dccb; }
.cta-box .h2 { max-width: 640px; }
.cta-box .sub { margin-top: 14px; }
.cta-note { display: inline-flex; align-items: flex-start; gap: 6px; margin-left: 6px; }
.cta-note svg { width: 54px; height: 30px; margin-top: 8px; overflow: visible; }
.cta-note path { fill: none; stroke: var(--pen); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cta-note .hand-note { font-size: 23px; transform: rotate(-4deg); }
.cta-art .illo { max-width: 240px; margin-left: auto; }
@media (max-width: 860px) {
  .cta-box { grid-template-columns: 1fr; }
  .cta-art, .cta-note { display: none; }
}

/* ============================== Footer (every page) ============================== */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--line); background: var(--soft); }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.foot-brand .foot-legal { margin: 14px 0 0; max-width: 420px; font-size: 13px; }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(130px, auto)); gap: 48px; }
.foot-cols h3 { margin: 0 0 14px; color: var(--ink); font-size: 14px; font-weight: 600; }
.foot-cols a { display: block; padding: 5px 0; color: var(--muted); font-size: 15px; text-decoration: none; }
.foot-cols a:hover { color: var(--ink); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot-bottom a { color: var(--muted); text-decoration: none; }
.foot-bottom a:hover { color: var(--ink); }
@media (max-width: 680px) { .foot-cols { grid-template-columns: 1fr 1fr; gap: 28px; } }

/* ============================== Page hero (every page but home) ============================== */
.page-hero { padding: clamp(48px, 6vw, 84px) 0 clamp(56px, 6vw, 88px); border-bottom: 1px solid var(--line); }
.page-hero .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.page-hero .illo { max-width: 470px; margin-left: auto; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.jump a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
.jump a::after { content: "↓"; color: var(--accent); transition: transform .25s var(--ease); }
.jump a:hover::after { transform: translateY(2px); }
.page-hero .billing { margin-top: 30px; }
@media (max-width: 860px) {
  .page-hero .split { grid-template-columns: 1fr; }
  .page-hero .illo { max-width: 400px; margin: 0 auto; }
}

/* ============================== Error page: one page for every error ============================== */
.error-page { padding: clamp(56px, 8vw, 110px) 0 clamp(80px, 9vw, 130px); }
.error-page .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.error-page .art .illo { max-width: 440px; }
.err-auto { margin: 20px 0 0; color: var(--muted); font-size: 15px; }
.err-auto b { color: var(--ink); font-variant-numeric: tabular-nums; }
.err-code-line { margin: 28px 0 0; color: var(--muted); font: 500 13px/1 var(--mono); }
@media (max-width: 860px) { .error-page .split { grid-template-columns: 1fr; } }

/* ============================== Platform: story beside a console ============================== */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 76vh; padding: 40px 0; }
.js .step { opacity: .32; transition: opacity .5s; }
.js .step.on { opacity: 1; }
.step h2 { margin: 0; color: var(--ink); font: 600 clamp(26px, 2.8vw, 38px)/1.12 var(--sans); letter-spacing: -.03em; text-wrap: balance; }
.points { display: grid; margin: 28px 0 0; }
.points div { padding: 15px 0; border-top: 1px solid var(--line); }
.points dt { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 16px; font-weight: 600; }
.points dt .ic { width: 17px; height: 17px; color: var(--accent); }
.points dd { margin: 5px 0 0 27px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.story-stage { position: sticky; top: max(92px, calc(50vh - 280px)); align-self: start; }

.console { border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.console-bar { display: flex; align-items: center; gap: 16px; height: 50px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fbfaf7; }
.console-tabs { display: flex; align-self: stretch; margin: 0 auto; }
.console-tabs button { padding: 0 14px; border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--sans); cursor: pointer; transition: color .2s, box-shadow .2s; }
.console-tabs button:hover { color: var(--ink); }
.console-tabs button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.console-url { color: var(--muted); font: 12px/1 var(--mono); white-space: nowrap; }
.panels { display: grid; padding: 22px; }
.panel { min-width: 0; }
html:not(.js) .panels { gap: 28px; }
.js .panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s, transform .6s var(--ease), visibility .45s; }
.js .panel.on { opacity: 1; visibility: visible; transform: none; }

.org-head { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.org-head b, .team-row b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.org-head small, .team-row small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 9px; background: var(--mint-soft); color: var(--ok); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge .ic { width: 13px; height: 13px; }
.teams { display: grid; gap: 1px; margin: 16px 0 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--line); }
.teams li { padding: 14px; background: #fff; }
.js .teams li { opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.js .panel.on .teams li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 90ms + 120ms); }
.team-row { display: flex; align-items: center; gap: 12px; }
.team-row > span:nth-child(2) { flex: 1; min-width: 0; }
.teams .chips { margin: 12px 0 0 21px; }
.avatars { display: flex; gap: 3px; }
.avatars i { display: grid; place-items: center; width: 26px; height: 26px; background: #f1efe9; color: var(--ink-2); font: 600 10px/1 var(--sans); font-style: normal; }
.avatars i.more { color: var(--muted); }
.invite { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 5px; border: 1px solid var(--line-2); font-size: 13.5px; }
.invite-field { flex: 1; padding: 0 10px; color: var(--ink-2); }
.invite-team { padding: 7px 10px; background: #f1efe9; color: var(--muted); }
.invite-btn { padding: 8px 12px; background: var(--ink); color: #fff; font-weight: 600; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.kpis div { padding: 14px; background: #fff; }
.kpis small { display: block; color: var(--muted); font-size: 12.5px; }
.kpis b { display: block; margin-top: 6px; color: var(--ink); font: 600 clamp(22px, 2.2vw, 28px)/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.kpis em { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; font-style: normal; }
.kpis em.up { color: var(--ok); }
.area { position: relative; height: 120px; margin: 16px 0 18px; border: 1px solid var(--line); overflow: hidden; }
.area svg { display: block; width: 100%; height: 100%; }
.area-line { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; }
.js .area-line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .panel.on .area-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s .2s var(--ease); }
.area-cap { position: absolute; top: 10px; left: 12px; color: var(--muted); font-size: 12px; font-weight: 600; }
.usage-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.bars { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 84px 1fr 42px; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; }
.bars li span:last-child { color: var(--muted); font: 12px/1 var(--mono); text-align: right; }
.js .panel .bars .bar i { width: 0; transition: width 1.1s var(--ease); }
.js .panel.on .bars .bar i { width: var(--w); transition-delay: .25s; }
.stack { display: flex; height: 10px; gap: 2px; margin-bottom: 14px; }
.stack i { width: var(--w); }
.s-pro { background: var(--ink); }
.s-max { background: var(--accent); }
.s-fast { background: #7ea6f5; }
.legend { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 13.5px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend li i { width: 9px; height: 9px; }
.legend b { margin-left: auto; color: var(--muted); font: 500 12px/1 var(--mono); }

.rules-head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.rules-head b { color: var(--ink); font-size: 15px; font-weight: 600; }
.rules-head small { color: var(--muted); font-size: 13px; }
.rules { margin: 0 0 18px; padding: 0; list-style: none; }
.rules li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.rules b { color: var(--ink); font: 500 13px/1 var(--mono); }
.rules .val { color: var(--muted); font-size: 13.5px; }
.switch { position: relative; width: 34px; height: 18px; background: var(--line-2); }
.switch i { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: #fff; transition: transform .4s var(--ease); }
.switch.on { background: var(--accent); }
.switch.on i { transform: translateX(16px); }
.log { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.log li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); font-size: 13.5px; }
.js .log li { opacity: 0; transform: translateX(-6px); transition: opacity .45s, transform .5s var(--ease); }
.js .panel.on .log li { opacity: 1; transform: none; transition-delay: calc(var(--i) * 260ms + 350ms); }
.log .ic { width: 15px; height: 15px; }
.log em { margin-left: auto; font-size: 12px; font-weight: 600; font-style: normal; }
.log .ok .ic, .log .ok em { color: var(--ok); }
.log .no { background: #fdf2f1; border-color: #f2cfcb; }
.log .no .ic, .log .no em { color: var(--bad); }

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story-stage { position: relative; top: auto; order: -1; margin-bottom: 24px; }
  .step { min-height: 0; padding: 36px 0; }
  .js .step { opacity: 1; }
  .console-url { display: none; }
  .console-tabs { margin: 0 0 0 auto; }
}
@media (max-width: 560px) {
  .panels { padding: 14px; }
  .console-bar { padding: 0 10px; gap: 8px; }
  .console-bar .dots { display: none; }
  .console-tabs { margin: 0 auto; }
  .console-tabs button { padding: 0 10px; font-size: 13px; }
  .kpis div { padding: 10px; }
  .kpis b { font-size: 19px; }
  .usage-split { grid-template-columns: 1fr; }
  .teams .chips { margin-left: 0; }
  .avatars i:not(.more):nth-child(n+3) { display: none; }
  .invite-team { display: none; }
}

/* Platform: roles */
.roles-grid { grid-template-columns: repeat(3, 1fr); }
.role { padding: 32px; }
.role h3 { font-size: 21px; }
.role-glyph { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 22px; }
.role-glyph i { grid-area: 1 / 1; border-radius: 50%; border: 1.5px solid var(--line-2); }
.role-glyph i:nth-child(1) { width: 76px; height: 76px; }
.role-glyph i:nth-child(2) { width: 50px; height: 50px; }
.role-glyph i:nth-child(3) { width: 22px; height: 22px; }
.g-org i:nth-child(1), .g-team i:nth-child(2) { border: 2px solid var(--accent); background: rgba(232, 102, 58, .06); }
.g-member i:nth-child(3) { border: 2px solid var(--accent); background: var(--accent-soft); }
.role .kicker { margin-bottom: 8px; font-size: 14px; }
@media (max-width: 860px) { .roles-grid { grid-template-columns: 1fr; } }

/* ============================== Routing: the router ============================== */
.router-card { padding: clamp(18px, 3vw, 34px); border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.router-input { display: flex; align-items: center; gap: 10px; padding: 5px 5px 5px 16px; border: 1px solid var(--line-2); background: #fff; transition: border-color .2s, box-shadow .2s; }
.router-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.router-input > .ic { color: var(--accent); }
.router-input input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; }
.router-input input::placeholder { color: var(--muted); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.presets button { height: 36px; padding: 0 14px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.presets button:hover { border-color: var(--line-2); color: var(--ink); }
.presets button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); }
.router { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.15fr); align-items: center; gap: clamp(40px, 8vw, 110px); padding: clamp(36px, 5vw, 60px) clamp(0px, 1.5vw, 20px); }
.wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.wires path { fill: none; stroke: var(--line-2); stroke-width: 1.5; transition: stroke .4s; }
.wires path.on { stroke: var(--accent); }
.wires .pulse { fill: var(--accent); opacity: 0; transition: opacity .2s; }
.wires .pulse.moving { opacity: 1; }
.r-task { position: relative; z-index: 1; padding: 18px 20px; border: 1px solid var(--line-2); background: #fff; }
.r-task small, .r-hub small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.r-task p { margin: 6px 0 0; color: var(--ink); font-size: 18px; line-height: 1.35; }
.r-hub { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hub-core { position: relative; display: grid; place-items: center; width: 78px; height: 78px; border: 1px solid var(--line-2); background: #fff; }
.hub-core svg { width: 38px; height: 38px; color: var(--ink); }
.hub-core::after { content: ""; position: absolute; inset: -1px; border: 2px solid var(--accent); opacity: 0; }
.r-hub.flash .hub-core::after { animation: hubflash .8s var(--ease); }
@keyframes hubflash { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.4); } }
.r-models { position: relative; z-index: 1; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.r-models li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; transition: background .4s, border-color .4s, transform .5s var(--ease); }
.r-models li.on { border-color: var(--accent); background: #fff8f4; transform: translateX(6px); }
.r-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: #f1efe9; color: var(--ink); }
[data-model="fast"] .r-ico, .m-card-fast .r-ico { background: var(--sky-soft); color: var(--sky-text); }
[data-model="max"] .r-ico, .m-card-max .r-ico { background: var(--accent-soft); color: var(--accent-text); }
.r-name { flex: 1; min-width: 0; }
.r-name b { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; }
.r-name small { color: var(--muted); font-size: 13.5px; }
.router-result { min-height: 1.6em; margin: 0; color: var(--ink-2); font-size: 17px; text-align: center; text-wrap: balance; }
.router-result b { color: var(--ink); }
.router-note { margin: 8px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
@media (max-width: 760px) {
  .router { grid-template-columns: 1fr; gap: 44px; padding-inline: 0; }
  .r-hub small { display: none; }
  .r-models { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .r-models li { flex-direction: column; gap: 8px; padding: 14px 6px; text-align: center; }
  .r-models li.on { transform: translateY(-4px); }
  .r-name small { display: none; }
  .r-name b { font-size: 13px; }
  .router-input { padding-left: 12px; }
  .router-input > .ic { display: none; }
}

.levers { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .levers { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .levers { grid-template-columns: 1fr; } }

.model-grid { grid-template-columns: repeat(3, 1fr); }
.model-card { padding: 32px; }
.mc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.model-card h3 { font-size: 24px; letter-spacing: -.025em; }
.model-card .mc-for { margin-top: 4px; color: var(--muted); }
@media (max-width: 860px) { .model-grid { grid-template-columns: 1fr; } }

.fo { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.fo-req { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 16px 18px; border: 1px solid var(--line-2); }
.fo-req small { width: 100%; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fo-req b { color: var(--ink); font-size: 16px; font-weight: 600; }
.fo-providers { position: relative; display: grid; gap: 10px; margin: 0; padding: 0 0 0 28px; list-style: none; }
.fo-providers::before { content: ""; position: absolute; left: 10px; top: -16px; bottom: 26px; width: 1px; background: var(--line-2); }
.fo-providers li { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: #fff; transition: background .4s, border-color .4s; }
.fo-providers li::before { content: ""; position: absolute; left: -19px; top: 50%; width: 18px; height: 1px; background: var(--line-2); }
.fp-dot { width: 9px; height: 9px; background: var(--line-2); transition: background .3s; }
.fo-providers b { color: var(--ink); font-size: 15px; font-weight: 600; }
.fo-providers em { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 600; font-style: normal; transition: color .3s; }
.fo-providers li.trying { border-color: var(--accent); }
.fo-providers li.trying .fp-dot { background: var(--accent); animation: blink .8s ease-in-out infinite; }
.fo-providers li.trying em { color: var(--accent-text); }
.fo-providers li.failed { border-color: #f2cfcb; background: #fdf4f3; }
.fo-providers li.failed .fp-dot { background: var(--bad); }
.fo-providers li.failed em { color: var(--bad); }
.fo-providers li.ok { border-color: #b8e2c8; background: #f2fbf5; }
.fo-providers li.ok .fp-dot { background: var(--ok); }
.fo-providers li.ok em { color: var(--ok); }
@keyframes blink { 50% { opacity: .3; } }

/* ============================== Security ============================== */
.sec-top { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.sec-top .section-head { margin-bottom: 0; }
.lens-switch { margin-top: 30px; }
.lens { width: min(100%, 500px); margin-left: auto; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--shadow); }
.lens-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.lens-head b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.lens-head small { color: var(--muted); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.lens-tag { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 6px 9px; background: var(--mint-soft); color: var(--ok); font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .4s, color .4s; }
.lens-tag .ic { width: 13px; height: 13px; }
.lens-body { display: grid; gap: 12px; padding: 20px 18px; }
.bubble { max-width: 90%; margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.6; }
.bubble.me { justify-self: end; padding: 11px 15px; background: #f4f2ec; }
.bubble span { -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: color .5s, background-color .5s; }
.lens-meta { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); transition: background .5s; }
.lens-meta span { padding: 14px 18px; }
.lens-meta span + span { border-left: 1px solid var(--line); }
.lens-meta small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.lens-meta b { display: block; margin-top: 6px; color: var(--ink); font: 600 21px/1 var(--sans); letter-spacing: -.02em; transition: color .5s; }
.lens[data-lens-view="admin"] .bubble span { color: transparent; background-color: #e6e2d8; }
.lens[data-lens-view="admin"] .lens-tag { background: #f1efe9; color: var(--muted); }
.lens[data-lens-view="admin"] .lens-meta { background: #fff8f4; }
.lens[data-lens-view="admin"] .lens-meta b { color: var(--accent-text); }
@media (max-width: 860px) { .sec-top { grid-template-columns: 1fr; } .lens { margin: 0; } }

.trust { grid-template-columns: repeat(3, 1fr); }
.cmd { display: inline-flex; margin-top: 16px; padding: 9px 12px; border: 1px solid var(--line); background: var(--soft); color: var(--ink-2); font: 13px/1 var(--mono); }
.cmd span { margin-right: 8px; color: var(--accent-text); }
@media (max-width: 960px) { .trust { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .trust { grid-template-columns: 1fr; } }

/* A light terminal window: self-hosting and PowerCode */
.term { border: 1px solid var(--line-2); background: #fffdf8; box-shadow: var(--shadow); }
.term-bar { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #f8f5ee; color: var(--muted); font: 12px/1 var(--mono); }
.term-body { padding: 20px 22px 24px; font: 13.5px/1.9 var(--mono); }
.term-body p { margin: 0; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.term-body .pr { color: var(--accent-text); }
.term-body .t-out b { color: var(--ok); font-weight: 600; }
.term-body .t-out em { color: var(--muted); font-style: normal; }
.term-body .t-final { margin-top: 8px; color: var(--ink); font-weight: 600; }
.js [data-term] .t-out { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .45s var(--ease); }
.js [data-term].done .t-out { opacity: 1; transform: none; }
.js [data-term].done .t-out:nth-child(3) { transition-delay: .25s; }
.js [data-term].done .t-out:nth-child(4) { transition-delay: .5s; }
.js [data-term].done .t-out:nth-child(5) { transition-delay: .75s; }
.js [data-term].done .t-out:nth-child(6) { transition-delay: 1.1s; }
[data-type].typing::after { content: ""; display: inline-block; width: .55em; height: 1.1em; margin-left: 2px; vertical-align: -.2em; background: var(--accent); animation: blink 1s steps(2) infinite; }

/* ============================== Workspace ============================== */
.bento { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tile { min-height: 240px; }
.tile.wide { grid-column: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 26px; min-height: 300px; }
.viz { position: relative; }
.viz-files { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ft-in { display: grid; grid-template-columns: repeat(2, auto); gap: 4px; }
.ft { padding: 8px 10px; font: 600 11.5px/1 var(--mono); text-align: center; }
.f-pdf { background: #fdecea; color: var(--bad); }
.f-xls { background: var(--mint-soft); color: var(--ok); }
.f-doc { background: var(--sky-soft); color: var(--sky-text); }
.f-ppt { background: var(--accent-soft); color: var(--accent-text); }
.ft-arrow { color: var(--muted); }
.ft-out { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); background: #fff; }
.ft-out .ic { width: 22px; height: 22px; color: var(--accent); }
.ft-out b { display: block; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.ft-out small { color: var(--ok); font-size: 12.5px; font-weight: 600; }
.viz-research { display: grid; gap: 10px; }
.agent { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; }
.agent i { color: var(--muted); font-size: 12.5px; font-weight: 600; font-style: normal; }
.track { position: relative; height: 6px; background: #efece5; overflow: hidden; }
.track b { position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, var(--accent)); animation: scan 2.4s var(--ease) infinite; animation-delay: var(--d); }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.cites { display: flex; gap: 4px; margin-top: 6px; padding-left: 76px; }
.cites sup { display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); color: var(--ink-2); font: 600 11px/1 var(--mono); vertical-align: 0; }
.viz-connect { display: flex; align-items: center; justify-content: space-between; height: 90px; }
.viz-connect::before { content: ""; position: absolute; left: 22px; right: 22px; top: 50%; border-top: 1px dashed var(--line-2); }
.node { position: relative; z-index: 1; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); }
.n-core { width: 62px; height: 62px; background: var(--ink); }
.n-core svg { width: 30px; height: 30px; color: #fff; }
.term.mini { box-shadow: none; }
.term.mini .term-body { padding: 16px 18px; font-size: 12.5px; }
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile.wide { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .bento { grid-template-columns: 1fr; }
  .tile, .tile.wide { min-height: 0; }
}

.usecases { display: grid; justify-items: center; }
.uc-panels { display: grid; width: 100%; margin-top: 36px; }
.uc-panel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line-2); background: #fff; }
html:not(.js) .uc-panels { gap: 16px; }
html:not(.js) .uc-switch { display: none; }
.js .uc-panel { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s, transform .55s var(--ease), visibility .45s; }
.js .uc-panel.on { opacity: 1; visibility: visible; transform: none; }
.uc-copy h3 { margin: 0; color: var(--ink); font: 600 28px/1.1 var(--sans); letter-spacing: -.03em; }
.uc-copy p { margin: 10px 0 0; color: var(--muted); font-size: 16.5px; }
.uc-tasks { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--line); }
.uc-tasks li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #fff; color: var(--ink); font-size: 15.5px; }
@media (max-width: 760px) {
  .uc-panel { grid-template-columns: 1fr; }
  .uc-switch { display: grid; grid-template-columns: 1fr 1fr; grid-auto-flow: row; }
  .uc-switch .seg-thumb { display: none; }
  .uc-switch button[aria-pressed="true"] { background: var(--ink); }
  .uc-tasks li { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ============================== Pricing ============================== */
.save { margin-left: 6px; padding: 3px 6px; background: var(--mint-soft); color: var(--ok); font-size: 12px; font-weight: 700; }
.seg button[aria-pressed="true"] .save { background: var(--accent); color: #fff; }
.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 34px 30px; background: #fff; }
.plan h2 { margin: 0; color: var(--ink); font: 600 21px/1.2 var(--sans); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { padding: 5px 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }
.plan-for { margin: 6px 0 0; color: var(--muted); font-size: 15.5px; }
.price { display: flex; align-items: flex-start; gap: 4px; height: 68px; margin: 28px 0 0; color: var(--ink); font: 600 64px/1 var(--sans); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.price .cur { margin-top: 8px; color: var(--ink-2); font-size: 26px; letter-spacing: 0; }
.price.custom { align-items: center; font-size: 50px; }
.per { min-height: 2.8em; margin: 10px 0 24px; color: var(--muted); font-size: 14.5px; }
.plan-list { display: grid; gap: 11px; margin: 26px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan-list li { display: flex; gap: 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.plan-list .ic { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); }
.plan-list .lead-in { color: var(--muted); font-size: 14.5px; }
.plan.featured { background: #fffaf6; box-shadow: inset 0 3px 0 var(--accent); }
.fine { margin: 24px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
/* One plan for now: Enterprise, its terms on the left and everything it includes on the right */
.plan-solo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); max-width: 1000px; margin-inline: auto; padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); }
.plan-solo .plan-list { grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 0; padding: 0; border: 0; }
.plan-solo-alt { margin: 14px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .plan-solo, .plan-solo .plan-list { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* The bill in three parts, prepaid credits and five plans (home page and pricing page) */
.billstrip { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) 40px minmax(0, 1fr); align-items: stretch; margin: 0 0 18px; padding: 0; list-style: none; }
.billstrip > li:not(.op) { padding: 24px; border: 1px solid var(--line-2); background: #fff; }
.billstrip .op { display: grid; place-items: center; color: var(--accent-text); font: 600 34px/1 var(--hand); }
.billstrip small { display: block; color: var(--accent-text); font-size: 13px; font-weight: 600; }
.billstrip b { display: block; margin-top: 8px; color: var(--ink); font: 600 24px/1.15 var(--sans); letter-spacing: -.02em; }
.billstrip p { margin: 8px 0 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.credits { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 36px; padding: 14px 18px; border: 1px dashed var(--line-2); background: var(--soft); color: var(--ink-2); font-size: 15px; }
.credits .ic { color: var(--accent); }
.plans.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plans.five .plan { padding: 28px 22px; }
.plans.five .price { height: 52px; margin-top: 22px; font-size: 46px; }
.plans.five .price .cur { margin-top: 6px; font-size: 20px; }
.plans.five .price.word { align-items: center; font-size: 36px; letter-spacing: -.03em; }
.plans.five .per { min-height: 3em; margin: 8px 0 0; font-size: 14px; }
.plans.five .plan-list { margin-top: 18px; padding-top: 18px; gap: 9px; }
.plans.five .plan-list li { font-size: 14.5px; }
.plan .btn { margin-top: auto; }
.plan-list { margin-bottom: 24px !important; }
.fine-left { margin: 20px 0 0; color: var(--muted); font-size: 14px; max-width: 760px; }
.fine-left .st { margin-right: 6px; }
@media (max-width: 1180px) { .plans.five { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }
@media (max-width: 860px) {
  .billstrip { grid-template-columns: 1fr; }
  .billstrip .op { height: 34px; }
  .plans.five { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) { .plans.five { grid-template-columns: 1fr; } }
.plan h3 { margin: 0; color: var(--ink); font: 600 21px/1.2 var(--sans); }
.plans.five .plan-for { min-height: 2.9em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); background: #fff; }
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 15px 22px; border-bottom: 1px solid var(--line); text-align: left; }
.cmp-table thead th { color: var(--ink); font-size: 16px; font-weight: 600; border-bottom-color: var(--line-2); }
.cmp-table td, .cmp-table thead th:not(:first-child) { width: 17%; text-align: center; }
.cmp-table tbody th { color: var(--ink-2); font-weight: 400; }
.cmp-table .group th { padding-top: 26px; color: var(--accent-text); font-size: 14px; font-weight: 600; }
.cmp-table .hl { background: #fffaf6; }
.cmp-table thead .hl { box-shadow: inset 0 3px 0 var(--accent); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .cmp-table { min-width: 0; font-size: 13.5px; }
  .cmp-table th, .cmp-table td { padding: 13px 6px; }
  .cmp-table th:first-child { padding-left: 16px; }
  .cmp-table thead th { font-size: 13px; }
  .cmp-table td, .cmp-table thead th:not(:first-child) { width: 19%; }
}
.yes, .no { display: inline-block; width: 18px; height: 18px; overflow: hidden; color: transparent; vertical-align: middle; }
.yes { background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bf461a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.no { width: 12px; height: 2px; background: var(--line-2); }

/* ============================== Questions ============================== */
.faq-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.faq-in .section-head { position: sticky; top: 108px; margin-bottom: 0; }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list details:first-child { border-top: 1px solid var(--line-2); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; color: var(--ink); font: 600 clamp(17px, 1.5vw, 19px)/1.4 var(--sans); list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .ic { width: 28px; height: 28px; padding: 6px; border: 1px solid var(--line-2); color: var(--muted); transition: transform .4s var(--ease), color .2s, background .2s; }
.faq-list details[open] summary .ic { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-list details p { margin: 0; padding: 0 52px 24px 0; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
@supports selector(::details-content) {
  .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}
@media (max-width: 860px) {
  .faq-in { grid-template-columns: 1fr; }
  .faq-in .section-head { position: static; }
  .faq-list details p { padding-right: 0; }
}

/* ============================== Small screens ============================== */
@media (max-width: 480px) {
  .wrap, .nav-in, .mobile-menu nav { width: min(100% - 32px, var(--wrap)); }
  .spot { padding: 24px; }
  .actions { flex-direction: column; align-items: stretch; }
  .actions .btn { width: 100%; }
}

/* ============================== Reduced motion ============================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ============================== Phones: app-like touches ============================== */
@media (hover: none) and (pointer: coarse) {
  html { -webkit-tap-highlight-color: transparent; }
  a, button, summary, label { touch-action: manipulation; }
  .btn:active, .menu-btn:active { transform: scale(.98); }
}
.nav { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
.footer { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
@media (max-width: 920px) {
  /* the menu opens over the page, under the bar, instead of pushing the page down */
  .mobile-menu { position: absolute; left: 0; right: 0; top: 100%; height: calc(100dvh - 68px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 40px rgba(12, 26, 56, .1); animation: menu-drop .22s var(--ease); }
  .mobile-menu a { padding: 16px 0; }
  html:has(.mobile-menu:not([hidden])) { overflow: hidden; }
}
@keyframes menu-drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 680px) { .foot-cols a { padding: 9px 0; } }
/* the sideways drawing lines up with the 16px phone margins */
@media (max-width: 480px) { .wide-art { margin-inline: -16px; padding-inline: 16px; } }

/* ---------------- Desktop app (download.html) ---------------- */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 1000px; margin-inline: auto; }
.download { border: 1px solid var(--line); }
.download .btn { margin-top: 24px; }
.download .btn.is-off { opacity: .45; pointer-events: none; }
.download .v-label { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.dl-meta { min-height: 1.5em; margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.dl-steps { display: grid; gap: 10px; margin: 0; padding: 0 0 0 20px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.dl-steps li::marker { color: var(--accent-text); font-weight: 600; }
.dl-note { margin: 18px 0 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }
