/*
 * Sonela marketing site.
 *
 * Self-contained on purpose: no build step, no external fonts, no CDN, no tracking. The whole
 * site is three files that any static host (Azure Static Web Apps, Netlify, S3) serves as-is,
 * which is also what keeps it fast on the mobile connections SME buyers actually browse on.
 *
 * Design language deliberately mirrors the product dashboard: same ink/brand ramp, same
 * rounded-card geometry, so the site and the app look like one product.
 */

:root {
  /*
   * Every colour below is derived from the logo's four flat colours — sky #00a8e8,
   * ocean #0077b6, navy #003459, ink #00171f. brand-600 IS the ocean and brand-900 IS the navy,
   * so the mark in the header never sits on a surface it did not generate. This ramp is the
   * same one the dashboard declares in dashboard/src/styles.css: change one, change both.
   */

  /* Ink ramp — cool cyan-cast neutrals; 950 is the logo's own ink. */
  --ink-50: #f4f9fb;
  --ink-100: #e8f1f5;
  --ink-200: #d3e2e9;
  --ink-300: #b3c9d4;
  --ink-400: #86a3b2;
  /*
   * 500 is deliberately off the straight hue line (#5f8192 would be 4.17:1 on white — below AA)
   * and this stop is --muted, i.e. most of the running secondary copy on the page. #547484 is
   * the same hue and saturation, one notch darker, 4.99:1 on white.
   */
  --ink-500: #547484;
  --ink-600: #486877;
  --ink-700: #35505d;
  --ink-800: #243b46;
  --ink-900: #0e2530;
  --ink-950: #00171f;

  /* Brand ramp — ocean. 600 is the colour the widget ships with by default. */
  --brand-50: #eff8ff;
  --brand-100: #daf0fc;
  --brand-200: #b6e2f9;
  --brand-300: #7fcdf2;
  --brand-400: #38b6ea;
  --brand-500: #0092d6;
  --brand-600: #0077b6;
  --brand-700: #005f95;
  --brand-800: #004a76;
  --brand-900: #003459;
  --brand-950: #00223d;

  /*
   * Accent — the logo's sky. Decorative only: 2.7:1 on white means it is a gradient stop, a
   * fill, or an icon on a dark panel, never text on a light one.
   */
  --accent: #00a8e8;
  --accent-50: #f0faff;

  /* Semantic, not brand: amber means "attention" whatever the logo looks like. */
  --warn: #f59e0b;

  --page: #ffffff;
  --text: var(--ink-900);
  --muted: var(--ink-500);
  --line: var(--ink-200);
  --card: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  /* Shadow tint is ink-900, so even the shadows carry the palette's cyan cast. */
  --shadow-sm: 0 1px 2px rgb(14 37 48 / 0.06), 0 1px 3px rgb(14 37 48 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(14 37 48 / 0.08), 0 10px 20px -5px rgb(14 37 48 / 0.12);
  --shadow-lg: 0 20px 50px -12px rgb(14 37 48 / 0.25);

  --max: 1140px;
  --gutter: clamp(1rem, 4vw, 2rem);

  /* System stack: zero network cost and it already looks native on every target device. */
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

:focus-visible {
  outline: 3px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- layout primitives */

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

/*
 * The header is sticky and 68px tall, so an in-page jump used to land the target heading
 * underneath it — worst on a phone, where the drawer closes onto a section whose title is
 * already hidden. One rule covers every anchor on both pages.
 */
section[id],
.strip,
[id="top"] {
  scroll-margin-top: 84px;
}

.section--tight {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-600);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.75rem, 4.2vw, 2.6rem);
  margin-top: 0.75rem;
}

.section-head p {
  margin-top: 1rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--muted);
}

.center {
  text-align: center;
  margin-inline: auto;
}

/* ---------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 650;
  font-size: 0.975rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* White on brand-600 is 4.87:1 — the reason 600 and not 500 is the action colour. */
.btn--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: 0 6px 16px -6px rgb(0 119 182 / 0.7);
}

.btn--primary:hover {
  background: var(--brand-700);
  box-shadow: 0 10px 22px -8px rgb(0 119 182 / 0.8);
}

.btn--ghost {
  border-color: var(--line);
  background: #fff;
  color: var(--ink-700);
}

.btn--ghost:hover {
  border-color: var(--ink-300);
  background: var(--ink-50);
}

.btn--onDark {
  background: rgb(255 255 255 / 0.08);
  border-color: rgb(255 255 255 / 0.22);
  color: #fff;
  backdrop-filter: blur(6px);
}

.btn--onDark:hover {
  background: rgb(255 255 255 / 0.16);
}

