/* MayWe home: a compact hero, a four-part strip, the enrollment rail beside the mailbox
 * workbench (workbench.js), the catalog, then the live signup demo, the plans, the
 * promises and the company, each a ruled band.
 *
 * Colours come only from the shared theme tokens, with one exception: the specimen
 * newsletter (.brand-mail) shows a customer's own brand, the tokens its maywe.yml names.
 * The page frame keeps its gutter. A band that rules edge to edge steps out of main by
 * exactly that gutter and pads back in, so every column still lines up with the header.
 * One column grid is shared by the hero, the strip, the enrollment/workbench split, the
 * catalog and the bands, so their left edges align. Titles use style.css's type scale:
 * the hero's h1 is the largest line on the page, and every section title is an h2 size. */

body[data-page="landing"] {
  --frame-top: 0px;
  --gutter: clamp(24px, 3vw, 56px);
  --c1: minmax(242px, calc((100% - var(--gutter)) * 0.68 / 2.63));
  --sheet-pad: clamp(22px, 2vw, 32px);
}

/* The workbench's own type and control resets, under its sections only. :where() keeps
 * them at an element's weight, so every class below still wins. */
:where(.wb-hero, .problems, .work, .catalog) :is(h1, h2, h3, h4, p, pre, fieldset) { margin: 0; }
:where(.work, .catalog) { overflow-wrap: anywhere; }
:where(.work, .catalog) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
:where(.work, .catalog) button:disabled { cursor: default; }
:where(.work) :is(input:not([type="checkbox"]), select, textarea) { min-width: 0; width: 100%; min-height: 0; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink); font: inherit; font-size: 0.88rem; line-height: 1.5; }
:where(.work) textarea { font-family: inherit; resize: vertical; }
:where(.work) label { font-weight: 400; font-size: inherit; }
:where(.work, .catalog) pre { padding: 0; border: 0; border-radius: 0; background: none; font: 0.75rem/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
:where(.work, .catalog) .icon { display: block; width: 1.1em; height: 1.1em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }

/* Edge-to-edge bands: out of the frame's gutter, and back in. */
.wb-hero, .problems, .home-band, .developer-note { margin-inline: calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); }
.catalog { margin-inline: calc(-1 * var(--page-gutter)); }
.catalog-head, .catalog-item { padding-inline: var(--page-gutter); }

/* --- the hero and the four-part strip ------------------------------------------- */

.wb-hero { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr); column-gap: var(--gutter); row-gap: 8px; align-items: baseline; padding-block: clamp(20px, 2.2vw, 34px); }
#headline { font: 400 var(--type-h1)/1.04 var(--serif); letter-spacing: -0.042em; }
.wb-hero-copy p { color: var(--ink-2); font-size: clamp(0.95rem, 1.1vw, 1.15rem); line-height: 1.5; letter-spacing: -0.012em; text-wrap: pretty; }
.wb-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; margin-top: 14px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--ink); font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; }

.problems { border-block: 1px solid var(--line); }
/* The first column matches the enrollment column; each hairline sits in the middle of its gutter. */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: var(--c1) repeat(3, minmax(0, 1fr)); column-gap: var(--gutter); }
.pillars li { position: relative; min-width: 0; padding-block: clamp(16px, 1.6vw, 24px); }
.pillars li + li::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--gutter) / -2); width: 1px; background: var(--line); }
.pillars h3 { font: 400 clamp(1.08rem, 1.25vw, 1.32rem)/1.25 var(--serif); letter-spacing: -0.02em; color: var(--ink); }
.pillars p { margin-top: 5px; color: var(--ink-3); font-size: clamp(0.82rem, 0.88vw, 0.9rem); line-height: 1.5; text-wrap: pretty; }

/* --- the enrollment rail and the workbench ------------------------------------------- */

