/* Hookprint brand tokens (generated) */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --raise: #f4efe8;
  --fg: #2a211b;
  --fg-soft: #54483f;
  --muted: #7d7065;
  --line: #e6ddd2;
  --accent: #c0431a;
  --accent-ink: #ffffff;
  --accent-1: #fbe4da;
  --accent-2: #f2a07c;
  --accent-3: #e0602f;
  --accent-4: #c0431a;
  --accent-5: #7f2a0e;
}

[data-theme="dark"] {
  --bg: #1a1512;
  --surface: #241e1a;
  --raise: #2e2722;
  --fg: #f5eee7;
  --fg-soft: #cbbfb4;
  --muted: #978a7f;
  --line: #3a322c;
  --accent: #e8683a;
  --accent-ink: #1a1512;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a1512;
    --surface: #241e1a;
    --raise: #2e2722;
    --fg: #f5eee7;
    --fg-soft: #cbbfb4;
    --muted: #978a7f;
    --line: #3a322c;
    --accent: #e8683a;
    --accent-ink: #1a1512;
  }
}

:root {
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Fraunces", "Nunito Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --space: 1rem;
  --measure: 68ch;
  --radius: 12px;
  --h1-size: clamp(2.5rem, 5.5vw, 4rem);
  --h1-lh: 1.05;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-body); }
img, svg, video { max-width: 100%; height: auto; }

/* footer site map: its own container, an even column grid, headings on one baseline */
.footer-map { width: min(100% - 2rem, 72rem); margin-inline: auto; display: grid; align-items: start; gap: calc(var(--space) * 1.5); grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-map > * { min-width: 0; }
.footer-map ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: grid; gap: 0.35rem; }
.footer-map .more { margin-top: 0.3rem; }
.footer-map .more a { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.02em; }

/* the site map page: an index of the site, in columns */
.sitemap { padding-block: calc(var(--space) * 2) calc(var(--space) * 3); }
.sitemap .related { margin: 0; padding-block: calc(var(--space) * 1.5); }
.sitemap .related h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.sitemap .post-list { gap: 0.4rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.sitemap .post-list li { gap: 0.1rem; padding-bottom: 0; border-bottom: 0; }
.sitemap .post-list a { font-family: var(--font-body); font-size: 1rem; font-weight: 500; }

/* the header's menu panels */
.navmenu { left: -0.75rem; min-width: 17rem; max-width: calc(100vw - 2rem); display: grid; gap: 0.15rem; padding: 0.5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 12px 32px -16px rgb(0 0 0 / 0.3); }
.navmenu a { padding: 0.45rem 0.6rem; border-radius: 6px; }
.navmenu a:hover { background: var(--raise); }
/* the last entry of a shortened menu: the way to the rest, on the site map */
.navmenu a.more { font-family: var(--font-mono); font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; padding-top: 0.55rem; border-top: 1px solid var(--line); }
/* Inside the open phone drawer a menu flows in place of floating. */
@media (max-width: 720px) {
  .nav-toggle[open] + .nav .navmenu { box-shadow: none; border: none; background: transparent; padding: 0 0 0 0.85rem; }
}

/* the phone menu trigger: a control a visitor can see is tappable */
.nav-toggle > summary { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0.4rem 0.75rem; cursor: pointer; list-style: none; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--font-display); font-size: 0.95rem; line-height: 1; }
.nav-toggle > summary:hover, .nav-toggle[open] > summary { border-color: currentColor; }

/* icons (Phase D2 increment H) */
.icon { display: inline-block; width: 1.5rem; height: 1.5rem; flex: none; vertical-align: middle; }
.glyph .icon { display: block; width: 1.25rem; height: 1.25rem; }
.block h2 .icon { width: 0.8em; height: 0.8em; margin-right: 0.4em; vertical-align: -0.08em; color: var(--accent); }

/* engine: a .block is one block inside a page, never a band of the page */
.block { padding-block: 0; }
.block + .block { border-top: 0; }
.block:first-child { margin-top: 0; }

/* engine: what a product capture is, said beside it */
.shot-note { font-size: 0.85rem; line-height: 1.45; margin: var(--space) 0 0; }

/* engine: the product's state, said in the hero over the plan's own pitch */
.hero .state-note { font-size: 0.95rem; line-height: 1.5; margin: var(--space) 0; max-width: 46ch; }
/* engine: and at the top of a page the writer wrote, over its first claim */
article.page .state-note { font-size: 0.9rem; line-height: 1.5; margin: var(--space) 0 0; }
/* engine: and in the head of a page the engine composes, under its standfirst */
.page-head .state-note { font-size: 0.9rem; line-height: 1.5; margin: var(--space) 0 0; }

/* engine: the product's own screen at the top of a section index, under the standfirst */
.page-head > .narrow > .page-hero { margin: var(--space) 0 0; }

/* engine: the terms a reading list's line quotes are planned */
.post-list .row-terms { color: var(--fg-soft); }

/* engine: the pages a row of an index folds under it, because they say what it says */
.post-list .also { margin: 0.35rem 0 0; font-size: 0.9em; color: var(--muted); }
.post-list .also a { color: inherit; }

/* engine: what the plan's feature cards are, said over a band with no head */
.spotlights > .wrap > .scope-note { font-size: 0.85rem; line-height: 1.45; margin: 0 0 calc(var(--space) * -2); }

/* Hookprint: the venture's own theme (contract rev 3) */
/* ------------------------------------------------------------------
   Hookprint theme: craft-night warmth.
   Signature: a crocheted picot edge trims the blush hero, every
   tinted band and the footer; yarn-swatch dots mark every heading,
   running-stitch dashed borders carry the cue in small doses.
   All colours derive from the brand tokens (color-mix), except the
   deepened muted ink, defined for both schemes.
------------------------------------------------------------------- */

:root {
  --space: 1rem;
  --radius: 14px;
  --measure: 66ch;

  --band: clamp(3.5rem, 2rem + 5vw, 5.5rem);

  --muted: #6b5a4f;

  /* grounds derived from tokens, scheme-aware */
  --blush: color-mix(in oklab, var(--accent) 13%, var(--bg));
  --wash-tint: color-mix(in oklab, var(--accent) 7%, var(--bg));
  --grid-line: color-mix(in oklab, var(--accent) 20%, transparent);
  --swatch-bg: color-mix(in oklab, var(--accent) 12%, var(--surface));
  --stitch: color-mix(in oklab, var(--accent) 45%, var(--line));
  --shadow-ink: color-mix(in oklab, var(--fg) 10%, transparent);

  --h1-size: clamp(2.6rem, 1.5rem + 4.4vw, 4.6rem);
  --h1-lh: 1.04;
}

[data-theme="dark"] {
  --muted: #a2948a;
}

/* ---------- base ---------- */

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.12;
  color: var(--fg);
  margin: 0;
}

h1 { font-size: var(--h1-size); line-height: var(--h1-lh); }

/* yarn-swatch dot before every section heading */
main h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5em;
  vertical-align: 0.1em;
}
main .faq summary::before { content: none; }