.btn--lg {
  padding: 1rem 1.75rem;
  font-size: 1.0625rem;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header[data-scrolled="true"] {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

/* The real mark is portrait (an isometric cube), so height leads and width follows. */
.brand__mark {
  height: 34px;
  width: auto;
  flex: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/*
 * Navigation, not decoration. ink-600 at weight 550 measured fine on contrast (6.3:1) but read
 * as a caption row sitting between a 750-weight wordmark and two buttons — which is what "too
 * pale" was describing. ink-800 at 600 is 11.7:1 on the header's near-white glass and holds its
 * own against both neighbours.
 *
 * :not(.nav__signin) throughout: the drawer's sign-in control is an <a> inside .nav, and .nav a
 * would otherwise out-specify .btn--ghost and repaint the button.
 */
.nav a:not(.nav__signin) {
  position: relative;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-800);
  transition: background 0.15s ease, color 0.15s ease;
}

/*
 * The indicator is a scaleX on a pseudo-element, so hover, keyboard focus and the scroll-spy
 * state all animate on the compositor and none of them change the element's box — a nav that
 * reflows under the pointer is the usual cost of an underline-on-hover, and it is avoidable.
 */
.nav a:not(.nav__signin)::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 0.3rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-600), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.nav a:not(.nav__signin):hover {
  background: var(--ink-100);
  color: var(--ink-950);
}

.nav a:not(.nav__signin):hover::after,
.nav a:not(.nav__signin):focus-visible::after {
  transform: scaleX(1);
}

/*
 * Scroll-spy. aria-current carries the state, so the styling and the accessible name come from
 * one attribute — there is no class here that only sighted readers benefit from.
 */
.nav a[aria-current="true"] {
  color: var(--brand-700);
}

.nav a[aria-current="true"]::after {
  transform: scaleX(1);
}

/* Drawer-only; the desktop header carries its own copy in .header-cta. */
.nav__signin {
  display: none;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-800);
  position: relative;
  transition: background 0.15s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink-800);
  transition: transform 0.2s ease;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav,
  .header-cta .btn--ghost {
    display: none;
  }

  .nav[data-open="true"] {
    display: flex;
    position: absolute;
    inset: 68px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem var(--gutter) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    /* Landscape phones and short windows: the panel scrolls instead of running off the page. */
    max-height: calc(100dvh - 68px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav[data-open="true"] a:not(.nav__signin) {
    padding: 0.85rem 0.75rem;
    font-size: 1rem;
  }

  /* Full-width rows: the indicator spans the row rather than underlining one word of it. */
  .nav[data-open="true"] a:not(.nav__signin)::after {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.5rem;
  }

  /*
   * Sign-in surfaces here rather than in the bar. The header has room for exactly one action
   * at this width and that slot belongs to the conversion CTA — but the route to the dashboard
   * was previously display:none below 860px, i.e. unreachable on a phone entirely.
   */
  .nav__signin {
    display: inline-flex;
    width: 100%;
    margin-top: 0.7rem;
  }
}

/*
 * Narrow phones. The header action, the wordmark and the toggle share one line, and at 320px
 * that line has no slack to spare: the CTA measures ~113px here, which leaves the brand lockup,
 * the toggle and both gutters inside 320px. It is still a 38px tap target, so nothing is traded
 * away for the space.
 */
@media (max-width: 420px) {
  .site-header .wrap {
    gap: 0.5rem;
  }

  .header-cta {
    gap: 0.4rem;
  }

  .header-cta .btn--primary {
    padding: 0.55rem 0.7rem;
    font-size: 0.8125rem;
  }

  .nav-toggle {
    width: 38px;
    height: 38px;
  }

  .brand span {
    font-size: 1rem;
  }

  .brand__mark {
    height: 30px;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  padding-block: clamp(3rem, 8vw, 5.5rem) clamp(3rem, 8vw, 5rem);
  background:
    radial-gradient(1100px 520px at 78% -8%, var(--brand-50), transparent 62%),
    radial-gradient(760px 420px at 8% 8%, var(--accent-50), transparent 60%);
  overflow: hidden;
}

/*
 * A very slow drift over the hero's static washes — 24 seconds, a few percent of travel. At
 * that speed it reads as depth rather than as movement, which is the only kind of ambient
 * animation a page selling caution should carry. It is also the page's only one.
 *
 * The global prefers-reduced-motion rule collapses animation-duration to ~0, so a reader who
 * asked for stillness gets the first frame and nothing else.
 */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% -12% auto;
  z-index: 0;
  height: 75%;
  background: radial-gradient(620px 320px at 32% 42%, rgb(0 168 232 / 0.2), transparent 66%);
  filter: blur(24px);
  pointer-events: none;
  animation: drift 24s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-3%, 0, 0);
  }
  to {
    transform: translate3d(3%, 2%, 0);
  }
}

.hero__grid {
  /* Positioned so the content paints above .hero::before, which is positioned and would
     otherwise sit on top of a static grid regardless of source order. */
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }
}

