/* Paper & Pixel site styles. Components read the base tokens (tokens.css)
   and the five theme tokens (themes.css) only. Numbers match components.md.
   Breakpoints: 900px (nav → Menu, multi-column grids → 1 column, compare
   table → cards), 680px (section padding and display sizes, via tokens),
   480px (facts → 2 columns). Everything is visible on load; the only
   motions are the home hero rule and the product preview video. */

/* ─── Base ─── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus-color); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 600;
  background: var(--ink); color: var(--on-dark);
  padding: 10px 16px; border-radius: var(--r-button); font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--on-dark); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ─── Layout ─── */
.wrap { width: min(var(--content), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--white { background: var(--white); }
.section--band { background: var(--band); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--ruled { border-bottom: 1px solid var(--line); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
/* Card grids: at most three columns, never narrower than 280px. */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(280px, (100% - 2 * var(--grid-gap)) / 3), 1fr)); gap: var(--grid-gap); }
/* --fill: the cards share the row between them, so two fill it, not two thirds. */
.grid-cards--fill { grid-template-columns: repeat(auto-fit, minmax(max(280px, (100% - 2 * var(--grid-gap)) / 3), 1fr)); }
.grid-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(280px, (100% - 32px) / 3), 1fr)); gap: 16px; }

/* ─── Type ─── */
.kicker {
  font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-ink);
}
.label {
  font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.display-l { font: 600 var(--fs-display-l)/1.05 var(--serif); letter-spacing: -.015em; }
.display-m { font: 600 var(--fs-display-m)/1.1 var(--serif); }
.section-title { margin-bottom: 40px; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.link { font-weight: 600; font-size: var(--fs-button); color: var(--navy); }
.link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.wordmark { font-family: var(--wordmark-font); font-weight: 700; color: var(--accent-ink); font-synthesis: none; }

/* ─── 4 Button ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: var(--r-button);
  font: 600 var(--fs-button)/1.2 var(--sans); text-align: center; cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 90%, black); color: var(--on-accent); }
/* Product accents carry dark text, so their hover lightens to keep contrast.
   Fruitlah's and office's carry white text, so their hover darkens, as the studio's does. */
[data-theme]:not([data-theme="studio"]):not([data-theme="fruitlah"]):not([data-theme="office"]) .btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }
.btn--secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--secondary:hover { background: var(--ink); color: var(--on-dark); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--line); border-color: var(--line); color: var(--ink-3); cursor: not-allowed; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ─── 1 NavStudio · 2 NavProduct ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 243, .96); border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; justify-content: space-between; align-items: center; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { height: 40px; width: auto; }
.brand__name { font: 600 22px/1.2 var(--serif); letter-spacing: -.01em; white-space: nowrap; }
.brand__amp { color: var(--orange); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink); white-space: nowrap;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav__link:hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.nav__link[aria-current="page"] { border-bottom-color: var(--accent); }
.nav__cta {
  font-size: 14px; font-weight: 600; line-height: 1.5; color: var(--ink); white-space: nowrap;
  border: 1.5px solid var(--ink); padding: 9px 16px; border-radius: var(--r-button);
}
.nav__cta:hover { background: var(--ink); color: var(--on-dark); }
.nav__cta--accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); padding: 10px 16px; }
.nav__cta--accent:hover { background: color-mix(in srgb, var(--accent) 85%, white); color: var(--on-accent); }

.nav__menu { display: none; }
.nav__menu > summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center;
  min-height: 44px; min-width: 44px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: var(--r-button);
  font: 600 13px/1 var(--sans); color: var(--ink);
}
.nav__menu > summary::-webkit-details-marker { display: none; }
.nav__menu[open] .when-closed, .nav__menu:not([open]) .when-open { display: none; }
.nav__panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 16px; display: flex; flex-direction: column;
}
.nav__panel a {
  font-size: 18px; font-weight: 500; color: var(--ink); min-height: 44px;
  display: flex; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line);
}
.nav__panel a:last-child { border-bottom: 0; }
.nav__panel .nav__panel-sub { padding-left: 20px; font-size: 16px; }
.nav__panel .nav__panel-sub--2 { padding-left: 40px; font-size: 15px; }

/* A section's sub-pages drop down on hover or keyboard focus (CSS alone). */
.nav__group { position: relative; display: flex; align-items: center; gap: 6px; }
.nav__group::after { content: ""; margin-top: 2px; border: 4px solid transparent; border-bottom: 0; border-top-color: var(--ink-3); }
.nav__sub {
  display: none; position: absolute; z-index: 110; top: 100%; left: -16px; min-width: 200px; padding: 8px 0;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(20, 20, 43, .12);
}
.nav__group:hover > .nav__sub, .nav__group:focus-within > .nav__sub { display: block; }
.nav__sub a { display: block; padding: 10px 16px; font-size: 14px; font-weight: 500; line-height: 1.5; color: var(--ink); white-space: nowrap; }
.nav__sub a:hover { background: var(--band); color: var(--ink); }
.nav__sub a[aria-current] { box-shadow: inset 2px 0 0 var(--accent); }
/* A sub-page's own sub-pages: indented under it, on a guide line. */
.nav__sub-nest { margin: 0 0 6px 16px; border-left: 1px solid var(--line); }
.nav__sub-nest a { padding-left: 14px; }