p { margin: 0 0 1em; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-style: wavy; text-decoration-thickness: 1.25px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: color-mix(in oklab, var(--accent) 28%, var(--bg)); }

.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.hidden { display: none; }
label.hp { display: none; }

/* containers: one grid for every band */
.wrap { width: min(100% - 4rem, 72rem); margin-inline: auto; }
.narrow { width: min(100% - 4rem, 46rem); margin-inline: auto; }

/* home bands all start on the same left edge */
main[data-kind="home"] > section > .narrow { width: min(100% - 4rem, 72rem); }
main[data-kind="home"] .problem p { max-width: 66ch; }
main[data-kind="home"] ol.steps { max-width: 52rem; }
main[data-kind="home"] .capture { max-width: 46rem; margin-inline: auto; }

/* band rhythm */
main > section { padding-block: var(--band); }
main section.block { padding-block: 0; }

.wash .muted, .hero .muted, footer.site-footer .muted { color: var(--fg-soft); }

/* ---------- the picot edge (signature) ---------- */

.wash,
section.hero,
footer.site-footer { position: relative; }

.wash { background: var(--wash-tint); }

.wash::before,
footer.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 10px;
  pointer-events: none;
  background-image: radial-gradient(circle 10px at 10px 10px, var(--wash-tint) 9.3px, transparent 10px);
  background-size: 20px 10px;
  background-repeat: repeat-x;
}

/* ---------- hero (editorial, blush ground) ---------- */

section.hero {
  background-color: var(--blush);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px;
  padding-block: clamp(4rem, 8vw, 6.5rem) clamp(4.25rem, 9vw, 7rem);
}

/* picot trim along the top of the hero */
section.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  pointer-events: none;
  background-image: radial-gradient(circle 10px at 10px 0px, var(--bg) 9.3px, transparent 10px);
  background-size: 20px 10px;
  background-repeat: repeat-x;
}

/* and along the bottom, hanging into the next band */
section.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(circle 10px at 10px 0px, var(--blush) 9.3px, transparent 10px);
  background-size: 20px 10px;
  background-repeat: repeat-x;
}

section.hero .motif { display: none; }

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  background: var(--surface);
  border: 1px solid var(--stitch);
  border-radius: 999px;
  padding: 0.4em 1em 0.4em 0.75em;
  margin-bottom: 1.4rem;
}
.hero .eyebrow::before {
  content: "";
  display: inline-block;
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 21ch;
  margin-bottom: 1.25rem;
}

.hero .lead {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.35rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 54ch;
  margin-bottom: 0.9em;
}

.hero .state-note { max-width: 54ch; }

/* hero with media, when it arrives at launch */
@media (min-width: 601px) {
  .hero.with-media .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
  }
  .hero.with-media .wrap > .hero-media { justify-self: center; }
}

/* ---------- eyebrows ---------- */

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  padding: 0.8em 1.5em;
  border-radius: 999px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
}

.button.primary,
.capture .button {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px var(--shadow-ink);
}
.button.primary:hover,
.capture .button:hover { filter: brightness(0.95); text-decoration: none; }

/* running-stitch secondary */
.button.secondary {
  background: transparent;
  color: var(--fg);
  border: 2px dashed var(--stitch);
}
.button.secondary:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

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

header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

header.site-header .wrap {
  align-items: center;
  padding-block: 0.8rem;
}

header.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: var(--fg);
}
header.site-header .brand .mark { width: 30px; height: 30px; }
header.site-header .logotype {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--fg);
}

header.site-header .nav > a:not(.cta),
header.site-header .nav .navlabel {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg-soft);
  text-decoration: none;
  white-space: nowrap;
}
header.site-header .nav > a:not(.cta):hover,
header.site-header .nav > details > summary:hover .navlabel {
  color: var(--accent);
  text-decoration: underline wavy;
  text-decoration-thickness: 1.25px;
  text-underline-offset: 6px;
}

header.site-header .nav a.cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 0.55em 1.2em;
  text-decoration: none;
  white-space: nowrap;
}
header.site-header .nav a.cta:hover { filter: brightness(0.95); }

/* split header: links centred between brand and the action */
@media (min-width: 721px) {
  header.site-header .wrap { justify-content: flex-start; column-gap: 2rem; }
  header.site-header .wrap > nav.nav {
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
  }
  header.site-header .wrap > nav.nav > a.cta { margin-inline-start: auto; }
  header.site-header .wrap nav.nav > a:first-of-type { margin-inline-start: auto; }
}

/* dropdown panels */
.navmenu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px var(--shadow-ink);
  padding: 0.45rem;
}
.navmenu a {
  display: block;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  color: var(--fg-soft);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.navmenu a:hover { background: var(--wash-tint); color: var(--accent); }
.navmenu a.more { color: var(--accent); }
.navgroup .chevron { color: var(--muted); }

/* phone menu trigger */
header.site-header .nav-toggle summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
}
header.site-header .nav-toggle summary .navlabel { font-weight: 600; }

/* open drawer */
header.site-header .nav-toggle[open] + .nav {
  background: var(--bg);
  border-block-end: 2px solid var(--line);
  padding-block: 0.35rem 1rem;
}
header.site-header .nav-toggle[open] + .nav > a:not(.cta),
header.site-header .nav-toggle[open] + .nav > details {
  border-top: 1px solid color-mix(in oklab, var(--line) 65%, transparent);
}
header.site-header .nav-toggle[open] + .nav > a:not(.cta) {
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- section heads ---------- */

.section-head { margin-bottom: 2.25rem; max-width: 46rem; }
.section-head h2 {
  font-size: clamp(1.8rem, 1.4rem + 1.7vw, 2.5rem);
  margin: 0;
}
.section-head .muted { margin: 0.8rem 0 0; max-width: 58ch; }

/* quiet engine lines */
p.shot-note, p.scope-note, p.terms-note, p.steps-note, p.state-note {
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 66ch;
  color: var(--fg-soft);
}
p.scope-note { margin-bottom: 0.5rem; }

/* ---------- cards ---------- */

.grid { display: grid; gap: 1.25rem; }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.6rem;
  box-shadow: 0 1px 2px var(--shadow-ink);
}
.card h3 { font-size: 1.3rem; margin: 0.35rem 0 0.55rem; }
.card p:last-child { margin-bottom: 0; }
.card .eyebrow { margin-bottom: 0.25rem; }
.card p { color: var(--fg-soft); }

.glyph {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--swatch-bg);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  box-shadow: inset 0 0 0 2px var(--surface), 0 0 0 1px var(--stitch);
}

/* ---------- problem ---------- */

.problem p {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 68ch;
  margin-bottom: 0;
}

/* ---------- showcase rows: copy left, phone right ---------- */

/* tighten the band's own stack so the scope note sits with its rows */
.spotlights > .wrap { --space: 0.625rem; }