/*
 * The floor is 2rem rather than 2.25rem: at 320px the headline is nine words with two long
 * ones ("business", "something"), and 36px pushed it to five lines that filled the viewport
 * before the lede appeared. 32px lands it in four and lets the proof chips into first screen.
 */
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.75rem);
  margin-top: 1.1rem;
}

.hero h1 .grad {
  background: linear-gradient(100deg, var(--brand-600), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  margin-top: 1.25rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--ink-600);
  max-width: 34rem;
}

.hero__actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/*
 * The three objections that decide whether the rest of the page gets read: what do I have to
 * install, can it damage my data, am I locked to your model. This is the scanned part of the
 * hero, so it is chips rather than prose.
 *
 * Flex is safe here in a way it was not for the sentence this replaces: every chip is a
 * complete <li>, so the gap can only ever land between chips. A flex container over bare text
 * nodes promotes each one to an item and inserts the gap mid-phrase ("Read-only , always").
 */
.hero__proof {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero__proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  /* Translucent: the hero's washes read through the chips instead of being punched out. */
  background: rgb(255 255 255 / 0.72);
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-700);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.hero__proof li:hover {
  transform: translateY(-1px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}

.hero__proof svg {
  flex: none;
  color: var(--brand-600);
}

/* ---------------------------------------------------------------- hero integration line */

/*
 * The hero copy column is a grid item and now holds tokens that cannot wrap internally. Grid
 * items default to min-width: auto, so without this the column is floored at that line's
 * intrinsic width and the whole page gains horizontal scroll on a phone — the same trap the
 * .step/.feature/.plan/.claim rule further down already guards. Applied to the children of
 * .hero__grid rather than via a new class, so a later markup edit cannot drop the guard by
 * forgetting an attribute. If a wrapper is ever introduced between .hero__grid and .oneline,
 * it needs min-width: 0 too.
 */
.hero__grid > * {
  min-width: 0;
}

.oneline {
  margin-top: 1.5rem;
  max-width: 34rem; /* same measure as .hero__lede: evidence inside the text column */
}

.oneline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.oneline__label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0; /* the caption may wrap; the button never shrinks */
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--ink-700);
}

.oneline__label svg {
  flex: none;
  color: var(--brand-600);
}

/* Echoes .btn--ghost at caption scale, on white — so it never competes with the hero CTAs. */
.oneline__copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.oneline__copy:hover {
  border-color: var(--ink-300);
  background: var(--ink-50);
}

.oneline__copy svg {
  flex: none;
}

.oneline__copy .i-done,
.oneline__copy[data-state="done"] .i-copy {
  display: none;
}

.oneline__copy[data-state="done"] .i-done {
  display: block;
}

/*
 * Success is on-brand, not green: --accent at this size on white is about 2.7:1 and fails as
 * text. The tick carries the semantics, the live region carries the message, colour only
 * reinforces.
 */
.oneline__copy[data-state="done"] {
  border-color: var(--brand-600);
  background: var(--brand-50);
  color: var(--brand-700);
}

.oneline__copy[data-state="fail"] {
  border-color: var(--warn);
}

.oneline__bar {
  background: var(--ink-950);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

/*
 * overflow-x is a containment valve, not the reading mode: with the wrap rules below the line
 * does not need it at any width above roughly 341px. It stays because a scroll inside this box
 * is always better than a scroll on the page. tabindex/role/aria-labelledby because a scroll
 * container reachable only by mouse fails WCAG 2.1.1.
 */
.oneline__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain; /* swiping the code must not navigate the page */
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--ink-700) transparent;
}

/* The global :focus-visible ring is --brand-500 on white; it does not carry on --ink-950. */
.oneline__scroll:focus-visible {
  outline: 3px solid var(--brand-300);
  outline-offset: 2px;
}

.oneline__code {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.75;
  color: var(--ink-200); /* 13.9:1 on the ink-950 bar */

  /*
   * pre-wrap, not pre: the line stays on one line wherever it fits, and where it does not it
   * breaks only at the spaces between attributes — where a developer would break it by hand.
   * The hanging indent makes a continuation read as the same tag continuing rather than as a
   * second line of a multi-line snippet, and it costs zero characters, so textContent stays
   * byte-for-byte the real integration line.
   */
  white-space: pre-wrap;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-hyphens: none;
  hyphens: none;
  padding-inline-start: 1ch;
  text-indent: -1ch;
}

/*
 * The guarantee that a URL is never sliced in half. overflow-wrap: normal alone does NOT give
 * it — UAX #14 permits a line break after "/" and browsers take it, so "https://cdn.sonela."
 * could legally end a line and the reader would be shown a URL that is not the URL. Each
 * attribute is its own nowrap atom, so the only break opportunities are the plain spaces the
 * markup puts between them.
 */
.oneline__atom {
  white-space: nowrap;
}

/* Phones: one step down the mono scale is what keeps the 40-character src atom inside 375px. */
@media (max-width: 520px) {
  .oneline__code {
    font-size: 0.7rem;
  }

  .oneline__scroll {
    padding: 0.7rem 0.75rem;
  }
}