.mark {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: var(--r-mark);
  background: var(--accent); color: var(--on-accent);
  font: 700 15px/1 var(--wordmark-font); font-synthesis: none;
}
.mark--nav { width: 32px; height: 32px; }
.mark--l { width: 44px; height: 44px; border-radius: var(--r-mark-l); font-size: 22px; }
.product-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.product-brand:hover { color: var(--ink); }
.product-brand .wordmark { font-size: 20px; line-height: 1.2; white-space: nowrap; }

/* ─── 3 Breadcrumbs ─── */
.crumbs { font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .06em; color: var(--ink-3); margin-bottom: 24px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs li + li::before { content: "/"; margin-right: 8px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.crumbs [aria-current="page"] { color: var(--ink); }

/* ─── PageHeader ─── */
.hero { padding: var(--hero-top) 0 var(--section-s); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__grid--single { grid-template-columns: minmax(0, 1fr); }
.hero .kicker { margin-bottom: 20px; }
.hero h1 { font: 600 var(--fs-display-xl)/.98 var(--serif); letter-spacing: -.02em; margin-bottom: 20px; max-width: 14ch; }
.hero__rule {
  width: 96px; height: 3px; background: var(--accent); margin-bottom: 24px;
  transform-origin: left; animation: pp-rule var(--t-rule) var(--ease) 200ms both;
}
@keyframes pp-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .hero__rule { animation: none; } }
.hero .lead { margin-bottom: 28px; }
.hero__media { min-width: 0; }
.hero__image { width: 100%; height: auto; border-radius: var(--r-card); }

.page-head { padding: var(--hero-top-s) 0 var(--section-s); border-bottom: 1px solid var(--line); }
.page-head h1 { font: 600 clamp(40px, 5vw, 64px)/1 var(--serif); letter-spacing: -.02em; margin-bottom: 20px; }
.page-head .lead { max-width: 60ch; }
.page-head__note { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); max-width: 60ch; margin-top: 12px; }

/* ─── SectionHeader ─── */
.section-head { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px 48px; align-items: end; margin-bottom: 40px; }
.section-head p { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.section--navy .section-head h2 { color: var(--on-dark); }
.section--navy .section-head p { color: var(--on-dark-2); }

/* ─── 5 StatusChip ─── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font: 400 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px 10px;
}
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-dev); }
.chip--live .chip__dot { background: var(--status-live); }
.chip--beta .chip__dot { background: var(--status-beta); }
.chip--ai { color: var(--ink-3); }
.chip--on-wash { background: var(--white); border-color: var(--line-strong); }

/* ─── 6 DoorCard ─── */
.door {
  display: flex; flex-direction: column; gap: 14px; padding: var(--card-pad); min-height: 300px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink);
}
.door:hover { border-color: var(--ink); color: var(--ink); }
.door h3 { font: 600 32px/1.1 var(--serif); }
.door p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.door__cta { margin-top: auto; font-weight: 600; font-size: 15px; color: var(--navy); }
.door:hover .door__cta { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
/* One line under the last door card (a recent pilot, under For Business). */
.door-note { grid-column: -2; margin-top: calc(var(--s-3) - var(--grid-gap)); font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ─── 7 ProductCard · FamilyTile · RelatedCard ─── */
.tile {
  display: flex; flex-direction: column; gap: 12px; padding: 20px; min-height: 172px;
  background: var(--accent-wash); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink);
}
.tile:hover { border-color: var(--accent); color: var(--ink); }
.tile__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tile__status {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}
.tile .wordmark { font-size: 24px; line-height: 1.1; }
.tile__line { font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); }

.card {
  display: flex; flex-direction: column; gap: 14px; padding: var(--card-pad); min-height: 360px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r-card);
}
.card:hover { border-color: var(--accent); border-top-color: var(--accent); }
.card__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card__category { font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.card__name { display: flex; align-items: center; gap: 12px; }
.card__name .wordmark { font-size: 30px; line-height: 1.1; }
.card__tagline { font: italic 400 21px/1.3 var(--serif); color: var(--ink-2); }
.card__desc { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.card__foot {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap;
}
.card__link { font-weight: 600; font-size: 15px; color: var(--accent-ink); }
.card__link:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.card__ai { font: 400 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

.related {
  display: flex; gap: 16px; align-items: center; padding: 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--ink);
}
.related:hover { border-color: var(--accent); color: var(--ink); }
.related__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.related .wordmark { font-size: 24px; line-height: 1.2; }
.related__line { font-size: var(--fs-small); line-height: 1.4; color: var(--ink-2); }

/* Arcade's pixel font is set two steps smaller (tokens.md). Marks and
   wordmarks carry their product's data-theme, so this never leaks into
   another product's card on the Arcade page. */
.mark[data-theme="arcade"] { font-size: 11px; }
.mark--l[data-theme="arcade"] { font-size: 14px; }
.tile .wordmark[data-theme="arcade"],
.related .wordmark[data-theme="arcade"] { font-size: 14px; line-height: 1.5; }
.card__name .wordmark[data-theme="arcade"] { font-size: 16px; line-height: 1.5; }
.product-brand .wordmark[data-theme="arcade"] { font-size: 13px; }
.product-hero h1[data-theme="arcade"] { font-size: clamp(24px, 3vw, 40px); line-height: 1.3; }

/* ─── 8 DeviceFrame ─── */
.device-phone {
  width: min(300px, 80vw); aspect-ratio: 9 / 19; margin-inline: auto;
  background: var(--device); border-radius: var(--r-phone); padding: 12px; box-shadow: var(--shadow-phone);
}
.device-phone__screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; background: var(--white); }
.device-phone__screen img,
.device-phone__screen video { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-phone__screen video { position: absolute; inset: 0; }
.device-phone__notch {
  position: absolute; z-index: 1; top: 10px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; border-radius: 12px; background: var(--device);
}
.device-laptop__lid { background: var(--device); border-radius: 12px 12px 4px 4px; padding: 10px 10px 0; box-shadow: 0 1px 0 var(--device-edge) inset; }
.device-laptop__screen { aspect-ratio: 16 / 10; border-radius: 4px 4px 0 0; overflow: hidden; background: var(--white); }
.device-laptop__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.device-laptop__base { height: 14px; background: var(--device-base); border-radius: 0 0 10px 10px; }
.device-play {
  position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%);
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: rgba(20, 20, 43, .82); color: var(--on-dark); font: 600 14px/1 var(--sans); cursor: pointer;
}
@media (prefers-reduced-motion: reduce) { .device-play, .device-phone__screen video { display: none; } }

/* ─── 9 QuickFacts ─── */
.facts { padding-block: var(--section-s); background: var(--white); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px 32px; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 32px; }
.facts dl > div { border-top: 1px solid var(--line); padding-top: 10px; min-width: 0; }
.facts dt { font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: var(--fs-body); line-height: 1.5; color: var(--ink); overflow-wrap: break-word; }

/* ─── 10 StepRow ─── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--grid-gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; }
.steps--accent li { border-top: 2px solid var(--accent); }
.step__n { font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .14em; color: var(--accent-ink); }
.steps h3 { font: 600 var(--fs-title)/1.15 var(--serif); margin: 10px 0 8px; }
.steps p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.section--band .steps li { border-top-color: var(--line-strong); }
.steps--dark li { border-top-color: rgba(255, 255, 255, .35); }
.steps--dark .step__n { color: var(--orange-on-dark); }
.steps--dark h3 { color: var(--on-dark); }
.steps--dark p { color: var(--on-dark-2); }
.rule-box {
  margin-top: 40px; padding: 20px 24px; max-width: 72ch;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-card);
  font-size: var(--fs-body); line-height: 1.6; color: var(--on-dark);
}
.rule-box strong { font-weight: 600; }

/* ─── 11 FaqAccordion ─── */
.faq { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px 48px; align-items: start; }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 18px 0; min-height: 44px; font: 600 var(--fs-faq)/1.3 var(--serif);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq__plus { font: 400 20px/1 var(--mono); color: var(--accent-ink); flex: 0 0 auto; }
.faq__a { margin: 0 0 20px; font-size: var(--fs-body); line-height: 1.65; color: var(--ink-2); max-width: 64ch; }

/* ─── 13 PricingBlock ─── */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start; }
.price-card {
  padding: var(--card-pad); background: var(--paper);
  border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r-card);
}
.price-card__line { font: 600 36px/1.1 var(--serif); margin: 12px 0 8px; }
.price-card__note { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin-bottom: 20px; }
.pricing__aside { padding: 28px 0; font-size: var(--fs-body); line-height: 1.65; color: var(--ink-2); max-width: 52ch; }