.spotlight {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 601px) {
  .spotlight { grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); }
  .spotlight > figure.frame { justify-self: center; }
}
.spotlight h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); margin-bottom: 0.9rem; }
.spotlight p { max-width: 52ch; font-size: 1.1rem; }
.spotlight p:last-child { margin-bottom: 0; }

/* the gallery band shares the same two-column shape */
@media (min-width: 900px) {
  .gallery .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    gap: clamp(2.5rem, 5vw, 4rem);
    align-items: center;
  }
  .gallery .section-head { margin-bottom: 0; }
  .gallery .shots { margin-top: 0; }
}

/* ---------- screenshots ---------- */

figure.frame {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--fg) 35%, transparent);
  overflow: hidden;
}
figure.frame img { display: block; max-width: 100%; height: auto; }

figure.frame .bar {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.9rem;
  background: var(--wash-tint);
  border-bottom: 1px solid var(--line);
}
figure.frame .bar::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stitch);
  box-shadow: 14px 0 0 var(--stitch), 28px 0 0 var(--stitch);
  margin-right: 28px;
}

figure.frame.phone {
  background: color-mix(in oklab, var(--fg) 88%, var(--bg));
  border-color: color-mix(in oklab, var(--fg) 70%, var(--bg));
}

/* cap the device so it never dwarfs the copy beside it; the caps carry
   !important because the engine's own phone-frame sizing is appended
   after this sheet and held the shots at full height otherwise */
.spotlight figure.frame.phone,
.shots figure.frame.phone,
.hero-media figure.frame.phone,
article.page .page-hero figure.frame.phone {
  max-width: 300px !important;
  max-height: 560px !important;
}

/* beside a short copy column the device reads smaller still */
@media (min-width: 601px) {
  .spotlight figure.frame.phone {
    max-width: 240px !important;
    max-height: 525px !important;
  }
}

/* on a phone, crop the hero's shot to the chart so the first band
   breaks the first scroll */
@media (max-width: 600px) {
  section.hero { padding-block: 3rem 2.5rem; }
  section.hero .eyebrow { margin-bottom: 1rem; }
  section.hero .actions { margin-top: 1.25rem; }
  section.hero .hero-media figure.frame.phone {
    height: 340px !important;
    max-height: 340px !important;
    aspect-ratio: auto !important;
    overflow: hidden !important;
  }
  section.hero .hero-media figure.frame.phone > img {
    margin-top: -165px;
  }
}

/* the index head draws its capture itself; keep that one modest and
   on the content column's own left edge */
@media (min-width: 601px) {
  .page-head .page-hero figure.frame.phone {
    max-width: 215px !important;
    max-height: 480px !important;
    margin-inline: 0 !important;
  }
}

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

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

ol.steps {
  list-style: none;
  margin: 2.25rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.9rem;
  counter-reset: step;
}
ol.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  column-gap: 1.15rem;
  row-gap: 0.35rem;
  align-items: start;
}
ol.steps > li > * { grid-column: 2; }
ol.steps > li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  content: counter(step);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent);
  border: 2px dashed var(--stitch);
  display: grid;
  place-items: center;
}
ol.steps h3 { font-size: 1.2rem; margin: 0.45rem 0 0.4rem; }
ol.steps > li > strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 0.45rem;
  color: var(--fg);
}
ol.steps p { margin: 0; color: var(--fg-soft); max-width: 66ch; }

/* on desktop the home band's steps run two columns, filling its width;
   an odd set's last step spans the row so no cell is left empty */
@media (min-width: 900px) {
  main[data-kind="home"] .how ol.steps {
    max-width: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 4vw, 4rem);
  }
  main[data-kind="home"] .how ol.steps > li:nth-child(odd):last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- use-cases ---------- */

.use-cases .section-pages { margin-top: 2rem; }

/* ---------- FAQ ---------- */

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1.05rem 2.2rem 1.05rem 0;
  position: relative;
  color: var(--fg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--accent);
}
.faq details[open] > summary::after { content: "\00d7"; }
.faq summary:hover { color: var(--accent); }
.faq details > p {
  margin: 0.1rem 0 1.2rem;
  color: var(--fg-soft);
  max-width: 66ch;
}

/* ---------- capture / waitlist panel ---------- */

.capture {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(2rem, 5vw, 3.25rem);
  text-align: center;
  box-shadow: 0 1px 2px var(--shadow-ink);
}
.capture::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 2px dashed var(--stitch);
  border-radius: 15px;
  pointer-events: none;
}
.capture h2 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.2rem); margin-bottom: 0.8rem; }
.capture > p.muted { max-width: 48ch; margin-inline: auto; }

.capture form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.6rem;
}

.capture form input[type="email"] {
  flex: 1 1 15rem;
  max-width: 24rem;
  font: inherit;
  padding: 0.78em 1.25em;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
}
.capture form input[type="email"]::placeholder { color: var(--muted); }
.capture form input[type="email"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.capture .note { font-size: 0.85rem; color: var(--muted); margin: 1.1rem 0 0; }
.capture .thanks { font-weight: 700; margin: 1.4rem 0 0; color: var(--fg); }

/* ---------- reading lists: label cards ---------- */

ul.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  row-gap: 1rem;
}
.post-list > li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
}
.post-list > li:hover { border: 1px dashed var(--stitch); }
.post-list li > a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--fg);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  text-decoration-color: var(--accent);
}
.post-list li > a::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 0.5em;
}
.post-list li > a:hover { color: var(--accent); }
.post-list .meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.post-list li > p { margin: 0.3rem 0 0; color: var(--fg-soft); }
.post-list .also { font-size: 0.9rem; color: var(--muted); }
.post-list li.more a { font-size: 1.05rem; }
.row-terms { color: var(--muted); font-size: 0.9em; }

p.pager {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 0;
  font-weight: 600;
}

/* ---------- page heads and content pages ---------- */

p.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.1rem;
}
p.crumbs a { color: var(--muted); text-decoration: none; }
p.crumbs a:hover { color: var(--accent); text-decoration: underline; }

.page-head h1,
article.page h1,
main[data-kind="article"] article h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.4rem);
  margin-bottom: 1rem;
}

p.lead {
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--fg-soft);
  max-width: 66ch;
}

.page-head .eyebrow { margin-bottom: 0.4rem; }

/* content pages read in a wider column, text capped to the measure */
article.page > .narrow { width: min(100% - 4rem, 66rem); }
article.page p.lead { max-width: 66ch; }
article.page .block > p,
article.page .prose,
article.page div.faq,
article.page .sources { max-width: 66ch; }
article.page aside.callout { max-width: 46rem; }
article.page ol.steps { max-width: 52rem; }

/* a written page with a capture: intro and blocks left, device right */
@media (min-width: 900px) {
  article.page > .narrow:has(> .page-hero) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    column-gap: clamp(2.5rem, 4vw, 4rem);
    row-gap: 0;
    align-items: start;
  }
  article.page > .narrow:has(> .page-hero) > * { grid-column: 1; min-width: 0; }
  article.page > .narrow:has(> .page-hero) > .page-hero {
    grid-column: 2;
    grid-row: 2 / span 14;
    align-self: start;
    margin: 0;
  }
  /* grid margins do not collapse, so halve the block step here */
  article.page > .narrow:has(> .page-hero) > .block { margin-block: 1.5rem; }
}