.oneline__foot {
  margin-top: 0.55rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Announced, not shown. Visually hidden, never display:none — it must still be read out. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------------------------------------------------------------- demo chat mock */

.demo {
  position: relative;
}

.demo__frame {
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.demo__chrome {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: var(--ink-50);
  border-bottom: 1px solid var(--line);
}

.demo__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-300);
}

.demo__url {
  margin-left: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-400);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo__body {
  position: relative;
  min-height: 340px;
  padding: 1rem;
  background:
    linear-gradient(var(--ink-100) 1px, transparent 1px) 0 0 / 100% 34px,
    #fff;
}

.demo__skeleton {
  display: grid;
  gap: 0.55rem;
  opacity: 0.5;
}

.demo__skeleton i {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: var(--ink-200);
}

.demo__skeleton i:nth-child(1) {
  width: 45%;
}
.demo__skeleton i:nth-child(2) {
  width: 78%;
}
.demo__skeleton i:nth-child(3) {
  width: 62%;
}
.demo__skeleton i:nth-child(4) {
  width: 70%;
}

.chat {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: min(300px, calc(100% - 28px));
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat__head {
  background: var(--brand-600);
  color: #fff;
  padding: 0.7rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 650;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat__status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 550;
  opacity: 0.9;
}

.chat__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

.chat__log {
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  background: var(--ink-50);
  min-height: 190px;
  max-height: 260px;
  overflow: hidden;
}

.msg {
  max-width: 88%;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.45;
  animation: rise 0.35s ease both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.msg--user {
  align-self: flex-end;
  background: var(--brand-600);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.msg--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 4px;
}

.msg--typing {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  padding: 0.7rem 0.8rem;
}

.msg--typing i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-400);
  animation: blink 1.3s infinite;
}

.msg--typing i:nth-child(2) {
  animation-delay: 0.18s;
}

.msg--typing i:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes blink {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.msg table {
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  width: 100%;
}

.msg th,
.msg td {
  border: 1px solid var(--line);
  padding: 0.2rem 0.4rem;
  text-align: left;
  white-space: nowrap;
}

.msg th {
  background: var(--ink-100);
  font-weight: 650;
}

.chat__foot {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat__foot .fake-input {
  flex: 1;
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  color: var(--ink-400);
}

.chat__foot .fake-send {
  background: var(--brand-600);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 650;
}

/* ---------------------------------------------------------------- trust strip */

.strip {
  border-block: 1px solid var(--line);
  background: var(--ink-50);
}

/*
 * A grid, not wrapping flex with space-between. The four claims are different lengths, so
 * flex-wrap put three on one line and one orphaned below it, with the gaps redistributed each
 * time the viewport moved — the row read as an accident on exactly the phone widths where it is
 * the first thing under the hero. Fixed tracks stack predictably: 4 → 2 → 1.
 */
.strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
  align-items: center;
  padding-block: 1.5rem;
}

@media (max-width: 860px) {
  .strip__inner {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .strip__inner {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
}

.strip__item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-700);
}

/* A tinted disc gives each claim a fixed optical anchor, so the row scans as four items. */
.strip__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
}

/* ---------------------------------------------------------------- steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 3vw, 1.75rem);
  counter-reset: step;
}

@media (max-width: 880px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

/*
 * min-width: 0 on every grid child that can contain something unwrappable (the code block, a
 * wide table). Grid items default to min-width: auto, so without this they refuse to shrink
 * below their content's intrinsic width and push the whole page into horizontal scroll on a
 * phone — the overflow-x: auto on the inner container never gets a chance to do its job.
 */
.step,
.feature,
.plan,
.claim {
  min-width: 0;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}

/*
 * Solid ocean with a white numeral rather than the previous brand-50 tint: this is the count
 * of everything the customer has to do, so it should carry weight. White on brand-600 is
 * 4.87:1 — a gradient into --accent would look better and land near 3.4:1 on 15px bold, which
 * is a fail, so the gradient stays on decoration and off anything anyone has to read.
 */
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-600);
  color: #fff;
  font-weight: 750;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
  box-shadow: 0 4px 12px -4px rgb(0 119 182 / 0.6);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--muted);
  font-size: 0.9375rem;
}

.code {
  margin-top: 1rem;
  background: var(--ink-950);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.95rem;
  overflow-x: auto;
}

.code pre {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--ink-200);
  white-space: pre;
}

/*
 * One source of truth for token colours across the hero line and the step-3 block.
 * The tag colour is accent-300, so the brand hue leads even inside the code sample. Attribute
 * and value stay violet/green: a syntax scheme needs three separable hues, and forcing them
 * onto one ramp would make the snippet harder to read for no brand gain. They read as code,
 * not as chrome.
 */