/* ─── 14 Form + Field ─── */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact h2 { margin-bottom: 16px; }
.contact__intro { font-size: 17px; line-height: 1.6; color: var(--ink-2); max-width: 44ch; margin-bottom: 24px; }
.contact .label { margin-bottom: 6px; }
.contact__email { font: 600 24px/1.3 var(--serif); color: var(--navy); overflow-wrap: anywhere; }
.form { display: flex; flex-direction: column; gap: 18px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea {
  min-height: 44px; padding: 0 14px; width: 100%;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-card); background: var(--white);
  font: 400 16px/1.5 var(--sans); color: var(--ink); outline: none;
}
.field textarea { padding: 12px 14px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); box-shadow: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 13px; font-weight: 400; color: var(--error); }
.form__foot { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.form__note { font-size: 13px; color: var(--ink-3); }
.form__note a { text-decoration: underline; text-underline-offset: 3px; }
.form__server-error { font-size: var(--fs-small); color: var(--error); }
.form-success { padding: var(--card-pad); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.form-success__tick {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  border-radius: 50%; background: var(--orange-wash); color: var(--orange-ink); font-weight: 700;
}
.form-success h3 { font: 600 28px/1.2 var(--serif); margin-bottom: 8px; }
.form-success p { color: var(--ink-2); margin-bottom: 20px; }

/* ─── 16 AuthorLine ─── */
.author {
  display: flex; gap: 8px 24px; flex-wrap: wrap; padding: 32px 0 40px;
  font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .06em; color: var(--ink-3);
}
/* Links inside a sentence are underlined, not told apart by colour alone. */
.author a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ─── S3 Product ─── */
.product-hero { padding: var(--hero-top-s) 0 var(--section); background: var(--accent-wash); border-bottom: 1px solid var(--line); }
.product-hero__meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.product-hero h1 {
  font: 700 clamp(44px, 6vw, 72px)/1 var(--wordmark-font); font-synthesis: none;
  color: var(--accent-ink); margin-bottom: 16px; overflow-wrap: anywhere;
}
.product-hero__tagline { font: 400 clamp(24px, 2.4vw, 32px)/1.2 var(--serif); color: var(--ink); margin-bottom: 16px; max-width: 24ch; }
.product-hero__definition { font-size: 17px; line-height: 1.6; color: var(--ink-2); margin-bottom: 28px; max-width: 52ch; }
.product-page .link { color: var(--accent-ink); }
.who-safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.who-safety h2 { margin-bottom: 16px; }
.dash-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dash-list li { display: flex; gap: 12px; font-size: var(--fs-body); line-height: 1.55; color: var(--ink); }
.dash-list__dash { color: var(--accent-ink); font-weight: 700; flex: 0 0 auto; }
.related-head { margin-bottom: 24px; }

/* Standalone framing: the product's own site. No navy or orange. */
.preview-note {
  background: var(--ink); color: var(--on-dark); font-size: 13px; line-height: 1.5;
  padding: 8px var(--gutter); text-align: center;
}
.preview-note a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.preview-note a:hover { color: var(--on-dark); }
[data-framing="standalone"] { --focus-color: var(--ink); }
[data-framing="standalone"] a:hover { color: var(--accent-ink); }
[data-framing="standalone"] .author a { color: var(--accent-ink); }

/* ─── S4 Learning: LearnCard ─── */
.learn {
  display: flex; flex-direction: column; gap: 12px; padding: var(--card-pad); min-width: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
}
.learn p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.learn__title { font: 600 28px/1.1 var(--serif); }
.learn__cta { margin-top: auto; }
.learn--playbook { grid-column: 1 / -1; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; }
.learn__cover { width: 160px; height: auto; border-radius: var(--r-button); box-shadow: var(--shadow-cover); align-self: start; }
.learn__body { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* ─── S5 Workshops ─── */
.status-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 10px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--r-card); background: var(--white); font-size: 15px; line-height: 1.5;
}
.status-line__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--status-beta); flex: 0 0 auto; }
.note { margin-top: 24px; font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 64ch; }

