/* wpi-signup — see src/styles.ts for the contrast proof */
:root {
  color-scheme: light;
  --bg: #f4f6fa;
  --panel: #ffffff;
  --panel-2: #eef2f8;
  --line: #d8dfe9;
  --field-line: #8a94a3;
  --text: #1f2530;
  --text-dim: #525d6a;
  --accent: #0b5fff;
  --accent-press: #0a4fd6;
  --accent-strong: #0a4fd6;
  --accent-tint: #e7efff;
  --brand-from: #0aa7ff;
  --brand-to: #21c55d;
  --brand-gradient: linear-gradient(90deg, var(--brand-from), var(--brand-to));
  --ok-text: #067647;
  --ok-tint: #e6f2ec;
  --err-text: #b42318;
  --err-tint: rgba(180, 35, 24, 0.08);
  --err-line: rgba(180, 35, 24, 0.5);
  --info-text: #0a4fd6;
  --info-tint: #e7efff;
  --info-line: rgba(11, 95, 255, 0.3);
  --pro-text: #6e4a00;
  --pro-tint: rgba(138, 90, 0, 0.12);
  --pro-line: rgba(138, 90, 0, 0.4);
  --addon-text: #0f5c4a;
  --addon-tint: rgba(16, 122, 98, 0.12);
  --addon-line: rgba(16, 122, 98, 0.4);
  --focus-ring: rgba(11, 95, 255, 0.85);
  --wash-a: rgba(10, 167, 255, 0.14);
  --wash-b: rgba(33, 197, 93, 0.12);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 16px rgba(15, 23, 42, 0.1), 0 2px 4px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 18px 44px rgba(15, 23, 42, 0.16), 0 4px 12px rgba(15, 23, 42, 0.08);
  --radius: 10px;
  --radius-lg: 16px;
  --ease: 140ms ease;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
/* DARK is opt-in: only <html data-theme="dark"> (set by /theme.js from the
   visitor's own toggle) turns it on. The OS preference no longer flips the
   page; light is the default for every visitor (owner, 2026-10-01). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c111b;
  --panel: #141c2b;
  --panel-2: #1c2638;
  --line: #2a3547;
  --field-line: #6b7889;
  --text: #e6edf5;
  --text-dim: #a3b0c2;
  --accent: #6aa1ff;
  --accent-press: #0b5fff;
  --accent-strong: #8fb2ff;
  --accent-tint: rgba(106, 161, 255, 0.16);
  --ok-text: #6ee7b7;
  --ok-tint: rgba(110, 231, 183, 0.12);
  --err-text: #ff8a80;
  --err-tint: rgba(255, 138, 128, 0.1);
  --err-line: rgba(255, 138, 128, 0.5);
  --info-text: #8fb2ff;
  --info-tint: rgba(106, 161, 255, 0.16);
  --info-line: rgba(106, 161, 255, 0.45);
  --pro-text: #e8b04a;
  --pro-tint: rgba(217, 165, 20, 0.12);
  --pro-line: rgba(217, 165, 20, 0.45);
  --addon-text: #5fd3b4;
  --addon-tint: rgba(45, 190, 150, 0.14);
  --addon-line: rgba(45, 190, 150, 0.45);
  --focus-ring: rgba(106, 161, 255, 0.85);
  --wash-a: rgba(10, 167, 255, 0.12);
  --wash-b: rgba(33, 197, 93, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.45), 0 2px 4px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: var(--accent); }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--focus-ring); border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--panel); color: var(--text); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-md); z-index: 10; }
/* Hidden above the page, its shadow still reached down into the top left. */
.skip:not(:focus) { box-shadow: none; }
.skip:focus { top: 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 24px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
/* the honeypot: off-screen for people, present for bots */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------- header */
/* White bar, the logo at left, a thin brand-gradient rule under it. */
.top { background: var(--panel); box-shadow: var(--shadow-sm); position: relative; z-index: 2; }
.top::after { content: ''; display: block; height: 3px; background: var(--brand-gradient); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font-weight: 700; min-height: 44px; }
.brand__logo { height: 32px; width: auto; display: block; }
.brand__sub { color: var(--text-dim); font-weight: 600; font-size: 15px; padding-left: 12px; border-left: 1px solid var(--line); line-height: 1; }
.top__nav a { display: inline-flex; align-items: center; min-height: 40px; color: var(--text-dim); text-decoration: none; padding: 0 14px; border-radius: 999px; font-weight: 600; font-size: 14px; border: 1px solid transparent; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.top__nav a:hover { background: var(--panel-2); color: var(--text); border-color: var(--line); }
/* the right side: the help link, then the light / dark toggle in the corner */
.top__end { display: flex; align-items: center; gap: 8px; }
.top__nav .top__back { color: var(--text); border-color: var(--line); }
/* The colour wordmark on the light bar, the official white one on the dark
   bar. Both are in the markup and the sheet shows one, keyed on the same
   data-theme as the palette (a <picture> keyed on the OS colour scheme used
   to do this, and would now put the white logo on a white bar for a dark
   OS). */
html:not([data-theme="dark"]) .logo--dark, html[data-theme="dark"] .logo--light { display: none; }
/* A phone bar holds the logo, the help link and the 44px toggle on one line
   only without the "Sign up" label (the page's own eyebrow names the form). */
@media (max-width: 420px) { .brand__sub { display: none; } .top__nav a { padding: 0 10px; } }
/* theme toggle (@wpi/shared theme-toggle.tsx) */
.theme-toggle {
  display: none; flex: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin: 0; border-radius: 999px;
  border: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
}
html.theme-js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--panel-2); }
.theme-toggle:focus-visible { border-radius: 999px; }
.theme-toggle svg { display: block; width: 22px; height: 22px; }
.theme-toggle .theme-toggle__sun { display: none; }
html[data-theme="dark"] .theme-toggle .theme-toggle__sun { display: block; }
html[data-theme="dark"] .theme-toggle .theme-toggle__moon { display: none; }

/* ----------------------------------------------------------------- hero */
/* A soft wash of the brand blue / green over the page, centred copy. */
.hero { position: relative; overflow: hidden; padding: 48px 0 40px; text-align: center; background: var(--bg); }
.hero::before, .hero::after { content: ''; position: absolute; border-radius: 50%; filter: blur(48px); pointer-events: none; }
.hero::before { width: 640px; height: 640px; left: -160px; top: -420px; background: var(--wash-a); }
.hero::after { width: 560px; height: 560px; right: -140px; top: -360px; background: var(--wash-b); }
.hero > .wrap { position: relative; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--accent-strong); }
.hero__eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-gradient); }
.hero h1 { font-size: clamp(30px, 4.6vw, 46px); font-weight: 800; letter-spacing: -0.025em; max-width: 30ch; margin: 0 auto; }
.hero__sub { color: var(--text-dim); max-width: 60ch; margin: 14px auto 0; font-size: clamp(16px, 1.6vw, 18px); }
.hero__sub a { font-weight: 600; }
.hero--tight { padding-bottom: 32px; }
.hero__back { margin-bottom: 18px; }
@media (min-width: 720px) { .hero { padding: 56px 0 44px; } .hero--tight { padding-bottom: 36px; } }

/* the 2-step stepper: 1 Business type → 2 Look */
.stepper { display: inline-flex; align-items: center; gap: 0; margin-top: 24px; padding: 6px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.stepper li { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 6px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--text-dim); white-space: nowrap; }
.stepper li + li { position: relative; margin-left: 12px; }
.stepper li + li::before { content: ''; position: absolute; left: -14px; width: 16px; height: 2px; background: var(--line); border-radius: 2px; }
.stepper li[aria-current='step'] { background: var(--accent-tint); color: var(--accent-strong); }
.stepper__n { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); color: var(--text-dim); flex: none; }
.stepper li[aria-current='step'] .stepper__n { background: var(--accent); border-color: var(--accent); color: #fff; }
.stepper li[data-state='done'] { color: var(--ok-text); }
.stepper li[data-state='done'] .stepper__n { background: var(--ok-tint); border-color: transparent; color: var(--ok-text); }
.stepper li[data-state='done'] .stepper__n::before { content: '✓'; }
.stepper li[data-state='done'] .stepper__n span { display: none; }
@media (max-width: 400px) { .stepper li { padding-right: 10px; font-size: 13px; } }

/* the pill "← All categories" */
.crumbs a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px 0 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; transition: border-color var(--ease), color var(--ease); }
.crumbs a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ------------------------------------------------------------ template */
.chosen { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; margin: 20px auto 0; max-width: 720px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.chosen__sw { display: inline-flex; gap: 4px; }
.chosen__sw i { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--line); display: inline-block; }
.sw-p { background: var(--p); }
.sw-a { background: var(--a); }
.chosen__t { flex: 1; min-width: 200px; }
.chosen__eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 11px; font-weight: 700; color: var(--accent-strong); }
.chosen__name { font-weight: 700; font-size: 17px; }
.chosen__fam { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.chosen__tag { color: var(--text-dim); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.chosen a { font-size: 14px; font-weight: 600; }

/* --------------------------------------------------------------- layout */
.lead { padding: 32px 0 8px; }
.lead h1 { font-size: clamp(26px, 4vw, 36px); max-width: 24ch; }
.lead p { color: var(--text-dim); max-width: 62ch; margin-top: 10px; font-size: 17px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; font-weight: 700; color: var(--accent-strong); }
/* the form column: one centred 720px card under its progress bar */
.form-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); max-width: 720px; margin: 0 auto; padding: 16px 0 64px; }
.narrow { max-width: 720px; margin: 0 auto; display: grid; gap: 20px; padding: 8px 0 64px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; }
@media (min-width: 720px) { .card { padding: 32px; } }
.card h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 800; margin-bottom: 8px; }
.card h2 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.card > .sub { color: var(--text-dim); margin-bottom: 24px; max-width: 60ch; }