article.page { padding-block: clamp(2.5rem, 5vw, 4rem) var(--band); }
main[data-kind="article"] article { padding-block: clamp(2.5rem, 5vw, 4rem) var(--band); }
main > section.page-head { padding-block-start: clamp(2.5rem, 5vw, 4rem); }

p.byline {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

figure.cover { margin: 2rem 0; }
figure.cover img { max-width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); }

.page-hero { margin-top: 1.5rem; }
.page-hero figure.frame.phone { margin-inline: auto; }

/* blocks */
.block { margin-block: 2.75rem; }
.block h2 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
  padding-bottom: 0.55rem;
  border-bottom: 2px dashed var(--line);
  max-width: 68ch;
}
.block h2 .icon { color: var(--accent); }

/* prose */
.prose { line-height: 1.65; max-width: 66ch; }
.prose h2 { font-size: 1.55rem; margin: 1.8em 0 0.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.5em 0 0.5em; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 1em 0; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.6em 0;
  padding: 0.3em 0 0.3em 1.3rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--fg-soft);
}
.prose code, code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--wash-tint);
  border-radius: 6px;
  padding: 0.12em 0.4em;
}
.prose pre, pre {
  background: var(--raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  overflow-x: auto;
}
.prose pre code, pre code { background: none; padding: 0; }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* callout */
aside.callout {
  background: var(--wash-tint);
  border: 2px dashed var(--stitch);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
}
aside.callout h2 { font-size: 1.3rem; border: 0; padding: 0; margin-bottom: 0.6rem; }
aside.callout p:last-child { margin-bottom: 0; }

/* plan cards */
.plan-cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
  margin-block: 1.5rem;
}
/* even card heights, the action pinned to the foot of each */
.card.plan { display: flex; flex-direction: column; }
.card.plan > p.actions { margin-top: auto; padding-top: 1.6rem; }
.card.plan h3 { margin-top: 0; font-size: 1.25rem; }
.card.plan .price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2rem;
  color: var(--fg);
  margin: 0.3rem 0 0.2rem;
}
.card.plan .meta { font-size: 0.85rem; color: var(--muted); margin-bottom: 0.75rem; }
ul.includes {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  font-size: 0.95rem;
  color: var(--fg-soft);
}
ul.includes li { position: relative; padding-left: 1.4rem; }
ul.includes li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* tables */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-block: 1.25rem;
}
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.table-wrap th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--wash-tint);
  padding: 0.75rem 1rem;
}
.table-wrap td { padding: 0.8rem 1rem; border-top: 1px solid var(--line); vertical-align: top; }
.table-wrap td.rowname { font-weight: 700; color: var(--fg); }

/* sources */
.sources { margin-top: 2.5rem; font-size: 0.92rem; color: var(--muted); }
.sources a { color: var(--accent); }

/* latest + about */
.latest .post-list { margin-top: 0.5rem; }
.about p { font-size: 1.1rem; line-height: 1.65; color: var(--fg-soft); max-width: 66ch; }

/* 404 */
main[data-kind="not_found"] .page-head h1 { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); }
main[data-kind="not_found"] .post-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}
p.actions { margin-top: 2rem; }

/* site map */
.sitemap .block h2 { font-size: 1.25rem; }

/* ---------- footer ---------- */

footer.site-footer {
  background: var(--wash-tint);
  margin-top: 0;
}

.footer-map {
  padding-block: 3rem 2.25rem;
  border-block-end: 1px solid var(--line);
}
.footer-map .eyebrow {
  color: var(--fg-soft);
  font-size: 0.72rem;
  margin-bottom: 0.8rem;
}
.footer-map ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.footer-map a {
  color: var(--fg-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-map a:hover { color: var(--accent); text-decoration: underline; }

footer.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding-block: 2.1rem;
  font-size: 0.92rem;
}
footer.site-footer .wrap strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
footer.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.1rem; }
footer.site-footer nav a {
  color: var(--fg-soft);
  text-decoration: none;
  font-weight: 600;
}
footer.site-footer nav a:hover { color: var(--accent); text-decoration: underline; }
footer.site-footer a.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-soft);
  font-size: 0.85rem;
  text-decoration: none;
}
footer.site-footer a.stamp:hover { text-decoration: underline; }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .wrap, .narrow,
  main[data-kind="home"] > section > .narrow,
  article.page > .narrow { width: min(100% - 2.5rem, 72rem); }
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .card { padding: 1.35rem; }
  ol.steps > li { grid-template-columns: 2.4rem minmax(0, 1fr); gap: 0.9rem; }
  ol.steps > li::before { width: 2.4rem; height: 2.4rem; font-size: 1.1rem; }
  .capture { text-align: left; }
  .capture form { justify-content: flex-start; }
  .capture form input[type="email"] { max-width: none; }
  .post-list > li { padding: 1.1rem 1.15rem; }
  footer.site-footer .wrap { justify-content: flex-start; }
}

/* ---------- motion, kept quiet ---------- */

@media (prefers-reduced-motion: no-preference) {
  a,
  .button,
  .navmenu a,
  header.site-header .nav > a:not(.cta),
  .faq summary,
  .post-list > li,
  .post-list li > a {
    transition: color 140ms ease, background-color 140ms ease,
      border-color 140ms ease, box-shadow 140ms ease, filter 140ms ease;
  }
  .button { transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, filter 140ms ease, transform 140ms ease; }
  .button:hover { transform: translateY(-1px); }
}

.capture .hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.hidden, [hidden] { display: none !important; }
.nav-toggle summary { cursor: pointer; list-style: none; }
.nav-toggle summary::-webkit-details-marker { display: none; }
@media (min-width: 721px) {
  .nav-toggle { display: none !important; }
}
@media (max-width: 720px) {
  .site-header .wrap { flex-wrap: wrap; }
  .nav-toggle { display: block !important; }
  .nav { display: flex !important; flex-wrap: wrap; align-items: center; }
  .nav-toggle:not([open]) + .nav > a:not(.cta),
  .nav-toggle:not([open]) + .nav > details { display: none !important; }
  .nav-toggle[open] + .nav { flex-basis: 100% !important; width: 100%; flex-direction: column; align-items: stretch; }
}