.work { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr); gap: var(--gutter); align-items: start; padding-block: clamp(28px, 3vw, 48px) clamp(36px, 3.6vw, 60px); }
.work > section { min-width: 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-height: 30px; margin: 0 0 10px; }
.section-head h2 { font: 400 var(--type-h2)/1.18 var(--serif); letter-spacing: -0.03em; }
#workbench .section-head { margin: 0 0 2px; min-height: 0; }
.catalog-jump { color: var(--ink-3); font: 500 0.8rem/1.4 var(--font); text-decoration: none; white-space: nowrap; }
.catalog-jump:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; }
.wb-fallback { color: var(--ink-3); font-size: 0.9rem; }
ol.wb-fallback { margin: 0; padding: 12px 0 12px 1.5rem; }

/* The enrollment: ruled steps with plain numerals. */
#enrollment .step-list { border-block: 1px solid var(--line); }
.step + .step { border-top: 1px solid var(--line); }
.step-head { display: flex; width: 100%; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink-2); text-align: left; }
.step-head:hover { color: var(--ink); }
.step-number { flex: none; display: grid; place-items: center; color: var(--ink-3); font: 500 0.74rem/1.4 var(--mono); }
.step.is-open .step-number { color: var(--accent); }
.step-head strong { font-size: 0.92rem; font-weight: 500; line-height: 1.35; letter-spacing: -0.025em; }
.step.is-open .step-head strong { color: var(--ink); }
.step-head > .icon { margin-left: auto; width: 13px; height: 13px; color: var(--ink-3); transition: transform 0.15s ease; }
.step.is-open .step-head > .icon { transform: rotate(45deg); }
.short-step { display: none; }
.step-content { padding: 0 0 15px; }
.step-content p, .helper { color: var(--ink-3); font-size: 0.84rem; line-height: 1.6; }
.field-label { display: block; margin-bottom: 5px; font-size: 0.79rem; font-weight: 600; }
.input-row { display: flex; gap: 6px; align-items: stretch; }
:where(.work) input[name="domain"] { font: 0.85rem/1.5 var(--mono); }
.solid { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 9px; padding: 9px 15px; border: 1px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-size: 0.83rem; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.solid:hover { text-decoration: underline; text-underline-offset: 0.2em; }
#enrollment .phase { margin-top: 16px; }
#enrollment .phase + .phase { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
#enrollment .phase h4 { margin: 0 0 4px; color: var(--ink); font: 600 0.86rem/1.4 var(--font); }
#enrollment .phase p, #enrollment .phase .helper { color: var(--ink-3); font-size: 0.82rem; line-height: 1.6; }
#enrollment .phase small, #enrollment .phase .receipt { display: block; margin-top: 8px; color: var(--ink-3); font: 500 0.78rem/1.45 var(--font); }
#enrollment .phase small.ok, #enrollment .phase .receipt { color: var(--ok); }
.phase fieldset { min-width: 0; padding: 0; border: 0; }
.phase fieldset:disabled { color: var(--ink-3); }
.phase select { margin-block: 6px; padding: 5px; font-size: 0.76rem; }
.phase button { margin-top: 6px; }
.phase .helper { display: flex; align-items: center; gap: 6px; }
.dns-details { margin: 7px 0; font-size: 0.76rem; }
.dns-details summary { color: var(--ink-2); font-weight: 500; cursor: pointer; }
.dns-record { padding: 3px 0; border-bottom: 1px dotted var(--line-2); font: 0.69rem/1.45 var(--mono); }
.probe-receipt { margin-top: 5px; color: var(--ok); font: 0.68rem/1.4 var(--mono); }
.checks { display: grid; gap: 7px; margin-bottom: 12px; }
.checks label { display: flex; align-items: center; gap: 7px; font-size: 0.82rem; }
.checks input { width: 15px; height: 15px; margin: 0; }
.snippet { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--sheet); }
.snippet-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 11px; border-bottom: 1px solid var(--line); color: var(--ink-3); font: 0.7rem var(--mono); }
.snippet pre { padding: 10px 12px; color: var(--ink-2); }
.copy { display: inline-flex; align-items: center; gap: 5px; padding: 3px; font: 0.68rem/1.4 var(--mono); }
.copy:hover { text-decoration: underline; }
.paper-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--paper); color: var(--ink-2); font-size: 0.77rem; font-weight: 500; line-height: 1.3; }
.paper-button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.phase :is(select, button, input):disabled { color: var(--ink-3); border-color: var(--line); background: var(--paper-2); }
.step-cta { margin-top: 12px; }
/* View toggles read as words; the pressed one is underlined. */
.choices, .segments { display: flex; flex-wrap: wrap; align-items: baseline; }
.choices { gap: 2px 18px; }
.segments { gap: 2px 16px; margin: 12px 0; }
.choice, .segment { padding: 4px 0; color: var(--ink-3); font: 500 0.84rem/1.4 var(--font); }
.choice:hover, .segment:hover { color: var(--ink); }
.choice[aria-pressed="true"], .segment[aria-pressed="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
.choices.compact { margin-bottom: 14px; }
.choices.compact .choice { font-size: 0.8rem; }

/* The workbench: a ruled tab bar, one caption line, then the mail itself. When the tabs
 * don't fit on one line the bar scrolls sideways, and fades only on the side with more. */
.act-bar { --fade: clamp(16px, 1.7vw, 30px); --fl: 0px; --fr: 0px; display: flex; flex-wrap: nowrap; column-gap: clamp(12px, 1.4vw, 26px); overflow-x: auto; scrollbar-width: none; scroll-padding-inline: var(--fade); margin: 0 0 clamp(18px, 1.8vw, 26px); box-shadow: inset 0 -1px 0 var(--line); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%); }
.act-bar::-webkit-scrollbar { display: none; }
.act-bar.fade-l { --fl: var(--fade); }
.act-bar.fade-r { --fr: var(--fade); }
.act { flex: none; padding: 12px 3px 11px; color: var(--ink-3); font: 500 clamp(0.82rem, 0.86vw, 0.9rem)/1.3 var(--font); letter-spacing: -0.005em; white-space: nowrap; transition: color 0.15s ease, box-shadow 0.15s ease; }
.act:hover { color: var(--ink); }
.act[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
/* The bar scrolls, so it clips: the ring draws inside the tab. */
.act:focus-visible { outline-offset: -3px; }
.bench { display: grid; gap: clamp(16px, 1.6vw, 22px); }
.bench-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px clamp(16px, 2vw, 32px); }
.bench-caption { flex: 1 1 22rem; min-width: 0; color: var(--ink-2); font-size: clamp(0.92rem, 0.98vw, 1.02rem); line-height: 1.55; text-wrap: pretty; }
.canvas { display: grid; gap: clamp(18px, 1.8vw, 26px); }
.canvas-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(16px, 1.8vw, 28px); align-items: start; }
.sheet { min-width: 0; padding: var(--sheet-pad); border: 1px solid var(--line); border-radius: var(--radius); background: var(--sheet); line-height: 1.6; }
.sheet .sheet-label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 18px; color: var(--ink-3); font: 400 0.8rem/1.4 var(--font); }
.sheet h4 { margin: 0 0 8px; color: var(--ink); font: 400 clamp(1.08rem, 1.25vw, 1.32rem)/1.25 var(--serif); letter-spacing: -0.025em; }
.sheet h4.after-chip { margin-top: 6px; }
.sheet p { color: var(--ink-2); font-size: 0.9rem; line-height: 1.62; }
.sheet p + p { margin-top: 10px; }
.sheet code { font-size: 0.86em; }
.sheet .field-label { margin: 18px 0 6px; color: var(--ink-2); font-size: 0.8rem; font-weight: 500; }
.sheet :is(input:not([type="checkbox"]), select, textarea) { padding: 9px 11px; }
.sheet textarea.issue-editor { font: 0.84rem/1.6 var(--mono); }
.sheet .input-row { flex-wrap: wrap; gap: 8px; }
.sheet .input-row > input, .sheet .input-row > select { flex: 1 1 180px; }
.sheet .input-row > .btn { flex: none; }
.wb-hint { margin-top: 14px; color: var(--ink-3); font-size: 0.84rem; }
.wb-empty { margin-top: 4px; color: var(--ink-3); font-size: 0.88rem; }
.status-msg { margin-top: 14px; color: var(--ok); font-size: 0.86rem; }
.sheet .status-msg.warn { color: var(--accent); }
.bench .muted { color: var(--ink-3); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.btn-row.tight { margin-top: 8px; }
/* The workbench's buttons are the portal's .btn, one step smaller; its primary is the
 * ok green, so a try-it action never reads as the page's own call to action. */
.bench .btn { min-height: 38px; padding: 8px 15px; border: 1px solid var(--line-2); background: var(--sheet); color: var(--ink); font: 500 0.85rem/1.25 var(--font); }
.bench .btn:hover { border-color: var(--ink); background: var(--sheet); }
.bench .btn.small { min-height: 32px; padding: 5px 11px; font-size: 0.8rem; }
.bench .btn.primary { border-color: var(--ok); background: var(--ok); color: var(--paper); }
.bench .btn.primary:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.bench .btn.is-pending { border-color: var(--line); background: var(--paper-2); color: var(--ink-3); cursor: default; }

/* Mail, as a mail app lays it out. */
.mail-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--paper-2); color: var(--ink-2); font: 500 0.76rem/1 var(--font); letter-spacing: 0.02em; }
.avatar.sm { width: 28px; height: 28px; font-size: 0.68rem; }
.mail-who { display: grid; gap: 1px; min-width: 0; }
.mail-who strong { color: var(--ink); font-size: 0.92rem; font-weight: 600; }
.mail-who small { color: var(--ink-3); font-size: 0.8rem; line-height: 1.45; overflow-wrap: anywhere; }
.mail-when { margin-left: auto; color: var(--ink-3); font-size: 0.78rem; white-space: nowrap; }
.inbox { display: grid; margin: 0 0 22px; border-block: 1px solid var(--line); }
.inbox-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--ink-2); text-align: left; }
.inbox-row:last-child { border-bottom: 0; }
.inbox-row:hover { background: var(--paper-2); }
.inbox-row[aria-pressed="true"] { background: var(--paper-2); color: var(--ink); box-shadow: inset 2px 0 0 var(--accent); }
.inbox-text { display: grid; min-width: 0; font-size: 0.84rem; line-height: 1.4; }
.inbox-text strong { color: var(--ink); font-size: 0.86rem; font-weight: 600; }
.inbox-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox-to { color: var(--ink-3); font-size: 0.78rem; }
.draft-card { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.quote { margin: 10px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--line-2); color: var(--ink); font-size: 0.92rem; line-height: 1.6; }
.state { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font: 500 0.8rem/1.4 var(--font); }
.state.ok { color: var(--ok); }
.state.hold { color: var(--accent); }
.state.wait::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wb-facts { display: grid; margin: 0; }
.wb-facts > div { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wb-facts > div:first-child { padding-top: 0; }
.wb-facts > div:last-child { border-bottom: 0; }
.wb-facts dt { color: var(--ink-3); font-size: 0.82rem; }
.wb-facts dd { margin: 0; color: var(--ink); font-size: 0.9rem; line-height: 1.5; overflow-wrap: anywhere; }
.wb-facts q { font-style: italic; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; color: var(--ink-3); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 0.42em; width: 9px; height: 9px; border: 1.5px solid var(--line-2); border-radius: 50%; background: var(--sheet); }
.timeline li::after { content: ""; position: absolute; left: 7px; top: calc(0.42em + 12px); bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { border-color: var(--ok); background: var(--ok); }
.timeline strong { display: block; font-size: 0.9rem; font-weight: 500; line-height: 1.45; }
.timeline small { display: block; margin-top: 1px; color: var(--ink-3); font-size: 0.82rem; line-height: 1.5; }
.wb-checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.wb-checklist li { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: baseline; gap: 10px; color: var(--ink); font-size: 0.9rem; line-height: 1.5; }
.wb-checklist li::before { content: "✓"; color: var(--ok); font-weight: 600; }
.wb-checklist li.no { color: var(--ink-2); }
.wb-checklist li.no::before { content: "✕"; color: var(--accent); }
.wb-rows { display: grid; border-block: 1px solid var(--line); }
.wb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.wb-row:last-child { border-bottom: 0; }
.row-main { display: grid; gap: 2px; min-width: 0; }
.row-main strong { color: var(--ink); font: 500 0.86rem/1.4 var(--mono); overflow-wrap: anywhere; }
.row-main small { color: var(--ink-3); font-size: 0.8rem; }
.row-main .state { justify-self: start; }
.device { margin-top: 22px; }
.device .field-label { margin-top: 0; }
.invite-card { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.invite-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.invite-top small { color: var(--ink-3); font-size: 0.8rem; }
.link-chip { display: block; margin-top: 10px; padding: 8px 10px; border: 0; border-radius: var(--radius-sm); background: var(--paper-2); color: var(--ink-2); font: 0.78rem/1.5 var(--mono); overflow-wrap: anywhere; }
.form-stack { display: grid; }
.form-stack .btn-row { margin-top: 14px; }
.numbered { display: grid; gap: 8px; margin: 16px 0 0; padding-left: 1.3em; color: var(--ink-2); font-size: 0.88rem; line-height: 1.55; }
.address-box, .outcome, .held-note { display: grid; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.address-box .field-label { margin: 0; }
.address-box .btn-row { margin-top: 4px; }
.outcome .state, .held-note .state { justify-self: start; }
.redacted { display: grid; gap: 10px; margin: 2px 0 18px; }
.redacted span { display: block; height: 11px; border-radius: var(--radius-sm); background: repeating-linear-gradient(-45deg, var(--line-2) 0 5px, transparent 5px 10px); }
.redacted .w1 { width: 72%; }
.redacted .w2 { width: 94%; }
.redacted .w3 { width: 56%; }
.code-number { margin: 16px 0 4px; color: var(--ink); font: 600 clamp(1.7rem, 2.2vw, 2.1rem)/1.2 var(--mono); letter-spacing: 0.14em; }
/* The customer's newsletter, in the brand its maywe.yml declares (tokens: ink #18251e,
 * accent #d9f279): a specimen of their mail, so it keeps those colours in either theme. */
.brand-mail { --brand-ink: #18251e; --brand-accent: #d9f279; --brand-paper: #fffdf7; --brand-text: #33413a; --brand-rule: #e6e1d4; --brand-link: #3d5a2a; --brand-off: #77756c;
  color-scheme: light; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--brand-paper); color: var(--brand-ink); }
.brand-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--brand-ink); color: var(--brand-accent); font: 0.74rem/1.4 var(--mono); }
.brand-name { font: 400 1.15rem/1.2 var(--serif); letter-spacing: -0.02em; }
.brand-body { padding: 20px 20px 10px; }
.sheet .brand-body h4 { color: var(--brand-ink); }
.sheet .brand-body p, .brand-body li { color: var(--brand-text); }
.md-list { margin: 8px 0; padding-left: 1.2em; font-size: 0.9rem; line-height: 1.6; }
.plain-text { white-space: pre-wrap; color: var(--brand-text); font: 0.82rem/1.65 var(--mono); }
.brand-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 12px 20px 16px; border-top: 1px solid var(--brand-rule); }
.link-btn { color: var(--brand-link); font: 500 0.8rem/1.4 var(--font); text-decoration: underline; text-underline-offset: 3px; }
.link-btn:disabled { color: var(--brand-off); text-decoration: none; }
.brand-mail :focus-visible { outline-color: var(--brand-ink); }
.pace { display: grid; gap: 12px; }
.pace-bar { display: flex; gap: 4px; }
.pace-bar i { flex: 1; height: 4px; background: var(--line); }
.pace-bar i.on { background: var(--ok); }
.code-peek { padding-top: 12px; border-top: 1px solid var(--line); }
.code-peek > summary, .catalog-code > summary { display: flex; align-items: center; gap: 8px; width: fit-content; padding: 4px 0; color: var(--ink-3); font: 500 0.82rem/1.4 var(--font); list-style: none; cursor: pointer; }
.code-peek > summary::-webkit-details-marker, .catalog-code > summary::-webkit-details-marker { display: none; }
.code-peek > summary::before, .catalog-code > summary::before { content: "+"; color: var(--ink-3); font: 500 0.9rem/1 var(--mono); }
.code-peek[open] > summary::before, .catalog-code[open] > summary::before { content: "\2212"; }
.code-peek > summary:hover, .catalog-code > summary:hover { color: var(--ink); }
.peek-body, .catalog-code .example-list { display: grid; gap: 10px; margin-top: 12px; }
.bench-error { margin: 0; padding: 10px 12px; border-left: 2px solid var(--danger); background: var(--danger-bg); color: var(--danger); font-size: 0.88rem; }