/* "How this works": three numbered points */
.how { display: grid; gap: 16px; counter-reset: how; }
@media (min-width: 800px) { .how { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.how li { counter-increment: how; padding: 16px 16px 16px 52px; position: relative; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.how li::before { content: counter(how); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.how li b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

/* ------------------------------------------------------------ progress */
/* "Step n of 7", the brand-gradient bar, then every step as a link. */
.rail { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 20px 12px; box-shadow: var(--shadow-sm); }
.rail__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rail__label { font-size: 13px; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; letter-spacing: 0.06em; }
.rail__title { font-size: 14px; font-weight: 600; color: var(--text-dim); }
.rail__bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.rail__fill { display: block; height: 100%; border-radius: 999px; background: var(--brand-gradient); transition: width 240ms ease; }
.rail--1 .rail__fill { width: 14.29%; }
.rail--2 .rail__fill { width: 28.57%; }
.rail--3 .rail__fill { width: 42.86%; }
.rail--4 .rail__fill { width: 57.14%; }
.rail--5 .rail__fill { width: 71.43%; }
.rail--6 .rail__fill { width: 85.71%; }
.rail--7 .rail__fill { width: 100.00%; }
.rail ol { display: flex; gap: 2px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.rail ol::-webkit-scrollbar { display: none; }
.rail li { flex: 1 1 0; min-width: 0; }
.rail li a { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 44px; padding: 6px 2px 4px; border-radius: 10px; color: var(--text-dim); text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; transition: background var(--ease), color var(--ease); }
.rail li a:hover { background: var(--panel-2); color: var(--text); }
.rail li[aria-current='step'] a { color: var(--accent-strong); }
.rail__n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; border: 1px solid var(--line); background: var(--panel); flex: none; }
.rail li[data-state='done'] .rail__n { background: var(--ok-tint); color: var(--ok-text); border-color: transparent; }
.rail li[aria-current='step'] .rail__n { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
@media (max-width: 599px) { .rail__t { display: none; } .rail li a { min-width: 36px; } }

/* --------------------------------------------------------------- fields */
fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
fieldset + fieldset { padding-top: 24px; border-top: 1px solid var(--line); }
/* a legend sits on its fieldset's top border, so the divider reads "Hours ———" */
legend { font-weight: 700; font-size: 18px; padding: 0 12px 0 0; margin-bottom: 6px; letter-spacing: -0.01em; }
.legend-sub { color: var(--text-dim); font-size: 14px; margin-bottom: 14px; max-width: 60ch; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .lbl { font-weight: 600; font-size: 14px; }
.field .hint { color: var(--text-dim); font-size: 13px; }
.field input[type='text'], .field input[type='email'], .field input[type='tel'], .field input[type='url'], .field textarea, .field select {
  width: 100%; min-height: 44px; padding: 10px 14px; font: inherit; color: var(--text); background: var(--panel);
  border: 1px solid var(--field-line); border-radius: 10px; transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.5; }
.field input:hover, .field textarea:hover { border-color: var(--accent); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent); border-radius: 10px; }
.field [aria-invalid='true'] { border-color: var(--err-line); background: var(--err-tint); }
.field .err { color: var(--err-text); font-size: 13px; font-weight: 600; }
.req { color: var(--err-text); }
.grid-2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 2fr 1fr 1fr; } }

/* choices */
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); cursor: pointer; transition: border-color var(--ease), box-shadow var(--ease); }
.choice:hover { border-color: var(--accent); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: var(--accent-tint); }
.choice input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.choice b { display: block; font-size: 15px; }
.choice span { color: var(--text-dim); font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.consent { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.consent p { font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.consent strong { color: var(--text); }

/* row editors */
.rows { display: grid; gap: 10px; }
.row { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
@media (min-width: 640px) { .row { grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); align-items: start; } .row--wide > :last-child { grid-column: 1 / -1; } }
.row .field { margin: 0; }
.row .field label { font-size: 13px; color: var(--text-dim); }
.row .err { grid-column: 1 / -1; }
.rows__more { margin-top: 10px; display: none; }
.js .rows__more { display: inline-flex; }
.js .row[hidden] { display: none; }

/* colors */
.swatch-row { display: flex; align-items: center; gap: 10px; }
.swatch-row input[type='color'] { width: 44px; height: 44px; padding: 2px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--panel); }
.swatch-row input[type='text'] { max-width: 140px; font-family: var(--mono); }

/* uploads */
.uploads { display: grid; gap: 8px; margin-top: 10px; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); font-size: 14px; }
.upload img { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.upload__meta { flex: 1; min-width: 140px; color: var(--text-dim); }
.upload__meta b { color: var(--text); display: block; }
.upload__note { display: block; margin-top: 4px; color: var(--text); }
.file-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.file-form input[type='file'] { font: inherit; font-size: 14px; max-width: 100%; }

/* ------------------------------------------------------------- notices */
.notice { padding: 14px 16px 14px 18px; border-radius: 12px; border: 1px solid; border-left-width: 4px; margin-bottom: 18px; font-size: 14px; }
.notice--ok { color: var(--ok-text); background: var(--ok-tint); border-color: transparent; border-left-color: var(--ok-text); }
.notice--err { color: var(--err-text); background: var(--err-tint); border-color: var(--err-line); border-left-color: var(--err-text); }
.notice--info { color: var(--info-text); background: var(--info-tint); border-color: var(--info-line); border-left-color: var(--accent); }
.notice h2 { font-size: 15px; margin-bottom: 6px; }
.notice ul { list-style: disc; padding-left: 18px; }
.notice a { color: inherit; font-weight: 600; }
/* the "application in progress" banner: one compact row above the grid */
.notice--banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 0 auto 16px; max-width: 720px; }
.notice--banner h2 { margin: 0; }
.notice--banner p { margin: 0; }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 20px; font: inherit;
  border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid var(--line); cursor: pointer;
  background: var(--panel); color: var(--text); transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}
.btn:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 2px rgba(11, 95, 255, 0.3); }
.btn--primary:hover { background: var(--accent-press); border-color: var(--accent-press); color: #fff; }
/* Dark: white text needs the deep brand blue under it. The dark --accent
   (#6aa1ff) is a LINK color on the dark panel; as a button fill it gave white
   text 2.6:1 (axe, 2026-11-07, every primary button in dark). */
:root[data-theme="dark"] .btn--primary { background: #0b5fff; border-color: #0b5fff; }
:root[data-theme="dark"] .btn--primary:hover { background: #0a4fd6; border-color: #0a4fd6; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--link { background: transparent; border-color: transparent; color: var(--accent); padding: 0 8px; box-shadow: none; }
.btn--link:hover { color: var(--accent-strong); border-color: transparent; background: var(--accent-tint); }
.btn--muted { color: var(--text-dim); background: transparent; border-style: dashed; cursor: default; }
.btn--muted:hover { border-color: var(--line); color: var(--text-dim); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; }
.spacer { flex: 1; }
/* the step's action row: sticks to the bottom of the viewport while its card is on screen */
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; bottom: 0; z-index: 1; margin: 8px -20px -20px; padding: 14px 20px; background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@media (min-width: 720px) { .actions { margin: 8px -32px -32px; padding: 16px 32px; } }
.actions .hint { color: var(--text-dim); font-size: 14px; }

/* --------------------------------------------------------------- later */
.later { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: center; padding: 4px 8px; font-size: 14px; color: var(--text-dim); text-align: center; }
.later .btn { min-height: 40px; }

/* ------------------------------------------------------------- review */
.review { display: grid; gap: 14px; }
.review section { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.review h2 { font-size: 16px; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.review h2 a { font-size: 13px; font-weight: 600; }
.review dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.review dt { color: var(--text-dim); }
.review dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .review dl { grid-template-columns: 1fr; } .review dt { margin-top: 6px; } }
.tier { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid transparent; }
.tier--standard { color: var(--info-text); background: var(--info-tint); border-color: var(--info-line); }
.tier--pro { color: var(--pro-text); background: var(--pro-tint); border-color: var(--pro-line); }
.tier--addon { color: var(--addon-text); background: var(--addon-tint); border-color: var(--addon-line); text-transform: none; letter-spacing: 0; }

/* ---- "Other" business type: its text box sits indented under the radios */
.subfield { margin: -4px 0 0 32px; }
@media (max-width: 400px) { .subfield { margin-left: 12px; } }

/* ---- feature picker (step 6): the gallery detail page's card grammar —
   tier groups Standard → Pro → Add-on, an icon tile, the chip top-right —
   with the whole card a checkbox label (44px+ target, no script needed). */
.tiergroup--standard, .ico-tile--standard, .feature[data-tier='standard'] { --t-text: var(--info-text); --t-tint: var(--info-tint); --t-line: var(--info-line); }
.tiergroup--pro, .ico-tile--pro, .feature[data-tier='pro'] { --t-text: var(--pro-text); --t-tint: var(--pro-tint); --t-line: var(--pro-line); }
.tiergroup--addon, .ico-tile--addon, .feature[data-tier='addon'] { --t-text: var(--addon-text); --t-tint: var(--addon-tint); --t-line: var(--addon-line); }
.tiergroup { margin-top: 18px; }
.tiergroup__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 12px; padding-left: 12px; border-left: 3px solid var(--t-line); }
.tiergroup__head h2 { font-size: 16px; margin: 0; }
.count { color: var(--text-dim); font-size: 13px; }
.pick-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px; min-width: 0; cursor: pointer;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: inset 0 3px 0 var(--t-line); transition: border-color var(--ease), box-shadow var(--ease);
}
.feature:hover { border-color: var(--accent); }
.feature:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 3px 0 var(--t-line), 0 0 0 1px var(--accent); background: var(--accent-tint); }
.feature input { margin: 3px 0 0; width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.ico-tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--t-text); background: var(--t-tint); border: 1px solid var(--t-line);
}
.feature__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.feature__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 6px 10px; }
.feature__label { font-weight: 700; font-size: 15px; line-height: 1.3; }
.feature__desc { font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.feature__note { font-size: 13px; line-height: 1.45; color: var(--text-dim); padding: 6px 8px; background: var(--panel-2); border-radius: 8px; }
/* The add-on card is informational (no control): no pointer, no hover lift. */
.feature--info { cursor: default; }
.feature--info:hover { border-color: var(--line); }
.plan-summary { margin: 16px 0 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; border: 1px solid var(--info-line); background: var(--info-tint); color: var(--info-text); }
.plan-summary--pro { border-color: var(--pro-line); background: var(--pro-tint); color: var(--pro-text); }
.turnstile { margin: 16px 0; min-height: 66px; }

/* --------------------------------------------------------------- search */
/* "Find a template" on Step A and Step B (owner: reps and merchants should
   be able to search). A plain GET form: works with no JS, and /search.js
   (the gallery's exact script) filters Step B's grid live once it loads. */
.search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 4px 0 20px; max-width: 560px; }
.search__field { flex: 1 1 260px; min-width: 200px; }
.search__label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 6px; }
.search input[type='search'] {
  width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); font-size: 15px; font-family: inherit;
}
.search input[type='search']:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }
.results { padding-bottom: 12px; }
.results h2 { font-size: 20px; margin-bottom: 4px; }
.results__empty { color: var(--text-dim); font-size: 15px; padding: 4px 0 16px; }

/* ------------------------------------------------------------- chooser */
/* Step A: one tile per business type. One column on a phone (the whole tile
   is the target), 2-up from 520px, 3-up from 800px, 4-up from 1100px. */
.verts { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 8px 0 40px; }
@media (min-width: 520px) { .verts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 800px) { .verts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1100px) { .verts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vert {
  --fp: var(--accent);
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 44px; height: 100%; padding: 20px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  color: var(--text); text-decoration: none; position: relative;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}
.vert:hover, .vert:focus-visible { border-color: var(--accent); box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-tint); color: var(--text); transform: translateY(-2px); }
.vert:focus-visible { box-shadow: var(--shadow-md), 0 0 0 3px var(--focus-ring); }
/* the tinted circle: the family's default primary at low alpha, the icon at full */
.vert__icon {
  flex: none; width: 64px; height: 64px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 8px; background: color-mix(in srgb, var(--fp) 12%, var(--panel)); color: var(--fp);
}
html[data-theme="dark"] .vert__icon { background: color-mix(in srgb, var(--fp) 26%, var(--panel)); color: color-mix(in srgb, var(--fp) 55%, #fff); }
.vert__icon svg { display: block; width: 40px; height: 40px; }
.vert__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.vert__name { font-size: 18px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
.vert__blurb { color: var(--text-dim); font-size: 14px; line-height: 1.45; margin-bottom: 10px; }
.vert__count { display: inline-flex; align-items: center; align-self: flex-start; margin-top: auto; padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-strong); font-size: 12px; font-weight: 700; }

/* Step B: the gallery's card, one column on a phone, 2-up from 640px, 3-up from 1000px. */
.tgrid { display: grid; gap: 16px; grid-template-columns: 1fr; padding: 8px 0 40px; }
@media (min-width: 640px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.tcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.tcard:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent); }
.tcard__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
/* Only on a flat, cross-vertical results list (Step B is already scoped to
   one vertical by its own heading). */
.tcard__fam { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); margin: -4px 0 -6px; }
.tcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.tcard__title { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.tcard__tag { font-size: 14px; line-height: 1.5; color: var(--text-dim); }
.badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--info-text); background: var(--info-tint); border: 1px solid var(--info-line);
}
/* secondary pair (demo / editable) above the one primary */
.tcard__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.tcard__links .btn { flex: 1 1 auto; min-height: 40px; font-size: 14px; padding: 0 12px; }
.tcard .btn--primary { min-height: 46px; }