/* a phone app's screenshot: a phone, never a browser window */
figure.frame.phone { display: block !important; box-sizing: border-box !important; width: min(18.5rem, calc(80vh * var(--frame-ratio, 390 / 844))) !important; max-width: 100% !important; min-width: 0 !important; flex: 0 1 auto !important; height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; align-self: start !important; margin-inline: auto !important; padding: 0.5rem !important; border-radius: min(2.5rem, 13%) / min(2.5rem, calc(13% * var(--frame-ratio, 390 / 844))) !important; overflow: hidden !important; }
figure.frame.phone::before, figure.frame.phone::after { content: none !important; display: none !important; }
figure.frame.phone > img { display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; height: auto !important; max-height: none !important; aspect-ratio: var(--frame-ratio, 390 / 844) !important; object-fit: cover !important; object-position: top center !important; margin: 0 !important; border-radius: min(2rem, 11%) / min(2rem, calc(11% * var(--frame-ratio, 390 / 844))) !important; }
.shots:has(> figure.frame.phone):not(:has(> figure.frame:not(.phone))) { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)) !important; }
@supports (width: 1svh) { figure.frame.phone { width: min(18.5rem, calc(80svh * var(--frame-ratio, 390 / 844))) !important; } }

/* the header's menu labels */
.navgroup > summary { cursor: pointer; list-style: none; }
.navgroup > summary::-webkit-details-marker { display: none; }
.navgroup > summary > .chevron { display: inline-block; width: 0.62em; height: 0.62em; margin-left: 0.3em; vertical-align: -0.04em; opacity: 0.7; transition: transform 120ms ease-out; }
.navgroup[open] > summary > .chevron { transform: rotate(180deg); }
/* the phone menu trigger's mark: the bars while it is shut, the cross while it is open */
.nav-toggle > summary > .burger { display: inline-block; flex: none; width: 1.1em; height: 1.1em; vertical-align: -0.18em; }
.nav-toggle:not([open]) > summary > .burger > .cross { display: none; }
.nav-toggle[open] > summary > .burger > .bars { display: none; }

/* engine: a header menu opens as an overlay anchored under its own trigger, so the bar keeps its single row */
.navgroup { position: relative; }
.navmenu { position: absolute; top: calc(100% + 0.4rem); z-index: 20; }
header.site-header .wrap, header.site-header .nav, header.site-header .navgroup { overflow: visible; }
/* engine: the menu at the end of the bar opens back from its own end, so its panel cannot run past the window */
header.site-header .navgroup[data-bar-end] > .navmenu { left: auto; right: -0.75rem; }
/* the phone drawer is not a bar: inside it an open menu flows in place */
@media (max-width: 720px) {
  .nav-toggle[open] + .nav .navmenu { position: static !important; min-width: 0; }
}

/* engine: an open header menu is never taller than the window it opens in */
.navmenu { max-height: calc(100vh - 8rem); }
.navmenu { max-height: min(32rem, calc(100svh - 8rem)); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 720px) {
  .nav-toggle[open] + .nav .navmenu { max-height: none !important; overflow: visible !important; }
}

/* engine: the header's bar holds one row at desktop width, whatever a theme sets on it */
@media (min-width: 721px) {
  header.site-header .wrap { display: flex; flex-direction: row; flex-wrap: nowrap; }
  header.site-header nav.nav { display: flex; flex-direction: row; flex-wrap: nowrap; }
  header.site-header .wrap > .brand, header.site-header .wrap > nav.nav { flex-shrink: 1; }
  header.site-header .nav { min-width: 0; column-gap: clamp(0.5rem, 1.1vw, 1.25rem); }
  header.site-header .nav > a, header.site-header .nav > details > summary { white-space: nowrap; }
  :is(header.site-header nav.nav > a:not(.cta), header.site-header nav.nav > details > summary) { padding-inline: clamp(0.3rem, 0.8vw, 0.9rem); }
  :is(header.site-header nav.nav > a:not(.cta), header.site-header nav.nav > details, header.site-header nav.nav > details > summary, header.site-header nav.nav > details > summary > .navlabel) { margin-inline: 0; }
  header.site-header nav.nav > details { min-width: 0; }
  header.site-header nav.nav > details > summary { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; }
  header.site-header nav.nav > details > summary > .navlabel { padding-inline: 0; order: -1; }
  header.site-header nav.nav > details > summary > .chevron { margin-inline-end: 0; visibility: visible; order: 1; flex: none; }
  header.site-header .nav > a.cta { flex: none; }
}

/* engine: at desktop width the wordmark starts the header's row and the bar ends it, whatever a theme sets on the row */
@media (min-width: 721px) {
  header.site-header .wrap > nav.nav { flex: 0 1 auto; width: auto; margin-inline-start: auto; }
}

/* engine: the action's compact twin shows only on a narrow phone, and only with the menu shut */
@media (min-width: 541px) {
  header.site-header a.cta.cta-short { display: none; }
}
/* engine: on a narrow phone the header is one row, the brand with the menu trigger and a compact action beside it */
@media (max-width: 540px) {
  header.site-header .wrap { column-gap: 0.5rem; }
  header.site-header .nav-toggle > summary { gap: 0; min-width: 2.5rem; justify-content: center; padding-inline: 0.5rem; }
  header.site-header .nav-toggle > summary > .navlabel { display: none; }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta:not(.cta-short) { display: none; }
  header.site-header .nav-toggle[open] + .nav > a.cta.cta-short { display: none; }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { padding-inline: clamp(0.5rem, 2vw, 1rem); }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta.cta-short { font-size: min(1em, max(0.875rem, 3.6vw)); letter-spacing: normal; }
}

/* engine: the phone menu's trigger is the last box of the header's own row, so the cross is drawn where the bars were tapped */
@media (max-width: 720px) {
  header.site-header .wrap { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-end; }
  header.site-header .wrap > .brand { margin-right: auto; }
  header.site-header .nav-toggle { order: 2; }
  header.site-header .nav-toggle:not([open]) + .nav { order: 1; margin-left: auto; }
  header.site-header .nav-toggle[open] { margin-left: auto; }
  header.site-header .nav-toggle[open] + .nav { order: 3; }
}

/* engine: while the phone menu is shut every box of the header is as wide as what it holds, so none of them can take the row from the other two */
@media (max-width: 720px) {
  header.site-header .wrap > .brand { flex: 0 1 auto; width: auto; min-width: 0; }
  header.site-header .nav-toggle:not([open]) { flex: 0 0 auto; width: auto; }
  header.site-header .nav-toggle:not([open]) + .nav { flex: 0 1 auto; width: auto; min-width: 0; }
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { width: auto; }
}

/* engine: while the phone menu is shut the box around the action draws nothing of its own, so what a theme wrote for the open drawer is never a fragment in the header */
@media (max-width: 720px) {
  header.site-header .nav-toggle:not([open]) + .nav { border: 0; background: none; box-shadow: none; padding: 0; margin-block: 0; }
  header.site-header .nav-toggle:not([open]) + .nav::before,
  header.site-header .nav-toggle:not([open]) + .nav::after { content: none; }
}

/* engine: while the phone menu is shut the action keeps no block margin of its own, so it sits on the row's own centre beside the trigger */
@media (max-width: 720px) {
  header.site-header .nav-toggle:not([open]) + .nav > a.cta { margin-block: 0; }
}