.code .t,
.oneline .t {
  color: #6ed3f7;
}
.code .a,
.oneline .a {
  color: #c4b5fd;
}
.code .v,
.oneline .v {
  color: #86efac;
}

/* ---------------------------------------------------------------- features */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 980px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-50);
  color: var(--brand-600);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.0625rem;
  margin-bottom: 0.4rem;
}

.feature p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------------------------------------------------------------- security (dark) */

.dark {
  background:
    radial-gradient(900px 400px at 85% 0%, rgb(0 119 182 / 0.35), transparent 60%),
    var(--ink-950);
  color: var(--ink-100);
}

.dark .section-head h2 {
  color: #fff;
}

.dark .section-head p,
.dark .muted {
  color: var(--ink-400);
}

.dark .eyebrow {
  color: var(--brand-300);
}

.claims {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

@media (max-width: 820px) {
  .claims {
    grid-template-columns: 1fr;
  }
}

.claim {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

/* Sky is the accent that can carry a border on ink-950 — it only fails as text on white. */
.claim:hover {
  transform: translateY(-2px);
  border-color: rgb(0 168 232 / 0.45);
  background: rgb(255 255 255 / 0.07);
}

.claim h3 {
  font-size: 1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.claim h3 svg {
  color: var(--accent);
  flex: none;
}

.claim p {
  font-size: 0.9rem;
  color: var(--ink-400);
}

.honesty {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-radius: var(--radius);
  border: 1px solid rgb(255 255 255 / 0.12);
  overflow: hidden;
}

.honesty__head {
  padding: 1rem 1.25rem;
  background: rgb(255 255 255 / 0.06);
  border-bottom: 1px solid rgb(255 255 255 / 0.1);
  font-weight: 650;
  color: #fff;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.honesty__body {
  overflow-x: auto;
}

.honesty table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 520px;
}

/*
 * Phones read this table — it is the section's whole argument — and they should not have to
 * discover a horizontal scroll inside a dark panel to do it. Below 560px the floor comes off
 * and the two columns wrap; both hold short phrases, so wrapping costs less than the swipe
 * did. overflow-x on .honesty__body stays as the valve for anything that still overruns.
 */
@media (max-width: 560px) {
  .honesty table {
    min-width: 0;
  }

  .honesty th,
  .honesty td {
    padding: 0.7rem 0.9rem;
  }

  .honesty td:first-child {
    width: 38%;
  }
}

/*
 * The one-pager is what actually closes the trust conversation — a prospect forwards it to
 * whoever approves the connection. As a tinted text link under a long dark section it was
 * being scrolled past.
 */
.security__cta {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.security__cta span {
  font-size: 0.875rem;
  color: var(--ink-400);
}

.honesty th,
.honesty td {
  text-align: left;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
  vertical-align: top;
}

.honesty th {
  color: var(--ink-300);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.honesty td:first-child {
  color: #fff;
  font-weight: 550;
  width: 42%;
}

.honesty td:last-child {
  color: var(--ink-400);
}

.yes,
.no {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 650;
}

.yes {
  color: #4ade80;
}

.no {
  color: #fca5a5;
}

/* ---------------------------------------------------------------- pricing */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
  align-items: start;
}

@media (max-width: 980px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 30rem;
    margin-inline: auto;
  }
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.plan--featured {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-50), var(--shadow-md);
  position: relative;
}

.plan__tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-600);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.plan h3 {
  font-size: 1.0625rem;
}

.plan__price {
  margin-top: 0.85rem;
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}

.plan__price b {
  font-size: 2.25rem;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.plan__price span {
  color: var(--muted);
  font-size: 0.9rem;
}

.plan__note {
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 2.4em;
}

.plan ul {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.plan li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.plan li svg {
  flex: none;
  color: var(--brand-600);
  margin-top: 0.25rem;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink-50);
  margin-top: 1.5rem;
}

.billing-toggle button {
  border: 0;
  background: transparent;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-600);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.billing-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}

/*
 * brand-600, not --accent: this is 11px text on a light toggle, and sky is 2.7:1 there. The
 * saving is a real number the buyer is meant to read, so it gets a colour that passes.
 */
.save-badge {
  margin-left: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--brand-600);
}

/* ---------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 48rem;
  margin-inline: auto;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  overflow: hidden;
}

.faq details[open] {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-sm);
}

.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 650;
  font-size: 1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary:hover {
  background: var(--brand-50);
}

.faq summary::-webkit-details-marker {
  display: none;
}

/*
 * The answer eases in on open. Not the disclosure box itself: animating a <details> height
 * needs ::details-content, which is too new to rely on, and a JS height dance for a decorative
 * 200ms is not worth the code. Reuses the chat mock's keyframes, and the global
 * reduced-motion rule collapses it to nothing.
 */
.faq details[open] > p {
  animation: rise 0.28s ease both;
}

.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--brand-600);
  line-height: 1;
  flex: none;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