/* 12 CompareTable: table, or stacked cards under 900px. */
.compare__table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.compare__table th, .compare__table td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare__table thead th {
  padding: 16px 20px; border-left: 1px solid var(--line);
  font: 600 26px/1.2 var(--serif); color: var(--ink);
}
.compare__sub { display: block; margin-top: 4px; font: 400 var(--fs-small)/1.4 var(--sans); color: var(--ink-2); }
.compare__table .compare__corner { width: 20%; background: var(--band); }
.compare__table tbody th {
  padding: 14px 20px; background: var(--band);
  font: 500 var(--fs-label)/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.compare__table td { padding: 14px 20px; border-left: 1px solid var(--line); font-size: 15px; line-height: 1.55; color: var(--ink); }
.compare__table tfoot td { border-bottom: 0; }
/* A workshop's cover, small, on top of its column and its phone card. */
.compare__cover { display: block; width: 180px; margin-bottom: 16px; }
.compare__cover img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: var(--r-card); box-shadow: var(--shadow-cover); }
.compare__card .compare__cover { width: 160px; }
.compare__cards { display: none; flex-direction: column; gap: 16px; }
.compare__card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--paper); }
.compare__card h3 { font: 600 26px/1.2 var(--serif); margin-bottom: 4px; }
.compare__card > p { font-size: var(--fs-small); color: var(--ink-2); margin-bottom: 16px; }
.compare__card dl { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.compare__card dl > div { border-top: 1px solid var(--line); padding-top: 8px; }
.compare__card dt { font: 400 11px/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.compare__card dd { margin: 2px 0 0; font-size: 15px; line-height: 1.5; }

/* Interest list: three plain links that open the Google Form in a new tab. */
.interest {
  display: flex; flex-direction: column; gap: 18px; padding: var(--card-pad);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
}
.interest__legend { font-size: var(--fs-small); font-weight: 500; }
.interest__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.interest__links a {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 10px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-card); background: var(--white);
  font-size: 15px; line-height: 1.4; color: var(--ink);
}
.interest__links a:hover { border-color: var(--navy); color: var(--ink); }
.interest__out { color: var(--navy); flex: 0 0 auto; }

/* Quote: a verbatim testimonial. */
.quote {
  display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--r-card);
}
.quote blockquote { margin: 0; font: 400 22px/1.35 var(--serif); color: var(--ink); }
.quote figcaption { margin-top: auto; font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ─── S6 For Business ─── */
.page-head__ctas { margin-top: 28px; }
.page-head__example { max-width: 640px; margin-top: 32px; }
.pilot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: var(--grid-gap); align-items: start; }
.pilot__card {
  padding: var(--card-pad); background: var(--white);
  border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r-card);
}
.pilot__price { font: 600 clamp(32px, 3vw, 40px)/1.1 var(--serif); margin: 12px 0 8px; }
.pilot__body { font-size: var(--fs-body); line-height: 1.6; color: var(--ink-2); margin-bottom: 12px; }
.pilot__includes { margin: 20px 0 24px; gap: 8px; }
.pilot__includes li { font-size: 15px; }
.pilot__terms { margin-bottom: 24px; }
.pilot__note { margin-top: 16px; font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.pilot__fit { display: flex; flex-direction: column; gap: 16px; }
.pilot__crosslink { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.fit { padding: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.fit h3 { font: 600 var(--fs-label)/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.fit ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fit li { display: flex; gap: 10px; font-size: 15px; line-height: 1.5; }
.fit__mark { font-weight: 700; flex: 0 0 auto; }
.fit--yes h3, .fit--yes .fit__mark { color: var(--status-live-ink); }
.fit--no h3, .fit--no .fit__mark { color: var(--ink-3); }
.steps--6 { row-gap: 32px; }
.panel {
  display: flex; flex-direction: column; gap: 12px; padding: var(--card-pad);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
}
.panel h3 { font: 600 var(--fs-title)/1.15 var(--serif); }
.panel p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.perm {
  padding: 24px; border: 1px solid rgba(255, 255, 255, .35); border-top: 4px solid var(--tone, var(--orange));
  border-radius: var(--r-card); background: rgba(255, 255, 255, .04);
}
.perm--prepare { --tone: var(--tone-prepare); }
.perm--review { --tone: var(--tone-review); }
.perm--approve { --tone: var(--tone-approve); }
.perm h3 { font: 600 var(--fs-label)/1.5 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); margin-bottom: 4px; }
.perm__sub { font: italic 400 18px/1.3 var(--serif); color: var(--on-dark-2); margin-bottom: 14px; }
.perm ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.perm li { font-size: 15px; line-height: 1.5; color: var(--on-dark); }
.navy-note { margin-top: 32px; font-size: var(--fs-body); line-height: 1.6; color: var(--on-dark); max-width: 72ch; text-wrap: pretty; }

/* Terms: short label/value pairs (First step, Scope; Education, Experience). */
.terms {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px;
  padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5;
}
.terms dt { font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding-top: 3px; }
.terms dd { margin: 0; }

/* ─── S7 About ─── */
.page-head--about { padding-bottom: var(--section); }
.pov { margin: 40px 0 0; padding: 24px 28px; border-left: 3px solid var(--accent); background: var(--white); max-width: 64ch; }
.pov blockquote { margin: 0 0 12px; }
.pov blockquote p { font: italic 400 clamp(24px, 2.4vw, 32px)/1.25 var(--serif); color: var(--navy); }
.pov figcaption { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.founder { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.founder__photo { width: 100%; max-width: 420px; border-radius: var(--r-card); }
.founder__name { margin: 10px 0 6px; }
.founder__byline { margin-bottom: 24px; letter-spacing: .1em; }
.founder__lead { font-size: 17px; line-height: 1.65; color: var(--ink); margin-bottom: 16px; max-width: 60ch; }
.founder__lead strong { font-weight: 600; }
.founder__bio { font-size: var(--fs-body); line-height: 1.65; color: var(--ink-2); margin-bottom: 16px; max-width: 60ch; }
.founder__terms { margin-top: 24px; }
.section-head--end { margin-bottom: 0; }
.section-head--end p { margin-bottom: 20px; }

/* ─── S8 Legal: a reading column beside the policy list ─── */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.legal__nav { position: sticky; top: 92px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.legal__nav .label { padding: 0 0 8px 16px; }
.legal__nav ul { list-style: none; margin: 0 0 24px; padding: 0; }
.legal__nav ul:last-child { margin-bottom: 0; }
.legal__toc a {
  display: flex; align-items: center; min-height: 32px; padding: 6px 16px; margin-left: -1px;
  border-left: 2px solid transparent; font-size: var(--fs-small); color: var(--ink-2);
}
.legal__toc a:hover { border-left-color: var(--accent); color: var(--ink); }
.legal__others a { display: flex; align-items: center; min-height: 32px; padding: 4px 16px; font-size: var(--fs-small); color: var(--navy); }
.legal__others a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal__doc { max-width: var(--reading); min-width: 0; }
/* The policy text, ours or injected by GetTerms, set in the site's type. */
.legal__doc h2 { font: 600 30px/1.15 var(--serif); margin: 40px 0 12px; scroll-margin-top: 92px; }
.legal__doc h3 { font: 600 var(--fs-faq)/1.3 var(--serif); margin: 28px 0 10px; }
.legal__doc h4, .legal__doc h5, .legal__doc h6 { font: 600 var(--fs-body)/1.5 var(--sans); margin: 20px 0 8px; }
.legal__doc p, .legal__doc li { font-size: var(--fs-body); line-height: 1.7; color: var(--ink-2); }
.legal__doc p { margin: 0 0 16px; }
.legal__doc ul, .legal__doc ol { margin: 0 0 16px; padding-left: 1.4em; }
.legal__doc li { margin-bottom: 6px; }
.legal__doc a { text-decoration: underline; text-underline-offset: 3px; }
.legal__doc strong { color: var(--ink); font-weight: 600; }
.legal__text > p:first-child { margin-top: 0; }
/* GetTerms injects the document's own title as an h1; the page h1 already
   names the document, so it is not shown twice. */
.legal__doc .getterms-document-embed h1 { display: none; }
.legal__doc .getterms-document-embed > :nth-child(2) { margin-top: 0; }
/* While the GetTerms text loads, hold its place (a screen tall) so what
   follows it is not pushed down on screen when it arrives. Only when scripts
   run; without them the <noscript> note shows instead. */
@media (scripting: enabled) {
  .legal__doc .getterms-document-embed:not(:has(> :not(iframe))) { min-height: 100vh; }
}
.legal__noscript { padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white); }
.legal__settings {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 40px;
  padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--white);
  font-size: 15px; color: var(--ink-2);
}

/* ─── Work: case study ─── */
/* /work/{slug}, in the work's theme: headings, numbers and arrows take
   --accent-ink, and --accent is for rules and fills. The CTA band carries
   the studio theme. */
.case-hero { padding: var(--hero-top-s) 0 var(--section); border-bottom: 1px solid var(--line); }
.case-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.case-hero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.case-hero h1 { max-width: 620px; font: 600 clamp(38px, 5vw, 64px)/1.05 var(--serif); letter-spacing: -.015em; color: var(--accent-ink); }
.case-hero__tagline { max-width: 560px; margin-top: 18px; font: 400 clamp(22px, 2.2vw, 28px)/1.25 var(--serif); color: var(--ink); }
.case-hero .lead { margin-top: 18px; }
.case-hero .btn-row { margin-top: 28px; }
.case-hero__byline { max-width: 560px; margin-top: 16px; font: 400 var(--fs-label)/1.7 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
/* The mascot sits at the phone's lower left, never past the column's edge. */
.case-hero__media { position: relative; min-width: 0; }
.case-hero__media .case-phone { width: min(300px, 100%); margin-inline: auto; }
.case-hero__mascot {
  position: absolute; z-index: 1; bottom: -10px; left: max(0px, 50% - 222px); width: 124px;
  transform: rotate(-8deg); filter: drop-shadow(0 10px 18px rgba(20, 20, 43, .22));
}

/* Without a screenshot, the mascot alone, on the accent wash. */
.case-hero__media.case-hero__media--avatar { display: flex; justify-content: center; padding-left: 0; }
.case-avatar { display: grid; place-items: center; width: min(300px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--accent-wash); }
.case-avatar img { width: 76%; height: auto; }

/* Phone frame: a real screenshot at its own shape (no crop, no notch). */
.case-phone { padding: 11px; background: var(--device); border: 1px solid var(--device-edge); border-radius: var(--r-phone); box-shadow: var(--shadow-phone); }
.case-phone img { width: 100%; border-radius: calc(var(--r-phone) - 11px); }
.case-phones { display: grid; grid-template-columns: repeat(auto-fit, min(230px, 100%)); justify-content: center; gap: var(--grid-gap); }
.case-phones--wide { grid-template-columns: repeat(auto-fit, min(250px, 100%)); }
.case-phones figcaption { margin-top: 12px; font-size: var(--fs-small); line-height: 1.5; color: var(--ink-2); text-align: center; }

/* Section heads: label, h2, lead, stacked. Copy columns beside a visual. */
.case-band { background: var(--accent-wash); }
.case-head { margin-bottom: 36px; }
.case-eyebrow { margin-bottom: 12px; }
.case-head .lead { margin-top: 14px; max-width: 64ch; }
/* One phrase per heading, in the theme's "done" colour where it has one. */
.case-head h2 em { font-style: italic; font-weight: 400; color: var(--done-ink, inherit); }
.case-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 56px); align-items: center; }
.case-split--top { align-items: start; }
.case-copy .case-head { margin-bottom: 18px; }
.case-copy > p { max-width: 52ch; color: var(--ink-2); }
.case-copy > p + p { margin-top: 16px; }
/* Copy above a full-width visual: the paragraphs side by side. */
.case-stack { display: grid; gap: var(--s-7); }
.case-copy--cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s-6); }
.case-copy--cols .case-head { grid-column: 1 / -1; }
.case-copy--cols > p { max-width: none; }
.case-copy--cols > p + p { margin-top: 0; }

/* The problem, as a diagram: one message → the tracker rows it becomes. */
.case-flow {
  display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.6fr); gap: 24px; align-items: center;
  margin: 0; padding: var(--card-pad); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
}
.case-flow .label { margin-bottom: 10px; }
.case-flow__in .case-msg { max-width: 100%; font-size: var(--fs-body); }
.case-flow__arrow { justify-self: center; }
.case-flow__arrow path { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.case-flow__rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.case-flow__rows li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card); font-size: var(--fs-small); line-height: 1.45; }
.case-flow__tab {
  flex: 0 0 auto; min-width: 112px; padding: 2px 8px; border-radius: var(--r-card); background: var(--accent-wash); color: var(--accent-ink);
  font: 400 11px/1.6 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center;
}
.case-flow__cells { display: flex; flex-wrap: wrap; gap: 2px 14px; min-width: 0; color: var(--ink-2); }
.case-flow__cells strong { font-weight: 600; color: var(--ink); }
.case-flow__caption { grid-column: 1 / -1; font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .1em; text-transform: uppercase; text-align: center; color: var(--ink-3); }