/* engine: every row of the open phone drawer, the action included, carries the engine's own room inside it, so every row's words begin on one edge and the one box a visitor can see is drawn around that room */
@media (max-width: 720px) {
  .nav-toggle[open] + .nav { padding-inline: 0; }
  header.site-header .nav-toggle[open] + .nav > a:not(.cta),
  header.site-header .nav-toggle[open] + .nav > details > summary,
  header.site-header .nav-toggle[open] + .nav > details > summary > .navlabel { padding-inline: 0; margin-inline: 0; text-align: left; text-indent: 0; justify-content: flex-start; justify-items: start; }
  header.site-header .nav-toggle[open] + .nav > a:not(.cta),
  header.site-header .nav-toggle[open] + .nav > details > summary { padding-inline: 1rem; }
  header.site-header .nav-toggle[open] + .nav > details > .navmenu { padding-inline-start: calc(1rem + 0.85rem); }
  header.site-header .nav-toggle[open] + .nav > a.cta { padding-inline: 1rem; text-align: left; text-indent: 0; justify-content: flex-start; justify-items: start; }
  header.site-header .nav-toggle[open] + .nav > a.cta:not(.cta-short) { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; }
  header.site-header .nav-toggle[open] + .nav > a.cta:not(.cta-short)::after { content: ""; flex: none; width: 1.1em; height: 1.1em; margin-inline-start: auto; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000'%20stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h10M8.75 4.25 12.5 8l-3.75 3.75'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000'%20stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 8h10M8.75 4.25 12.5 8l-3.75 3.75'/%3E%3C/svg%3E") center / contain no-repeat; }
}

/* engine: the open phone drawer's action is a row of the drawer, on the rows' own edges and clear of the last of them */
@media (max-width: 720px) {
  header.site-header .nav-toggle[open] + .nav > a.cta { align-self: stretch; width: auto; max-width: none; margin-inline: 0; margin-block-start: 1.25rem; }
}

/* engine: every row of the open phone drawer is a single-line row, tall enough for a thumb, with what it holds in the middle of that height */
@media (max-width: 720px) {
  header.site-header .nav-toggle[open] + .nav > a:not(.cta-short),
  header.site-header .nav-toggle[open] + .nav > details > summary { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; min-height: 2.75rem; }
}

/* engine: in the open phone drawer the state of a menu's row is the engine's mark, against the row's far edge, turned over on the one row whose list is under it */
@media (max-width: 720px) {
  header.site-header .nav-toggle[open] + .nav > details.navgroup > summary > .chevron { display: inline-block !important; visibility: visible !important; margin-inline-start: auto !important; margin-inline-end: 0 !important; transform: none !important; opacity: 0.7 !important; }
  header.site-header .nav-toggle[open] + .nav > details.navgroup[open] > summary > .chevron { transform: rotate(180deg) !important; opacity: 1 !important; }
}

/* engine: nothing a page says can push it wider than the window */
html { overflow-wrap: break-word; }
.button, .nav .cta { max-width: 100%; overflow-wrap: anywhere; }
.post-list a { overflow-wrap: anywhere; }
.table-wrap { max-width: 100%; overflow-x: auto; }
.prose th, .prose td { overflow-wrap: anywhere; }

/* engine: a container of the site's own takes the free space beside it evenly, so a page sits on the same middle of the paper its chrome does */
.wrap, .narrow { margin-inline: auto; }

/* engine: under 600px a table is a card per row, not columns a phone cannot hold */
@media (max-width: 600px) {
  .table-wrap table, .table-wrap tbody, .table-wrap tr { display: block !important; width: auto !important; }
  .table-wrap thead { display: none !important; }
  .table-wrap tr {
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
    border-bottom: 1px solid var(--line);
  }
  .table-wrap tr:last-child { border-bottom: 0; }
  .table-wrap td {
    display: block !important;
    width: auto !important;
    padding: 0;
    border-bottom: 0;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }
  .table-wrap td + td { margin-top: 0.6rem !important; }
  .table-wrap td.rowname, .table-wrap td:not([data-label]) { font-weight: 600; }
  .table-wrap td.rowname { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.2; }
  .table-wrap td[data-label]::before {
    content: attr(data-label);
    display: block !important;
    float: none !important;
    position: static !important;
    min-height: 1em !important;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
  }
}

/* engine: under 600px every group of the footer's map is a row of its own, opens on its own heading, and the shut ones read as one block */
@media (max-width: 600px) {
  footer.site-footer .footer-map { display: grid !important; grid-template-columns: 1fr !important; row-gap: 0 !important; }
  footer.site-footer .footer-map > * { margin-block: 0 !important; padding-block: 0 !important; }
  footer.site-footer .footer-map .eyebrow[aria-expanded="false"] { margin-block: 0 !important; }
  footer.site-footer .footer-map ul[hidden] { display: none !important; }
  .footer-map ul { margin: 0.2rem 0 0.9rem; gap: 0.2rem; }
  .footer-map li { line-height: 1.4; }
  .footer-map .eyebrow { margin-bottom: 0; }
  .footer-map .eyebrow[aria-expanded] { display: flex; align-items: center; min-height: 40px; border-top: 1px solid var(--line); cursor: pointer; }
  .footer-map > :first-child .eyebrow[aria-expanded] { border-top: 0; }
  .footer-map .eyebrow[aria-expanded]::after { content: ""; flex: none; margin-left: auto; width: 0.4em; height: 0.4em; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-0.12em) rotate(45deg); transition: transform 120ms ease-out; }
  .footer-map .eyebrow[aria-expanded="true"]::after { transform: translateY(0.06em) rotate(225deg); }
}

/* engine: the footer's map and its bottom row are one block in two boxes, so they share one container */
footer.site-footer > .footer-map, footer.site-footer > .wrap { width: min(100% - 2rem, 72rem) !important; max-width: none !important; margin-inline: auto !important; padding-inline: 0 !important; }
/* engine: and the map is part of the footer, never a panel inside it */
footer.site-footer > .footer-map { background: none !important; box-shadow: none !important; border-inline: 0 !important; }

/* engine: a row of one of the engine's own reading lists wears the site's own link treatment, and the line itself is not a theme's to take away */
main .post-list > li > a:any-link { text-decoration-line: underline !important; text-decoration-thickness: from-font; text-underline-offset: 0.15em; text-decoration-color: var(--accent); }

/* engine: the door inside the engine's line over the plan's cards wears the site's own link treatment, whatever a theme sets on it */
main .scope-note a:any-link { text-decoration-line: underline; text-decoration-thickness: from-font; text-underline-offset: 0.15em; text-decoration-color: var(--accent); }

/* engine: a section's own pages under the plan's cards stand clear of them, whatever a theme sets on its lists */
.use-cases .section-pages { margin-block-start: calc(var(--space, 1rem) * 2); }

/* engine: a row of one of the engine's own reading lists is one measure, and its title, date and summary share it */
.post-list li { max-width: var(--measure); display: grid; grid-template-columns: minmax(0, 1fr); }
.post-list li > a, .post-list li > .meta, .post-list li > p { grid-column: 1; }
.post-list li > a, .post-list li > p { max-width: none; width: auto; justify-self: stretch; }