/*
 * Multi-paragraph answers: only the closing paragraph carries the block's bottom padding, so an
 * answer with two or three parts reads as one answer rather than three stacked gaps.
 */
.faq p:not(:last-child) {
  padding-bottom: 0.65rem;
}

/* The lead-in of a branching answer ("Have a server?") has to out-weigh the muted body. */
.faq p strong {
  color: var(--ink-800);
  font-weight: 650;
}

/* ---------------------------------------------------------------- cta + footer */

.cta {
  border-radius: clamp(18px, 3vw, 28px);
  padding: clamp(2.5rem, 6vw, 4rem);
  /* Ocean lit from the top-left by sky, falling away to the logo's navy. */
  background:
    radial-gradient(700px 300px at 20% 0%, rgb(0 168 232 / 0.35), transparent 60%),
    linear-gradient(120deg, var(--brand-700), var(--brand-600) 55%, var(--brand-900));
  color: #fff;
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

.cta p {
  margin-top: 1rem;
  color: rgb(255 255 255 / 0.85);
  max-width: 34rem;
  margin-inline: auto;
}

.cta__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta .btn--primary {
  background: #fff;
  color: var(--brand-700);
  box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5);
}

.cta .btn--primary:hover {
  background: var(--brand-50);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 2.5rem 3rem;
  margin-top: clamp(3rem, 8vw, 5rem);
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer__about {
  max-width: 22rem;
}

.footer__about p {
  margin-top: 0.85rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__links {
  display: flex;
  gap: clamp(2rem, 6vw, 4rem);
  flex-wrap: wrap;
}

.footer__col h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-400);
  margin-bottom: 0.85rem;
}

/* 0.45rem block padding puts these at a ~36px row on a phone; 0.3rem was a 26px target. */
.footer__col a {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-600);
  padding-block: 0.45rem;
}

.footer__col a:hover {
  color: var(--brand-600);
}

.footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Reveal-on-scroll: opt-in per element, and a no-JS/reduced-motion safe default. */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Reachable by keyboard, off-screen for everyone else — and never on paper. */
.skip-link {
  position: absolute;
  left: -9999px;
}

/* ---------------------------------------------------------------- one-pager document */

/*
 * security.html — the printable deal artifact. Deliberately LIGHT rather than reusing the home
 * page's dark security section: this page's destination is a PDF attached to a vendor review,
 * and a full-bleed ink-950 panel is a page of toner that many reviewers' printers will drop
 * anyway. The palette, radii and type scale are the same tokens, so it still reads as one
 * product.
 *
 * Body copy here sits on --ink-700, not --muted. On screen --muted is correct for secondary
 * prose; printed at 9pt it is the primary text of a document someone has to read closely.
 */

.doc {
  padding-block: clamp(2rem, 5vw, 3.25rem) clamp(2.5rem, 6vw, 4rem);
}

/*
 * The footer's own top margin exists to separate it from a marketing section that ends flush.
 * This page already closes on a ruled block with its own breathing room, and stacking both
 * leaves a screenful of nothing between the sign-off and the copyright line.
 */
.doc + .site-footer {
  margin-top: 0;
}

.doc__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  border-bottom: 2px solid var(--ink-950);
}

.doc__lockup {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  flex-wrap: wrap;
}

.doc__wordmark {
  font-weight: 750;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.doc__rule {
  width: 1px;
  height: 20px;
  background: var(--line);
}

.doc__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-600);
}

/* Echoes .oneline__copy: a caption-scale ghost control that never competes with a real CTA. */
.doc-print {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-700);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.doc-print:hover {
  border-color: var(--ink-300);
  background: var(--ink-50);
}

.doc-print svg {
  flex: none;
}

/* Its only behaviour is window.print(); with scripting off it would be a control that lies. */
.no-js .doc-print {
  display: none;
}

.doc__title {
  margin-top: 1.35rem;
  font-size: clamp(1.6rem, 4.2vw, 2.35rem);
}

.doc__lede {
  margin-top: 0.85rem;
  max-width: 46rem;
  color: var(--ink-600);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
}

.doc-section {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
}

/* ---- legal pages ---- */

/*
 * terms.html is running prose; the one-pager is lists, tables and exhibits. Scoped to
 * .doc--legal rather than styling bare <p> inside .doc-section, so nothing here can reach into
 * security.html — that page's every measurement is tuned to land on one A4 sheet.
 *
 * Body copy sits on ink-700 for the same reason it does there: at print scale this is the
 * primary text of a document someone has to read closely, not secondary prose.
 */
.doc--legal .doc-section {
  margin-top: clamp(1.5rem, 3.5vw, 2.25rem);
}

.doc--legal .doc-section > p {
  margin-top: 0.8rem;
  max-width: 46rem;
  font-size: 0.9375rem;
  color: var(--ink-700);
}