/* ------------------------------------------------------------- preview */
/* @wpi/shared template-preview: the ONE template preview (gallery + signup) */
.frame {
  font-size: 6px; position: relative; aspect-ratio: 16 / 10; width: 100%; overflow: hidden;
  background: var(--frame-paper); border-bottom: 1px solid var(--line); display: flex; flex-direction: column;
  --p: #475569; --a: #475569; --ov: 80%;
  --frame-paper: #ffffff; --frame-ink: #1f2530; --frame-muted: #cbd3de; --frame-soft: #eef1f6;
}
.frame--lg { font-size: 10px; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
@media (max-width: 480px) { .frame--lg { font-size: 6.5px; } }
.frame i, .frame b, .frame em, .frame span { display: block; }
.frame__bar { height: 2.2em; background: var(--frame-soft); display: flex; align-items: center; gap: 0.6em; padding: 0 1.2em; flex: none; }
.frame__bar i { width: 0.9em; height: 0.9em; border-radius: 50%; background: var(--frame-muted); }
.frame__bar span { flex: 1; height: 1.1em; border-radius: 1em; background: var(--frame-paper); margin-left: 1em; }
.frame__nav { height: 3.2em; display: flex; align-items: center; gap: 1em; padding: 0 2em; flex: none; }
.frame__logo { width: 5em; height: 1.4em; border-radius: 0.3em; background: var(--p); }
.frame__links { display: flex; gap: 1.2em; margin-left: auto; }
.frame__links i { width: 3em; height: 0.8em; border-radius: 1em; background: var(--frame-muted); }
.frame__cta { width: 4.5em; height: 1.8em; border-radius: 1em; background: var(--a); }
.frame__hero {
  flex: 1; display: flex; align-items: center; gap: 2em; padding: 2.4em 3em; position: relative; overflow: hidden;
  background: var(--p);
  background-image: linear-gradient(180deg, rgb(0 0 0 / 0%) 35%, rgb(0 0 0 / var(--ov))),
    linear-gradient(160deg, color-mix(in srgb, var(--p) 78%, #fff), color-mix(in srgb, var(--p) 70%, #000));
}
.frame__copy { flex: 1; display: flex; flex-direction: column; gap: 0.9em; position: relative; }
.frame__h { height: 2em; width: 80%; border-radius: 0.4em; background: rgba(255, 255, 255, 0.92); }
.frame__h--short { width: 55%; }
.frame__sub { height: 1em; width: 65%; border-radius: 1em; background: rgba(255, 255, 255, 0.6); }
.frame__btn { margin-top: 0.6em; width: 8em; height: 2.4em; border-radius: 1.2em; background: var(--a); box-shadow: 0 0.4em 1.2em rgb(0 0 0 / 25%); }
.frame__aside { width: 32%; min-height: 60%; border-radius: 0.8em; background: rgba(255, 255, 255, 0.94); padding: 1.2em; display: flex; flex-direction: column; gap: 0.8em; position: relative; }
.frame__aside i { height: 1.2em; border-radius: 0.3em; background: var(--frame-soft); }
.frame__aside em { height: 2em; border-radius: 0.4em; background: var(--p); margin-top: auto; }
.frame__strip { height: 2.6em; display: flex; gap: 1em; align-items: center; padding: 0 3em; background: var(--frame-soft); flex: none; }
.frame__strip i { flex: 1; height: 1em; border-radius: 1em; background: var(--frame-muted); }
.frame__grid { display: flex; gap: 1.2em; padding: 1.6em 3em; flex: none; }
.frame__grid i { flex: 1; height: 5em; border-radius: 0.6em; background: var(--frame-soft); border-top: 0.5em solid color-mix(in srgb, var(--p) 40%, var(--frame-soft)); }

/* hero modes — the registry's five: one hero element, five emphases */
.frame[data-hero='appetite'] .frame__hero {
  background-image: linear-gradient(180deg, rgb(0 0 0 / 10%), rgb(0 0 0 / var(--ov))),
    radial-gradient(circle at 25% 30%, color-mix(in srgb, var(--a) 70%, #fff), transparent 45%),
    radial-gradient(circle at 75% 70%, color-mix(in srgb, var(--p) 60%, #fff), transparent 50%),
    linear-gradient(160deg, var(--a), var(--p));
  justify-content: center; text-align: center;
}
.frame[data-hero='appetite'] .frame__copy { align-items: center; max-width: 70%; }
.frame[data-hero='appetite'] .frame__aside { display: none; }
.frame[data-hero='booking'] .frame__hero {
  background-image: linear-gradient(180deg, rgb(0 0 0 / 0%) 50%, rgb(0 0 0 / var(--ov))),
    linear-gradient(135deg, var(--p), color-mix(in srgb, var(--p) 60%, var(--a)));
  justify-content: center;
}
.frame[data-hero='booking'] .frame__copy { align-items: center; max-width: 70%; }
.frame[data-hero='booking'] .frame__btn { width: 11em; height: 2.8em; }
.frame[data-hero='booking'] .frame__aside { display: none; }
.frame[data-hero='showcase'] .frame__hero {
  background: color-mix(in srgb, var(--p) 10%, var(--frame-paper));
  background-image: linear-gradient(180deg, rgb(0 0 0 / 0%) 80%, rgb(0 0 0 / calc(var(--ov) / 6)));
}
.frame[data-hero='showcase'] .frame__h { background: var(--p); }
.frame[data-hero='showcase'] .frame__sub { background: color-mix(in srgb, var(--p) 35%, var(--frame-paper)); }
.frame[data-hero='showcase'] .frame__aside { width: 40%; background: transparent; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; min-height: 0; }
.frame[data-hero='showcase'] .frame__aside i { height: 4.5em; border-radius: 0.6em; background: var(--frame-paper); border: 1px solid var(--frame-muted); border-bottom: 0.7em solid var(--a); }
.frame[data-hero='showcase'] .frame__aside em { display: none; }
.frame[data-hero='urgency'] .frame__hero {
  background-image: linear-gradient(180deg, rgb(0 0 0 / 0%) 40%, rgb(0 0 0 / var(--ov))),
    repeating-linear-gradient(-45deg, rgb(255 255 255 / 4%) 0 1.5em, transparent 1.5em 3em),
    linear-gradient(160deg, color-mix(in srgb, var(--p) 85%, #fff), color-mix(in srgb, var(--p) 65%, #000));
}
.frame[data-hero='urgency'] .frame__aside { background: transparent; padding: 0; align-items: flex-end; justify-content: center; min-height: 0; }
.frame[data-hero='urgency'] .frame__aside i { display: none; }
.frame[data-hero='urgency'] .frame__aside em { width: 100%; height: 4em; border-radius: 2em; background: var(--a); margin: 0; box-shadow: 0 0.6em 1.4em rgb(0 0 0 / 30%); }
.frame[data-hero='urgency'] .frame__btn { width: 10em; }

/* hero layouts and nav styles (the look levers, recipes.ts): drawn on top of
   the hero mode, so a look that sets one reads differently on its card even
   without a demo. A frame without the attributes is unchanged. */
.frame[data-layout='centered'] .frame__hero, .frame[data-layout='video'] .frame__hero { justify-content: center; text-align: center; }
.frame[data-layout='centered'] .frame__copy, .frame[data-layout='video'] .frame__copy { align-items: center; max-width: 70%; flex: none; }
.frame[data-layout='centered'] .frame__aside, .frame[data-layout='video'] .frame__aside { display: none; }
.frame[data-layout='video'] .frame__hero {
  background-image: linear-gradient(180deg, rgb(0 0 0 / 35%), rgb(0 0 0 / var(--ov))),
    linear-gradient(120deg, color-mix(in srgb, var(--p) 60%, #000), color-mix(in srgb, var(--a) 45%, var(--p)));
}
.frame[data-layout='video'] .frame__hero::after { content: ''; position: absolute; right: 1.6em; bottom: 1.6em; width: 2.4em; height: 2.4em; border-radius: 50%; background: rgb(0 0 0 / 45%); box-shadow: inset 0 0 0 0.25em rgb(255 255 255 / 70%); }
.frame[data-layout='stacked'] .frame__hero { flex-direction: column; align-items: stretch; gap: 1.2em; padding-bottom: 0; background-image: none; }
.frame[data-layout='stacked'] .frame__h { height: 2.6em; }
.frame[data-layout='stacked'] .frame__aside { width: auto; min-height: 0; flex: 1; border-radius: 0; margin: 0 -3em; padding: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--a) 55%, #fff), color-mix(in srgb, var(--p) 55%, #000)); }
.frame[data-layout='stacked'] .frame__aside i, .frame[data-layout='stacked'] .frame__aside em { display: none; }
.frame[data-layout='minimal'] .frame__hero { background: var(--frame-paper); background-image: none; }
.frame[data-layout='minimal'] .frame__h { background: var(--frame-ink); }
.frame[data-layout='minimal'] .frame__sub { background: var(--frame-muted); }
.frame[data-layout='minimal'] .frame__aside { width: 26%; min-height: 0; align-self: stretch; padding: 0; border-radius: 0.4em; background: linear-gradient(160deg, color-mix(in srgb, var(--p) 45%, #fff), color-mix(in srgb, var(--a) 40%, var(--p))); }
.frame[data-layout='minimal'] .frame__aside i, .frame[data-layout='minimal'] .frame__aside em { display: none; }
.frame[data-nav='plain'] .frame__links i { border-radius: 0; height: 0.5em; }
.frame[data-nav='plain'] .frame__cta { background: transparent; border-radius: 0; height: 0.6em; border-bottom: 0.3em solid var(--a); }
.frame[data-nav='centered'] .frame__nav { flex-wrap: wrap; justify-content: center; height: auto; padding: 0.6em 2em; gap: 0.5em; position: relative; }
.frame[data-nav='centered'] .frame__links { margin: 0; width: 100%; justify-content: center; }
.frame[data-nav='centered'] .frame__cta { position: absolute; right: 2em; top: 0.6em; }
.frame[data-nav='overlay'] .frame__nav { position: absolute; top: 2.2em; left: 0; right: 0; z-index: 1; }
.frame[data-nav='overlay'] .frame__logo { background: #ffffff; }
.frame[data-nav='overlay'] .frame__links i { background: rgb(255 255 255 / 70%); }
.frame[data-nav='ctabar'] .frame__nav { border-top: 0.8em solid var(--a); }

/* hero align / hero media (Phase C, docs/DISTINCT_LOOKS.md, recipes.ts
   Skin.heroAlign / Skin.heroMedia): drawn on top of the layout, so a look
   that sets one still reads differently without a demo. A frame without the
   attributes is unchanged. Only the non-default values that actually need a
   rule are here (see PREVIEW_HERO_ALIGNS / PREVIEW_HERO_MEDIA). */
.frame[data-align='right'] .frame__hero { flex-direction: row-reverse; }
.frame[data-align='bottom'] .frame__hero { align-items: flex-end; }
.frame[data-align='bottom'] .frame__copy { align-items: flex-start; text-align: left; max-width: 70%; }
.frame[data-media='tint'] .frame__hero { background-blend-mode: multiply; }
.frame[data-media='inset'] .frame__hero { padding: 1.2em; }
.frame[data-media='inset'] .frame__aside { border-radius: 0.6em; }
.frame[data-media='letterbox'] .frame__hero { background: var(--frame-paper); background-image: none; flex-direction: column; align-items: stretch; }
.frame[data-media='letterbox'] .frame__h { background: var(--frame-ink); }
.frame[data-media='letterbox'] .frame__sub { background: var(--frame-muted); }
.frame[data-media='letterbox'] .frame__aside { width: auto; min-height: 0; flex: 1; border-radius: 0; margin: 0 -3em; padding: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--a) 55%, #fff), color-mix(in srgb, var(--p) 55%, #000)); }
.frame[data-media='letterbox'] .frame__aside i, .frame[data-media='letterbox'] .frame__aside em { display: none; }
.frame[data-media='bleed'] .frame__aside { width: 44%; min-height: 0; align-self: stretch; border-radius: 0; padding: 0; background: linear-gradient(160deg, color-mix(in srgb, var(--p) 45%, #fff), color-mix(in srgb, var(--a) 40%, var(--p))); }
.frame[data-media='bleed'] .frame__aside i, .frame[data-media='bleed'] .frame__aside em { display: none; }
.frame[data-media='none'] .frame__aside { display: none; }
/* The video chip: real text in fixed px, so it reads on a 6px card frame. */
.frame__chip {
  position: absolute; left: 10px; bottom: 10px; z-index: 2; display: block;
  font: 700 11px/1 system-ui, sans-serif; letter-spacing: 0.02em;
  padding: 5px 9px; border-radius: 999px; background: rgb(17 24 39 / 88%); color: #ffffff;
}

/* ------------------------------------------------- the demo's screenshot */
/* A template WITH a demo shows the real home page (demo-shots.ts) over the
   wireframe. The wireframe stays underneath on purpose: a shot that is not
   uploaded yet (a 404) must leave the card looking designed, and the page has
   no script to swap anything in (no inline handlers under this CSP). So the
   img is transparent where it has no pixels: no background, its alt text
   painted in transparent ink, and a ::before block that pushes Chromium's
   broken image icon out of the clipped box. A ::before only ever renders on
   an image that FAILED to load, so a loaded shot is untouched by it. */
.frame__mock { position: absolute; inset: 0; display: flex; flex-direction: column; }
.frame__shot { position: absolute; inset: 2.2em 0 0; display: block; overflow: hidden; color: inherit; text-decoration: none; border-radius: 0; }
.frame__img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  color: transparent; overflow: hidden; background: none;
}
.frame__img::before { content: ''; display: block; height: 100%; }
.frame__shot::after { content: ''; position: absolute; inset: 0; background: rgb(0 0 0 / 0%); transition: background-color 0.15s ease; }
.frame__shot .frame__open {
  position: absolute; z-index: 1; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-size: 13px; font-weight: 700; line-height: 1; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px; background: rgb(17 24 39 / 90%); color: #ffffff;
  opacity: 0; transition: opacity 0.15s ease;
}
.frame__shot:hover::after, .frame__shot:focus-visible::after { background: rgb(0 0 0 / 22%); }
.frame__shot:hover .frame__open, .frame__shot:focus-visible .frame__open { opacity: 1; }
.frame__shot:focus-visible { outline: none; box-shadow: none; }
.frame__shot:focus-visible::after { box-shadow: inset 0 0 0 3px var(--focus-ring, #2c63f0); }
@media (prefers-reduced-motion: reduce) {
  .frame__shot::after, .frame__shot .frame__open { transition: none; }
}
/* The card CLIP (a demo with a video hero, card-clip.ts): over the screenshot,
   invisible until card.js has it actually playing, so a missing clip or no
   script leaves the picture as it was. Never shown under reduced motion. */
.frame__clip { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: none; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.frame__clip.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .frame__clip { display: none; } }

/* ---------------------------------------------------------------- done */
.done { max-width: 640px; margin: 40px auto 80px; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 40px 24px 36px; position: relative; overflow: hidden; }
.done::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--brand-gradient); }
@media (min-width: 720px) { .done { padding: 48px 48px 40px; } }
.done__badge { width: 80px; height: 80px; margin: 0 auto 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ok-tint); color: var(--ok-text); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ok-tint) 55%, transparent); }
.done__badge svg { width: 44px; height: 44px; }
.done .eyebrow { margin-bottom: 8px; color: var(--accent-strong); }
.done h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em; }
.done p { color: var(--text-dim); margin-bottom: 14px; }
.done__addr { padding: 12px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--text-dim); font-size: 15px; }
.done__addr strong { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.done .btn { margin-top: 4px; }
.done .ref { font-family: var(--mono); font-size: 13px; margin-top: 18px; margin-bottom: 0; }
.done .demo { margin: 20px 0 8px; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); text-align: left; }
.done .demo h2 { font-size: 18px; margin-bottom: 6px; }
.copy { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.copy input { flex: 1 1 16rem; min-width: 0; font-family: var(--mono); font-size: 14px; }
.rep-line { margin-top: 8px; }

/* ---------------------------------------------------------------- footer */
.foot { border-top: 1px solid var(--line); background: var(--panel); padding: 24px 0 40px; color: var(--text-dim); font-size: 13px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.foot__logo { height: 20px; width: auto; display: block; opacity: 0.9; }
.foot__lines { display: flex; flex-wrap: wrap; gap: 4px 20px; flex: 1; }
.oops { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 40px 0; }
.oops h1 { font-size: 28px; margin-bottom: 8px; }
.oops p { color: var(--text-dim); margin-bottom: 18px; }

/* -------------------------------------------------------------- preview */
/* The live preview (src/preview-pane.tsx). Under 1100px: hidden until the
   "Preview the site" link targets it, then full width above the form. */
.split { display: flex; flex-direction: column; }
.pv-toggle { display: flex; align-items: center; justify-content: center; min-height: 44px; max-width: 720px; margin: 16px auto 0; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--accent-strong); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); }
.pv-toggle:hover { border-color: var(--accent); }
.pv { display: none; flex-direction: column; gap: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.pv:target { display: flex; order: -1; height: 85vh; margin-top: 16px; }
.pv__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pv__title { font-size: 16px; font-weight: 700; margin-right: auto; }
.pv__devices { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
html:not(.js) .pv__devices { display: none; }
.pv__dev { min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--text-dim); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.pv__dev[aria-pressed='true'] { background: var(--accent); color: #fff; }
/* Dark: white on the dark theme's light blue was 2.6:1 (axe, 2026-11-07). */
:root[data-theme="dark"] .pv__dev[aria-pressed='true'] { background: #0b5fff; }
.pv__open, .pv__close { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 600; }
.pv__stage { position: relative; flex: 1; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); }
.pv__frame { display: block; width: 100%; height: 100%; border: 0; background: #fff; }
.pv__frame--fit { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.pv__hint { color: var(--text-dim); font-size: 13px; }
@media (min-width: 1100px) {
  .wrap--split { max-width: 1760px; }
  .wrap--split > .chosen { margin-left: 0; }
  .split { display: grid; grid-template-columns: minmax(0, 720px) minmax(0, 1fr); gap: 24px; align-items: start; }
  .split > .form-layout { max-width: none; margin: 0; }
  .pv, .pv:target { display: flex; order: 0; position: sticky; top: 16px; height: calc(100vh - 32px); margin-top: 16px; }
  .pv-toggle, .pv__close { display: none; }
}

/* ------------------------------------------------------------------ chat */
/* The chat builder (src/chat-view.tsx), laid out like a chat app
   (2026-10-05): a sidebar on the left, the conversation filling the rest,
   the live preview beside it from 1280px once a site is saved. */
.appbody { display: block; }
.app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
@media (min-width: 960px) { .app { grid-template-columns: 272px minmax(0, 1fr); } }

/* The sidebar. Under 960px it is a full screen menu shown by its own
   anchor (#side, :target), so it opens with no script. */
.side { display: none; flex-direction: column; gap: 14px; min-width: 0; padding: 14px; overflow-x: hidden; background: var(--panel); border-right: 1px solid var(--line); }
.side:target { display: flex; position: fixed; inset: 0; z-index: 20; overflow-y: auto; }
@media (min-width: 960px) {
  .side, .side:target { display: flex; position: sticky; inset: auto; top: 0; height: 100vh; overflow-y: auto; z-index: auto; }
  .side .side__close, .chatw .app__menu { display: none; }
}
.side__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* The fold: wide screens only (under 960px the sidebar is the Menu). */
.side__fold, .app__unfold { display: none; margin: 0; }
.side__foldbtn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.side__foldbtn:hover { background: var(--panel-2); }
@media (min-width: 960px) {
  .side__fold { display: block; }
  .app--fold { grid-template-columns: minmax(0, 1fr); }
  .app--fold .side, .app--fold .side:target { display: none; }
  .app--fold .app__unfold { display: block; }
  .app--fold .chatw .pv:target { left: 16px; }
}
.side__brand .brand__logo { height: 28px; width: auto; }
.side__close { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 14px; font-weight: 600; }
.side__new { display: flex; width: 100%; justify-content: center; }
.side__nav { display: grid; gap: 2px; }
.side__nav a { display: flex; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600; }
.side__lists { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 18px; align-content: start; }
.side__h { margin: 0 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-dim); }
/* One column as wide as the sidebar: without it the implicit column takes
   the longest row's width and a stage chip runs off the edge, clipped. */
.side__list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 0; padding: 0; }
.side__nav a:hover, .site__row:hover { background: var(--panel-2); }
.site__row[aria-current] { background: var(--accent-tint); }
.side__empty { padding: 0 10px; font-size: 13px; color: var(--text-dim); }
.site__row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.site__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.chip { flex: none; display: inline-flex; align-items: center; padding: 2px 8px; border: 1px solid transparent; border-radius: 999px; font-size: 12px; font-weight: 700; }
.chip--ok { color: var(--ok-text); background: var(--ok-tint); }
.chip--info { color: var(--info-text); background: var(--info-tint); border-color: var(--info-line); }
.chip--accent { color: var(--accent-strong); background: var(--accent-tint); }
.chip--pro { color: var(--pro-text); background: var(--pro-tint); border-color: var(--pro-line); }
.chip--dim { color: var(--text-dim); background: var(--panel-2); border-color: var(--line); }
.side__foot { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.side__who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--text-dim); }

/* The conversation. */
.chatw { display: flex; flex-direction: column; min-width: 0; min-height: 100vh; }
.chatw [hidden] { display: none !important; }
.app__bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.app__menu { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.app__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.side__nav a[aria-current] { background: var(--accent-tint); }
.lsites__body { width: 100%; max-width: 760px; margin: 0 auto; padding: 24px 16px 48px; }
.lsites__h { margin: 0 0 6px; font-size: 24px; }
.lsites__sub { margin: 0 0 18px; color: var(--text-dim); }
.lsites__empty { padding: 0; font-size: 15px; }
.lsites__list { list-style: none; display: grid; gap: 8px; margin: 0 0 18px; padding: 0; }
.lsite { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.lsite__name { flex: 1; min-width: 12em; font-weight: 700; overflow-wrap: anywhere; }
.lsite__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.lsite__form { margin: 0; }
.lsite a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
/* Feedback, bottom left above the signed in address. */
.side__feedback { align-self: flex-start; }
.side__count { margin-left: auto; }
.qs__list { list-style: none; display: grid; gap: 14px; margin: 0 0 24px; padding: 0; }
.qs__item { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.qs__meta { margin: 0; font-size: 13px; color: var(--text-dim); overflow-wrap: anywhere; }
.qs__q { margin: 0; font-weight: 700; white-space: pre-wrap; overflow-wrap: anywhere; }
.qs__a { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.qs__a--dim { color: var(--text-dim); }
.qs__h { margin: 8px 0 12px; font-size: 18px; }
.qs__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.qs__item .fb textarea { min-height: 110px; }
/* The handbook box is a thumb target on its own page: 44px (Feedback's
   radio rows keep their 40). */
.qs__item .fb__opt { min-height: 44px; }
.side__feedback[aria-current] { background: var(--accent-tint); }
.fb { display: grid; gap: 14px; }
.fb fieldset { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.fb legend, .fb__label { margin-bottom: 4px; font-weight: 700; }
.fb__opt { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.fb textarea { width: 100%; min-height: 160px; padding: 10px 12px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; resize: vertical; }
.fb__err { margin: 0; color: var(--err-text, var(--text)); font-weight: 600; }
.fb__hint { margin: 0; color: var(--text-dim); font-size: 13px; }
.app__site { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.chatw .app__pv { display: inline-flex; min-height: 40px; max-width: none; margin: 0; padding: 0 14px; }
.chatw .split { flex: 1; display: flex; flex-direction: column; padding: 0 16px; }
.chat { flex: 1; display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 780px; margin: 0 auto; padding-top: 20px; }
.chatw--empty .chat { justify-content: center; padding-bottom: 10vh; }
.hello { text-align: center; }
.hello__h { margin-bottom: 8px; font-size: clamp(26px, 4vw, 34px); font-weight: 800; letter-spacing: -0.01em; }
.hello__sub { max-width: 560px; margin: 0 auto; color: var(--text-dim); }
.tips { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
@media (min-width: 720px) { .tips { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tips li { padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text-dim); font-size: 14px; }
.tips b { display: block; color: var(--text); }
.composer { position: sticky; bottom: 0; margin-top: auto; padding: 12px 0 16px; background: linear-gradient(to bottom, transparent, var(--bg) 24px); }
.chatw--empty .composer { position: static; padding: 0; background: none; }
.chat__form { display: grid; gap: 6px; }
.composer__box { display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 14px; border: 1px solid var(--field-line); border-radius: 18px; background: var(--panel); box-shadow: var(--shadow-md); }
.composer__box:hover { border-color: var(--accent); }
.composer__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint), 0 0 0 1px var(--accent); }
/* The box grows with its text (/chat.js sets the height; field-sizing does
   it with no script where the browser supports it) up to 40% of the screen,
   then scrolls inside. */
.composer__box textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 40vh; overflow-y: auto; field-sizing: content; padding: 8px 0; border: 0; background: transparent; color: var(--text); font: inherit; line-height: 1.5; resize: none; }
.composer__box textarea:focus-visible { outline: none; box-shadow: none; }
.composer__send { min-height: 44px; border-radius: 12px; }
.composer__hint { color: var(--text-dim); font-size: 12px; text-align: center; }

/* Files the rep attaches: the picker above the message box, the waiting
   pictures, and the same pictures in the rep's bubble. */
.attach { display: grid; gap: 6px; margin-bottom: 8px; }
.attach__form { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.attach__label { font-size: 13px; font-weight: 700; }
.attach__input { flex: 1 1 14em; min-width: 0; min-height: 40px; padding: 4px; border: 1px dashed var(--field-line); border-radius: 10px; background: var(--panel); color: var(--text-dim); font: inherit; font-size: 13px; }
.attach__input::file-selector-button { min-height: 32px; margin-right: 10px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.attach__hint { flex: 1 0 100%; color: var(--text-dim); font-size: 12px; }
/* With script (/app.js marks html.js, /chat.js uploads on choosing) the
   whole picker row goes away and the PAPERCLIP inside the message box is
   the way in (AttachClip; owner: "a logo on the chat bar. Not that weird
   button", the dashed pill that stood here). The picker stays in the page,
   visually hidden but focusable, so Tab still reaches it; its own label is
   removed so a screen reader hears one name, and the note stays as its
   description. With no script the native picker and the Upload button
   stay as they are. */
html.js .attach__form { position: relative; display: block; height: 0; margin: 0; }
html.js .attach__input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
html.js .attach__label { display: none; }
html.js .attach__hint { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.composer__attach { display: none; }
html.js .composer__attach { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 50%; color: var(--text-dim); cursor: pointer; }
html.js .composer__attach:hover { background: var(--panel-2); color: var(--text); }
html.js .composer__box { padding-left: 6px; }
html.js body:has(.attach__input:focus-visible) .composer__attach { outline: 2px solid var(--accent); outline-offset: 2px; color: var(--text); }
html.js body:has(.attach__input:disabled) .composer__attach { opacity: 0.45; cursor: not-allowed; }
.attach__msg { margin: 0; min-height: 0; font-size: 13px; color: var(--text); }
.attach__msg:empty { display: none; }
.attach__msg--err { color: var(--err-text, var(--text)); font-weight: 600; }
.files { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; padding: 0; }
.files--waiting { margin: 0; }
.files__item { display: flex; align-items: center; gap: 8px; max-width: 100%; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.files__img { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--panel-2); }
.files__name { min-width: 0; max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.msg--rep .files__item { background: var(--panel-2); }
.msg__attach { margin: 4px 0 0; font-size: 13px; color: var(--text-dim); }

/* The live preview. Under 1280px (the sidebar takes 272px of it) it opens
   over the chat from the "Preview" link; from 1280px it sits beside it. */
.chatw .pv { display: none; }
.chatw .pv:target { display: flex; position: fixed; inset: 64px 16px 16px; z-index: 15; height: auto; margin: 0; box-shadow: var(--shadow-lg); }
.chatw .pv__close { display: inline-flex; }
@media (min-width: 960px) { .chatw .pv:target { left: 288px; } }
@media (min-width: 1280px) {
  .chatw--split .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
  .chatw--split .chat { max-width: none; min-height: calc(100vh - 56px); }
  .chatw--split .pv, .chatw--split .pv:target { display: flex; position: sticky; inset: auto; top: 72px; height: calc(100vh - 88px); margin: 16px 0 0; box-shadow: var(--shadow-sm); }
  .chatw .app__pv, .chatw .pv__close { display: none; }
}
.chat__log { list-style: none; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.chat__log > li { scroll-margin-top: 72px; }
.chat__log:empty { display: none; }
.msg { max-width: 92%; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-2); color: var(--text); overflow-wrap: anywhere; }
.msg__who { font-size: 12px; font-weight: 700; color: var(--text-dim); margin-bottom: 2px; }
.msg__text { white-space: pre-wrap; }
.msg--rep { align-self: flex-end; background: var(--accent-tint); border-color: var(--info-line); }
.msg--bot { align-self: flex-start; }
.msg--err { color: var(--err-text); background: var(--err-tint); border-color: var(--err-line); }
.msg--card { align-self: stretch; max-width: none; background: var(--panel); border-left: 4px solid var(--accent); }
.msg--card h2 { font-size: 17px; margin-bottom: 4px; }
/* KLICK C: the plan badge, the next steps line and the quick answers. */
.plan-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: #fbbf24; color: #111827; font-weight: 700; font-size: 13px; white-space: nowrap; }
.msg__next { margin: 0 0 10px; }
.choices { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choices form { margin: 0; }
.choices__btn { min-height: 40px; }
.msg--card p { color: var(--text-dim); margin-bottom: 10px; }
.msg--card .copy input { min-height: 40px; padding: 0 10px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--panel); color: var(--text); }
.chk { display: grid; gap: 10px; margin: 4px 0 12px; }
@media (min-width: 620px) { .chk { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chk__group--check { grid-column: 1 / -1; } }
.chk__group { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.chk__group h3 { font-size: 13px; font-weight: 700; margin-bottom: 4px; color: var(--ok-text); }
.chk__group ul { list-style: disc; padding-left: 18px; font-size: 14px; color: var(--text); }
.chk__group--ph h3 { color: var(--pro-text); }
.chk__group--miss h3 { color: var(--text-dim); }
.chk__group--check { border-color: var(--err-line); background: var(--err-tint); }
.chk__group--check h3 { color: var(--err-text); }
.msg__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 600; }

/* The "Apply to go live" popup: shown by its own anchor (#golive, :target),
   so it opens with no script; Cancel goes to #main and it closes. */
.golive { display: none; }
.golive:target { display: flex; position: fixed; inset: 0; z-index: 30; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.5); }
.golive__box { width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-lg); }
.golive__box h2 { font-size: 19px; margin-bottom: 6px; }
.golive__box p { color: var(--text-dim); margin-bottom: 12px; }
.golive__q { margin: 0 0 12px; padding: 0; border: 0; }
.golive__q legend { margin-bottom: 6px; font-weight: 700; color: var(--text); }
.golive__q label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.golive__help { font-size: 14px; }
.golive__contact { margin: 0 0 12px; }
.golive__contact .field { margin-bottom: 10px; }
.golive__actions { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.msg--card .golive__sent { margin: 10px 0 0; font-size: 14px; color: var(--ok-text); }
.msg--card .golive__resend { margin-top: 8px; }
.chat__status { min-height: 1.5em; color: var(--text-dim); font-size: 14px; }

.sp { margin: 16px 0 8px; padding: 14px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--panel); }
.sp__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sp__top h3 { margin: 0; font-size: 1.05rem; }
.sp__badge { padding: 3px 10px; border-radius: 999px; background: #fef3c7; color: #78350f; font-weight: 700; font-size: 0.85rem; }
.sp__badge--done { background: #dcfce7; color: #14532d; }
.sp__intro { margin: 8px 0 12px; }
.sp__all { margin: 12px 0 0; }
.sp__open { min-height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--text); background: var(--bg); }
.sp__fold[open] > .sp__open { margin-bottom: 10px; }
.sp__all .btn { width: 100%; min-height: 44px; }
.sp__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--field-line); }
.sp__item { padding: 10px 2px; border-bottom: 1px solid var(--field-line); }
.sp__item .sp__value { margin: 4px 0 6px; }
.sp__one { font: inherit; font-size: 0.875rem; font-weight: 600; background: none; border: 0; padding: 6px 0; min-height: 44px; color: var(--text-dim); text-decoration: underline; cursor: pointer; }
.sp__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sp__label { margin: 0; font-size: 0.95rem; }
.sp__tag { padding: 2px 8px; border-radius: 6px; font-size: 0.8rem; font-weight: 600; background: #e5e7eb; color: #111827; }
.sp__tag--sample { background: #ede9fe; color: #3b0764; }
.sp__tag--listing_unverified { background: #dbeafe; color: #1e3a8a; }
.sp__tag--placeholder { background: #fef3c7; color: #78350f; }
.sp__value { margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sp__value--none { font-style: italic; }
.sp__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
.sp__replace { flex: 1 1 280px; }
.sp__replace summary { cursor: pointer; font-weight: 700; font-size: 0.875rem; min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 999px; }
.sp__row { display: grid; gap: 4px; margin: 8px 0; }
.sp__row input, .sp__row textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 8px; }
.sp__hint { font-size: 0.85rem; color: var(--text-dim); margin: 0; }
.sp__note { font-size: 0.85rem; color: var(--text-dim); margin: 0 0 6px; }
.sp__err { margin: 8px 0; color: #991b1b; font-weight: 600; }

/* ------------------------------------------------- the Klick chat app (R2) */

/* Landing: example chips and recent previews. Chips need script (they fill the
   message box), so without it they are not shown. */
.examples { display: none; text-align: center; }
html.js .examples { display: block; }
.examples__h { margin: 0 0 8px; font-size: 13px; font-weight: 700; color: var(--text-dim); }
.examples__list { list-style: none; display: flex; flex-wrap: nowrap; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.examples__list::-webkit-scrollbar { display: none; }
.examples__list li { flex: none; scroll-snap-align: start; }
.examples__chip { min-height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap; }
@media (min-width: 720px) { .examples__list { flex-wrap: wrap; justify-content: center; overflow: visible; margin: 0; padding: 0; } }
.recents { display: grid; gap: 8px; }
.recents__h { margin: 0; font-size: 13px; font-weight: 700; color: var(--text-dim); text-align: center; }
.recents__list { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
@media (min-width: 720px) { .recents__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.recent { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; align-items: center; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--text); text-decoration: none; }
.recent:hover { border-color: var(--accent); }
.recent__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__tpl { grid-column: 1; font-size: 13px; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent .chip { grid-column: 2; grid-row: 1 / span 2; }

/* The build theater: the real steps as a plain list in the conversation,
   where the assistant's next message will be (no drawn phone: the rep is
   usually on one). While it shows, the one line status under it is only for
   screen readers, since the list already says the same. */
.theater { padding: 2px 0 8px; }
.theater[hidden] { display: none !important; }
.theater__steps { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; max-width: 560px; }
.theater:not([hidden]) ~ .chat__status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.tstep { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 10px; align-items: start; font-size: 14px; }
.tstep__dot { grid-row: 1; width: 22px; height: 22px; margin-top: 1px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--line); color: var(--text-dim); font-size: 13px; font-weight: 800; line-height: 1; }
.tstep__text { grid-row: 1; min-width: 0; overflow-wrap: anywhere; }
.tstep__fb { grid-column: 2; margin: 0; font-size: 13px; color: var(--text-dim); }
.tstep[data-state="start"] .tstep__dot { border-color: var(--accent); color: var(--accent); }
.tstep[data-state="done"] .tstep__dot { border-color: var(--ok-text); background: var(--ok-tint); color: var(--ok-text); }
.tstep[data-state="done"] .tstep__dot::before { content: "\2713"; }
.tstep[data-state="start"] .tstep__dot::before { content: "\2022"; font-size: 18px; }
.tstep[data-state="failed"] .tstep__dot { border-color: var(--err-text); background: var(--err-tint); color: var(--err-text); }
.tstep[data-state="failed"] .tstep__dot::before { content: "!"; }
.tstep[data-state="failed"] .tstep__text { color: var(--err-text); font-weight: 700; }
.tstep[data-state="skipped"] { opacity: 0.7; }
@media (prefers-reduced-motion: no-preference) {
  .tstep { animation: tstep-in 220ms ease-out both; }
  .tstep[data-state="start"] .tstep__dot { animation: tstep-pulse 1.2s ease-in-out 2; }
}
@keyframes tstep-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes tstep-pulse { 50% { box-shadow: 0 0 0 5px var(--accent-tint); } }

/* Designed states. An error is a card with the reason and Try again under it. */
.msg__title { margin: 0 0 2px; font-weight: 800; }
.msg--err { border-left: 4px solid var(--err-text); }
.msg--err .choices__btn { min-height: 44px; }
.msg--restricted, .msg--prohibited { max-width: none; align-self: stretch; background: var(--panel); border-left: 4px solid var(--pro-text); }
.msg--prohibited { border-left-color: var(--err-text); }
.msg--restricted .msg__title { color: var(--pro-text); }
.msg--prohibited .msg__title { color: var(--err-text); }
.msg__after { margin: 10px 0 0; }
.msg__after .btn { min-height: 44px; }
.msg--interview { max-width: none; align-self: stretch; background: var(--panel); border-color: var(--info-line); }
.msg__step { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--info-text); }
.choices--cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 560px) { .choices--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choices--cards .choices__btn { width: 100%; min-height: 52px; justify-content: flex-start; text-align: left; padding: 8px 16px; white-space: normal; }

/* Cards: the head, the action row at the thumb, the sections. */
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; margin-bottom: 4px; }
.card__head h2 { margin: 0; flex: 1 1 14em; min-width: 0; }
.card__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
.card__acts .btn, .card__acts form { margin: 0; }
.card__acts .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.card__primary { flex: 1 1 100%; }
.card__primary .btn { width: 100%; }
@media (min-width: 560px) { .card__primary { flex: 0 1 auto; } .card__primary .btn { width: auto; } }
.samplechip { gap: 8px; }
.samplechip__n { padding: 1px 8px; border-radius: 999px; background: var(--pro-tint); color: var(--pro-text); border: 1px solid var(--pro-line); font-size: 12px; font-weight: 800; }
.samplechip--done .samplechip__n { background: var(--ok-tint); color: var(--ok-text); border-color: transparent; }
.app__present { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.app__present:hover { background: var(--panel-2); }
/* On a phone the bar keeps the business name readable: "Show", with the rest
   of the words for screen readers only. */
/* The button is a flex box, which drops the space that starts "the merchant"
   (it read "Showthe merchant" on a laptop, 2026-11-09), so the gap is drawn. */
.app__present-more { margin-left: 0.3em; }
@media (max-width: 560px) { .app__present-more { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* The build rating: two thumbs, then an optional comment. */
.rate { margin: 12px 0 10px; }
.rate__q { margin: 0 0 6px; font-size: 14px; font-weight: 700; }
.rate__thumbs { display: flex; gap: 8px; }
.rate__btn { min-width: 52px; min-height: 44px; font-size: 22px; line-height: 1; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); cursor: pointer; }
.rate__btn[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-tint); box-shadow: 0 0 0 2px var(--accent-tint); }
.rate__comment { display: grid; gap: 6px; margin-top: 10px; max-width: 560px; }
.rate__comment label { font-size: 14px; }
.rate__comment textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 16px; padding: 8px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--panel); color: var(--text); }
.rate__comment .btn { justify-self: start; }
.ratings__tally { display: flex; gap: 16px; font-weight: 700; margin: 0 0 12px; }
.ratings__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ratings__row { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.ratings__head { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.ratings__tpl, .ratings__meta { color: var(--text-dim); font-size: 14px; }
.ratings__meta { margin: 2px 0 0; }
.ratings__comment { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Next steps. */
.ns { margin: 4px 0 14px; }
.ns h3 { margin: 0 0 6px; font-size: 15px; }
.ns__list { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.ns__step { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ns__mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; line-height: 1; }
.ns__step[data-done="true"] .ns__mark { border-color: var(--ok-text); background: var(--ok-tint); color: var(--ok-text); }
.ns__step[data-done="true"] .ns__mark::before { content: "\2713"; }
.ns__step[data-done="true"] { color: var(--text-dim); }
.ns__step a { font-weight: 700; display: inline-flex; align-items: center; min-height: 32px; padding: 2px 0; }

/* Alternate looks: a swipeable row. */
.looks { margin: 4px 0 14px; }
.looks h3 { margin: 0; font-size: 15px; }
.looks__sub { margin: 2px 0 8px; font-size: 13px; }
.looks__row { list-style: none; display: flex; gap: 12px; margin: 0 -14px; padding: 4px 14px 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 14px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.looks__row:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: -3px; }
.look { flex: 0 0 min(78%, 260px); scroll-snap-align: start; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.look form { display: grid; gap: 6px; margin: 0; }
.look .frame { max-width: 100%; }
.look__name { margin: 4px 0 0; font-weight: 700; color: var(--text); }
.look__tag { margin: 0; font-size: 13px; color: var(--text-dim); }
.look__use { min-height: 44px; width: 100%; justify-content: center; }
@media (min-width: 720px) { .look { flex-basis: 240px; } }

/* Share: copy, text, QR. */
.share { margin: 8px 0 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.share h3 { margin: 0 0 8px; font-size: 15px; }
.share .copy { margin-bottom: 8px; }
.share__note { margin: 0 0 8px; font-size: 13px; color: var(--text-dim); }
.share__qr summary { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; cursor: pointer; color: var(--accent-strong); }
.qr { display: block; width: min(100%, 240px); height: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; }


/* Quick changes (customize.ts) */
.qc { scroll-margin-top: 72px; margin: 4px 0 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.qc__sum { min-height: 48px; padding: 10px 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; cursor: pointer; }
.qc__h { font-weight: 800; color: var(--text); }
.qc__hint { font-size: 13px; color: var(--text-dim); }
.qc__form { display: grid; gap: 14px; margin: 0; padding: 0 14px 14px; }
.qc__note { margin: 0; font-size: 13px; color: var(--text-dim); }
.qc__saved { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ok-tint); color: var(--ok-text); font-weight: 700; font-size: 14px; }
.qc__group { margin: 0; padding: 0; border: 0; display: grid; gap: 10px; min-width: 0; }
.qc__group legend { padding: 0; margin: 0 0 6px; font-size: 14px; font-weight: 800; color: var(--text); }
.qc__row { margin: 0; display: grid; gap: 4px; }
.qc__row label { font-size: 14px; font-weight: 700; }
.qc__row input { min-height: 44px; font-size: 16px; width: 100%; box-sizing: border-box; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--panel); color: var(--text); font-family: inherit; }
.qc__row input::placeholder { color: var(--text-dim); opacity: 1; }
.qc__cap { font-size: 12px; color: var(--text-dim); }
.qc__colors { display: flex; flex-wrap: wrap; gap: 12px; }
.qc__color { margin: 0; display: flex; align-items: center; gap: 8px; }
.qc__color input { inline-size: 52px; block-size: 44px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.qc__color label { font-weight: 700; font-size: 14px; }
.qc__seg { display: grid; gap: 6px; }
.qc__segl { font-size: 14px; font-weight: 700; }
.qc__segrow { display: flex; flex-wrap: wrap; gap: 6px; }
.qc__opt { position: relative; }
.qc__opt input { position: absolute; opacity: 0; inline-size: 1px; block-size: 1px; }
.qc__opt span { min-height: 44px; min-width: 64px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); font-weight: 700; font-size: 14px; cursor: pointer; }
.qc__opt input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
:root[data-theme="dark"] .qc__opt input:checked + span { border-color: #0b5fff; background: #0b5fff; }
.qc__opt input:focus-visible + span { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.qc__secs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.qc__sec { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; padding: 4px 4px 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.qc__check { display: flex; align-items: center; gap: 10px; min-height: 44px; flex: 1 1 9.5em; min-width: 0; font-weight: 700; font-size: 14px; cursor: pointer; }
.qc__check input { inline-size: 22px; block-size: 22px; flex: none; accent-color: var(--accent); }
.qc__check span { overflow-wrap: break-word; }
.qc__moves { display: flex; gap: 4px; flex: none; margin-left: auto; }
.qc__move { min-height: 44px; min-width: 52px; justify-content: center; }
.qc__move[disabled] { opacity: 0.45; cursor: default; }
.qc__save { min-height: 48px; width: 100%; justify-content: center; }
@media (min-width: 720px) { .qc__save { width: auto; justify-self: start; } }


/* Present: the app bar's link. */

/* PRESENT MODE (src/present.tsx): the site fills the screen under a thin
   bar whose one control leads back to the chat. */
.presentbody { margin: 0; background: #000; }
.present { position: fixed; inset: 0; display: flex; flex-direction: column; background: #111827; }
.present__frame { display: block; flex: 1; min-height: 0; width: 100%; border: 0; background: #fff; }
.present__done { order: -1; align-self: flex-start; margin: max(6px, env(safe-area-inset-top)) 0 6px max(12px, env(safe-area-inset-left)); display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 18px; border-radius: 999px; background: rgba(17, 24, 39, 0.82); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }
.present__done:hover { background: #111827; }
.present__done:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px #0b5fff; }


/* The Sample content panel wears fixed light colors; on the dark theme it
   takes the page's own. */
html[data-theme="dark"] .sp__badge { background: var(--pro-tint); color: var(--pro-text); }
html[data-theme="dark"] .sp__badge--done { background: var(--ok-tint); color: var(--ok-text); }
html[data-theme="dark"] .sp__tag { background: var(--panel-2); color: var(--text); }
html[data-theme="dark"] .sp__tag--sample { background: rgba(167, 139, 250, 0.18); color: #d8ccff; }
html[data-theme="dark"] .sp__tag--listing_unverified { background: var(--info-tint); color: var(--info-text); }
html[data-theme="dark"] .sp__tag--placeholder { background: var(--pro-tint); color: var(--pro-text); }
html[data-theme="dark"] .sp__err { color: var(--err-text); }

/* Phone first spacing for the card on a small screen. */
@media (max-width: 559px) {
  .msg--card { padding: 12px; }
  .msg { max-width: 100%; }
}

/* ---------------------------------------------- public Klick pages */
.pub .top__end { display: flex; align-items: center; gap: 10px; }
.pub__sect { padding: 8px 16px 32px; }
.pub__h { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 14px; }
.pub__note { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 70ch; }
.pub__dim { color: var(--text-dim); margin: 6px 0 16px; }
.pub__split { display: grid; gap: 16px; }
@media (min-width: 800px) { .pub__split { grid-template-columns: 1fr 1fr; } }

.plans { display: grid; gap: 16px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan__name { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent-strong); }
.plan__price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 4px 0 12px; }
.plan__price span { font-size: 15px; font-weight: 600; color: var(--text-dim); margin-left: 6px; letter-spacing: 0; }
.plan__list { list-style: none; display: grid; gap: 8px; padding: 0; }
.plan__list li { position: relative; padding-left: 26px; font-size: 15px; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok-tint); box-shadow: inset 0 0 0 2px var(--ok-text); }
.plan__list li::after { content: ''; position: absolute; left: 5px; top: 8px; width: 6px; height: 3px; border-left: 2px solid var(--ok-text); border-bottom: 2px solid var(--ok-text); transform: rotate(-45deg); }

/* ------------------------------------------------ the public landing */
/* The hero is dark in both themes: white type on a deep navy with the
   brand's blue and green glowing behind real sites. Its own colors are
   fixed here (white on #0a1226 is about 17:1; the dim line at 78% white
   about 11:1), the rest of the page uses the tokens. */
.lhero { position: relative; overflow: hidden; color: #fff; background:
  radial-gradient(60% 80% at 85% 10%, rgba(10, 167, 255, 0.35), transparent 60%),
  radial-gradient(50% 70% at 100% 100%, rgba(33, 197, 93, 0.28), transparent 60%),
  radial-gradient(40% 60% at 0% 0%, rgba(11, 95, 255, 0.25), transparent 60%),
  #0a1226; }
.lhero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(80% 80% at 70% 30%, #000, transparent 75%); }
.lhero__in { position: relative; z-index: 1; display: grid; gap: 40px; padding-top: 48px; padding-bottom: 56px; }
/* THE PIN (public.js adds .lhero--pin on a wide window that holds the whole
   header): the section gets a scroll track of about 55vh per site turn and
   the inner row sticks under the top bar, so the scroll turns the sites
   before the page moves on. overflow: clip, not hidden: hidden makes the
   section a scroll container and sticky would never stick. */
.lhero.lhero--pin { overflow: clip; height: calc(100vh - var(--top-h, 0px) + 110vh); }
.lhero--pin .lhero__in { position: sticky; top: var(--top-h, 0px); min-height: calc(100vh - var(--top-h, 0px)); align-content: center; }
@media (min-width: 1000px) { .lhero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; padding-top: 88px; padding-bottom: 104px; } }
@media (min-width: 1000px) { .lhero.lhero--pin .lhero__in { padding-top: 40px; padding-bottom: 40px; } }
/* The header: the Wholesale Payments logo, a hairline, then the Klick wordmark
   (its gradient reads on the light and the dark bar, so no theme pair). */
.pub .brand__klick { display: flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--line); }
.pub .brand__klick img { height: 28px; width: auto; display: block; }
/* Two logos leave a phone bar little room: keep Sign in on one line. */
.pub .top__end .btn { white-space: nowrap; }
@media (max-width: 420px) { .pub .brand__klick img { height: 22px; } .pub .brand { gap: 10px; } .pub .brand__klick { padding-left: 10px; } }
.lhero h1 { margin: 18px 0 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; color: #fff; }
.lhero__grad { background: linear-gradient(90deg, #4cc3ff, #3ddc84); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lhero__sub { margin: 20px 0 0; max-width: 54ch; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; color: rgba(255,255,255,0.78); }
.lhero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lhero__cta, .lhero__ghost { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.lhero__cta { box-shadow: 0 10px 30px rgba(11, 95, 255, 0.45); }
.lhero__ghost { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.28); color: #fff; }
.lhero__ghost:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.5); color: #fff; }
.lhero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 12px 26px; margin: 34px 0 0; padding: 0; color: rgba(255,255,255,0.78); font-size: 15px; }
.lhero__facts li { display: inline-flex; align-items: center; gap: 10px; }
.lhero__facts b { color: #fff; font-weight: 700; }
/* a green check in a soft ring before each point */
.lhero__facts li::before { content: ''; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(61, 220, 132, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%233ddc84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: inset 0 0 0 1.5px rgba(61, 220, 132, 0.55); }

/* THE HEADER'S SITES (2026-11-23): three demos in turn, the one in front
   tilting toward the pointer in 3D, the next one peeking behind. Square
   on at rest; the tilt is the pointer's, never on its own. */
.lhero__art { position: relative; width: 100%; max-width: 640px; margin-inline: auto; }
.lhero__stage { position: relative; aspect-ratio: 1 / 0.78; perspective: 1400px; margin-bottom: 44px; cursor: pointer; }
.lhero__slide { position: absolute; left: 0; bottom: 0; width: 88%; transform-style: preserve-3d;
  transition: transform 900ms cubic-bezier(.2, .7, .2, 1), opacity 700ms ease, filter 700ms ease; }
.lhero__slide .bframe { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 32px 72px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.14); }
.lhero__slide.is-on { z-index: 3; opacity: 1;
  transform: rotateY(calc(var(--tx, 0) * 12deg)) rotateX(calc(var(--ty, 0) * -9deg)) translate3d(calc(var(--tx, 0) * 10px), calc(var(--ty, 0) * 8px), 0); }
.lhero__slide.is-next { z-index: 2; opacity: 1; filter: brightness(0.6) saturate(0.9);
  transform: translate3d(12%, -16%, -80px) scale(0.9) rotateY(calc(var(--tx, 0) * 6deg)); }
.lhero__slide.is-later { z-index: 1; opacity: 0; transform: translate3d(20%, -24%, -160px) scale(0.84); pointer-events: none; }
.lhero__slide.is-prev { z-index: 1; opacity: 0; transform: translate3d(-12%, 10%, 40px) scale(1.02); pointer-events: none; }
/* THE WHEEL (owner, 2026-11-23: "can we have a cooler slide through the
   websites"). public.js adds .is-scrub and sets, per slide, --d (its signed
   distance from the front: 1 is the next one, -1 the one passed), --ad (the
   same, unsigned), --o (opacity) and --f (how much in front). The sites sit
   on a wheel that turns as the page scrolls down: the next one waits below,
   tipped back; the front one faces the visitor; the one passed rolls up and
   over the top. A soft shine crosses each screen as it turns to face front.
   Transitions are short so the wheel tracks the scroll and only smooths the
   steps of a mouse wheel. It used to be a stack, the front site sliding up
   off the top while the next came forward from behind. */
.lhero__stage.is-scrub { perspective: 1100px; perspective-origin: 50% 50%; }
.lhero__stage.is-scrub .lhero__slide {
  left: 6%; top: 50%; bottom: auto; width: 88%;
  transform-origin: 50% 50% -180px;
  opacity: var(--o, 1);
  filter: brightness(calc(1 - var(--ad, 0) * 0.5)) saturate(calc(1 - var(--ad, 0) * 0.3));
  transform:
    translateY(-50%)
    translateY(calc(var(--d, 0) * 52%))
    translateZ(calc(var(--ad, 0) * -220px))
    rotateX(calc(var(--d, 0) * -46deg + var(--ty, 0) * -9deg * var(--f, 0)))
    rotateY(calc(var(--tx, 0) * 12deg * var(--f, 0)));
  transition: transform 140ms linear, opacity 140ms linear, filter 140ms linear;
  pointer-events: auto;
}
/* The shine: a pale band that crosses the screen as it turns (its place is
   the slide's own --d, so it moves with the scroll, never by itself). */
.lhero__stage.is-scrub .bframe { position: relative; }
.lhero__stage.is-scrub .bframe::after { content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(165deg, transparent 30%, rgba(255, 255, 255, 0.22) 46%, transparent 62%) no-repeat;
  background-size: 100% 260%; background-position: 0 calc(50% + var(--d, 0) * 120%); opacity: calc(1 - var(--ad, 0)); }
.lhero__stage.is-scrub .lhero__cap { opacity: var(--cap, 0); transition: none; }
.bframe__shot { position: relative; }
.bframe__shot .frame__clip { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: top;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.bframe__shot .frame__clip.is-playing { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .lhero__stage.is-scrub .lhero__slide { transition: none; }
  .bframe__shot .frame__clip { display: none; }
}
.lhero__cap { position: absolute; left: 12px; bottom: -34px; color: rgba(255, 255, 255, 0.78); font-size: 13px; font-weight: 600;
  opacity: 0; transition: opacity 500ms ease; white-space: nowrap; }
.lhero__slide.is-on .lhero__cap { opacity: 1; }
.bframe__video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; background: #0b1220; }
@media (prefers-reduced-motion: reduce) { .lhero__slide { transition: none; } }

.bframe { border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); }
.bframe__bar { display: flex; align-items: center; justify-content: center; height: 24px; padding: 0 10px; background: #f5f7fa; border-bottom: 1px solid #e3e8ef; }
.bframe__url { display: block; width: 46%; height: 12px; border-radius: 6px; background: #e6eaf0; font-size: 10px; line-height: 12px; color: #525d6a; text-align: center; overflow: hidden; white-space: nowrap; }
.bframe img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.bframe__blank { display: block; aspect-ratio: 16 / 10; background: #eef1f6; }

/* sections */
.lsect { padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 900px) { .lsect { padding-top: 96px; padding-bottom: 96px; } }
.lsect__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); }
.lsect__h { margin: 8px 0 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.1; font-weight: 800; letter-spacing: -0.03em; max-width: 22ch; }
.lsect__sub { margin: 14px 0 0; color: var(--text-dim); font-size: 17px; max-width: 60ch; }
.lsect__more { margin-top: 32px; text-align: center; }

/* two up even on a phone: eight full width cards was a very long scroll */
.looks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 20px 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 599px) { .looks .bframe__bar { height: 16px; padding: 0 6px; } .looks .bframe__url { height: 8px; } .look__type { font-size: 11px; } .look__name { font-size: 14px; } }
@media (min-width: 600px) { .looks { gap: 28px 20px; } }
@media (min-width: 1000px) { .looks { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.look .bframe { box-shadow: var(--shadow-md); border: 1px solid var(--line); transition: transform var(--ease), box-shadow var(--ease); }
.look__type { display: block; margin: 12px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-strong); }
.look__name { display: block; margin: 2px 0 0; font-weight: 700; font-size: 16px; }

.lband { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; position: relative; }
  .steps::before { content: ''; position: absolute; left: 32px; right: 32px; top: 31px; height: 2px; background: var(--brand-gradient); opacity: 0.5; } }
.step { position: relative; }
.step__n { position: relative; z-index: 1; display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-gradient); color: #fff; font-size: 26px; font-weight: 800; box-shadow: 0 10px 24px rgba(11, 95, 255, 0.25); }
.step h3 { margin: 18px 0 6px; font-size: 20px; font-weight: 800; }
.step p { color: var(--text-dim); line-height: 1.55; max-width: 36ch; }

.lplans { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 800px) { .lplans { grid-template-columns: 1fr 1fr; max-width: 920px; } }
.lplan { border-radius: 20px; padding: 32px 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.lplan__name { font-size: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-strong); }
.lplan__price { margin: 10px 0 0; font-size: 56px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.lplan__price span { font-size: 17px; font-weight: 600; letter-spacing: 0; color: var(--text-dim); margin-left: 6px; }
.lplan__for { margin: 10px 0 22px; color: var(--text-dim); }
/* Pro: the same dark as the hero, inside a gradient border */
.lplan--pro { color: #fff; border: 2px solid transparent;
  background: linear-gradient(#0a1226, #0a1226) padding-box, linear-gradient(135deg, #0aa7ff, #21c55d) border-box; box-shadow: 0 24px 60px rgba(10, 18, 38, 0.35); }
.lplan--pro .lplan__name { color: #4cc3ff; }
.lplan--pro .lplan__price span, .lplan--pro .lplan__for { color: rgba(255,255,255,0.75); }
.lplan--pro .plan__list li::before { background: rgba(61, 220, 132, 0.15); box-shadow: inset 0 0 0 2px #3ddc84; }
.lplan--pro .plan__list li::after { border-color: #3ddc84; }

.ldoors { display: grid; gap: 20px; padding-top: 0; }
@media (min-width: 800px) { .ldoors { grid-template-columns: repeat(3, 1fr); } }
.ldoor { display: flex; flex-direction: column; align-items: flex-start; }
.ldoor .btn { margin-top: auto; }
.ldoor p b { color: var(--text); overflow-wrap: anywhere; }
.ldoor { border-radius: 20px; padding: 28px; background: var(--panel); border: 1px solid var(--line); }
.ldoor h2 { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.ldoor p { color: var(--text-dim); margin-bottom: 18px; }
.ldoor--staff { background: var(--accent-tint); border-color: var(--info-line); }

/* sign in: one email box */
.signin { min-height: 62vh; display: grid; place-items: center; padding-top: 48px; padding-bottom: 64px; }
.signin__card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.signin__card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--brand-gradient); }
.signin h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.signin__sub { color: var(--text-dim); margin: 6px 0 22px; }
.signin input[type='email'] { min-height: 48px; font-size: 16px; }
.signin__go { min-height: 50px; font-size: 16px; }
.signin__who { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--text-dim); border-top: 1px solid var(--line); padding-top: 18px; }
.signin__who b { color: var(--text); }

/* the merchant's page: their site beside the card form */
.start { display: grid; gap: 16px; padding-top: 8px; padding-bottom: 48px; }
@media (min-width: 900px) { .start { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; } }
.start h2 { margin-bottom: 14px; }
.start__shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; background: var(--bg); aspect-ratio: 16 / 10; }
.start__shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.start__noshot { display: grid; place-items: center; height: 100%; color: var(--accent-strong); font-weight: 700; }
.start__h3 { font-size: 16px; font-weight: 700; margin: 22px 0 10px; }
.start__change { font-size: 14px; margin: 16px 0 0; }
/* Step 1 (0070): the owner confirms their business above both cards. */
.start__confirm { grid-column: 1 / -1; }
.start__confirm .grid-3 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .start__confirm .grid-3 { grid-template-columns: 2fr 1fr 1fr; } }
.start__confirm .grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .start__confirm .grid-2 { grid-template-columns: 1fr 1fr; } }
.start__choice { border: 0; padding: 0; margin: 4px 0 18px; }
.start__choice legend { font-weight: 700; margin-bottom: 8px; }
.start__choice .check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; padding: 6px 0; }
.start__choicehint { display: block; font-size: 13px; }
.start__facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0 0 14px; font-size: 15px; }
.start__facts dt { font-weight: 700; }
.start__facts dd { margin: 0; overflow-wrap: anywhere; }
.start__fine { font-size: 13px; margin: 6px 0 14px; }
.start__changebox { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.start__changebox summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.start__pay { position: relative; }
@media (min-width: 900px) { .start__pay { position: sticky; top: 16px; } }

.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 14px; margin-bottom: 18px; background: var(--bg); }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 15px; }
.summary__row + .summary__row { border-top: 1px solid var(--line); }
.summary__row--dim { color: var(--text-dim); font-size: 14px; }

.paysteps { list-style: decimal; margin: 0 0 20px; padding-left: 22px; display: grid; gap: 8px; color: var(--text-dim); font-size: 15px; }
.paysteps li::marker { color: var(--accent-strong); font-weight: 700; }
.paygo { min-height: 48px; font-size: 16px; }
.paynote { color: var(--text-dim); font-size: 13px; margin-top: 12px; text-align: center; }
.paynote a { color: var(--accent-strong); font-weight: 600; }

.started { max-width: 60ch; }
.started h1 { font-size: clamp(24px, 3.4vw, 32px); }

/* ================================================================ the life
   (owner, 2026-11-19: "add bad ass stuff and make this site look amazing.
   It cant look boring"). Every effect here runs ONCE or follows the
   visitor's own pointer (the merchant site motion rule: nothing moves on
   its own past five seconds without a pause control), and everything that
   moves sits under prefers-reduced-motion: no-preference. /public.js adds
   html.pub-js; without it nothing is hidden. */

/* the header: sticky, glass once the page moves */
.pub .top { position: sticky; top: 0; z-index: 20; transition: background-color 200ms ease, box-shadow 200ms ease; }
.pub .top.is-scrolled { background: color-mix(in srgb, var(--panel) 78%, transparent); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 8px 30px rgba(10, 18, 38, 0.12); }
html:has(body.pub) { scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html:has(body.pub) { scroll-behavior: smooth; } }

/* the logo that clicks: the clicked file underneath, the before file on
   top fading out as the dot lights (about 1.6 s, once) */
/* The logo files carry "Website Building Services / Powered by Wholesale
   Payments" under the wordmark; the box shows the wordmark only (owner,
   2026-11-23: too much white text; the top bar already names Wholesale
   Payments). 760 x 248 of the 760 x 363 files. */
.klogo { position: relative; display: block; width: min(340px, 70vw); aspect-ratio: 760 / 248; overflow: hidden; margin: 0 0 14px; }
.klogo img { display: block; width: 100%; height: auto; }
.klogo__pre { position: absolute; top: 0; left: 0; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .klogo__pre { animation: klogo-pre 1.6s ease 1 both; }
  .klogo__on { animation: klogo-on 1.6s ease 1 both; }
}
@keyframes klogo-pre { 0%, 58% { opacity: 1; } 66%, 100% { opacity: 0; } }
@keyframes klogo-on { 0%, 56% { opacity: 0; } 64% { opacity: 1; filter: brightness(1.5) drop-shadow(0 0 22px rgba(76, 195, 255, 0.85)); } 100% { opacity: 1; filter: none; } }

/* the hero arrives: copy rises in order, the glow swells once, the
   gradient words sweep once */
@media (prefers-reduced-motion: no-preference) {
  .lhero__copy > * { animation: rise 700ms cubic-bezier(.2, .7, .2, 1) both; }
  .lhero__copy > :nth-child(2) { animation-delay: 120ms; }
  .lhero__copy > :nth-child(3) { animation-delay: 220ms; }
  .lhero__copy > :nth-child(4) { animation-delay: 320ms; }
  .lhero__copy > :nth-child(5) { animation-delay: 420ms; }
  .lhero__stage { animation: rise 900ms cubic-bezier(.2, .7, .2, 1) 200ms both; }
  .lhero__grad { background-size: 220% 100%; animation: sweep 2.4s ease 400ms 1 both; }
  .lhero::before { animation: swell 3.2s ease 1 both; }
}
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes fadein { from { opacity: 0; } }
@keyframes sweep { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes swell { from { opacity: 0; scale: 0.7; } to { opacity: 1; scale: 1; } }
.lhero__grad { background-image: linear-gradient(90deg, #4cc3ff, #3ddc84 45%, #4cc3ff 70%, #3ddc84); }
/* a big soft light behind the sites */
.lhero::before { content: ''; position: absolute; width: 720px; height: 720px; right: -160px; top: -120px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(76, 195, 255, 0.28), rgba(61, 220, 132, 0.12) 45%, transparent 70%); filter: blur(10px); }

/* hero buttons: an arrow that nudges, a light that crosses once on hover */
.lhero__cta { position: relative; overflow: hidden; }
.lhero__cta::after { content: ''; position: absolute; inset: 0; translate: -120% 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); }
@media (prefers-reduced-motion: no-preference) { .lhero__cta:hover::after { translate: 120% 0; transition: translate 700ms ease; } }

/* sections rise in once as they scroll into view */
@media (prefers-reduced-motion: no-preference) {
  .pub-js [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity 700ms ease, translate 700ms cubic-bezier(.2, .7, .2, 1); }
  .pub-js [data-reveal].is-in { opacity: 1; translate: 0 0; }
  /* the showcase deals its cards in one after another */
  .pub-js .looks[data-reveal] { opacity: 1; translate: none; }
  .pub-js .looks[data-reveal] .look { opacity: 0; translate: 0 24px; transition: opacity 600ms ease, translate 600ms cubic-bezier(.2, .7, .2, 1); }
  .pub-js .looks.is-in .look { opacity: 1; translate: 0 0; }
  .pub-js .looks.is-in .look:nth-child(2) { transition-delay: 60ms; } .pub-js .looks.is-in .look:nth-child(3) { transition-delay: 120ms; }
  .pub-js .looks.is-in .look:nth-child(4) { transition-delay: 180ms; } .pub-js .looks.is-in .look:nth-child(5) { transition-delay: 240ms; }
  .pub-js .looks.is-in .look:nth-child(6) { transition-delay: 300ms; } .pub-js .looks.is-in .look:nth-child(7) { transition-delay: 360ms; }
  .pub-js .looks.is-in .look:nth-child(8) { transition-delay: 420ms; }
  /* the line between the steps draws itself */
  @media (min-width: 900px) {
    .pub-js .steps[data-reveal]::before { scale: 0 1; transform-origin: left; transition: scale 1.1s cubic-bezier(.2, .7, .2, 1) 200ms; }
    .pub-js .steps.is-in::before { scale: 1 1; }
  }
}

/* showcase cards are links to the live demo */
.look__link { position: relative; display: block; color: inherit; text-decoration: none; border-radius: 16px; padding: 10px 10px 14px; margin: -10px; transition: background-color var(--ease); }
.look__link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.look__link .bframe { position: relative; }
.look__link .bframe img { transition: scale 500ms cubic-bezier(.2, .7, .2, 1); }
.look__link:hover .bframe { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(10, 18, 38, 0.22), 0 0 0 1px var(--accent); }
.look__link:hover .bframe img { scale: 1.04; }
/* the light that follows the pointer (/public.js sets --mx and --my) */
.look__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity 200ms ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 30%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%); }
.look__link:hover::after { opacity: 1; }
.look__open { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--accent-strong); }
.look__open::after { content: ''; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; rotate: 45deg; transition: translate var(--ease); }
.look__link:hover .look__open::after { translate: 3px 0; }
@media (max-width: 599px) { .look__open { font-size: 12px; } }

/* the plan picker: one question, the matching plan lights up (CSS :has) */
.pickplan { border: 0; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pickplan legend { float: left; width: 100%; margin-bottom: 10px; font-weight: 700; font-size: 16px; }
.pickplan__opt { position: relative; display: inline-flex; }
.pickplan__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pickplan__opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line-strong, var(--line)); background: var(--panel); font-weight: 600; font-size: 15px; transition: background-color var(--ease), border-color var(--ease), color var(--ease); }
.pickplan__opt input:hover + span { border-color: var(--accent); }
.pickplan__opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pickplan__opt input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.lplan { position: relative; transition: opacity 300ms ease, scale 300ms ease, box-shadow 300ms ease; }
.lplan__fit { display: none; position: absolute; top: -14px; left: 24px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: linear-gradient(90deg, #0aa7ff, #21c55d); box-shadow: 0 8px 20px rgba(11, 95, 255, 0.3); }
.lpricing:has(#pick-std:checked) .lplan--std .lplan__fit, .lpricing:has(#pick-pro:checked) .lplan--pro .lplan__fit { display: block; }
.lpricing:has(#pick-std:checked) .lplan--std { box-shadow: 0 0 0 3px var(--accent), var(--shadow-md); }
.lpricing:has(#pick-std:checked) .lplan--pro, .lpricing:has(#pick-pro:checked) .lplan--std { opacity: 0.5; scale: 0.97; }
.lpricing:has(#pick-pro:checked) .lplan--pro { box-shadow: 0 0 0 3px #3ddc84, 0 30px 70px rgba(10, 18, 38, 0.4); }
@media (prefers-reduced-motion: reduce) { .lplan { transition: none; } .lpricing .lplan { scale: none !important; } }
/* plans lift a little under the pointer */
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .lplan:hover { translate: 0 -4px; } .lplan { transition: opacity 300ms ease, scale 300ms ease, box-shadow 300ms ease, translate 300ms ease; } }

/* questions: native details, a plus that turns into a minus */
.faq { margin-top: 32px; display: grid; gap: 10px; max-width: 820px; }
.faq__item { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; transition: border-color var(--ease), box-shadow var(--ease); }
.faq__item[open] { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-sm); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; font-weight: 700; font-size: 17px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; background:
  linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat,
  linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--accent-tint); color: var(--accent-strong); transition: rotate 250ms ease; }
.faq__item[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, var(--accent-tint); rotate: 180deg; }
.faq__item summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 14px; }
.faq__item p { padding: 0 20px 18px; color: var(--text-dim); line-height: 1.6; max-width: 70ch; }
@media (prefers-reduced-motion: no-preference) { .faq__item[open] p { animation: rise 350ms ease both; } }

/* back to the top: shows after the first screen (/public.js) */
.totop { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 30; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  color: #fff; background: linear-gradient(135deg, #0aa7ff, #21c55d); box-shadow: 0 12px 30px rgba(10, 18, 38, 0.3); opacity: 0; translate: 0 16px; pointer-events: none; transition: opacity 250ms ease, translate 250ms ease; }
.pub-js .totop.is-on { opacity: 1; translate: 0 0; pointer-events: auto; }
html:not(.pub-js) .totop { display: none; }
.totop:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; opacity: 1; pointer-events: auto; }

/* the doors get the brand's light too */
.ldoor { transition: translate var(--ease), box-shadow var(--ease); }
.ldoor--staff { position: relative; overflow: hidden; }
.ldoor--staff::before { content: ''; position: absolute; width: 320px; height: 320px; right: -120px; top: -140px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }

/* "Get your website": the request form for a business with no rep */
.getstarted { padding-top: 8px; padding-bottom: 64px; }
.getstarted__form { max-width: 640px; margin: 0 auto; }
.getstarted__form .grid-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .getstarted__form .grid-2 { grid-template-columns: 1fr 1fr; } }
.getstarted__wpi { border: 0; padding: 0; margin: 4px 0 18px; }
.getstarted__wpi legend { font-weight: 700; margin-bottom: 8px; }
.getstarted__wpi .check { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.getstarted__go { min-height: 48px; font-size: 16px; margin-top: 8px; }
.getstarted__note { font-size: 13px; margin-top: 12px; text-align: center; }
.getstarted .cf-turnstile { margin: 8px 0 4px; }
.start__addr { font-size: 13px; text-align: center; margin: 8px 0 0; overflow-wrap: anywhere; }

/* THE POLICIES (legal.ts): a readable column, and the footer's links. */
.legal { max-width: 760px; padding-top: 48px; padding-bottom: 72px; }
.legal h1 { margin: 6px 0 6px; font-size: clamp(30px, 4.5vw, 42px); line-height: 1.1; letter-spacing: -0.02em; }
.legal__date { margin: 0 0 22px; color: var(--text-dim); font-size: 14px; }
.legal__intro { font-size: 17px; line-height: 1.6; }
.legal section { margin-top: 28px; }
.legal h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.01em; }
.legal p, .legal li { line-height: 1.65; }
.legal ul { margin: 8px 0; padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal__more { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot__legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot__legal a { color: inherit; text-underline-offset: 3px; }
.foot__legal a:hover { color: var(--ink); }
/* The sample start page's banner (app.tsx /start/sample). */
.samplebar { background: #fff6d6; color: #4a3b00; border-bottom: 1px solid #ecd98a; font-size: 14px; }
.samplebar__in { padding-top: 10px; padding-bottom: 10px; line-height: 1.5; }
.samplebar__plans { white-space: nowrap; }
.samplebar a { color: inherit; font-weight: 700; margin-left: 6px; }
.samplebar a[aria-current='page'] { text-decoration: none; background: #4a3b00; color: #fff6d6; padding: 1px 8px; border-radius: 999px; }
.samplenote { font-size: 13px; margin: 10px 0 0; text-align: center; }

/* -------------------------------------------------------------- phones */
.wrap { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
@media (min-width: 720px) { .wrap { padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); } }
/* 100vh is the viewport with the browser's toolbar HIDDEN, so a page that
   fills it scrolls a little and a bottom bar sits under the toolbar; dvh
   follows the toolbar. The vh line stays first for an older browser. */
body, .app, .chatw { min-height: 100vh; min-height: 100dvh; }
@media (min-width: 960px) { .side, .side:target { height: 100vh; height: 100dvh; } }

@media (max-width: 1099px) {
  /* a field or a sticky bar never ends up under the step's own bottom bar
     when the browser scrolls to it (the error summary's links, a focus) */
  html { scroll-padding-bottom: 96px; }
  .search input[type='search'], .copy input, .msg--card .copy input, .file-form input[type='file'] { font-size: 16px; }
  .btn--sm, .top__nav a, .crumbs a, .tcard__links .btn, .later .btn, .pv__dev, .chatw .app__pv,
  .side__nav a, .site__row, .app__site, .msg--card .copy input { min-height: 44px; }
  .tier, .badge, .chosen__eyebrow { font-size: 12px; }
  /* bare links a thumb aims at: a 44px row, not a 20px line of text */
  .chosen a, .msg__links a:not(.btn), .pv__open, .pv__close { display: inline-flex; align-items: center; min-height: 44px; }
  .review h2 { align-items: center; }
  .review h2 a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); text-decoration: none; font-size: 14px; }
  /* uploads: the picker as a full width drop zone with a 44px button, and
     the Upload button under it, full width */
  .file-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .file-form input[type='file'] { width: 100%; padding: 4px; border: 1px dashed var(--field-line); border-radius: 10px; background: var(--panel); color: var(--text-dim); }
  .file-form input[type='file']::file-selector-button { min-height: 40px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--text); font: inherit; font-weight: 600; }
  .file-form .btn { width: 100%; }
  .upload .btn { min-height: 44px; }
  /* the thank you page's demo link: a real 44px field to tap and copy from
     (it rendered as the browser's bare 25px box) */
  .copy input { min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--panel); color: var(--text); }
  /* the preview opened from "Preview the site": the dynamic height, so its
     bottom is never under the browser's toolbar */
  .pv:target { height: 85vh; height: 85dvh; }
}

@media (max-width: 599px) {
  .card { padding: 20px 16px; }
  .hero { padding: 28px 0 24px; }
  .hero--tight { padding-bottom: 20px; }
  .lead { padding-top: 20px; }
  .form-layout { gap: 12px; padding: 12px 0 40px; }
  .narrow { gap: 16px; padding-bottom: 40px; }
  .rail { padding: 12px 12px 8px; }
  /* "You chose": the name and its link; the template's pitch line is for
     the chooser, and on a phone it pushed the form a screen down */
  .chosen { padding: 12px 14px; margin-top: 12px; gap: 4px 12px; }
  .chosen__tag { display: none; }
  .pv-toggle { margin-top: 12px; }
  /* The step's bottom bar: flush with the card's edges, the home bar
     inset under it. The "Optional" note is its own short line on top, then
     Back, Skip and Continue on one row; on a 320px phone Continue wraps to
     a full width row of its own (the old bar stacked into three rows at
     every phone width and covered a third of the screen). */
  .actions { margin: 8px -16px -20px; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); gap: 8px; }
  .actions .spacer { display: none; }
  .actions .hint { flex: 1 0 100%; order: -1; font-size: 13px; }
  .actions > .btn { flex: 1 1 auto; padding: 0 14px; }
  .actions > [value='back'], .actions > a.btn { flex: 0 0 auto; }
  /* the feature picker: the decorative icon tile goes, the text gets the width */
  .feature { padding: 12px; gap: 10px; }
  .feature .ico-tile { display: none; }
  .done { margin: 20px auto 40px; padding: 32px 16px 28px; }
  .chk__group ul { padding-left: 16px; }
}

/* the header on a 320px phone: the logo, the help link and the theme
   toggle on one line (the help link used to wrap to two) */
@media (max-width: 360px) {
  .top__in { gap: 8px; min-height: 56px; }
  .brand__logo { height: 28px; }
  .top__nav a { padding: 0 8px; white-space: nowrap; }
  /* Back, Skip and Continue need about 300px and a 320px card has 254:
     Continue takes its own row, and the "Optional" line goes (the Skip
     button says the same), so the bar stays at two rows */
  .actions .hint { display: none; }
}

/* ---- the chat on a phone: a chat app. The bar on top, the conversation,
   the message box pinned to the bottom above the home bar; the sidebar is
   the full screen menu behind "Menu". */
@media (max-width: 959px) {
  .app__bar { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); gap: 8px; }
  .app__menu, .side__close { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 700; }
  .app__menu { min-height: 44px; }
  .side__close { min-height: 44px; }
  .side:target { padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
  .composer { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .msg__links { flex-direction: column; align-items: stretch; gap: 4px; }
  .msg__links .btn { width: 100%; }
  .msg__links form { display: block; }
  .msg--card .copy .btn { flex: 1 1 auto; }
  /* "Add files": a 44px picker and button, 16px text so iOS does not zoom */
  .attach__input { min-height: 44px; font-size: 16px; }
  .attach__input::file-selector-button { min-height: 40px; }
  .attach__btn { min-height: 44px; }
  html.js .composer__attach { width: 44px; height: 44px; margin-bottom: 2px; }
}
@media (max-width: 599px) {
  /* THE MESSAGE BOX STAYS SMALL ON A PHONE (review, 2026-11-07: it took a
     quarter of the screen). Once a chat has started the build time hint
     goes (the steps list says it), the box starts one line tall, and a
     placeholder never wraps (field-sizing sizes the box to it). */
  .chatw:not(.chatw--empty) .composer__hint { display: none; }
  .chatw:not(.chatw--empty) .composer { padding-top: 8px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .chatw:not(.chatw--empty) .composer__box textarea { min-height: 40px; max-height: 30vh; padding: 6px 0; }
  .composer__box textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* the preview over the chat takes the whole screen under the bar */
  .chatw .pv:target { inset: 64px max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); padding: 10px; }
  .chatw--empty .chat { padding-bottom: 4vh; }
  .chat { gap: 12px; padding-top: 14px; }
}
/* a touch screen sends with the Send button, so the key help goes
   (/chat.js leaves the return key a new line there) */
@media (pointer: coarse) { .composer__keys { display: none; } }

/* per-template palettes (from the recipe registry, sanitized) */
.tpl-auto-classic-authority{--p:#0b5fff;--a:#c2410c;--ov:82%}
.tpl-auto-concierge{--p:#1f4d3e;--a:#b07a2c;--ov:82%}
.tpl-auto-tracktech{--p:#26262d;--a:#b6f03c;--ov:88%}
.tpl-food-appetite{--p:#b91c1c;--a:#f59e0b;--ov:78%}
.tpl-food-bistro-noir{--p:#2a1b22;--a:#8a5a1e;--ov:84%}
.tpl-personal-care-editorial{--p:#7c3aed;--a:#db2777;--ov:76%}
.tpl-personal-care-salon-luxe{--p:#3b2a26;--a:#7a2e3b;--ov:76%}
.tpl-personal-care-barber-bold{--p:#d11a3f;--a:#141414;--ov:84%}
.tpl-retail-retail-bright{--p:#0f766e;--a:#ea580c;--ov:80%}
.tpl-retail-boutique-editorial{--p:#2b2624;--a:#9c4a33;--ov:82%}
.tpl-retail-market-bold{--p:#1f3a93;--a:#c4310f;--ov:84%}
.tpl-plumbing-trade{--p:#1d4ed8;--a:#dc2626;--ov:84%}
.tpl-plumbing-dispatch-urgent{--p:#0b1f3a;--a:#c6440a;--ov:86%}
.tpl-grocery-grocery{--p:#15803d;--a:#ca8a04;--ov:80%}
.tpl-professional-professional{--p:#1e3a5f;--a:#0e7c66;--ov:82%}
.tpl-professional-firm-classic{--p:#1c2b4a;--a:#8e5a1f;--ov:84%}
.tpl-professional-studio-modern{--p:#111111;--a:#2b3fe8;--ov:86%}
.tpl-wellness-serene{--p:#2f6f73;--a:#a24e2a;--ov:74%}
.tpl-wellness-clinic-clean{--p:#0f4c5c;--a:#2563eb;--ov:70%}
.tpl-fitness-ironworks{--p:#111827;--a:#c8330e;--ov:86%}
.tpl-fitness-studio-flow{--p:#3b2e5a;--a:#0f766e;--ov:74%}
.tpl-pet-care-pawprint{--p:#9a3412;--a:#0e7490;--ov:76%}
.tpl-pet-care-vet-clinical{--p:#1e3a8a;--a:#15803d;--ov:78%}
.tpl-legal-counsel{--p:#1f2937;--a:#9a3412;--ov:86%}
.tpl-legal-chambers{--p:#2b1d14;--a:#7f1d1d;--ov:88%}
.tpl-real-estate-keystone{--p:#0f3d5e;--a:#8a5a12;--ov:80%}
.tpl-real-estate-listing-luxe{--p:#111111;--a:#7c5a1e;--ov:84%}
.tpl-home-services-fresh-cut{--p:#14532d;--a:#c2410c;--ov:82%}
.tpl-home-services-crew-pro{--p:#0c4a6e;--a:#b91c1c;--ov:84%}
.tpl-nonprofit-mission{--p:#1e3a5f;--a:#b8432a;--ov:74%}
/* per-family tile tints (the default skin's primary, sanitized) */
.fam-retail{--fp:#0f766e}
.fam-professional{--fp:#1e3a5f}
.fam-plumbing{--fp:#1d4ed8}
.fam-personal-care{--fp:#7c3aed}
.fam-home-services{--fp:#14532d}
.fam-wellness{--fp:#2f6f73}
.fam-fitness{--fp:#111827}
.fam-pet-care{--fp:#9a3412}
.fam-legal{--fp:#1f2937}
.fam-real-estate{--fp:#0f3d5e}
.fam-auto{--fp:#0b5fff}
.fam-food{--fp:#b91c1c}
.fam-grocery{--fp:#15803d}
.fam-nonprofit{--fp:#1e3a5f}