/* engine: a row of one of the engine's own reading lists reads in one order at every width: its title, then its date, then its summary */
.post-list li > a, .post-list li > .meta, .post-list li > p { order: 0; }
.post-list li:has(> .meta) > a { grid-row: 1; }
.post-list li:has(> .meta) > .meta { grid-row: 2; }
.post-list li:has(> .meta) > p { grid-row: 3; }
.post-list li:not(:has(> .meta)) > a { grid-row: 1; }
.post-list li:not(:has(> .meta)) > p { grid-row: 2; }
.post-list li:has(> .meta) > p.also:not(:first-of-type) { grid-row: 4; }
.post-list li:not(:has(> .meta)) > p.also:not(:first-of-type) { grid-row: 3; }

/* engine: a page folded onto a row is part of that row's own line, so its link is set in the line and never as a second title */
.post-list .also a { font: inherit; letter-spacing: inherit; }
.post-list .also a:any-link { text-decoration-line: underline; text-decoration-thickness: from-font; text-underline-offset: 0.15em; text-decoration-color: var(--accent); }

/* engine: a row of one of the engine's own reading lists prints its own words in full: they wrap, and no box cuts them */
.post-list li { overflow: visible; height: auto; max-height: none; }
.post-list li > a, .post-list li > p { white-space: normal; overflow: visible; text-overflow: clip; height: auto; max-height: none; -webkit-line-clamp: none; line-clamp: none; }

/* engine: the column under a page head continues it, so it is not a second band of the page, and the step between them is the engine's own rem rather than the unit a theme bands with */
.page-head:has(+ .page-body) { padding-bottom: 1.5rem; }
/* engine: and it ends where its words do, so a short page never ends in a band of nothing */
.page-body { padding-top: 1rem; padding-bottom: 1.5rem; border-top: 0; min-height: 0; height: auto; aspect-ratio: auto; margin-block: 0; }
/* engine: said again on the column named as what it is and where it is, so an ordinary rule about the page's last section cannot outrank it by weight */
main > section.page-body:last-child { padding-top: 1rem; padding-bottom: 1.5rem; border-top: 0; min-height: 0; height: auto; aspect-ratio: auto; margin-block: 0; }
.page-body > .narrow { padding-block: 0; margin-block: 0; }
.page-body > .narrow > :last-child,
.page-body > .narrow > :last-child > :last-child,
.page-body > .narrow > :last-child > :last-child > :last-child,
.page-body > .narrow > :last-child > :last-child > :last-child > :last-child { margin-bottom: 0; }
/* engine: and the boxes the engine itself puts at that edge hold no air and no floor of their own, so the step under the page's last words is the column's own padding and nothing else */
.page-body > .narrow,
.page-body > .narrow > :last-child,
.page-body > .narrow > :last-child > ul.post-list:last-child { padding-bottom: 0; min-height: 0; height: auto; aspect-ratio: auto; }
/* engine: and the air between the head's last words and that column's first words is the engine's own rhythm, whatever makes it, padding as well as margin */
.page-head:has(+ .page-body) > .narrow { margin-bottom: 0; padding-bottom: 0; }
.page-head:has(+ .page-body) > .narrow > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child > :last-child { margin-bottom: 0; padding-bottom: 0; }
/* engine: and that padding is measured from the standfirst's LAST LINE: its own box carries the trailing half of its line box, which a generously led standfirst would otherwise add to the air */
.page-head:has(+ .page-body) > .narrow > :last-child { margin-bottom: min(0px, 0.6em - 0.5lh); }
/* engine: and that head holds the engine's own words: a box a stylesheet GENERATES on it or on the wrap it is poured into is neither its height nor its spacing, so it lands under the standfirst where no rule above can reach it */
main > section.page-head:has(+ .page-body)::before,
main > section.page-head:has(+ .page-body)::after,
main > section.page-head:has(+ .page-body) > div.narrow::before,
main > section.page-head:has(+ .page-body) > div.narrow::after { content: none; }
/* engine: and so does the column that continues it: a box a stylesheet GENERATES above that column's first words, on the column, on the wrap it is poured into or on the box that wrap opens with, lands in the same air and is neither their spacing nor their height either */
main > section.page-head + section.page-body::before,
main > section.page-head + section.page-body > div.narrow::before,
main > section.page-head + section.page-body > div.narrow > :first-child:not(ul.post-list)::before { content: none; }
/* engine: and so do the words that head closes with, one level inside its wrap, which is the reach the rule above has on the column's side: a box generated AFTER the head's last words lands under the standfirst, in the air the engine owns, and a mark left in those words' flow as a block takes a line of its own there */
main > section.page-head:has(+ .page-body) > div.narrow > :last-child::after { content: none; }
/* engine: and the head is as tall as what it holds, so no floor of its own can open that air under its standfirst */
.page-head:has(+ .page-body),
.page-head:has(+ .page-body) > .narrow,
.page-head:has(+ .page-body) > .narrow > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child,
.page-head:has(+ .page-body) > .narrow > :last-child > :last-child > :last-child > :last-child { min-height: 0; height: auto; aspect-ratio: auto; }
.page-body > .narrow > :first-child,
.page-body > .narrow > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child > :first-child { margin-top: 0; }
/* engine: and that air is made INSIDE those two boxes, so the join between them is flush: neither a margin between the head and the column nor a gap the page lays its bands out by can open it from outside both */
.page-head:has(+ .page-body) { margin-bottom: 0; }
.page-head + .page-body { margin-top: 0; }
main:has(> .page-head + .page-body) { row-gap: 0; }
/* engine: and on an index, which is that column led by the engine's own reading list, the air is one of the list's own gaps over a rem, so it reads as the rhythm of the list whatever the theme spaces its rows by */
.page-head:has(+ .page-body > .narrow > ul.post-list:first-child) { padding-bottom: 1rem; }
.page-head + .page-body:has(> .narrow > ul.post-list:first-child) { padding-top: 0; }
.page-head + .page-body > .narrow > ul.post-list:first-child { padding-top: 0; grid-template-rows: 0; }
.page-head + .page-body > .narrow > ul.post-list:first-child::before { content: ""; display: block; height: 0; min-height: 0; margin: 0; padding: 0; border: 0; grid-column: 1 / -1; }
/* engine: and no rule is drawn across the top of that column, on any box above its first words, because what is over it is the page's own head, which it continues */
.page-body > .narrow,
.page-body > .narrow > :first-child,
.page-body > .narrow > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child,
.page-body > .narrow > :first-child > :first-child > :first-child > :first-child { border-top: 0; }
/* engine: and where that column opens with a block of the engine's own, the air over its heading is a rem of the head's over the column's own rem, never a band of the page */
.page-head:has(+ .page-body > .narrow > .block:first-child) { padding-bottom: 1rem; }
.page-body > .narrow > .block:first-child,
.page-body > .narrow > .block:first-child > :first-child { padding-top: 0; }
/* engine: and a mark a theme hangs on one of this column's own block headings is part of that heading's line, sharing its baseline, never a line of its own */
.page-body > .narrow > .block > h2::before,
.page-body > .narrow > .block > h2::after { display: inline-block; vertical-align: baseline; }
/* engine: with the room beside it the engine gives the mark it puts in a block's heading itself (ICON_CSS), because the room a rail gave it went with the rail */
.page-body > .narrow > .block > h2::before { margin-inline-end: 0.4em; }
.page-body > .narrow > .block > h2::after { margin-inline-start: 0.4em; }
/* engine: and on a page that is only this column, the space under it is the engine's too */
main:has(> .page-body:last-child) { padding-bottom: 0; margin-bottom: 0; }
main:has(> .page-body:last-child) + footer { margin-top: 0; }