.doc--legal a {
  color: var(--brand-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* The sign-off block is a contact card, not a citation, so it keeps the page's link style. */
.doc--legal .doc-close__contact a {
  text-decoration: none;
}

.doc-meta {
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

.doc-list {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  max-width: 46rem;
}

.doc-list li {
  margin-top: 0.4rem;
  font-size: 0.9375rem;
  color: var(--ink-700);
}

.doc-list li::marker {
  color: var(--brand-400);
}

.doc-list strong {
  color: var(--ink-900);
  font-weight: 650;
}

.doc-h {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

.doc-sub {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 46rem;
}

/* ---- the claim ladder ---- */

.rungs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.75rem, 2vw, 1.1rem);
  margin-top: 1.1rem;
  align-items: start;
}

/* Same min-width: 0 discipline as .step/.feature/.plan/.claim — these hold <code> runs. */
.rungs > * {
  min-width: 0;
}

@media (max-width: 760px) {
  .rungs {
    grid-template-columns: 1fr;
  }
}

.rung {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

/*
 * The two rungs that carry list detail run the full width; the short ones pair up between them.
 * Explicit rather than an :nth-child rule, so reordering the ladder cannot silently change the
 * layout of an argument whose order is the point.
 */
.rung--wide {
  grid-column: 1 / -1;
}

.rung__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight: 750;
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.rung h3 {
  font-size: 1rem;
  margin-bottom: 0.45rem;
}

.rung p {
  font-size: 0.9rem;
  color: var(--ink-700);
}

.rung__more {
  margin-top: 0.6rem;
}

.rung__list {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

/* Inside a full-width rung the list would otherwise run to a 90-character measure. */
@media (min-width: 761px) {
  .rung--wide .rung__list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

.rung__list li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--ink-700);
}

.rung__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand-400);
}

.rung code,
.doc-table code {
  font-family: var(--mono);
  font-size: 0.85em;
  padding: 0.05em 0.3em;
  border-radius: 4px;
  background: var(--ink-100);
  color: var(--ink-800);
}

/* ---- the rewrite exhibit ---- */

.doc-code {
  margin-top: 1.1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-50);
}

.doc-code__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.doc-code__panes {
  display: grid;
  gap: 0.85rem;
}

.doc-code__pane {
  min-width: 0;
}

.doc-code__label + .doc-code__scroll {
  margin-top: 0.35rem;
}

/* overflow-x is the containment valve; pre-wrap means it is not the reading mode. */
.doc-code__scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-sm);
  background: #fff;
}

.doc-code__scroll code {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--ink-800);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.doc-code__foot {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---- the honesty table ---- */

/*
 * No min-width here, unlike the home page's .honesty table: this one has to survive both a
 * 375px phone and an A4 column, so it wraps rather than scrolls. overflow-x stays as the valve.
 */
.doc-table {
  margin-top: 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.doc-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

.doc-table tbody tr:last-child th,
.doc-table tbody tr:last-child td {
  border-bottom: 0;
}

.doc-table thead th {
  background: var(--ink-50);
  color: var(--ink-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.doc-table tbody th {
  width: 30%;
  min-width: 8.5rem;
  color: var(--ink-900);
  font-weight: 650;
}

.doc-table td {
  color: var(--ink-700);
}

/*
 * Verdict chips. Border + weight carry the meaning, so the distinction survives a monochrome
 * printer or a reviewer with a colour-vision deficiency — the fill only reinforces it.
 */
.chip {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.05rem 0.45rem;
  border: 1px solid;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 1px;
}

.chip--transit {
  color: var(--brand-700);
  border-color: var(--brand-300);
  background: var(--brand-50);
}

.chip--never {
  color: var(--ink-800);
  border-color: var(--ink-300);
  background: var(--ink-100);
}

/* ---- roadmap note ---- */

.doc-note {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--ink-50);
}

.doc-note__tag {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-600);
}

.doc-note p {
  font-size: 0.9rem;
  color: var(--ink-700);
}

/* ---- close ---- */

.doc-close {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  padding-top: 1rem;
  border-top: 2px solid var(--ink-950);
}

.doc-close__body {
  min-width: 0;
  max-width: 44rem;
}

.doc-close h2 {
  font-size: clamp(1.1rem, 2.6vw, 1.35rem);
}

.doc-close p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--ink-700);
}

.doc-close__contact {
  display: grid;
  gap: 0.15rem;
  font-size: 0.9rem;
  font-weight: 650;
}

.doc-close__contact a {
  color: var(--brand-700);
}

.doc-close__contact span {
  color: var(--muted);
  font-weight: 550;
}

/* ---------------------------------------------------------------- print */

/*
 * Browser print → clean PDF, no export step. The one-pager is the reason this block exists, but
 * every rule is either scoped to .doc* or is an improvement the home page also wants (chrome
 * off, backgrounds honoured, cards not split across a page break).
 */