/* The problem: two baskets of oranges, and the box they half fill. */
.case-box { padding: var(--card-pad); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.case-box__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.case-box__who { margin-bottom: 8px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.case-box__basket { display: flex; gap: 6px; padding-bottom: 10px; border-bottom: 2px solid var(--line-strong); }
.case-box__carton { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 26px; }
.case-box__grid { display: grid; grid-template-columns: repeat(6, 18px); gap: 8px; padding: 12px; border: 2px solid var(--line-strong); border-radius: var(--r-card); }
.case-box__count { font: 600 40px/1 var(--serif); color: var(--accent-ink); }
.case-box__count small { font: 400 15px/1 var(--sans); color: var(--ink-2); }
.case-box__note { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ink-3); }
.case-orange { position: relative; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; background: var(--orange); }
.case-orange::after { content: ""; position: absolute; top: -2px; left: 9px; width: 6px; height: 3px; border-radius: 4px 0; background: var(--status-live); }
.case-orange--empty { background: transparent; outline: 1.5px dashed var(--line-strong); outline-offset: -1.5px; }
.case-orange--empty::after { display: none; }

/* How it works: numbered steps, text beside its visuals (wide: above). */
.case-steps { list-style: none; margin: 0; padding: 0; }
.case-step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s-7); align-items: center; padding-block: var(--s-7); border-top: 1px solid var(--line); }
.case-step:first-child { border-top: 2px solid var(--accent); }
.case-step--wide { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
.case-step--wide .case-step__text { max-width: var(--reading); }
.case-step .step__n { display: block; margin-bottom: 12px; }
.case-step h3 { margin-bottom: 14px; font: 600 var(--fs-title)/1.15 var(--serif); }
.case-step__text > p { max-width: 480px; color: var(--ink-2); }
.case-step__text > p + p { margin-top: 14px; }
.case-step__text strong { font-weight: 600; color: var(--ink); }
.case-step__visual { display: grid; gap: 20px; min-width: 0; }
.case-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0 14px; }
.case-way { padding-left: 14px; border-left: 2px solid var(--accent); }
.case-way h4 { margin: 0 0 4px; font-size: var(--fs-body); font-weight: 600; line-height: 1.5; }
.case-way p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
/* The step that matters most: on the accent wash, its chat larger. */
.case-step--feature { margin-top: var(--s-6); padding: var(--s-7) var(--card-pad); background: var(--accent-wash); border-top: 0; border-radius: var(--r-card); }
.case-step--feature h3 { font-size: clamp(28px, 3vw, 36px); }
.case-step--feature .case-chat:only-child { max-width: 580px; }
.case-step--feature .case-msg { font-size: var(--fs-body); }