/* engine: the waitlist card's field is a line of text tall, whatever axis a theme stacks its form on */
.capture form input[type=email] { max-height: 4.5em; }

/* engine: under 600px a product capture is the picture itself, whole: its box is sized from it and nothing crops it */
@media (max-width: 600px) {
  .hero-media { max-width: 100% !important; min-width: 0 !important; }
  figure.frame:not(.phone) { max-width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; }
  figure.frame:not(.phone) > img { max-width: 100% !important; min-width: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; object-fit: contain !important; }
}

/* engine: under 600px the hero is one column and a product capture fills the box it was given, so the one picture of the product is never a tile in a panel */
@media (max-width: 600px) {
  .hero.with-media .wrap { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: none !important; grid-auto-flow: row !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; }
  .hero.with-media .wrap > * { grid-column: 1 / -1 !important; grid-row: auto !important; flex: 0 1 auto !important; }
  .hero.with-media .hero-media:not(:has(> figure.frame.phone)) { height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important; min-width: min(100%, 20rem) !important; }
  figure.frame:not(.phone) { margin-inline: 0 !important; min-width: min(100%, 20rem) !important; }
}

/* engine: under 600px a band of product captures is one column, so no capture is drawn past the page's edge */
@media (max-width: 600px) {
  .shots:has(> figure.frame:not(.phone)), .spotlight { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: none !important; grid-auto-flow: row !important; grid-auto-columns: minmax(0, 1fr) !important; flex-direction: column !important; flex-wrap: nowrap !important; align-items: stretch !important; }
  .shots:has(> figure.frame:not(.phone)) > *, .spotlight > * { grid-column: 1 / -1 !important; grid-row: auto !important; flex: 0 1 auto !important; }
}

/* engine: under 600px the box that holds a product capture fits the page, so no capture is drawn wider than the window */
@media (max-width: 600px) {
  *:has(> figure.frame:not(.phone)) { box-sizing: border-box !important; max-width: min(100%, 100vw) !important; min-width: 0 !important; margin-inline: 0 !important; }
}

/* engine: under 600px a product capture is painted where it was laid out, so nothing paints it past the page's edge */
@media (max-width: 600px) {
  *:has(> figure.frame:not(.phone)), figure.frame:not(.phone), figure.frame:not(.phone) > img { transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }
}

/* engine: under 600px a product capture's frame is an upright block and the picture is its own, filling it, so nothing lays the picture out wider than the frame that holds it */
@media (max-width: 600px) {
  figure.frame:not(.phone) { display: block !important; writing-mode: horizontal-tb !important; }
  figure.frame:not(.phone) > img { position: static !important; float: none !important; width: 100% !important; }
}

/* engine: under 600px a product capture and every box the page lays it out inside are in the page's own writing mode, so every bound the engine writes on it is read in the page's own axis */
@media (max-width: 600px) {
  figure.frame:not(.phone), :has(figure.frame:not(.phone)) { writing-mode: horizontal-tb !important; }
}

/* engine: the picture of the product in a page head the engine composes is drawn across that head's own reading column, in its flow */
section.page-head > .narrow > .page-hero { display: block !important; box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin-inline: 0 !important; float: none !important; position: static !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }
section.page-head > .narrow > .page-hero > figure.frame:not(.phone) { box-sizing: border-box !important; width: 100% !important; max-width: 100% !important; min-width: 0 !important; margin-inline: 0 !important; float: none !important; position: static !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }
section.page-head > .narrow > .page-hero > figure.frame:not(.phone) > img { display: block !important; width: 100% !important; max-width: 100% !important; height: auto !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }

/* engine: the frame of the picture in a page head the engine composes stays in that head's own flow, whatever shape the capture is */
section.page-head > .narrow > .page-hero > figure.frame { float: none !important; position: static !important; }

/* engine: the picture of the product in a page head the engine composes is painted in the room that head gives it, so the room is never blank paper under the standfirst */
section.page-head > .narrow > .page-hero,
section.page-head > .narrow > .page-hero > figure.frame,
section.page-head > .narrow > .page-hero > figure.frame > img { opacity: 1 !important; visibility: visible !important; content-visibility: visible !important; clip-path: none !important; filter: none !important; mix-blend-mode: normal !important; transform: none !important; scale: none !important; translate: none !important; rotate: none !important; }

/* engine: under 600px a product capture's frame fits the window wherever it is laid out, stays in its box's own flow and keeps the picture inside it */
@media (max-width: 600px) {
  *:has(> figure.frame:not(.phone)) { inset: auto !important; }
  figure.frame:not(.phone) { max-width: min(100%, 100vw) !important; position: relative !important; inset: auto !important; float: none !important; }
  figure.frame:not(.phone) > img { margin-inline: 0 !important; padding-inline: 0 !important; }
  section.page-head > .narrow > .page-hero > figure.frame:not(.phone) { max-width: min(100%, 100vw) !important; }
}

/* engine: a band whose only picture is a wide capture is one column, and the picture sits centred under the head on the band's own axis */
.gallery .shots:has(> figure.frame:not(.phone):only-child) { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.gallery .shots > figure.frame:not(.phone):only-child { width: min(100%, 60rem); margin-inline: auto; }

/* engine: a step of a page's steps block keeps its name and its detail in the row's words column */
.block > ol.steps > li > strong, .block > ol.steps > li > p { grid-column: -2 / -1 !important; }

/* engine: a page's card set is two to a row, one where two will not fit, and an odd set's last card fills its row */
@supports (grid-template-columns: repeat(auto-fit, minmax(max(14rem, 40%), 1fr))) {
  .benefits:not(.strip-cells) { grid-template-columns: repeat(auto-fit, minmax(max(14rem, 40%), 1fr)); }
  .benefits:not(.strip-cells) > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* engine: a band left with one card is one column, and that card fills the row it sits on */
.benefits:not(.strip-cells):has(> .card:only-child), .plan-cards:has(> .card:only-child), .grid:has(> .card:only-child) { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
.benefits:not(.strip-cells):has(> .card:only-child) > .card, .plan-cards:has(> .card:only-child) > .card, .grid:has(> .card:only-child) > .card { max-width: none; }

/* engine: a page's own questions are one block inside the page, never a band of it */
div.faq { padding-block: 0; margin-block: 0; border-top: 0; border-bottom: 0; min-height: 0; height: auto; }