/* --- the catalog: a quiet specification table ------------------------------------------ */

.catalog-head, .catalog-item { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr); column-gap: var(--gutter); }
.catalog-head { align-items: baseline; padding-block: clamp(28px, 3vw, 48px) clamp(14px, 1.4vw, 22px); border-bottom: 1px solid var(--line); }
.catalog-head h2 { font: 400 var(--type-h2)/1.18 var(--serif); letter-spacing: -0.03em; }
.catalog-lede { color: var(--ink-3); font-size: clamp(0.92rem, 0.98vw, 1.02rem); line-height: 1.55; }
.catalog-item { align-items: start; padding-block: clamp(16px, 1.6vw, 24px); border-bottom: 1px solid var(--line); }
.catalog-item > * { min-width: 0; }
.catalog-title { display: flex; gap: clamp(10px, 1vw, 16px); align-items: baseline; }
.catalog-title .num { color: var(--ink-3); font: 0.74rem var(--mono); white-space: nowrap; }
.catalog-item h3 { font: 400 clamp(1.08rem, 1.25vw, 1.32rem)/1.25 var(--serif); letter-spacing: -0.02em; }
.catalog-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(16px, 1.6vw, 22px); }
.catalog-summary { color: var(--ink); font: 400 clamp(0.95rem, 1.05vw, 1.08rem)/1.55 var(--serif); letter-spacing: -0.012em; text-wrap: pretty; }
.spec-list { display: grid; margin: 0; border-bottom: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: minmax(0, 0.24fr) minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.spec-list dt { color: var(--ink-3); font-size: 0.84rem; line-height: 1.5; }
.spec-list dd { margin: 0; color: var(--ink); font-size: 0.92rem; line-height: 1.5; }
.spec-list dd.mono { font: 0.84rem/1.5 var(--mono); }

/* --- the live bands: the signup demo, plans, promises, the company ------------------------ */

.catalog + .home-band { border-top: 0; }
.home-band { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr); column-gap: var(--gutter); row-gap: 20px; align-items: start; padding-block: clamp(28px, 3vw, 48px); border-top: 1px solid var(--line); }
.home-band > * { min-width: 0; }
.band-head h2 { margin: 0; font-size: var(--type-h2); line-height: 1.18; letter-spacing: -0.03em; }
.band-head .eyebrow { margin-bottom: 10px; }
.band-body > :last-child { margin-bottom: 0; }
.band-body > p { max-width: var(--measure); color: var(--ink-2); }