@media print {
  @page {
    size: A4;
    margin: 12mm 12mm 10mm;
  }

  /*
   * One lever for the whole document: everything is sized in rem, so moving the root from the
   * print default (~12pt) scales the entire page proportionally instead of asking every rule to
   * carry a second, print-only number that could drift out of step with the screen one.
   *
   * 7.8pt is what makes the argument fit one A4 sheet with a few millimetres to spare for the
   * font metrics a different browser or printer driver will pick. Body copy lands just over 7pt,
   * which is datasheet scale — dense, but a document read at a desk, not across a room.
   *
   * This is the WRONG dial to reach for twice. If the page grows past one sheet again, cut
   * words: a one-pager that needs 6pt is a two-pager in denial.
   */
  html {
    font-size: 7.8pt;
  }

  html,
  body {
    background: #fff;
  }

  body {
    line-height: 1.3;
  }

  /*
   * Backgrounds and borders here are not decoration: the verdict chips, the rung numbers and the
   * rules that separate sections are how the document is read. Without exact colour the browser
   * drops them and the page prints as undifferentiated text.
   */
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-header,
  .site-footer,
  .nav-toggle,
  .skip-link,
  .doc-print {
    display: none;
  }

  /* The page IS the margin box; a max-width and gutter here would inset it a second time. */
  .wrap {
    max-width: none;
    padding-inline: 0;
  }

  a {
    color: inherit;
    text-decoration: none;
  }

  /* Never leave a reveal element unrevealed on paper if the observer has not fired yet. */
  .reveal {
    opacity: 1;
    transform: none;
  }

  .doc {
    padding-block: 0;
  }

  .doc__head {
    padding-bottom: 2mm;
  }

  .doc__title {
    font-size: 15pt;
    margin-top: 3mm;
  }

  .doc__lede {
    margin-top: 1.5mm;
    max-width: none;
  }

  .doc-section {
    margin-top: 2.2mm;
    break-inside: avoid;
  }

  .doc-h {
    font-size: 10pt;
    padding-bottom: 0.6mm;
  }

  .doc-sub {
    margin-top: 1.5mm;
    max-width: none;
  }

  /*
   * Restated, not inherited: an A4 content box is about 700 CSS pixels wide, which lands under
   * the 760px stacking breakpoint — so without this the ladder would print as one tall column
   * and the page would spill onto a second sheet.
   */
  .rungs {
    grid-template-columns: repeat(2, 1fr);
    gap: 3mm;
    margin-top: 3mm;
  }

  .rung--wide .rung__list {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 6mm;
  }

  .rung,
  .doc-note,
  .doc-code {
    padding: 1.8mm 2.2mm;
    break-inside: avoid;
  }

  /*
   * On screen the rung number sits on its own line above the heading, which reads as a ladder.
   * On paper that costs a full line per card — five cards, three grid rows — so the number
   * floats into the heading instead. The heading always runs at least as tall as the float, so
   * nothing overhangs into the paragraph below.
   */
  .rung__num {
    float: left;
    width: 4mm;
    height: 4mm;
    margin: 0 1.4mm 0 0;
    font-size: 6.2pt;
  }

  .rung h3 {
    margin-bottom: 1mm;
  }

  .rung__list {
    margin-top: 1.5mm;
    gap: 1mm;
  }

  .doc-code {
    margin-top: 2.5mm;
  }

  /*
   * Before and after go shoulder to shoulder: on paper the vertical millimetre is the budget.
   * Not 1fr 1fr — the rewritten statement is roughly three times the length of the one the model
   * wrote, so an even split would set four lines beside one and waste the difference.
   */
  .doc-code__panes {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3mm;
  }

  .doc-code__scroll {
    padding: 1.2mm 1.6mm;
  }

  /* One notch down, and tighter leading: the exhibit is scanned, not read line by line. */
  .doc-code__scroll code {
    font-size: 6.6pt;
    line-height: 1.4;
  }

  .doc-code__foot {
    margin-top: 1.5mm;
  }

  /* Portrait mark: the screen's 34px is a header lockup, not a document letterhead. */
  .doc__head .brand__mark {
    height: 6mm;
  }

  .doc-table {
    margin-top: 2.5mm;
  }

  .doc-table table {
    font-size: 7.2pt;
  }

  .doc-table th,
  .doc-table td {
    padding: 0.9mm 1.6mm;
  }

  .doc-table tr {
    break-inside: avoid;
  }

  .doc-note {
    margin-top: 2.5mm;
  }

  /* The "not shipped" label runs into the sentence rather than costing it a whole line. */
  .doc-note__tag {
    margin-bottom: 0;
    margin-right: 1.5mm;
  }

  .doc-note__tag,
  .doc-note p {
    display: inline;
  }

  .doc-close {
    margin-top: 3.5mm;
    padding-top: 2mm;
    break-inside: avoid;
  }

  .doc-close p {
    margin-top: 1mm;
  }
}