/* Chat bubbles: the bot on the left in the theme's wash, a person on the
   right in a pale green. The link a bot sent is shown, not clickable. */
.case-chat {
  display: flex; flex-direction: column; gap: 10px; width: 100%; margin-inline: auto; padding: 22px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
}
.case-chat:only-child { max-width: 520px; }
.case-msg { max-width: 86%; padding: 11px 14px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-line; }
.case-msg--bot { align-self: flex-start; background: var(--accent-wash); border-bottom-left-radius: 4px; }
.case-msg--person { align-self: flex-end; background: color-mix(in srgb, var(--status-live) 10%, var(--white)); border-bottom-right-radius: 4px; }
.case-msg__link { color: var(--status-live-ink); text-decoration: underline; text-underline-offset: 3px; }
.case-msg strong { font-weight: 600; color: var(--done-ink, inherit); }
.case-chat__who { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); font-weight: 600; line-height: 1.4; color: var(--ink); }
.case-chat__who img { width: 28px; height: 28px; padding: 3px; border-radius: 50%; background: var(--accent-wash); }
.case-chat__time { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.case-msg__time { display: block; margin-top: 6px; font-size: 12px; line-height: 1.4; color: var(--ink-3); text-align: right; }

/* Status list: lines that are ready, worth asking about, or set aside. */
.case-status { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.case-status li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 20px; border-top: 1px solid var(--line); }
.case-status li:first-child { border-top: 0; }
.case-status__name { display: block; font-weight: 600; }
.case-status p { font-size: var(--fs-small); line-height: 1.55; color: var(--ink-2); }
.case-tag {
  display: inline-block; margin-bottom: 6px; padding: 3px 8px; border-radius: var(--r-pill);
  font: 400 11px/1.5 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.case-tag--ready { background: color-mix(in srgb, var(--status-live) 10%, var(--white)); color: var(--status-live-ink); }
.case-tag--ask { background: var(--orange-wash); color: var(--orange-ink); }
.case-tag--defer { background: color-mix(in srgb, var(--status-dev) 10%, var(--white)); color: var(--ink-2); }

/* Who does what: three columns, ruled in the For Business tones. */
.case-roles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); }
.case-role { padding-top: 18px; border-top: 3px solid var(--tone); }
.case-role--prepare { --tone: var(--tone-prepare); }
.case-role--review { --tone: var(--tone-review); }
.case-role--approve { --tone: var(--tone-approve); }
.case-role h3 { margin-bottom: 12px; font: 600 24px/1.15 var(--serif); }
.case-role ul { padding-left: 18px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.case-role li + li { margin-top: 8px; }
.case-role p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* The rails: a checklist of what the agent never does. */
.case-rails { margin-top: var(--s-7); }
.case-rails h3 { margin-bottom: 18px; font: 600 24px/1.15 var(--serif); }
.case-rails ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 40px; }
.case-rails li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.case-tick { flex: 0 0 auto; margin-top: 2px; }
.case-tick circle { fill: var(--white); stroke: var(--accent); stroke-width: 2; }
.case-tick path { fill: none; stroke: var(--done, var(--accent-ink)); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* What real use changed: before → after. */
.case-changes { list-style: none; margin: 0; padding: 0; }
.case-changes li { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); gap: 16px; align-items: center; padding-block: 18px; border-top: 1px solid var(--line); }
.case-changes__was { color: var(--ink-3); }
.case-changes__arrow { color: var(--accent-ink); text-align: center; }
.case-changes__now { font-weight: 600; }
.case-changes__now small { display: block; margin-top: 4px; font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--ink-3); }
/* …or a point and its line. */
.case-changes li.case-changes__point { display: block; }
.case-changes__point strong { display: block; font-weight: 600; color: var(--ink); }
.case-changes__point span { display: block; margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }

/* The dark call to action. A theme may set its band and button colours. */
.case-cta { --focus-color: var(--on-dark); padding-block: var(--s-8); background: var(--cta-band, var(--ink)); color: var(--on-dark); }
.case-cta .btn--primary { background: var(--cta-button, var(--accent)); color: var(--cta-on-button, var(--on-accent)); }
.case-cta .btn--primary:hover { background: color-mix(in srgb, var(--cta-button, var(--accent)) 90%, black); color: var(--cta-on-button, var(--on-accent)); }
.case-cta .label { color: var(--on-dark-2); }
.case-cta h2 { max-width: 640px; margin-top: 12px; color: var(--on-dark); }
.case-cta__body { max-width: 560px; margin-top: 16px; color: var(--on-dark-2); }
.case-cta .btn-row { margin-top: 28px; }
.case-cta .btn--secondary { border-color: var(--on-dark); color: var(--on-dark); }
.case-cta .btn--secondary:hover { background: var(--on-dark); color: var(--ink); }

/* WorkCard: a case study with its mascot, on /work and on For Business. */
.work-card {
  display: flex; gap: 20px; align-items: center; padding: 20px 24px;
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: var(--r-card);
}
.work-card__image { flex: 0 0 auto; width: 72px; height: 72px; }
.work-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.work-card__title { font: 600 30px/1.1 var(--serif); }
.work-card__text { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.work-card__image--ring { padding: 8px; border-radius: 50%; background: var(--accent-wash); }
.work-card--placeholder { border-style: dashed; border-top: 4px solid var(--line-strong); background: transparent; }

@media (max-width: 900px) {
  .case-hero__grid, .case-split, .case-step, .case-roles, .case-copy--cols, .case-flow { grid-template-columns: minmax(0, 1fr); }
  .case-step { gap: var(--s-6); }
  .case-copy--cols > p + p { margin-top: 16px; }
  .case-flow { gap: 16px; }
  .case-flow__arrow { transform: rotate(90deg); margin-block: -32px; }
}
@media (max-width: 680px) {
  .case-ways, .case-status li, .case-changes li, .case-rails ul { grid-template-columns: minmax(0, 1fr); }
  .case-flow { padding: 20px 16px; }
  .case-flow__rows li { flex-wrap: wrap; gap: 8px; }
  .case-flow__tab { min-width: 0; }
  .case-step--feature { padding: var(--s-6) 16px; }
  .case-avatar { width: min(220px, 100%); }
  .case-status li, .case-changes li { gap: 6px; }
  .case-changes__arrow { text-align: left; }
  .case-hero__media { padding-left: 48px; }
  .case-hero__mascot { width: 88px; left: max(0px, 50% - 178px); }
}

/* ─── FooterStudio · FooterProduct ─── */
.footer { background: var(--white); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 12px; }
.footer__brand .brand img { height: 36px; }
.footer__brand .brand__name { font-size: 20px; }
.footer__about { font-size: var(--fs-small); line-height: 1.6; color: var(--ink-2); max-width: 32ch; }
.footer__email { font-size: var(--fs-small); font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.footer .label { display: block; margin-bottom: 12px; }
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__links a { font-size: 15px; color: var(--ink); }
.footer__links a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer__links .footer__settings { color: var(--navy); }
.footer__bottom {
  margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font: 400 var(--fs-label)/1.5 var(--mono); letter-spacing: .06em; color: var(--ink-3);
}
.footer--product { padding: 40px 0 32px; }
.footer--product .footer__top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.footer__product-id { display: flex; flex-direction: column; gap: 8px; }
.footer__product-id .product-brand .wordmark { font-size: 20px; }
.footer__tagline { font-size: var(--fs-small); color: var(--ink-2); max-width: 36ch; }
.footer__inline { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.footer__inline a { font-size: var(--fs-small); color: var(--ink); }
.footer--product .footer__bottom { margin-top: 24px; align-items: center; }
.endorse { display: inline-flex; align-items: center; gap: 8px; font: 400 13px/1.5 var(--sans); letter-spacing: 0; color: var(--ink-2); }
.endorse img { height: 20px; width: auto; }
.endorse__name { font: 600 15px/1 var(--serif); color: var(--ink); }

/* ─── 900px: nav → Menu, multi-column grids → 1 column ─── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__menu { display: block; }
  .hero__grid, .section-head, .faq, .contact, .pricing, .who-safety, .facts__grid,
  .grid-2, .grid-3, .steps, .steps--4, .form__row, .pilot, .founder, .legal { grid-template-columns: minmax(0, 1fr); }
  .legal__nav { position: static; }
  .door, .card { min-height: 0; }
  .compare__table { display: none; }
  .compare__cards { display: flex; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .pricing__aside { padding: 0; }
}

/* ─── 680px: cover above the text ─── */
@media (max-width: 680px) {
  .learn--playbook { grid-template-columns: minmax(0, 1fr); }
  .learn__cover { width: 120px; }
}

/* ─── 480px: facts → 2 columns ─── */
@media (max-width: 480px) {
  .facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand img { height: 36px; }
  .brand__name { font-size: 20px; }
}