.demo-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px var(--gutter); align-items: start; }
.demo-copy p { color: var(--ink-2); }
.demo-copy p:first-child { color: var(--ink); font: 400 clamp(0.95rem, 1.05vw, 1.08rem)/1.55 var(--serif); letter-spacing: -0.012em; }
.demo { padding: clamp(20px, 2vw, 32px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--sheet); }
.demo form .field { margin-bottom: 18px; }
.demo label { margin-bottom: 4px; font-size: 0.9rem; }
.demo input { min-height: 48px; }
.demo button[type="submit"] { width: 100%; min-height: 48px; }
.newsletter-status { margin: 0; padding: 0.75rem 1rem; border: 1px solid var(--line); border-left: 2px solid var(--info); border-radius: 0; background: var(--paper-2); color: var(--ink); }
.newsletter-status.is-ok { border-left-color: var(--ok); }
.newsletter-status.is-error { border-left-color: var(--danger); }

.plans-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 28px var(--gutter); align-items: start; }
.plans-intro .hint { margin-bottom: 20px; font-size: 0.95rem; line-height: 1.65; }
.home-plans #plans { min-width: 0; }
.home-plans #plans .hint { margin: 12px 0 0; }
.home-plans .notice { margin: 0; padding: 20px; color: var(--ink-2); font-size: 0.9rem; }

.signin-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px var(--gutter); align-items: start; }
.signin-copy p { color: var(--ink-2); }
.signin-copy p:first-child { color: var(--ink); font: 400 clamp(0.95rem, 1.05vw, 1.08rem)/1.55 var(--serif); letter-spacing: -0.012em; }
.signin-panel { padding: clamp(20px, 2vw, 32px); border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--sheet); }
.signin-panel form .field { margin-bottom: 14px; }
.signin-panel label { margin-bottom: 4px; font-size: 0.9rem; }
.signin-panel input { min-height: 48px; }
.signin-panel button[type="submit"] { width: 100%; min-height: 48px; }
.signin-panel .home-signin-fineprint { margin: 12px 0 0; font-size: 0.8rem; line-height: 1.55; }
.signin-panel .signin-other { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.home-signin-card h3 { margin: 0 0 10px; font: 400 clamp(1.08rem, 1.25vw, 1.32rem)/1.25 var(--serif); letter-spacing: -0.025em; }
.home-signin-card p { margin: 0 0 12px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.6; }
.home-signin-card .actions { margin-top: 16px; }

.home-promises .checklist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 var(--gutter); margin: 0 0 24px; }
.home-promises .checklist li { padding-block: 16px; border-top: 1px solid var(--line); color: var(--ink-2); }
.home-promises .checklist li::before { top: calc(16px + 0.3em); }
.home-promises .checklist strong { display: block; margin-bottom: 6px; color: var(--ink); font: 400 1.15rem/1.3 var(--serif); letter-spacing: -0.015em; }
.company-copy { color: var(--ink-2); }
.company-copy p { max-width: var(--measure); }

.developer-note { border-block: 1px solid var(--line); }
.developer-note summary { display: flex; justify-content: space-between; gap: 16px; min-height: 44px; align-items: center; padding: 14px 0; font-size: 0.9rem; font-weight: 500; list-style: none; cursor: pointer; }
.developer-note summary::-webkit-details-marker { display: none; }
.developer-note summary::after { content: "+"; color: var(--ink-3); font: 500 1.1rem/1 var(--mono); }
.developer-note[open] summary::after { content: "\2212"; }
.developer-content { display: grid; grid-template-columns: var(--c1) minmax(0, 1fr); gap: 16px var(--gutter); padding: 8px 0 28px; }
.developer-content h2 { margin: 0; font-size: var(--type-h2); }
.developer-content p { margin: 0; max-width: var(--measure); color: var(--ink-2); }

/* --- wide screens, then narrower ----------------------------------------------------- */

@media (min-width: 831px) {
  #enrollment .section-head { margin-bottom: clamp(12px, 1.2vw, 18px); }
  #enrollment .step-head { gap: 12px; padding: clamp(13px, 1.15vw, 18px) 0; }
  #enrollment .step-head strong { font-size: 0.94rem; line-height: 1.4; }
  #enrollment .step-content { padding: 0 0 clamp(18px, 1.6vw, 24px); }
  #enrollment .checks { gap: 10px; margin-bottom: 14px; }
  #enrollment .snippet pre { padding: 12px 14px; line-height: 1.62; }
}
@media (max-width: 1100px) {
  .canvas-grid { grid-template-columns: minmax(0, 1fr); }
  .demo-body, .plans-body, .signin-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
  body[data-page="landing"] { --c1: minmax(222px, calc((100% - var(--gutter)) * 0.68 / 2.38)); }
}
/* One column: the enrollment's three steps become a row of tabs above the open one. */
@media (max-width: 830px) {
  .wb-hero { grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.55fr); column-gap: clamp(20px, 3vw, 58px); }
  .work { grid-template-columns: minmax(0, 1fr); gap: 15px; padding-block: 14px 22px; }
  .section-head { min-height: 0; margin-bottom: 7px; }
  .step-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { display: contents; }
  .step-head { grid-row: 1; justify-content: center; gap: 9px; padding: 10px 0; }
  #step-head-0 { grid-column: 1; }
  #step-head-1 { grid-column: 2; }
  #step-head-2 { grid-column: 3; }
  .step-head .step-number { font-size: 0.69rem; }
  .step-head strong { font-size: 0.81rem; }
  .step.is-open .step-head { box-shadow: inset 0 -2px 0 var(--accent); }
  .step-content { grid-row: 2; grid-column: 1 / -1; padding: 14px 0 6px; border-top: 1px solid var(--line); }
  .step-head > .icon, .full-step { display: none; }
  .short-step { display: inline; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars li:nth-child(3)::before { display: none; }
  .pillars li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .catalog-head, .catalog-item, .home-band, .developer-content { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
  .catalog-head { row-gap: 6px; }
}
@media (max-width: 600px) {
  body[data-page="landing"] { --sheet-pad: 18px; }
  .wb-hero { grid-template-columns: minmax(0, 1fr); row-gap: 4px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars li { padding-block: 12px; }
  .pillars li + li::before { display: none; }
  .pillars li + li { border-top: 1px solid var(--line); }
  /* The tab bar runs edge to edge and fades into the page gutters. */
  .act-bar { --fade: var(--page-gutter); margin-inline: calc(-1 * var(--page-gutter)); padding-inline: var(--page-gutter); }
  .wb-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .spec-list > div { grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 12px; }
  .home-promises .checklist { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 440px) {
  .step-head { gap: 4px; }
  .wb-hero-copy p { line-height: 1.35; }
}
/* The narrowest phones: the title and three numbered step buttons share one row. */
@media (max-width: 365px) {
  .work { gap: 11px; }
  #enrollment { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 26px); column-gap: 3px; align-items: center; }
  #enrollment .section-head { grid-column: 1; grid-row: 1; margin: 0; }
  #enrollment .step-list { display: contents; }
  #enrollment .step-head, #enrollment .step.is-open .step-head { grid-row: 1; padding: 0; box-shadow: none; }
  #enrollment .step.is-open .step-number { text-decoration: underline; text-underline-offset: 4px; }
  #enrollment .step-head strong { display: none; }
  #enrollment #step-head-0 { grid-column: 2; }
  #enrollment #step-head-1 { grid-column: 3; }
  #enrollment #step-head-2 { grid-column: 4; }
  #enrollment .step-content { grid-column: 1 / -1; margin-top: 7px; padding-inline: 0; border-top: 1px solid var(--line); }
}
