/* assets/site.css — Cordobes Digital, v3.
   The site runs on its own theme system: <html data-style="B" data-palette="9" data-ground="light">.
   Our own site is theme B9 — the Technical family on Porcelain & Cobalt. Every colour
   below reads a token from themes/palettes.css and every measure reads one from
   themes/styles.css. There is no raw hex in this file.

   Breakpoints, declared once:
     <  720px   phone          (base, mobile-first)
     >= 720px   large phone / small tablet
     >= 960px   tablet / small laptop
     >= 1200px  desktop
*/

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

/* ---------------------------------------------------------------- spacing
   One scale, used everywhere, so nothing is inconsistently larger than the thing
   beside it. The rule this encodes:

     information that belongs together is COMPACT;
     a change of subject gets a slightly larger gap — but still small.

   Big empty space is not generosity, it is distance: it makes a reader work to
   connect two things that belong together, and it pushes the next answer below the
   fold. The only place that earns real air is the hero, where there is one idea. */

:root {
  --s1: 4px;    /* hairline separation inside a control */
  --s2: 8px;    /* items in a tight row */
  --s3: 12px;   /* label to field, icon to text */
  --s4: 16px;   /* paragraph to paragraph inside one idea */
  --s5: 16px;   /* card to card, row to row */
  --s6: 22px;   /* a heading to the block it introduces */
  --sec: clamp(28px, 3.5vw, 44px);        /* between sections of DIFFERENT information */
  --sec-tight: clamp(20px, 2.5vw, 28px);/* between closely related sections */
  --hero: clamp(28px, 4.5vw, 56px);       /* the one place with real air */
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* The header is fixed and hides on scroll-down, so anchored targets need clearance. */
:target, #main, [id] { scroll-margin-top: 96px; }
#main:focus { outline: none; }

body {
  margin: 0;
  padding-top: 68px; /* the fixed header */
  background: var(--bg);
  color: var(--fg);
  font-family: var(--body-font);
  font-size: var(--body-size);
  line-height: var(--line-height);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }

::selection { background: var(--accent); color: var(--accent-fg); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-fg);
  padding: 12px 18px; font-weight: 600;
}
.skip:focus { left: 8px; top: 8px; }

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

.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: max(20px, 5vw);
}
.wrap--narrow { max-width: 800px; }

section { padding-block: var(--sec); }
.section--tight { padding-block: var(--sec-tight); }
/* two sections of the same kind touching: don't pay the gap twice */
section + section:not(.slab):not(.slab--accent) { padding-top: var(--sec-tight); }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0 0 var(--s6); }

/* ---------------------------------------------------------------- type */

h1, h2, h3, h4 {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  line-height: 1.08;
  margin: 0 0 0.42em;
  overflow-wrap: break-word;
}
/* a heading sits close to what it introduces and further from what came before */
* + h2 { margin-top: var(--s6); }
* + h3 { margin-top: var(--s5); }
section > .wrap > h2:first-child,
section > .wrap > .eyebrow + h2 { margin-top: 0; }
h1 { font-size: clamp(1.8rem, calc(1rem + 3vw), 3.1rem); }
h2 { font-size: clamp(1.4rem, calc(0.95rem + 1.7vw), 2.15rem); }
h3 { font-size: clamp(1.08rem, calc(0.95rem + 0.6vw), 1.3rem); }
h4 { font-size: 1rem; }

p, li { max-width: var(--measure); }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-underline-offset: 3px; }

.eyebrow {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--s3);
}
.lead { font-size: clamp(1rem, calc(0.95rem + 0.3vw), 1.15rem); color: var(--muted); }
.muted { color: var(--muted); }
.big-num {
  font-family: var(--display-font);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.2em;
  letter-spacing: -0.04em;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--fg);
  font-family: var(--body-font);
  font-size: 0.97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 200ms var(--motion-ease),
              border-color 200ms var(--motion-ease),
              color 200ms var(--motion-ease),
              transform 200ms var(--motion-ease);
}
.btn--primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.btn--ghost { background: transparent; border-color: color-mix(in oklab, var(--fg) 24%, transparent); }
.btn--sm { min-height: 44px; padding: 10px 16px; font-size: 0.88rem; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-1px); }
  .btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
  .btn--primary:hover { background: color-mix(in oklab, var(--accent) 86%, var(--fg)); }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* ---------------------------------------------------------------- header */
/* One bar. The announcement strip and the nav used to be two stacked bars, which
   cost 108px of every screen to say one sentence nobody needed twice.

   Hidden sticky: fixed, hides on scroll-down, returns on scroll-up. */

.site-head {
  position: fixed;
  inset-inline: 0;
  top: 0;
  /* Above the theme lab (80). The lab docks to a full-height rail on the right, and the
     account menu drops down into exactly that rectangle — at z-index 60 the menu opened
     UNDERNEATH the panel and could not be clicked at all on the picker page. Global
     chrome outranks a tool that lives on one page. */
  z-index: 90;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  /* hides immediately: the transform is fast enough to read as instant, and the
     script fires on the first pixel of downward scroll rather than after a grace zone */
  transition: transform 130ms linear, box-shadow 200ms var(--motion-ease);
  /* deliberately no backdrop-filter: it would become the containing block for the
     position:fixed mobile panel below and collapse it to 1px. */
}
.site-head[data-hidden] { transform: translateY(-100%); }
.site-head[data-scrolled] { box-shadow: 0 1px 14px rgb(0 0 0 / 0.07); }
.site-head .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 67px; padding-block: 9px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: 1.04rem;
  letter-spacing: var(--display-tracking);
  color: var(--fg);
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}
.logo svg { flex: none; }

.head-actions { display: none; }
@media (min-width: 1060px) {
  .head-actions { display: flex; align-items: center; gap: 10px; }
  .head-actions::before {
    content: "";
    width: 1px; height: 24px;
    background: var(--line);
    margin-inline: 4px;
  }
}

.nav { display: none; }
@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: 22px; list-style: none; margin: 0; padding: 0; }
  .nav a {
    color: var(--fg); text-decoration: none; font-size: 0.93rem;
    display: inline-flex; align-items: center; padding: 12px 0; min-height: 44px;
  }
  .nav a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--accent); } }

/* No JavaScript means the menu button cannot open anything, so the links have to
   be on the page. */
.no-js .nav { display: flex; flex-wrap: wrap; gap: 12px 18px; list-style: none; margin: 0; padding: 0; width: 100%; }
.no-js .nav a { color: var(--fg); text-decoration: none; font-size: 0.93rem; display: inline-block; padding: 11px 0; min-height: 44px; line-height: 22px; }
.no-js .nav-toggle { display: none; }
.no-js .site-head .wrap { flex-wrap: wrap; }
.no-js .head-actions { display: flex; gap: 10px; }

.nav-toggle {
  width: 46px; height: 46px;
  display: grid; place-content: center; gap: 5px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--fg); }
@media (min-width: 1060px) { .nav-toggle { display: none; } }

.panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg);
  padding: 92px max(20px, 5vw) 40px;
  overflow-y: auto;
  display: none;
}
.panel[data-open] { display: block; }
.panel a:not(.btn) {
  display: block;
  font-family: var(--display-font);
  font-size: 1.45rem;
  color: var(--fg);
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.panel .btn { margin-top: 14px; width: 100%; }
.panel-close {
  position: absolute; top: 18px; right: max(20px, 5vw);
  width: 46px; height: 46px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--fg); font-size: 1.25rem; cursor: pointer;
}
body.is-locked { overflow: hidden; }
@media (min-width: 1060px) { .panel { display: none !important; } }

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

.hero { padding-block: var(--hero) var(--sec-tight); }
.hero h1 { margin-bottom: 0.3em; max-width: 16ch; }
.hero .lead { max-width: 56ch; }
.hero-actions { display: flex; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s6); }

/* ---------------------------------------------------------------- ladder */

.ladder { counter-reset: rung; }
.rung {
  display: grid;
  gap: clamp(18px, 4vw, 44px);
  grid-template-columns: 1fr;
  padding-block: var(--sec-tight);
  border-top: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 960px) { .rung { grid-template-columns: 0.32fr 0.68fr; } }
.rung-mark { counter-increment: rung; }
.rung-mark::before {
  content: counter(rung, decimal-leading-zero);
  font-family: var(--display-font);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25em;
  letter-spacing: -0.04em;
}
.rung-mark p { font-size: 0.9rem; color: var(--muted); margin: 0; }
.rung-body > :last-child { margin-bottom: 0; }
.rung-body .btn { margin-top: 8px; }

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

.grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) and (max-width: 959px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 24px);
  box-shadow: var(--shadow);
}
.card > :last-child { margin-bottom: 0; }
.card p, .card li { max-width: none; }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: var(--s4) 0 var(--s4) 30px;
  border-bottom: 1px solid var(--line);
  position: relative;
  max-width: none;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 22px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.checklist b { display: block; font-family: var(--display-font); font-size: 1.04rem; margin-bottom: 2px; }

/* ---------------------------------------------------------------- panels */

.slab { background: var(--surface); border-block: 1px solid var(--line); }
.slab--accent { background: var(--accent); color: var(--accent-fg); }
.slab--accent .eyebrow,
.slab--accent .muted,
.slab--accent .lead { color: color-mix(in oklab, var(--accent-fg) 84%, transparent); }
.slab--accent .btn { border-color: var(--accent-fg); color: var(--accent-fg); background: transparent; }
.slab--accent .btn--primary { background: var(--accent-fg); color: var(--accent); border-color: var(--accent-fg); }
/* The ring is --accent by default, and this whole band IS --accent, so it was a 1:1
   ring painted on itself — invisible, on the primary call to action of five pages. */
.slab--accent :focus-visible { outline-color: var(--accent-fg); }

/* ------------------------------------------------------------- long read */
/* One section that just continues — used by the-standard.html. */

.read-item { padding-block: var(--sec-tight); border-top: 1px solid var(--line); }
.read-item:first-of-type { border-top: 0; }
.read-n {
  font-family: var(--display-font);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 10px;
}
.read-item h2 {
  font-size: clamp(1.5rem, calc(1.05rem + 1.9vw), 2.35rem);
  max-width: 20ch;
  margin-bottom: 0.55em;
}
.read-item p { font-size: clamp(1rem, calc(0.97rem + 0.2vw), 1.08rem); }
.read-item > :last-child { margin-bottom: 0; }
.read-aside {
  margin: var(--s5) 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.read-aside p { margin: 0; font-size: 0.95rem; }
.read-aside p + p { margin-top: 0.7em; }
.pull {
  font-family: var(--display-font);
  font-size: clamp(1.25rem, calc(1rem + 1.4vw), 1.85rem);
  line-height: 1.24;
  letter-spacing: var(--display-tracking);
  margin: var(--s5) 0;
  max-width: 24ch;
  color: var(--fg);
}

/* ---------------------------------------------------------------- tables */

.tablewrap { overflow-x: auto; min-width: 0; max-width: 100%; }
/* A table squeezed into 390px puts 1 word on each line, which is unreadable in a
   different way from being cut off. Below this width it scrolls inside .tablewrap
   instead — a short sideways drag beats a column 4 characters wide. */
table.plain { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.93rem; }
table.plain th, table.plain td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.plain th { color: var(--muted); font-weight: 600; white-space: nowrap; }

/* ---------------------------------------------------------------- forms */

.field { display: block; margin-bottom: var(--s4); }
.field > span { display: block; font-size: 0.88rem; color: var(--muted); margin-bottom: var(--s2); }
.input, .select, .textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 14px;
  font: inherit;
  font-size: max(16px, 0.97rem);
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.textarea { min-height: 130px; resize: vertical; }
.input:disabled, .select:disabled, .textarea:disabled { color: var(--muted); opacity: 1; -webkit-text-fill-color: var(--muted); }
.select:disabled option { color: var(--muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--accent); }
/* A hint belongs tight under the control it is about — but the negative pull only
   makes sense after a FIELD. After a button it climbed over it. */
.hint { font-size: 0.86rem; color: var(--muted); margin-top: var(--s2); margin-bottom: var(--s4); }
.input + .hint, .select + .hint, .textarea + .hint, .pw + .hint { margin-top: -6px; }
.formnote {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--surface);
  font-size: 0.92rem;
}
.formnote p { margin: 0; max-width: none; }
.formnote p + p { margin-top: 0.7em; }

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

.site-foot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: var(--sec-tight) var(--s5);
  font-size: 0.93rem;
}
.foot-grid { display: grid; gap: var(--s6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-grid h2 { font-family: "Courier New", ui-monospace, monospace; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 9px; }
.foot-grid a { color: var(--fg); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .foot-grid a:hover { color: var(--accent); } }
.foot-base {
  margin-top: var(--s6); padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between;
  color: var(--muted); font-size: 0.85rem;
}

/* ---------------------------------------------------------------- reveal */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 650ms var(--motion-ease), transform 650ms var(--motion-ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ================================================================ tiles */

.tiles { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s4) var(--s5);
  box-shadow: var(--shadow);
}
.tile h3 { font-family: "Courier New", ui-monospace, monospace; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.tile .figure { font-family: var(--display-font); font-size: 1.9rem; line-height: 1; display: block; margin-bottom: 6px; letter-spacing: -0.03em; }
.tile p { margin: 0; font-size: 0.88rem; color: var(--muted); max-width: none; }
.tile--empty { border-style: dashed; }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 42px; margin-bottom: 10px; }
.spark i { flex: 1; background: color-mix(in oklab, var(--accent) 45%, transparent); border-radius: 1px 1px 0 0; display: block; }
.spark i:last-child { background: var(--accent); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--muted); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ================================================================== steps */

.steps { list-style: none; counter-reset: step; margin: 0 0 var(--s6); padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  max-width: none;
  padding: var(--s4) 0 var(--s4) 54px;
  border-top: 1px solid var(--line);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--s4);
  font-family: var(--display-font);
  font-size: 1.2rem;
  font-weight: var(--display-weight);
  color: var(--accent);
  letter-spacing: -0.02em;
}
.steps h3 { margin: 0 0 var(--s2); font-size: 1.1rem; }
.steps p { margin: 0; max-width: 68ch; }

.price {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  font-size: clamp(2.1rem, 5.5vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s4);
  max-width: none;
}
.price i { font-style: normal; font-size: 0.9rem; color: var(--muted); letter-spacing: 0; }

table.plain caption { text-align: left; padding: 0 0 var(--s3); font-size: 0.88rem; }
.tablewrap + .formnote { margin-top: var(--s5); }
section > .wrap > .tablewrap { margin-top: var(--s5); }

/* ================================================================ figures */
/* A picture here is doing a job — showing a thing that is hard to describe. It gets
   a caption that says what to look at, and nothing gets a decorative photograph. */

figure { margin: var(--s6) 0 0; }
figure img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
figcaption { margin-top: var(--s3); font-size: 0.86rem; color: var(--muted); max-width: 62ch; }
.hero-shot { margin-top: var(--s6); }
.shot { margin-bottom: var(--s6); }

/* The diagrams are drawn, not photographed, and drawn in the site's own tokens — so
   they recolour with the theme instead of being 1 palette baked into a PNG. It also
   means there is no stock photograph on this site whose licence somebody would have
   to take our word for, which is item 6 of the 11 things. */
.fig {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(12px, 2vw, 22px);
}
.fig-lab {
  font-family: var(--body-font);
  font-size: 19px;
  font-weight: 600;
  fill: var(--muted);
}

/* =================================================================== gate */

.gate-card {
  max-width: 640px;
  padding: clamp(22px, 3.5vw, 34px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.gate-card h1 { font-size: clamp(1.5rem, calc(1.1rem + 2vw), 2.3rem); max-width: 22ch; }
.gate-card > :last-child { margin-bottom: 0; }

/* ============================================================== dashboard */
/* dashboard-pro.html only: its own tab, its own banner, no marketing chrome. The
   marketing header sells to somebody who has not bought; on this page everyone has,
   so the space goes to the numbers instead. */

body.on-dash { padding-top: 0; background: var(--surface-2); }

.dash-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.dash-bar {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s2) max(16px, 3vw);
  min-height: 60px;
}
.logo--sm { font-size: 0.95rem; margin-right: var(--s3); }
.dash-end { display: flex; align-items: center; gap: var(--s3); margin-left: auto; }
.dash-nav { display: flex; align-items: center; gap: var(--s4); flex-wrap: wrap; }
.dash-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.85rem; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.dash-nav a:hover { color: var(--accent); }
.dash-pick { display: block; }
.input--sm { min-height: 40px; padding: 8px 10px; font-size: 0.9rem; width: auto; max-width: 220px; }

.dash-range { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.seg {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.seg:first-child { border-left: 0; }
.seg[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }

.dash-main { padding-block: var(--s5) var(--sec-tight); }
.dash-wrap { width: 100%; max-width: 1500px; margin-inline: auto; padding-inline: max(16px, 3vw); }

.dash-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--s5);
}
.stat { background: var(--bg); padding: var(--s4) var(--s5); }
.stat-k { display: block; font-family: "Courier New", ui-monospace, monospace; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.stat-v { display: block; font-family: var(--display-font); font-size: 1.75rem; line-height: 1.1; letter-spacing: -0.03em; margin: 4px 0 2px; }
.stat-v i { font-style: normal; font-size: 0.85rem; color: var(--muted); }
.stat-n { display: block; font-size: 0.8rem; color: var(--muted); }

/* Cards stretched to match their tallest neighbour, which left 150px of nothing
   under the short ones — the single most visible kind of inconsistent empty space. */
.dash-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) {
  .dash-span-2 { grid-column: span 2; }
  .dash-span-3 { grid-column: span 3; }
}

.panel-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s5);
  box-shadow: var(--shadow);
  /* A grid item defaults to min-width:auto, so the 6-column table inside pushed the
     card — and the whole page — to 657px on a 390px phone. The scroller is the
     .tablewrap; the card must be allowed to be narrower than its contents for that
     scroller to ever come into play. */
  min-width: 0;
}
.panel-card > :last-child { margin-bottom: 0; }
.panel-card p, .panel-card li { max-width: none; }
.panel-card-head { margin-bottom: var(--s4); }
.panel-card-head h2 { font-size: 1.15rem; margin: 0 0 var(--s1); }
.panel-card-head p { margin: 0; font-size: 0.85rem; }
.panel-card .muted { font-size: 0.85rem; }

.chart { display: flex; align-items: flex-end; gap: 3px; height: 190px; margin-bottom: var(--s4); }
.chart i { flex: 1; min-width: 3px; background: color-mix(in oklab, var(--accent) 38%, transparent); border-radius: 2px 2px 0 0; display: block; }
.chart i:nth-last-child(-n+3) { background: var(--accent); }

.meters { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.meters li { display: grid; grid-template-columns: 5.5rem 1fr 2.5rem; align-items: center; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.meters li:last-child { border-bottom: 0; }
.meters b { text-align: right; font-family: var(--display-font); }
.meter { height: 7px; border-radius: 4px; background: var(--surface-2); display: block; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }

.keyvals { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.keyvals li { display: flex; justify-content: space-between; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 0.88rem; }
.keyvals li:last-child { border-bottom: 0; }
.keyvals span { color: var(--muted); }

.dash-foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding-block: var(--s5);
  font-size: 0.85rem;
  color: var(--muted);
}
.dash-foot .wrap { display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: space-between; }

/* Screen-reader-only text, used where a visible label would be redundant for
   everyone who can see the thing it labels. */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ================================================================ picker */
/* The demo fills the screen. Everything that selects a theme lives in one floating
   panel on top of it — the model taken from the Jonny Bowden theme lab: a tool with
   its own neutral palette, so it never blends into the theme it is previewing. */

.stage {
  position: relative;
  width: 100%;
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
  min-height: 460px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.stage iframe { width: 100%; height: 100%; border: 0; display: block; background: var(--surface); }
.stage[data-view="phone"] iframe {
  max-width: 402px;
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}
/* When the lab is docked the stage gives up the column rather than being covered. */
@media (min-width: 900px) {
  .stage[data-dock="left"] { padding-left: 336px; }
  .stage[data-dock="right"] { padding-right: 336px; }
}

/* ---- the lab panel ------------------------------------------------------ */
/* LAB-PALETTE-START
   Everything down to the closing marker is deliberately hard-coded and deliberately NOT
   on the theme tokens. The lab previews themes; if it wore the theme it is previewing, you
   could not tell the tool from the thing being judged — and a dark panel over a light
   demo is the whole point. tools/verify_site.mjs skips this fence for the raw-hex check
   and nothing else. */

.lab {
  position: fixed;
  z-index: 80;
  width: min(330px, calc(100vw - 24px));
  max-height: min(70vh, 560px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #12151b;
  color: #e8ecf2;
  border: 1px solid #2b313b;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgb(0 0 0 / 0.42), inset 0 1px 0 rgb(255 255 255 / 0.04);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}
.lab *, .lab *::before, .lab *::after { box-sizing: border-box; }
.lab.is-dragging { user-select: none; box-shadow: 0 22px 60px rgb(0 0 0 / 0.5); }
.lab :focus-visible { outline: 2px solid #8fb6e8; outline-offset: 2px; }

.lab-bar {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px;
  border-bottom: 1px solid #232833;
  cursor: move;
  touch-action: none;
}
.lab-grip {
  width: 9px; height: 15px; flex: none; border-radius: 2px;
  background: radial-gradient(#55606e 1.1px, transparent 1.5px);
  background-size: 4px 4px;
  opacity: 0.7;
}
.lab-name { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #99a4ba; }
.lab-code { margin-left: auto; font-weight: 700; font-size: 14px; color: #8fb6e8; letter-spacing: 0.02em; }
.lab-x {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  color: #99a4ba; font-size: 16px; line-height: 1;
  width: 44px; height: 44px; border-radius: 5px; flex: none;
}
.lab-x:hover { background: #1e242e; color: #e8ecf2; }

.lab-icon {
  appearance: none; background: transparent; border: 0; cursor: pointer;
  color: #737f92; font-size: 15px; line-height: 1;
  width: 44px; height: 44px; border-radius: 5px; flex: none;
}
.lab-icon:hover { background: #1e242e; color: #e8ecf2; }
.lab-chosen .lab-icon { color: #c2ccda; }
.lab-icon[aria-pressed="true"] { color: #f0c04a; }
.lab-icon[data-lab-peek]:active { background: #1e242e; }
.lab.is-peeking { opacity: 0.18; }

/* ---- docking ---- */
/* Floating is the default and the most flexible. Docked, the panel takes a column of
   its own and the demo moves over: a layout you are judging must not have a tool
   sitting on top of it, and "move the panel to see that bit" is a tax on every look. */

.lab[data-dock="left"], .lab[data-dock="right"] {
  top: 68px; bottom: 0;
  width: 336px;
  max-height: none;
  border-radius: 0;
  box-shadow: none;
}
.lab[data-dock="left"] { left: 0 !important; right: auto !important; border-width: 0 1px 0 0; }
.lab[data-dock="right"] { right: 0 !important; left: auto !important; border-width: 0 0 0 1px; }
.lab[data-dock="left"] .lab-bar,
.lab[data-dock="right"] .lab-bar { cursor: default; }
.lab[data-dock="left"] .lab-grip,
.lab[data-dock="right"] .lab-grip,
.lab[data-dock="left"] .lab-grab,
.lab[data-dock="right"] .lab-grab { display: none; }

/* The visible gripper is 22px because a bigger one would be a decoration; the TARGET
   is 44px, drawn only in its bottom-right corner. A control you can see is not the
   same thing as a control you can hit, and the rule is about hitting. */
.lab-grab {
  position: absolute; right: 0; bottom: 0;
  width: 44px; height: 44px;
  appearance: none; border: 0; padding: 0;
  background-image: linear-gradient(135deg, transparent 50%, #3b4454 50%, #3b4454 62%, transparent 62%,
                                    transparent 72%, #3b4454 72%, #3b4454 84%, transparent 84%);
  background-size: 22px 22px;
  background-position: right bottom;
  background-repeat: no-repeat;
  background-color: transparent;
  cursor: nwse-resize;
  touch-action: none;
}

.lab-row--code { gap: 6px; }
.lab-in {
  flex: 1 1 auto; min-width: 0;
  appearance: none; font: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  min-height: 44px; padding: 8px 10px;
  background: #0e1116; color: #e8ecf2;
  border: 1px solid #2c333f; border-radius: 6px;
}
.lab-in::placeholder { color: #6b7686; font-weight: 600; letter-spacing: 0.04em; text-transform: none; }
.lab-in:focus-visible { border-color: #6f93d6; }

.lab-btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* Each family chip says its name in its own typeface. A word about a typeface set in
   a different typeface is a description; set in its own it is the thing itself. */
.fam { font-style: normal; font-size: 13px; font-weight: 700; letter-spacing: -0.01em; }
.fam--a { font-family: "Fraunces", Georgia, serif; }
.fam--b { font-family: "Space Grotesk", "Inter", sans-serif; }
.fam--c { font-family: "Inter", system-ui, sans-serif; font-weight: 600; }
.fam--d { font-family: "Inter", system-ui, sans-serif; font-weight: 400; letter-spacing: 0.01em; }
.fam--e { font-family: "Instrument Sans", "Inter", sans-serif; }
.fam--f { font-family: "Space Grotesk", "Inter", sans-serif; text-transform: uppercase; font-size: 12px; letter-spacing: 0.04em; }

.lab-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.lab-list li { display: flex; }
.lab-pick {
  appearance: none; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer;
  background: #1a1f28; color: #cfd8e6;
  border: 1px solid #2c333f; border-right: 0;
  border-radius: 6px 0 0 6px;
  padding: 0 9px; min-height: 44px;
  letter-spacing: 0.03em;
}
.lab-pick:hover { background: #20262f; color: #fff; }
.lab-pick[aria-current="true"] { color: #8fb6e8; box-shadow: inset 0 -2px 0 #6f93d6; }
.lab-drop {
  appearance: none; font: inherit; font-size: 14px; line-height: 1; cursor: pointer;
  background: #1a1f28; color: #737f92;
  border: 1px solid #2c333f;
  border-radius: 0 6px 6px 0;
  width: 30px; min-height: 44px;
}
.lab-drop:hover { background: #20262f; color: #e8ecf2; }
.lab-k { color: #8fb6e8; }

.lab-body {
  flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 10px 12px;
  display: flex; flex-direction: column; gap: 12px;
}
.lab-set { border: 0; margin: 0; padding: 0; min-width: 0; }
.lab-set legend {
  padding: 0; margin-bottom: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.11em;
  text-transform: uppercase; color: #99a4ba;
}
.lab-row { display: flex; gap: 6px; flex-wrap: wrap; }
.lab-grid { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lab-sw-grid { display: grid; gap: 6px; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.chip { position: relative; display: block; cursor: pointer; min-width: 0; }
.chip input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.chip > span {
  display: flex; flex-direction: column; gap: 1px;
  min-height: 44px; padding: 7px 9px;
  background: #1a1f28; color: #c2ccda;
  border: 1px solid #2c333f; border-radius: 6px;
  font-size: 12px; font-weight: 600;
  transition: background 150ms, border-color 150ms, color 150ms;
  justify-content: center;
}
.chip em { font-style: normal; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; color: #9aa5ba; }
.chip b { position: absolute; top: 5px; right: 7px; font-size: 12px; font-weight: 700; color: #99a4ba; }
.chip:hover > span { background: #20262f; color: #eef2f8; }
/* selected reads as a tab underline, never a filled capsule — a fill looks like an
   on/off switch rather than a choice among several */
.chip input:checked + span {
  background: #1b2330; color: #eef2f8; border-color: #3f4a5c;
  box-shadow: inset 0 -2px 0 #6f93d6;
}
.chip input:checked + span em { color: #aebfda; }
.chip input:checked + span b { color: #8fb6e8; }
.chip input:focus-visible + span { outline: 2px solid #8fb6e8; outline-offset: 2px; }

.chip--sw > span { padding: 6px; gap: 5px; align-items: stretch; }
.sw { display: flex; gap: 2px; height: 15px; }
.sw i { flex: 1; border-radius: 2px; border: 1px solid rgb(255 255 255 / 0.16); display: block; }
.chip--sw span span { font-size: 12px; }

.lab-btn {
  appearance: none; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: #1a1f28; color: #c2ccda;
  border: 1px solid #2c333f; border-radius: 6px;
  padding: 8px 10px; min-height: 44px; min-width: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: background 150ms, border-color 150ms, color 150ms;
}
.lab-btn:hover { background: #20262f; color: #fff; }
.lab-btn[aria-pressed="true"] { background: #1b2330; border-color: #4f5d73; color: #eef2f8; box-shadow: inset 0 -2px 0 #6f93d6; }
.lab-btn--wide { flex: 1 1 auto; justify-content: center; }
.lab-btn--go { background: #1d3358; border-color: #3c5c93; color: #dbe8fb; }
.lab-btn--go:hover { background: #24406d; color: #fff; }

.lab-hint { font-size: 12px; color: #99a4ba; margin: 0; line-height: 1.45; }
.lab-note { font-size: 12px; color: #ffd978; margin: 0; }

.lab-pill {
  position: fixed; right: 16px; bottom: 16px; z-index: 80;
  appearance: none; cursor: pointer; display: none;
  align-items: center; gap: 8px;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em;
  background: #12151b; color: #e8ecf2;
  border: 1px solid #2b313b; border-radius: 999px;
  padding: 10px 15px; min-height: 44px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.4);
}
.lab-pill[data-show] { display: inline-flex; }

@media (max-width: 720px) {
  .lab { width: calc(100vw - 16px); max-height: 56vh; }
  .lab-btn, .chip > span { min-height: 44px; }
}
/* A 336px rail on a 390px screen is not a dock, it is a takeover. Below the width
   where a column can be spared, docking falls back to floating. */
@media (max-width: 899px) {
  .lab[data-dock="left"], .lab[data-dock="right"] {
    top: auto; bottom: 8px; left: 8px !important; right: 8px !important;
    width: auto; max-height: 56vh;
    border-width: 1px; border-radius: 12px;
    box-shadow: 0 14px 40px rgb(0 0 0 / 0.42);
  }
}

/* ---- the lab in the left rail -------------------------------------------
   Shea: "the theme lab will be within the menu on the left … move the theme lab into
   the left menu when we are on the theme picker page." In the rail there is nothing to
   drag, dock, collapse or resize, so all of that is gone and the panel is simply the
   menu: full height, its own scroll, flush against the rail's edge. */
.lab--rail {
  position: static;
  width: 100%;
  max-height: none;
  height: 100%;
  min-height: 0;
  border-radius: 12px;
  box-shadow: none;
}
.lab-bar--rail { cursor: default; }

.lab-parts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.lab-parts li {
  display: grid; grid-template-columns: 62px 1fr; gap: 8px;
  font-size: 12px; line-height: 1.4; color: #99a4ba;
}
.lab-parts b { color: #e8ecf2; font-weight: 700; letter-spacing: .02em; }
.lab.is-naming .lab-parts li { color: #c3ccdb; }

/* The send form used 5 inline style attributes to reach the lab's own palette. It is
   generated markup now, so the styles live here where they can be read. */
.lab-field { display: block; margin-bottom: 8px; }
.lab-field > span {
  color: #99a4ba; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.lab-email {
  min-height: 44px; padding: 10px 11px; font-size: 14px;
  background: #0e1116; color: #e8ecf2; border-color: #3a4353;
}
.lab-btn--full { width: 100%; }


/* The chosen-theme block and the disclosure, inside the floating panel. Both are written
   light-first further down because that is where they are mostly seen — in the rail. */
.lab-chosen { background: #1a1f28; border: 1px solid #2c333f; }
.lab-chosen-h { color: #99a4ba; }
.lab-chosen-name { color: #e8ecf2; }
.lab-chosen-code { color: #99a4ba; }
.lab-chosen-code b { color: #8fb6e8; }
.lab[data-lab-mode="float"] .lab-det > summary {
  background: #1a1f28; color: #c2ccda; border-color: #2c333f; border-radius: 6px;
}

.lab-saved { color: #99a4ba; }
.lab-saved[data-on] { color: #8fb6e8; font-weight: 700; }

/* LAB-PALETTE-END */
@media (prefers-reduced-motion: reduce) {
  .site-head { transition: none; }
}

[hidden] { display: none !important; }

/* ================================================================ forced colours */
/* Windows High Contrast drops box-shadow and forces borders to one system colour, so
   "which option is selected" was carried entirely by something that no longer exists. */

@media (forced-colors: active) {
  .chip input:checked + span { outline: 3px solid Highlight; outline-offset: -3px; }
  .lab-btn[aria-pressed="true"] {
    outline: 3px solid Highlight; outline-offset: -3px;
    forced-color-adjust: none; background: Highlight; color: HighlightText;
  }
  .btn, .card, .tile, .stage, .auth, .formnote, .lab { border: 1px solid ButtonText; }
  .checklist li::before { border-color: ButtonText; }
  .sw i { border: 1px solid ButtonText; }
  .spark i { border: 1px solid ButtonText; }
}

/* ================================================================== bare */
/* The homepage. 2026-09-16: it stopped being a brochure. Everybody who arrives here is
   already in conversation with Shea, so there is nothing to argue — just the door. */

.bare { display: grid; place-items: center; min-height: calc(100dvh - 68px); padding: var(--s5); }
body:has(.bare) { padding-top: 0; }
.bare { min-height: 100dvh; }
.bare-in { display: grid; justify-items: center; gap: var(--s6); }
.bare-mark { display: block; line-height: 0; }
.bare-go { display: flex; gap: var(--s3); flex-wrap: wrap; justify-content: center; }
.btn--round { border-radius: 999px; padding-inline: 26px; }
@media (min-width: 720px) { .foot-grid--thin { grid-template-columns: 1.6fr 1fr; } }

/* =================================================================== the app */
/* The dashboard, per PLAN-dashboard.md. Professional, modern, round. Two menus that
   mean different things: the TOP bar is which screen, the LEFT rail is which website.
   The working area is recessed (--surface-2) so every card floats above it. */

body.on-app { padding-top: 0; background: var(--surface-2); }

.app-top {
  position: sticky; top: 0; z-index: 70;
  display: flex; align-items: center; gap: var(--s4);
  padding: 10px max(14px, 2vw);
  min-height: 62px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.app-mark {
  display: inline-grid; place-content: center; line-height: 0; flex: none;
  width: 44px; height: 44px; border-radius: 999px;   /* a real tap target, not a 30x21 logo */
}
.app-mark:hover { background: var(--surface-2); }
.app-i { width: 18px; height: 18px; flex: none; }

/* The tabs are the one thing allowed to scroll sideways. At 320 the bar cannot fit 4
   tabs plus 3 round controls, and shrinking the controls below 44px is not an option —
   so the tabs get a scroller of their own and the page itself never moves. */
.tabs {
  display: flex; align-items: center; gap: 4px;
  margin-inline: auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { scroll-snap-align: center; }
.tabs .tab {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted); text-decoration: none;
  font-size: 0.92rem; font-weight: 600;
  white-space: nowrap;
}
.tabs .tab:hover { background: var(--surface-2); color: var(--fg); }
.tabs .tab[aria-current="page"] { background: var(--accent); color: var(--accent-fg); }
.tab-i { opacity: 0.9; }
@media (max-width: 860px) { .tabs .tab span { display: none; } .tabs .tab { padding: 8px; min-width: 44px; } }
@media (max-width: 420px) { .app-top { gap: var(--s2); padding-inline: 10px; } }

.app-end { display: flex; align-items: center; gap: var(--s2); flex: none; }
/* Below the width where the rail is a rail, the signed-out pair of buttons in the bar is
   redundant — the screen itself is a gate with both of them in it — and keeping them
   pushed the bar 91px past a 390px phone. */
@media (max-width: 899px) { .acct-out { display: none; } }
.rnd {
  position: relative;
  width: 44px; height: 44px; flex: none;
  display: grid; place-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg); color: var(--muted);
  cursor: pointer;
}
.rnd:hover { color: var(--accent); border-color: var(--accent); }
.rnd--sm { width: 36px; height: 36px; }
.rnd .dot {
  position: absolute; top: 9px; right: 9px;
  width: 8px; height: 8px; border-radius: 999px; background: var(--accent);
}
.app-burger { display: grid; }
@media (min-width: 900px) { .app-burger { display: none; } }

/* ---- the frame ---- */

.app { display: grid; grid-template-columns: 1fr; min-height: calc(100dvh - 62px); }
@media (min-width: 900px) { .app { grid-template-columns: 264px 1fr; } }

.rail {
  display: none;
  flex-direction: column;
  gap: var(--s4);
  padding: var(--s5) var(--s4);
  background: var(--bg);
  border-right: 1px solid var(--line);
}
@media (min-width: 900px) { .rail { display: flex; position: sticky; top: 62px; height: calc(100dvh - 62px); } }
.rail[data-open] {
  display: flex;
  position: fixed; inset: 62px 0 0 0; z-index: 65;
  border-right: 0; overflow-y: auto;
}
.rail-h {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin: 0;
}
.rail-sites { display: grid; gap: 4px; }
.rail-site {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; min-height: 52px;
  border-radius: 12px;
  color: var(--fg); text-decoration: none;
}
.rail-site:hover { background: var(--surface-2); }
.rail-site.is-on { background: var(--surface-2); box-shadow: inset 2px 0 0 var(--accent); }
.rail-site img { width: 40px; height: 25px; object-fit: cover; border-radius: 5px; border: 1px solid var(--line); flex: none; }
.rail-site span { min-width: 0; display: grid; gap: 1px; }
.rail-site b { font-size: 0.86rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-plus {
  width: 40px; height: 25px; flex: none;
  display: grid; place-content: center;
  border: 1px dashed var(--line); border-radius: 5px;
  color: var(--muted); font-size: 1rem;
}
.rail-site--add b { color: var(--muted); font-weight: 600; }
.rail-mid { flex: 1 1 auto; }
.rail-foot { display: grid; gap: 2px; padding-top: var(--s3); border-top: 1px solid var(--line); }
.rail-b {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 10px;
  border-radius: 999px;
  color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 600;
}
.rail-b:hover { background: var(--surface-2); color: var(--fg); }

.stagearea { padding: var(--s5) max(16px, 2.2vw) var(--sec-tight); min-width: 0; }

.screen-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5);
}
.screen-head h1 { font-size: clamp(1.5rem, calc(1.1rem + 1.4vw), 2.1rem); margin: 0 0 4px; }
.screen-head p { margin: 0; font-size: 0.9rem; }

.gate-wrap { display: grid; place-items: center; min-height: 60vh; }
.gate-card--app { text-align: left; max-width: 560px; border-radius: 18px; }
/* Not an <h1>: the screen's own heading is the page's one h1, and it is inside the
   signed-in half. A gate is a door, not a document. */
.gate-h {
  font-family: var(--display-font);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.4rem, calc(1.1rem + 1.2vw), 1.9rem);
  line-height: 1.12; margin: 0 0 var(--s3); max-width: 20ch;
}

/* ---- the website card: the object the whole product is built around ---- */

/* auto-fill, not a fixed column count: grouped by client, a group often holds 1 website,
   and a fixed 2-column grid left half the row empty under every heading. */
.cards { display: grid; gap: var(--s5); grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }

.card-site {
  display: block; min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  color: var(--fg); text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 180ms var(--motion-ease), box-shadow 180ms var(--motion-ease);
}
@media (hover: hover) and (pointer: fine) {
  .card-site:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
}
@media (prefers-reduced-motion: reduce) { .card-site { transition: none; } .card-site:hover { transform: none; } }
.card-shot { position: relative; display: block; background: var(--surface-2); }
.card-shot > img:first-child { width: 100%; height: auto; display: block; aspect-ratio: 8 / 5; object-fit: cover; object-position: top center; }
/* The phone view sits INSIDE the shot, bottom-right, rather than hanging below it —
   hanging over the meta block collided with the site name on a narrow card. Both views
   on one card is the point: "how does it look on a phone" is the second question every
   client asks and it should never cost a click. */
.card-phone {
  position: absolute; right: 14px; bottom: 14px;
  width: 58px; height: auto; aspect-ratio: 1 / 1.7;
  object-fit: cover; object-position: top center;
  border-radius: 7px; border: 2px solid var(--bg);
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.28);
}
.card-meta { display: grid; gap: 3px; padding: var(--s4); }
.card-meta b { font-family: var(--display-font); font-size: 1.02rem; letter-spacing: var(--display-tracking); }
.card-meta .muted { font-size: 0.84rem; }
.card-theme {
  justify-self: start; margin-top: 6px;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.74rem; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.card-site--new {
  display: grid; place-items: center; gap: 6px;
  min-height: 260px; padding: var(--s5);
  border-style: dashed; box-shadow: none; text-align: center;
}
.card-site--new .plus { font-size: 2.4rem; line-height: 1; color: var(--accent); }
.card-site--new b { font-family: var(--display-font); font-size: 1.15rem; }
.card-site--new .muted { font-size: 0.86rem; max-width: 26ch; }

.st {
  font-style: normal; font-size: 0.76rem; font-weight: 600;
  display: inline-flex; align-items: center; gap: 5px;
}
.st::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: currentColor; }
.st--live { color: var(--accent); }
.st--waiting { color: var(--muted); }

/* ---- one website ---- */

.site-view { display: grid; gap: var(--s5); grid-template-columns: 1fr; margin-bottom: var(--s5); }
@media (min-width: 1040px) { .site-view { grid-template-columns: minmax(0, 1fr) 290px; } }
.site-shot {
  margin: 0; padding: var(--s4);
  background: var(--bg); border: 1px solid var(--line); border-radius: 16px;
}
.site-shot img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
.site-shot[data-view="phone"] img { max-width: 300px; margin-inline: auto; }
.site-side { display: grid; gap: var(--s3); align-content: start; }
.tile-btn {
  display: grid; gap: 2px; text-align: left;
  padding: 14px 16px; min-height: 44px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  color: var(--fg); text-decoration: none; font: inherit; cursor: pointer;
}
.tile-btn:hover { border-color: var(--accent); }
.tile-btn b { font-size: 0.95rem; }
.tile-btn .muted { font-size: 0.82rem; }
.steps--flat li { border-top: 1px solid var(--line); padding: 12px 0 12px 0; }
.steps--flat li::before { content: none; }
.steps--flat { counter-reset: none; }
.steps--flat li { padding-left: 0; }

/* ---- segmented round control ---- */

.seg-round { display: inline-flex; align-items: center; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.seg-r {
  min-height: 36px; padding: 6px 14px;
  border: 0; border-radius: 999px;
  background: transparent; color: var(--muted);
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.seg-r:hover { color: var(--fg); }
.seg-r[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); }
.cal-month { padding-inline: 10px; font-size: 0.9rem; min-width: 10ch; text-align: center; }

/* ---- calendar ---- */

.cal-wrap { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .cal-wrap { grid-template-columns: minmax(0, 1fr) 300px; } }
.cal { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: var(--s4); }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow span { font-size: 0.72rem; color: var(--muted); text-align: center; font-weight: 600; }
.cal-d {
  aspect-ratio: 1; min-height: 44px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.cal-d.is-open:hover { border-color: var(--accent); color: var(--accent); }
.cal-d.is-none { color: var(--muted); opacity: 0.45; cursor: default; border-style: dashed; }
.cal-d[aria-current="date"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.cal-pad { aspect-ratio: 1; }
.cal-key { display: flex; gap: var(--s4); flex-wrap: wrap; margin: var(--s4) 0 0; font-size: 0.8rem; color: var(--muted); }
.cal-key .k { width: 11px; height: 11px; border-radius: 999px; display: inline-block; margin-right: 5px; vertical-align: -1px; }
.k--open { border: 1px solid var(--line); background: var(--bg); }
.k--yours { background: var(--accent); }
.k--none { border: 1px dashed var(--line); background: var(--surface-2); }
.cal-side { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: var(--s4); align-self: start; }
.cal-side-h { font-size: 1rem; margin: 0 0 var(--s3); }
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin-bottom: var(--s4); }
.time {
  min-height: 44px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg);
  font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.time:hover { border-color: var(--accent); color: var(--accent); }
.time[aria-pressed="true"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }

/* ---- analytics ---- */

.strip-round {
  display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  background: var(--line); border: 1px solid var(--line); border-radius: 16px;
  overflow: hidden; margin-bottom: var(--s5);
}
.an-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .an-grid { grid-template-columns: repeat(3, 1fr); } .an-span-2 { grid-column: span 2; } .an-span-3 { grid-column: span 3; } }
.chart--empty { border-bottom: 1px solid var(--line); }
.pagemap { display: flex; gap: var(--s3); flex-wrap: wrap; align-items: flex-end; min-height: 120px; }
.pm { display: block; border-radius: 10px; background: var(--surface-2); border: 1px dashed var(--line); }
.pm--lg { width: 130px; height: 100px; } .pm--md { width: 92px; height: 72px; } .pm--sm { width: 64px; height: 52px; }
.heat { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.heat span { height: 120px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); display: block; }

/* ---- settings / account choices: buttons, never fields ---- */

.opt-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; margin-bottom: var(--s5); }
@media (min-width: 720px) { .opt-grid { grid-template-columns: repeat(2, 1fr); } }
.opt {
  display: grid; gap: 3px; text-align: left;
  padding: 16px 18px; min-height: 44px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px;
  color: var(--fg); text-decoration: none; font: inherit; cursor: pointer;
}
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.opt b { font-size: 0.95rem; }
.opt .muted { font-size: 0.84rem; }

/* ---- messages ---- */

.msg {
  position: fixed; right: 16px; bottom: 16px; z-index: 75;
  width: min(380px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.msg-top { display: flex; align-items: center; gap: var(--s2); padding: 12px 14px; border-bottom: 1px solid var(--line); }
.msg-h { font-family: var(--display-font); font-size: 0.98rem; }
.msg-about { font-size: 0.8rem; color: var(--muted); margin-right: auto; }
.msg-body { flex: 1 1 auto; overflow-y: auto; padding: var(--s4); }
.msg-note { margin: 0; padding: 12px 14px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); background: var(--surface); }

/* ---- the preview door on the login page ---- */
.preview-in .hint, .preview-in p { font-size: 0.86rem; }
.preview-in .btn { width: 100%; }
/* On a phone the tabs are the thing that matters in the bar; the account name is not.
   Dropping it to the avatar gives the 4 tabs room to sit without scrolling. */
@media (max-width: 620px) {
  .acct-name, .acct-caret { display: none; }
  .acct-btn { padding: 5px; border-color: transparent; }
}

/* ---- the view bar: every order, and every one of them reversible ---- */

.viewbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4);
  padding: 10px var(--s4);
  background: var(--bg); border: 1px solid var(--line); border-radius: 999px;
  margin-bottom: var(--s5);
}
@media (max-width: 720px) { .viewbar { border-radius: 16px; } }
.viewbar-set { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.viewbar-h {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.11em; text-transform: uppercase; color: var(--muted);
}
.viewbar .input--sm { border-radius: 999px; min-height: 36px; }
.viewbar-now { font-size: 0.82rem; color: var(--muted); font-weight: 600; }
/* The arrow says which way it points now; the label beside it says what that MEANS,
   because an arrow on its own is a guess ("newest first" or "oldest first"?). */
.dir-i {
  width: 0; height: 0; display: block;
  border-inline: 5px solid transparent;
  border-top: 7px solid currentColor;
}
[data-dir][aria-pressed="true"] .dir-i { border-top: 0; border-bottom: 7px solid currentColor; }
[data-dir][aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }

.group-h {
  font-size: 1rem; margin: var(--s5) 0 var(--s3);
  display: flex; align-items: baseline; gap: 10px;
}
.group-h:first-child { margin-top: 0; }
.group-h .muted { font-size: 0.8rem; font-weight: 400; }
.cards + .group-h { margin-top: var(--s6); }

.card-client {
  font-size: 0.78rem; color: var(--muted); font-weight: 600;
}
.card-row { display: flex; align-items: center; gap: var(--s3); margin-top: 8px; flex-wrap: wrap; }
.card-row .card-theme { margin-top: 0; }
.card-when { font-size: 0.78rem; }

/* ---- screens live in one page; the picker is embedded, never navigated to ---- */
.screen[hidden] { display: none !important; }
.tab[aria-current="true"] { background: var(--accent); color: var(--accent-fg); }
.rail-b[aria-current="true"] { background: var(--surface-2); color: var(--fg); }
.rail-site { width: 100%; text-align: left; font: inherit; cursor: pointer; background: transparent; border: 0; }
.card-site { width: 100%; text-align: left; font: inherit; cursor: pointer; }

/* Embedded in the dashboard: no chrome of its own, and the stage takes the whole frame. */
[data-embed] .site-head,
[data-embed] .site-foot,
[data-embed] .panel { display: none !important; }
[data-embed] body { padding-top: 0; }
[data-embed] .stage { height: 100dvh; border-top: 0; }
[data-embed] .lab[data-dock="left"], [data-embed] .lab[data-dock="right"] { top: 0; }
[data-embed] section:not(.stage) { display: none; }

/* ==================================================== the dashboard, 2026-09-16
   Three changes, all from one brief: Home and Websites are 1 screen, the theme lab
   moved into the left rail so the demo gets the whole stage, and the empty space came
   out of everywhere. The density numbers below are the whole of that last one — the
   dashboard was built on the marketing site's rhythm, which is generous on purpose and
   wrong for a tool you keep open all day. */

.on-app .stagearea {
  --pad-x: max(14px, 1.7vw);
  --pad-t: var(--s4);
  padding: var(--pad-t) var(--pad-x) var(--s6);
}
.screen-head--tight { align-items: center; margin-bottom: var(--s4); }
.on-app .viewbar { margin-bottom: var(--s4); }
.on-app .cards { gap: var(--s4); }
.on-app .group-h { margin: var(--s4) 0 var(--s3); }
.on-app .panel-card { padding: var(--s4); }
.on-app .panel-card-head { margin-bottom: var(--s3); }
.on-app .an-grid, .on-app .opt-grid { gap: var(--s3); }
.on-app .strip-round { margin-bottom: var(--s4); }
.on-app .cal-wrap { gap: var(--s4); }

/* ---- the picked website, on the same screen as the list ---- */

.now {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: var(--s4);
  margin-bottom: var(--s4);
}
.now-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3);
}
.now-id { min-width: 0; }
.now-id h2 { font-size: clamp(1.1rem, calc(0.95rem + 0.6vw), 1.35rem); margin: 0 0 2px; }
.now-id p { margin: 0; font-size: 0.85rem; }
.now-ctl { display: flex; align-items: center; gap: var(--s2); flex: none; }
.now-body { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 1040px) { .now-body { grid-template-columns: minmax(0, 1fr) 290px; } }
.now-changes { margin-top: var(--s2); }
.now-changes h3 { font-size: 0.95rem; margin: 0 0 var(--s2); }
.now-changes .steps { margin: 0; }

/* 3 ways to look at a website, and only 1 of them is a picture. */
.site-shot { margin: 0; }
.site-demo {
  display: none;
  width: 100%;
  height: min(64vh, 580px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.site-shot[data-view="demo"] .site-demo { display: block; }
.site-shot[data-view="demo"] img { display: none; }
.site-side { display: grid; gap: var(--s2); align-content: start; }

/* ---- the 7 steps of a new website ---- */

.newbar {
  height: 6px; margin: 0 0 6px;
  background: var(--surface-2); border-radius: 999px; overflow: hidden;
}
.newbar-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
@media (prefers-reduced-motion: no-preference) { .newbar-fill { transition: width .3s ease; } }
.newbar-say { margin: 0 0 var(--s4); font-size: 0.85rem; }

.steps-big { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s3); }
.step-big {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3);
  align-items: start; padding: var(--s4);
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
@media (min-width: 780px) { .step-big { grid-template-columns: auto 1fr auto; align-items: center; } }
.step-num {
  width: 34px; height: 34px; flex: none;
  display: grid; place-content: center;
  border-radius: 999px; background: var(--surface-2);
  font-weight: 700; font-size: 0.9rem;
}
.step-txt { min-width: 0; }
.step-txt h3 { font-size: 1rem; margin: 0 0 2px; }
.step-txt p { margin: 0; font-size: 0.85rem; max-width: 62ch; }
.step-do { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; grid-column: 1 / -1; }
@media (min-width: 780px) { .step-do { grid-column: auto; justify-content: flex-end; } }
.step-big[data-step-blocked] { box-shadow: inset 3px 0 0 var(--muted); }
.step-big[data-step-blocked] .step-num { background: var(--bg); }

/* ---- the picker screen: the demo, and nothing else ----
   Shea: "the demo sites will take up the entire available space." So the screen breaks
   out of the stage area's padding entirely and the stage is the viewport minus the top
   bar. Every control is already on screen, in the rail. */
.screen--full {
  margin: calc(var(--pad-t) * -1) calc(var(--pad-x) * -1) calc(var(--s6) * -1);
}
.stage--app {
  height: calc(100vh - 62px);
  height: calc(100dvh - 62px);
  min-height: 420px;
  border-top: 0;
}
/* The rail is wider while it is holding the lab: 3 columns of colour swatches do not
   fit in a 264px menu, and a swatch you cannot see is not a choice. */
@media (min-width: 900px) {
  body[data-screen-now="picker"] .app { grid-template-columns: 332px 1fr; }
  body[data-screen-now="picker"] .rail { padding: var(--s3); gap: var(--s3); }
}
.rail-mid { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: var(--s2); }
.rail-mid[hidden] { display: none; }

/* The router moves focus to the new screen's heading so a screen reader is told what
   just changed. That focus is not the person's doing, so it should not draw a ring —
   a box around the title every time you press a tab reads as a bug. */
.screen-head h1[tabindex="-1"]:focus,
.screen-head h2[tabindex="-1"]:focus { outline: none; }

/* The measure that keeps prose readable is wrong for a list of full-width cards. */
.steps-big, .on-app .newbar, .on-app .newbar-say { max-width: none; }
.newbar { background: var(--line); }

/* The rail is sticky and exactly one viewport tall, so on a long screen its column ran
   out halfway down and the menu appeared to float in the middle of the page. The column
   itself is painted by the frame; the rail just sits in it. */
@media (min-width: 900px) {
  .app { position: relative; }
  .app::before {
    content: "";
    position: absolute; inset: 0 auto 0 0;
    width: 264px;
    background: var(--bg);
    border-right: 1px solid var(--line);
  }
  body[data-screen-now="picker"] .app::before { width: 332px; }
  .rail { background: transparent; border-right: 0; position: sticky; z-index: 1; }
}

/* 4 websites in a 3-column grid left a whole empty row. The cards are screenshots and
   they read perfectly well narrower, so the grid fits as many as the width allows. */
.on-app .cards { grid-template-columns: repeat(auto-fill, minmax(min(262px, 100%), 1fr)); }

/* ================================================= one menu, two places (2026-09-16)
   Shea: "always make the side menu and top menu feel the same, just adding or taking
   away buttons." There were 3 visual languages in one frame — outlined pills along the
   top, unbordered rows with thumbnails down the side, and a dark tool panel where the
   rail went on the picker. One button now. Same radius, same border, same height, same
   pressed state; the top bar and the rail differ only in which buttons they hold. */

.tabs .tab,
.rail-b,
.rail-site {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-weight: 600;
}
.tabs .tab:hover,
.rail-b:hover,
.rail-site:hover { background: var(--surface-2); color: var(--fg); border-color: var(--line); }

.tabs .tab[aria-current],
.rail-b[aria-current],
.rail-site.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-fg);
}
.rail-site.is-on b, .rail-site.is-on em, .rail-site.is-on .st { color: var(--accent-fg); box-shadow: none; }
.rail-site.is-on .st::before { background: currentColor; }

.rail-sites { gap: 6px; }
.rail-site { padding: 6px 14px 6px 6px; min-height: 52px; }
.rail-site img { border-radius: 999px; width: 38px; height: 38px; object-fit: cover; }
.rail-plus { width: 38px; height: 38px; border-radius: 999px; }

/* The back control. 1 place, every screen but Home, naming where it goes. */
.tab--back { flex: none; margin-right: var(--s2); }
.tab--back[hidden] { display: none; }
@media (max-width: 860px) { .tab--back span { display: none; } .tab--back { padding: 8px; min-width: 44px; } }

/* ---------------------------------------------- the theme lab, in the menu's language
   The dark palette was right when the lab floated OVER a demo: a tool that wore the
   theme it was previewing could not be told apart from it. In the rail it is over
   nothing — it IS the menu — so it wears the menu's tokens. The floating version on the
   public picker page keeps the dark palette, because there it is still on top. */

.lab--rail {
  flex: 1 1 auto;
  background: transparent;
  color: var(--fg);
  border: 0;
  font-family: inherit;
  font-size: 0.85rem;
}
.lab--rail .lab-body { padding: 0; gap: var(--s4); }
.lab--rail .lab-set legend {
  color: var(--muted);
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0 0 6px;
}
.lab--rail .lab-sub { margin: 6px 0; font-size: 0.78rem; color: var(--muted); }
.lab--rail .lab-hint { color: var(--muted); font-size: 0.78rem; }
.lab--rail .lab-note { color: var(--fg); font-size: 0.8rem; }
.lab--rail .lab-grid, .lab--rail .lab-sw-grid { gap: 6px; }

.lab--rail .chip > span {
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 12px;
  font-size: 0.78rem; padding: 8px 10px;
}
.lab--rail .chip em { color: var(--muted); font-size: 0.72rem; }
.lab--rail .chip b { color: var(--muted); font-size: 0.72rem; }
.lab--rail .chip:hover > span { background: var(--surface-2); color: var(--fg); }
.lab--rail .chip input:checked + span {
  background: var(--accent); border-color: var(--accent); color: var(--accent-fg);
  box-shadow: none;
}
.lab--rail .chip input:checked + span em,
.lab--rail .chip input:checked + span b { color: var(--accent-fg); opacity: 0.85; }
.lab--rail .chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.lab--rail .sw i { border-color: rgb(0 0 0 / 0.16); }
.lab--rail .chip--sw > span { padding: 7px; }

.lab--rail .lab-btn,
.lab--rail .lab-in {
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.82rem;
}
.lab--rail .lab-btn:hover { background: var(--surface-2); color: var(--fg); }
.lab--rail .lab-btn[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-fg); box-shadow: none;
}
.lab--rail .lab-btn--go { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.lab--rail .lab-btn--go:hover { filter: brightness(1.08); color: var(--accent-fg); }
.lab--rail .lab-in { border-radius: 12px; text-align: left; }
.lab--rail .lab-icon { color: var(--muted); }
.lab--rail .lab-icon:hover { background: var(--surface-2); color: var(--fg); }
.lab--rail .lab-icon[aria-pressed="true"] { color: var(--accent); }
.lab--rail .lab-pick { background: var(--surface); color: var(--fg); border: 1px solid var(--line); }
.lab--rail .lab-drop { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.lab--rail .lab-parts { }
.lab--rail .lab-parts li { color: var(--muted); font-size: 0.75rem; }
.lab--rail .lab-parts b { color: var(--fg); }
.lab--rail .lab-field > span { color: var(--muted); }
.lab--rail .lab-email { background: var(--bg); color: var(--fg); border-color: var(--line); }

/* What you are looking at, in words. The code used to sit in bold at the top of the
   panel with the words that explain it 400px below. */
.lab-chosen { display: grid; gap: 4px; padding: 10px; border-radius: 10px; }
.lab-chosen-h {
  margin: 0;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
}
.lab-chosen-name { margin: 0; font-weight: 700; font-size: 13px; line-height: 1.3; }
.lab-chosen-code { margin: 0 0 4px; font-size: 12px; display: flex; align-items: center; gap: 6px; }
.lab-chosen-code b { letter-spacing: 0.04em; }

.lab--rail .lab-chosen {
  border: 1px solid var(--line); background: var(--surface);
  padding: var(--s3); border-radius: 14px;
}
.lab--rail .lab-chosen-h { color: var(--muted); }
.lab--rail .lab-chosen-name { color: var(--fg); font-size: 0.9rem; }
.lab--rail .lab-chosen-code { color: var(--muted); }
.lab--rail .lab-chosen-code b { color: var(--fg); }

/* Progressive disclosure, per Polaris. Everything an expert wants is here; a first-timer
   never has to walk past it. */
.lab-det > summary {
  cursor: pointer; list-style: none;
  padding: 10px 14px; min-height: 44px;
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  font-size: 0.8rem; font-weight: 600;
}
.lab-det > summary::-webkit-details-marker { display: none; }
.lab-det > summary::after { content: "+"; margin-left: auto; font-weight: 700; }
.lab-det[open] > summary::after { content: "\2212"; }
.lab-det > summary:hover { background: var(--surface-2); color: var(--fg); }
.lab-det[open] > summary { margin-bottom: var(--s3); }
.lab-det--more { margin-top: var(--s3); display: grid; gap: var(--s3); }
.lab--rail .lab-det ul, .lab--rail .lab-det .lab-parts { margin-top: 8px; }

/* ------------------------------------------------------- the 5 questions, 1 at a time */

/* p and li carry the reading measure site-wide, which is right for prose and wrong for
   a stack of full-width cards — the questions were 660px inside a 1150px column while
   the brief below them ran the full width. */
.flow { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; gap: var(--s3); max-width: none; }
.flow > li, .brief li, .waiting, .pick, .pick .muted { max-width: none; }
.fstep {
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--surface); overflow: hidden;
}
.fstep[data-open] { border-color: var(--accent); }
.fstep-head {
  width: 100%; display: flex; align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4); min-height: 64px;
  text-align: left; background: none; border: 0; cursor: pointer; color: inherit;
}
.fstep-head:hover { background: var(--surface-2); }
.fstep-n {
  width: 32px; height: 32px; flex: none;
  display: grid; place-content: center;
  border-radius: 999px; background: var(--surface-2);
  font-weight: 700; font-size: 0.85rem;
}
.fstep[data-state="done"] .fstep-n { background: var(--accent); color: var(--accent-fg); }
.fstep-t { display: grid; gap: 1px; min-width: 0; flex: 1 1 auto; }
.fstep-t b { font-size: 0.98rem; }
.fstep-t .muted { font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fstep-head .st { flex: none; }
.fstep-body { padding: 0 var(--s4) var(--s4); display: grid; gap: var(--s3); }
.fstep-body > p { margin: 0; font-size: 0.9rem; max-width: 66ch; }
.fstep-foot { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }

.pick-grid {
  display: grid; gap: var(--s2);
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
}
.pick {
  display: grid; gap: 2px; align-content: start;
  padding: var(--s3); min-height: 84px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--fg);
  text-align: left; cursor: pointer; font: inherit;
}
.pick:hover { background: var(--surface-2); }
.pick b { font-size: 0.88rem; font-weight: 600; }
.pick .muted { font-size: 0.78rem; line-height: 1.35; }
.pick-i { width: 22px; height: 22px; margin-bottom: 4px; color: var(--muted); }
.pick[aria-pressed="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-fg);
}
.pick[aria-pressed="true"] .muted, .pick[aria-pressed="true"] .pick-i { color: var(--accent-fg); opacity: 0.88; }

.brief .keyvals li { align-items: flex-start; }
.brief .keyvals b .muted { font-weight: 400; }
.brief .fstep-foot { margin-top: var(--s3); }

/* ---- the line that says what is waiting on you ---- */
.waiting {
  display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap;
  margin: 0 0 var(--s4); padding: var(--s3) var(--s4);
  border: 1px solid var(--accent); border-radius: 999px;
  background: var(--surface); font-size: 0.88rem;
}
.waiting[hidden] { display: none; }
.waiting > span { color: var(--muted); }
.waiting .btn { margin-left: auto; }

.keyvals--2 { display: grid; grid-template-columns: 1fr; }
@media (min-width: 720px) { .keyvals--2 { grid-template-columns: 1fr 1fr; column-gap: var(--s5); } }
.opt-grid--off .opt { opacity: 0.55; cursor: not-allowed; }

/* The back control costs 44px of a 390px top bar, and the row was already full. The
   account control is the thing to drop: Account is a button in the left menu on every
   screen, and signing out lives on the Account screen rather than only in that menu. */
@media (max-width: 560px) {
  .app-top .acct { display: none; }
}

/* ------------------------------------------------------- the back control, made loud
   Shea: "make the back button more visible, and match it with the style of the rest of
   the website better." It was a bordered pill the same weight as the 3 tabs beside it,
   which is exactly how you lose a control among its neighbours. It is the site's own
   button now — the same .btn shape used on every page — filled rather than outlined,
   with a real arrow that moves when you reach for it, and it says where it goes. */
.backbtn {
  flex: none;
  margin-right: var(--s3);
  gap: 8px;
  padding: 8px 18px 8px 14px;
  min-height: 44px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--fg);
  font-size: 0.92rem;
  font-weight: 600;
}
.backbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.backbtn:hover .back-i { color: inherit; }
.backbtn[hidden] { display: none; }
.back-i { width: 19px; height: 19px; flex: none; color: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .back-i { transition: transform 160ms ease; }
  .backbtn:hover .back-i { transform: translateX(-3px); }
}
.backbtn b { font-weight: 700; }
/* On a phone the row is full, so it keeps the destination and drops the preposition:
   "← Home" still says where, where a bare arrow makes you guess. */
@media (max-width: 860px) {
  .backbtn { padding: 8px 14px 8px 11px; margin-right: var(--s2); }
  .back-word { display: none; }
}

/* ---- the notes box, and sending the request ---- */

.notes {
  width: 100%; min-height: 148px; resize: vertical;
  font: inherit; font-size: 0.95rem; line-height: 1.5;
  padding: var(--s3) var(--s4);
  border-radius: 14px;
}
.notes-say { margin: 8px 0 0; font-size: 0.82rem; }

.sendbox {
  margin-top: var(--s4); padding-top: var(--s4);
  border-top: 1px solid var(--line);
  display: grid; gap: var(--s3);
}
.sendbox-who { margin: 0; font-size: 0.88rem; color: var(--muted); }
.sendbox-who b { color: var(--fg); }
.sendbox-phone {
  display: grid; gap: var(--s2);
  padding: var(--s3);
  border: 1px solid var(--accent); border-radius: 14px;
  background: var(--bg);
  max-width: 420px;
}
.sendbox-phone[hidden] { display: none; }
.sendbox-phone .field { margin: 0; }
.keyvals-wide { display: block !important; }
.keyvals-wide b { display: block; margin-top: 4px; font-weight: 400; white-space: pre-wrap; }

/* The lab's save line: the receipt for the one press in that panel that commits. */
.lab-saved { margin: 0; font-size: 12px; min-height: 1em; }
.lab--rail .lab-saved { color: var(--muted); font-size: 0.78rem; }
.lab--rail .lab-saved[data-on] { color: var(--accent); font-weight: 600; }

/* The lab's save, pinned. It is the only press in that panel that commits anything, and
   it was 900px down a scrolling column — which is the same as not being there. */
.lab--rail .lab-chosen {
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin-top: auto;
  box-shadow: 0 -10px 18px -12px rgb(0 0 0 / 0.25);
}
.lab--rail .lab-body { display: flex; flex-direction: column; }

/* ============================ the picked website, cut back (2026-09-16)
   1 primary action, 1 secondary, the status, and what is happening. Everything else is
   under the disclosure. Shea: "there is too much going on when we go to a website we
   already have." */

.now-id p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.now-stage { position: relative; min-width: 0; }
/* The picture of the site is the way into the site — over the screenshot only, because
   over the demo it would sit on top of a page you are meant to be able to scroll. */
.now-open {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  border-radius: 10px;
  text-decoration: none;
  background: rgb(10 14 20 / 0);
  opacity: 0;
}
.now-open span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; min-height: 44px;
  border-radius: 999px;
  background: var(--accent); color: var(--accent-fg);
  font-weight: 700; font-size: 0.92rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.28);
}
.now-stage:hover .now-open,
.now-open:focus-visible { opacity: 1; background: rgb(10 14 20 / 0.34); }
@media (prefers-reduced-motion: no-preference) { .now-open { transition: opacity 160ms ease, background 160ms ease; } }
/* A hover affordance is not an affordance on a touch screen, and the button below it
   already says the same thing — so on a phone the overlay stays out of the way. */
@media (hover: none) { .now-open { display: none; } }
.site-shot[data-view="demo"] ~ .now-open { display: none; }

.now-primary { justify-content: center; font-size: 0.98rem; }
.site-side .btn { width: 100%; }
.now-changes h3 { font-size: 0.9rem; margin: var(--s3) 0 var(--s2); }
.now-changes .steps li { font-size: 0.86rem; }

/* One disclosure for everything that is not one of the 4 things people came to do. */
.more { margin-top: var(--s3); border-top: 1px solid var(--line); padding-top: var(--s3); }
.more > summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg); color: var(--muted);
  font-size: 0.86rem; font-weight: 600;
}
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after { content: "+"; font-weight: 700; }
.more[open] > summary::after { content: "\2212"; }
.more > summary:hover { background: var(--surface-2); color: var(--fg); }
.more-body { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding-top: var(--s3); }
.more-body p { margin: 0; font-size: 0.85rem; max-width: 52ch; }

/* A button that behaves like a link, for a control inside a sentence. */
.linkish {
  appearance: none; background: none; border: 0; padding: 0;
  font: inherit; color: var(--accent); font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
.linkish:hover { text-decoration-thickness: 2px; }

/* The header keeps its close control at the top right whatever the name does, and the
   separators between name / status / host are drawn rather than typed — a literal
   middot beside an element that is hidden for clients left a dangling one. */
.now-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.now-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.now-line > *[hidden] { display: none; }
.now-line > * + *:not([hidden])::before {
  content: "\00b7"; margin-right: 8px; color: var(--muted);
}
/* Below the width where the panel is 1 column, the button sits directly under the
   picture — an overlay saying the same thing 8px higher is noise. */
@media (max-width: 1039px) { .now-open { display: none; } }
/* Wrapped, a drawn separator lands at the start of the next line. Narrow enough for that
   to happen, the items carry their own spacing and the separators go. */
@media (max-width: 560px) {
  .now-line > * + *:not([hidden])::before { content: ""; margin: 0; }
  .now-line { gap: 4px 12px; }
}

/* ================== the single website, without the giant thumbnail (2026-09-17)
   Shea: "get rid of the giant thumbnail." It was the tallest thing on the screen and it
   told you nothing the card you pressed to get here had not already told you. What sits
   there now is the thing you cannot get anywhere else — this site's own numbers. */

.now-head {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: var(--s3); align-items: center;
}
.now-thumb {
  width: 96px; height: 60px; object-fit: cover; object-position: top;
  border-radius: 10px; border: 1px solid var(--line); flex: none; display: block;
}
.now-acts { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: flex-end; }
.now-x { flex: none; }
/* Narrow, the 2 actions take their own row under the identity — but the close control
   stays pinned top-right rather than being pushed onto a third row by the wrap. */
@media (max-width: 860px) {
  .now-head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .now-thumb { grid-row: 1; grid-column: 1; width: 64px; height: 42px; }
  .now-id { grid-row: 1; grid-column: 2; }
  .now-x { grid-row: 1; grid-column: 3; align-self: start; }
  .now-acts { grid-row: 2; grid-column: 1 / -1; justify-content: stretch; }
  .now-acts .btn { flex: 1 1 auto; justify-content: center; }
}

.now-body { grid-template-columns: 1fr; }
@media (min-width: 900px) { .now-body { grid-template-columns: 1.35fr 1fr; } }
.now-panel { min-width: 0; }
.now-sub { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.now-sub h3 { font-size: 0.95rem; margin: 0; }

/* 4 figures, compact. The Analytics screen is the same numbers with room to breathe. */
.nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 560px) { .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.num { background: var(--bg); padding: var(--s3); min-width: 0; }
.num-k { display: block; font-family: "Courier New", ui-monospace, monospace; font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.num-v { display: block; font-family: var(--display-font); font-size: 1.4rem; line-height: 1.1; margin: 3px 0 1px; }
.num-n { display: block; font-size: 0.72rem; color: var(--muted); }
.nums-say { margin: var(--s2) 0 0; font-size: 0.8rem; }

.more-body--stack { display: grid; gap: var(--s3); justify-items: start; }
.more-body--stack .now-stage { width: 100%; }

/* ---------------------------------------------------------------- the admin screen */

.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.table th, .table td { text-align: left; padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th {
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  border-bottom-width: 2px; white-space: nowrap;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface); }
.on-app .tablewrap { border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }

.req .keyvals { margin-top: var(--s3); }

.wire { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s2); max-width: none; }
.wire-row {
  display: grid; grid-template-columns: auto 1fr; gap: var(--s3);
  padding: var(--s4); max-width: none;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.wire-dot { width: 12px; height: 12px; border-radius: 999px; margin-top: 5px; flex: none; }
/* Green is not used: nothing here is finished. A dashboard whose own status panel lies
   about itself is worse than not having one. */
.wire-dot--browser { background: var(--accent); }
.wire-dot--half { background: var(--muted); }
.wire-dot--no { background: var(--line); border: 1px solid var(--muted); }
.wire-body b { display: block; font-size: 0.95rem; }
.wire-body p { margin: 3px 0 0; font-size: 0.85rem; max-width: 78ch; }
.wire-next { color: var(--fg); }
.wire-next span { color: var(--muted); font-weight: 600; }

/* The rail's Add a website row outranks whichever site is open while you are on the
   new-website screen — it is where you are, and it says so. */
.rail-site--add.is-on b { color: var(--accent-fg); }
.rail-site--add.is-on .rail-plus { border-style: solid; border-color: var(--accent-fg); color: var(--accent-fg); }
/* Grid items stretch by default, so both panels were running 94px past their content and
   leaving a hole above the disclosure. */
.now-body { align-items: start; }
.now-panel > :last-child { margin-bottom: 0; }
.now-panel .steps { margin-bottom: 0; }


/* ================================================================ compaction
   2026-10-20, Shea: "nothing doubled, nothing takes up more space than it needs."
   The global section padding is for the marketing pages; inside the app it was landing
   on every screen and every card, adding 40-60px of nothing above each heading. */

body.on-app section.screen { padding-block: 0; }
body.on-app .screen section:not(.panel-card) { padding-block: 0; }
body.on-app section.panel-card { padding: var(--s4); }
body.on-app .panel-card + .panel-card { margin-top: var(--s3); }
.on-app .screen-head { margin-bottom: var(--s3); }
.on-app .stagearea { padding-top: var(--s4); }

/* The rail has "Add a website" wherever it is visible; the header button is for phones. */
@media (min-width: 900px) { .add-top { display: none; } }

.card-meta { gap: 2px; padding: var(--s3) var(--s4); }
.card-row { margin-top: 4px; flex-wrap: nowrap; min-width: 0; gap: var(--s2); }
.card-row .card-theme { flex: none; }
.card-when { min-width: 0; overflow-wrap: anywhere; }
.rail-site em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-site > span { min-width: 0; }

/* One-row footer: logo, the one link the header does not carry, the line. */
.site-foot { padding-block: var(--s4); }
.foot-row { display: flex; align-items: center; gap: var(--s2) var(--s5); flex-wrap: wrap; }
.foot-row > a:not(.logo) { color: var(--fg); text-decoration: none; }
.foot-row > .muted { margin-left: auto; font-size: 0.85rem; }

.auth { padding: clamp(18px, 3vw, 28px); }
@media (max-width: 719px) { .strip-round { border-radius: 16px; } }
body.on-app .formnote + .panel-card, body.on-app .panel-card + .formnote { margin-top: var(--s3); }
/* The calendar: square days were 84px across on a laptop. Cap the height, keep 44px taps. */
.cal-d, .cal-pad { aspect-ratio: auto; height: 44px; }
.cal-dow, .cal-grid { gap: 4px; }
.cal-book { display: grid; gap: var(--s2); margin-top: var(--s3); }
.cal-book .field { margin: var(--s1) 0 0; }
.cal-book [hidden] { display: none; }
.cal-book-when { margin: 0; }
.rail-site--add em { font-style: normal; font-size: 0.78rem; color: var(--muted); }
.cal-book .input { margin-bottom: 0; }

/* ================================================================ phone
   2026-10-24, Shea: "build out the mobile version so I can view it from my phone."
   Measured at 390 and 320 before this block: 36px tap targets, 10.9-11.8px labels, a
   14px select (iOS zooms into it), a 3-row filter bar, a pill-shaped strip that went
   oval when it wrapped, an empty grey cell in the numbers, and the admin tabs 39px past
   a 320 screen. Each rule below answers one of those. */

/* Every tap target 44px wherever there is no mouse. */
@media (hover: none), (max-width: 719px) {
  .seg-r, .rnd--sm, .linkish, .viewbar .input--sm { min-height: 44px; }
  .rnd--sm { width: 44px; height: 44px; }
  .seg-r { padding-inline: 14px; }
  .linkish { display: inline-flex; align-items: center; }
  .msg .rnd, .now-close { width: 44px; height: 44px; }
  .foot-row > a:not(.logo) { min-height: 44px; display: inline-flex; align-items: center; }
  .auth-alt a { display: inline-block; padding-block: 12px; margin-block: -12px; }
}

@media (max-width: 719px) {
  /* Nothing a person reads under 12px; no field under 16px. */
  .viewbar-h, .rail-h, .cal-dow span, .card-theme, .num-k, .num-n, .stat-k, .stat-n { font-size: 0.75rem; }
  input, select, textarea, .input, .input--sm, .lab-in { font-size: 16px; }
  [data-cal-prev], [data-cal-next] { min-width: 44px; justify-content: center; }

  /* The waiting strip: a card, not a pill, once it wraps. */
  .waiting { border-radius: 14px; padding: var(--s3); }
  .waiting .btn { margin-left: 0; width: 100%; }

  /* The filter bar: one swipe row instead of three stacked rows. */
  .viewbar {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    gap: var(--s3); padding: 6px var(--s2);
    border-radius: 999px; scroll-snap-type: x proximity;
  }
  .viewbar::-webkit-scrollbar { display: none; }
  .viewbar-set { flex-wrap: nowrap; flex: none; scroll-snap-align: start; }
  .viewbar-set + .viewbar-set { padding-left: var(--s3); border-left: 1px solid var(--line); }

  /* Numbers: always 2 across, and an odd last tile takes the full row. */
  .strip-round { grid-template-columns: 1fr 1fr; }
  .strip-round > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .stat { padding: var(--s3); }
  .stat-v { font-size: 1.4rem; }

  /* A row of segment buttons scrolls inside itself rather than pushing the page wider. */
  .seg-round { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .seg-round::-webkit-scrollbar { display: none; }
  .seg-round > * { flex: none; }

  /* Messages: a bottom sheet clear of the home bar. */
  .msg {
    left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px));
    bottom: calc(8px + env(safe-area-inset-bottom, 0px)); width: auto; max-height: 72vh;
  }

  /* The theme lab leaves more of the demo showing. */
  .lab[data-dock="left"], .lab[data-dock="right"], .lab { max-height: 46vh; }
}

/* The top bar on a phone: labelled tabs, because three bare icons don't say "Book a call".
   The mark goes: it only repeats the Home tab beside it. */
@media (max-width: 860px) {
  .tabs .tab { flex-direction: column; gap: 1px; padding: 5px 10px; min-width: 58px; min-height: 48px; border-radius: 14px; }
  .tabs .tab span { display: block; font-size: 0.75rem; line-height: 1.1; }
}
@media (max-width: 480px) {
  .app-mark { display: none; }
  .app-top { min-height: 64px; }
}

/* ================================================================ front page
   2026-10-24. The work does the visual talking: real screenshots on a cobalt ground,
   one entrance on load, then plain sections. Phone first: copy, then the picture. */

.home-hero { padding-block: clamp(20px, 4vw, 52px) var(--sec-tight); overflow: hidden; }
.home-hero-in { display: grid; gap: clamp(22px, 4vw, 48px); align-items: center; }
@media (min-width: 900px) { .home-hero-in { grid-template-columns: 1fr 1.05fr; } }
.home-hero h1 { font-size: clamp(2rem, calc(1.2rem + 3.4vw), 3.5rem); max-width: 14ch; margin-bottom: 0.32em; }
.home-hero .lead { max-width: 46ch; }
.home-hero .hero-actions { margin-top: var(--s5); }

.home-shot {
  position: relative; display: block; min-width: 0;
  aspect-ratio: 16 / 11; max-width: 100%;
  border-radius: 24px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--accent) 70%, #fff) 0%, transparent 55%),
    var(--accent);
  box-shadow: var(--shadow-lg);
}
.home-shot-desk {
  position: absolute; left: 7%; top: 9%; width: 82%; height: auto;
  border-radius: 10px; box-shadow: 0 18px 40px rgb(0 0 0 / 0.28);
}
.home-shot-phone {
  position: absolute; right: 6%; bottom: -6%; width: 25%; height: auto;
  border-radius: 16px; border: 4px solid #0f1113; box-shadow: 0 16px 34px rgb(0 0 0 / 0.35);
}
.home-shot-tag {
  position: absolute; left: 7%; bottom: 7%;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--bg); color: var(--fg); font-size: 0.82rem; font-weight: 600;
}
.pill-live { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 700; }
.pill-live::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: currentColor; box-shadow: 0 0 0 0 currentColor; animation: live-ping 2.4s ease-out infinite; }
@keyframes live-ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, currentColor 55%, transparent); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }

/* The one orchestrated moment: copy, then the picture, rising in once. */
@media (prefers-reduced-motion: no-preference) {
  .home-hero-copy > * { animation: rise 600ms var(--motion-ease) both; }
  .home-hero-copy > :nth-child(2) { animation-delay: 60ms; }
  .home-hero-copy > :nth-child(3) { animation-delay: 120ms; }
  .home-hero-copy > :nth-child(4) { animation-delay: 180ms; }
  .home-shot { animation: rise-t 750ms 160ms var(--motion-ease) both; }
  .home-shot-phone { animation: rise 750ms 380ms var(--motion-ease) both; }
}
@media (prefers-reduced-motion: reduce) { .pill-live::before { animation: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
/* Same entrance on the translate property, so it never fights a transform set later. */
@keyframes rise-t { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

.home-head { display: grid; gap: 4px; margin-bottom: var(--s4); }
.home-head h2 { margin: 0; }
.home-head p { margin: 0; }

/* Work: three across on a laptop, one swipe row on a phone with the next card peeking. */
.work-row { display: grid; gap: var(--s4); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.work {
  display: grid; grid-template-rows: auto 1fr; min-width: 0;
  background: var(--bg); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  color: var(--fg); text-decoration: none; box-shadow: var(--shadow);
  transition: transform 200ms var(--motion-ease), box-shadow 200ms var(--motion-ease);
}
@media (hover: hover) and (pointer: fine) { .work:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); } }
.work-shot { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.work-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.work-meta { display: grid; gap: 6px; align-content: start; padding: var(--s4); }
.work-meta b { font-family: var(--display-font); font-size: 1.08rem; letter-spacing: var(--display-tracking); }
.work-meta > span:not(.work-link) { color: var(--muted); font-size: 0.92rem; }
.work-link { color: var(--accent); font-weight: 600; font-size: 0.86rem; overflow-wrap: anywhere; }
@media (max-width: 899px) {
  .work-row {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: calc(-1 * max(20px, 5vw)); padding-inline: max(20px, 5vw); scroll-padding-inline: max(20px, 5vw);
    padding-bottom: 6px;
  }
  .work-row::-webkit-scrollbar { display: none; }
  .work { scroll-snap-align: start; }
}

/* How it goes: a real sequence, so it is numbered. */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 900px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); align-items: start; max-width: none;
  background: var(--surface); border-radius: 16px; padding: var(--s4); }
.steps3-n { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-fg); font: 700 1rem var(--display-font); }
.steps3 b { display: block; font-family: var(--display-font); font-size: 1.05rem; margin-bottom: 2px; }
.steps3 span:not(.steps3-n) { color: var(--muted); font-size: 0.93rem; }

/* Price beside what shipped. */
.home-plan-in { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .home-plan-in { grid-template-columns: 1fr 1.2fr; } }
.price-card { background: var(--fg); color: var(--bg); border-radius: 20px; padding: clamp(18px, 3vw, 28px); }
.price-card .eyebrow { color: color-mix(in oklab, var(--bg) 70%, transparent); }
.price-big { font-family: var(--display-font); font-size: clamp(2.4rem, 7vw, 3.2rem); line-height: 1; letter-spacing: -0.04em; margin: 0 0 var(--s4); }
.price-big span { font-family: var(--body-font); font-size: 0.95rem; letter-spacing: 0; margin-left: 6px; color: color-mix(in oklab, var(--bg) 72%, transparent); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; max-width: none; font-size: 0.95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 999px; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: calc(0.2em + 4px); width: 5px; height: 9px; border: solid var(--accent-fg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.shipped { background: var(--surface); border-radius: 20px; padding: clamp(18px, 3vw, 28px); min-width: 0; }
.shipped-list { list-style: none; margin: 0; padding: 0; display: grid; }
.shipped-list li { display: grid; grid-template-columns: 72px 1fr; gap: var(--s3); padding-block: 12px; border-top: 1px solid var(--line); max-width: none; font-size: 0.93rem; }
.shipped-list li:first-child { border-top: 0; padding-top: 4px; }
.shipped-list time { font-family: "Courier New", ui-monospace, monospace; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }

.home-cta h2 { max-width: 18ch; margin: 0; }
.home-cta .hero-actions { margin-top: var(--s4); }

/* Guests on the dashboard: the work, under the Start here card. */
.guest-work { margin-top: var(--s5); display: grid; gap: var(--s3); }
.guest-work h3 { margin: 0; }
.on-app .guest-work .work-row { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); grid-auto-flow: row; overflow: visible; margin-inline: 0; padding-inline: 0; }
@media (max-width: 899px) {
  .on-app .guest-work .work-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto;
    margin-inline: calc(-1 * max(16px, 2.2vw)); padding-inline: max(16px, 2.2vw); }
}
.on-app .stagearea { overflow-x: clip; }
.add-top[hidden] { display: none; }
/* The Start here card for guests: a button-sized card, not a 260px empty box. */
.card-site--new { min-height: 0; padding: var(--s4); display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: var(--s3); text-align: left; align-items: center;
  border: 2px solid var(--accent); background: var(--bg); }
.card-site--new .plus { grid-row: span 2; width: 44px; height: 44px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); display: grid; place-items: center; font-size: 1.6rem; }
.card-site--new b, .card-site--new .muted { margin: 0; }
.card-site--new { place-items: center start; justify-content: start; }

/* Ask for a change: two rows of buttons, an optional line, send. */
.req { display: grid; gap: var(--s2); margin-top: var(--s3); padding: var(--s4); border-radius: 16px; background: var(--surface); }
.req-h { margin: var(--s1) 0 0; font-weight: 600; font-size: 0.92rem; }
.req-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-b { appearance: none; font: 600 0.88rem var(--body-font); min-height: 44px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); color: var(--fg); cursor: pointer; }
.chip-b[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.req textarea { min-height: 64px; resize: vertical; }
.req-say { margin: 0; font-size: 0.88rem; }
.foot-mail { user-select: all; color: var(--fg); font-size: 0.9rem; }
@media (max-width: 360px) {
  .cal-dow, .cal-grid { gap: 0; }
  .cal-wrap { margin-inline: -8px; }
}

/* ================================================================ section pages
   2026-10-24: Work, How it works, Pricing, Updates. Same parts as the front page. */

.page-hero { padding-block: clamp(22px, 4vw, 48px) var(--s4); }
.page-hero h1 { font-size: clamp(1.9rem, calc(1.1rem + 3vw), 3rem); max-width: 18ch; margin-bottom: 0.3em; }
.page-hero .lead { max-width: 54ch; margin: 0; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link--inv { color: color-mix(in oklab, var(--bg) 88%, var(--accent)); margin-top: var(--s3); }

.ticks--plain li::before { background: color-mix(in oklab, var(--accent) 16%, var(--bg)); }
.ticks--plain li::after { border-color: var(--accent); }

/* Work: each case is the pictures beside the story. */
.cases .wrap { display: grid; gap: clamp(28px, 5vw, 56px); }
.case { display: grid; gap: var(--s4); align-items: start; scroll-margin-top: 90px; }
@media (min-width: 900px) { .case { grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 52px); } .case:nth-child(even) .case-shot { order: 2; } }
.case-shot { position: relative; display: block; aspect-ratio: 16 / 11; max-width: 100%; border-radius: 20px; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 0%, color-mix(in oklab, var(--accent) 70%, #fff) 0%, transparent 55%), var(--accent); }
.case-desk { position: absolute; left: 7%; top: 9%; width: 82%; height: auto; border-radius: 10px; box-shadow: 0 16px 36px rgb(0 0 0 / 0.28); }
.case-phone { position: absolute; right: 6%; bottom: -6%; width: 24%; height: auto; border-radius: 14px; border: 4px solid #0f1113; box-shadow: 0 14px 30px rgb(0 0 0 / 0.35); }
.case-body { display: grid; gap: var(--s3); min-width: 0; }
.case-body h2 { margin: 0; }
.case-body h3 { margin: var(--s2) 0 0; font-size: 1.02rem; }
.case-body p { margin: 0; }
.case-tag { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.case-result { font-weight: 700; color: var(--accent); }
.case-note { font-size: 0.88rem; color: var(--muted); }
.case .btn { justify-self: start; }
.ticks--plain { gap: 8px; }

/* How it works: five numbered steps joined by a line. */
.steps5 { list-style: none; margin: 0; padding: 0; display: grid; }
.steps5 > li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); position: relative; padding-bottom: var(--s5); max-width: 760px; scroll-margin-top: 90px; }
.steps5 > li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.steps5-n { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); font: 700 1.05rem var(--display-font); }
.steps5 h2 { font-size: clamp(1.2rem, calc(1rem + 1vw), 1.6rem); margin: 8px 0 var(--s2); }
.steps5 p { margin: 0 0 var(--s2); }
.steps5 .sub { font-weight: 600; margin-top: var(--s2); }

/* Questions: native disclosure, 44px rows. */
.faq { display: grid; gap: 8px; }
.faq details { background: var(--surface); border-radius: 14px; }
.faq summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 12px var(--s4); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--display-font); color: var(--accent); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0; padding: 0 var(--s4) var(--s4); color: var(--muted); max-width: none; }
.faq-sec h2 { margin-bottom: var(--s4); }

/* Pricing */
.price-grid { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1fr 1.1fr; } }
.price-cta { margin-top: var(--s5); width: 100%; }
.price-card .price-cta { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.price-side { display: grid; gap: var(--s3); }
.price-block { background: var(--surface); border-radius: 18px; padding: clamp(16px, 3vw, 24px); display: grid; gap: var(--s2); }
.price-block h2 { font-size: 1.2rem; margin: 0; }
.price-block p { margin: 0; }

/* Updates: a dated log by month. */
.log-month + .log-month { margin-top: var(--s6); }
.log-month h2 { font-size: 1.25rem; margin: 0 0 var(--s3); }
.log { list-style: none; margin: 0; padding: 0; display: grid; }
.log li { display: grid; grid-template-columns: 64px 1fr; column-gap: var(--s3); row-gap: 2px; padding-block: 12px; border-top: 1px solid var(--line); max-width: none; }
.log li > time { grid-row: span 2; font: 700 0.78rem "Courier New", ui-monospace, monospace; letter-spacing: 0.04em; color: var(--muted); padding-top: 3px; }
.log li:not(:has(time))::before { content: ""; grid-row: span 2; }
.log-site { font-size: 0.78rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; }
.home-head .text-link { justify-self: start; }
.log-t { margin: 0; grid-column: 2; }
.log li > .log-site { grid-column: 2; }
.log li:not(:has(time)) { grid-template-columns: 1fr; }
.log li:not(:has(time))::before { display: none; }
.log li:not(:has(time)) > .log-site, .log li:not(:has(time)) > .log-t { grid-column: 1; }

/* ---- the sticky header that minimizes (replaces hide-on-scroll, 2026-10-24) ----
   Full bar 67px at the top of the page; 52px once you scroll. Only the bar's inner
   padding and the mark shrink, so nothing below it moves. */
.site-head { transition: background-color 220ms var(--motion-ease), box-shadow 220ms var(--motion-ease); }
.site-head .wrap { transition: min-height 220ms var(--motion-ease), padding 220ms var(--motion-ease); }
.site-head .logo svg { transition: transform 220ms var(--motion-ease); transform-origin: left center; }
.site-head[data-min] {
  background: var(--bg);
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.08);
}
.site-head[data-min] .wrap { min-height: 52px; padding-block: 4px; }
.site-head[data-min] .logo { font-size: 0.95rem; }
.site-head[data-min] .logo svg { transform: scale(0.86); }
.site-head[data-min] .nav a { padding-block: 8px; }
.site-head[data-min] .head-actions .btn, .site-head[data-min] .acct-out .btn { min-height: 38px; padding-block: 6px; }
@media (hover: none), (max-width: 719px) {
  .site-head[data-min] .head-actions .btn, .site-head[data-min] .acct-out .btn { min-height: 44px; }
}
.site-head[data-hidden] { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .site-head, .site-head .wrap, .site-head .logo svg { transition: none; }
}

/* ================================================================ motion
   2026-10-24, Shea: "get more animations and movement". Driven by assets/motion.js.
   Only transform and opacity move. html.motion is set only when reduced motion is off. */

/* Reveals: once, staggered within a group, 70ms apart. */
.motion.fx-reveal .rv { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--motion-ease), transform 700ms var(--motion-ease); transition-delay: calc(var(--rv-i, 0) * 70ms); }
.motion.fx-reveal .rv.rv-in { opacity: 1; transform: none; }
/* Case studies: the picture slides in from its side, the phone follows a beat later. */
.motion.fx-reveal .case.rv .case-phone { transform: translateY(26px); opacity: 0; transition: transform 800ms 250ms var(--motion-ease), opacity 600ms 250ms var(--motion-ease); }
.motion.fx-reveal .case.rv-in .case-phone { transform: none; opacity: 1; }
/* How it works: the line between steps draws itself as each step arrives. */
.motion.fx-line .steps5 > li.rv::before { transform: scaleY(0); transform-origin: top; transition: transform 900ms 200ms var(--motion-ease); }
.motion.fx-line .steps5 > li.rv-in::before { transform: scaleY(1); }
.motion.fx-line .steps5 > li.rv .steps5-n { transform: scale(0.6); transition: transform 500ms var(--motion-ease); }
.motion.fx-line .steps5 > li.rv-in .steps5-n { transform: none; }

/* The hero picture: tilts toward the cursor and drifts with the scroll (fine pointers),
   the phone floats gently everywhere. */
.home-shot, .case-shot { --tx: 0deg; --ty: 0deg; --drift: 0px; transform-style: preserve-3d; }
.motion.fx-tilt .home-shot { transform: perspective(1400px) rotateY(var(--tx)) rotateX(var(--ty)); transition: transform 600ms var(--motion-ease); }
.motion.fx-tilt .case-shot { transform: perspective(1400px) rotateY(var(--tx)) rotateX(var(--ty)); transition: transform 600ms var(--motion-ease); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
.motion.fx-float .home-shot-phone, .motion.fx-float .case-phone { animation: float 7s ease-in-out 1.2s infinite; }
.motion .home-shot-desk { transition: transform 600ms var(--motion-ease); }
@media (hover: hover) and (pointer: fine) {
  .motion .home-shot:hover .home-shot-desk { transform: translateY(-4px); }
  .work-shot img { transition: transform 700ms var(--motion-ease); }
  .work:hover .work-shot img { transform: scale(1.04); }
  .faq summary::after { transition: transform 250ms var(--motion-ease); }
  .faq details[open] summary::after { transform: rotate(180deg); }
}
/* The FAQ answer slides in rather than snapping open. */
.motion.fx-reveal .faq details[open] p { animation: rise 380ms var(--motion-ease) both; }

/* The ticker: one slow, continuous row. Pauses off screen and on hover; reduced motion
   leaves it as a static row that scrolls sideways by hand. */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); }
.ticker-track { display: flex; width: max-content; }
.ticker-row { display: flex; gap: 0; list-style: none; margin: 0; padding: 12px 0; flex: none; }
.ticker-row li { display: inline-flex; align-items: center; gap: 8px; padding-inline: 22px; font-size: 0.9rem; font-weight: 600; white-space: nowrap; max-width: none; color: var(--fg); }
.ticker-row li + li::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--accent); margin-right: 22px; margin-left: -22px; opacity: 0.6; }
.ticker-row li:first-child { padding-left: 44px; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.motion.fx-ticker .ticker-track { animation: tick 38s linear infinite; }
.motion .ticker.is-paused .ticker-track, .motion .ticker:hover .ticker-track { animation-play-state: paused; }
html:not(.fx-ticker) .ticker { overflow-x: auto; }
html:not(.fx-ticker) .ticker-row[aria-hidden] { display: none; }

/* Buttons press in, every page. */
.btn:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) { .btn:active { transform: none; } }

/* Dashboard: the website cards arrive one after another, and a screen fades in when
   you switch to it. */
@media (prefers-reduced-motion: no-preference) {
  .on-app .cards > .card-site, .on-app .guest-work .work { animation: rise-t 520ms var(--motion-ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
  .on-app .screen:not([hidden]) { animation: fade-in 260ms var(--motion-ease) both; }
  .on-app .req:not([hidden]) { animation: rise-t 320ms var(--motion-ease) both; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================ effects lab
   Every rule below belongs to one numbered effect in assets/motion.js and is gated by
   html.fx-<name>, so switching an effect off in the panel removes it completely. */

/* 2 · words drop in */
.fx-words .home-hero h1 .wd, .fx-words .home-hero h1 .rot { display: inline-block; animation: word-drop 700ms var(--motion-ease) both; animation-delay: calc(120ms + var(--wd, 0) * 70ms); }
@keyframes word-drop { from { opacity: 0; transform: translateY(0.4em); } to { opacity: 1; transform: none; } }
.fx-words .home-hero-copy > h1 { animation: none; }

/* 3 · one word cycles: all words share one grid cell (width of the longest), the old
   word rises out as the new one rises in, both on the same curve. */
.rot { display: inline-grid; vertical-align: bottom; color: var(--accent); }
.rot-w { grid-area: 1 / 1; white-space: nowrap; opacity: 0; transform: translateY(0.35em);
  transition: opacity 600ms var(--motion-ease), transform 700ms var(--motion-ease); }
.rot-w.is-on { opacity: 1; transform: none; }
.rot-w.is-off { opacity: 0; transform: translateY(-0.35em); }

/* 5 · endless strip of screenshots */
.shots { overflow: hidden; padding-block: var(--s4); }
.shots-track { display: flex; gap: var(--s3); width: max-content; animation: tick 60s linear infinite reverse; }
.shots-track img { width: clamp(180px, 30vw, 300px); height: auto; aspect-ratio: 16/10; object-fit: cover; object-position: top; border-radius: 12px; box-shadow: var(--shadow); flex: none; }
.shots.is-paused .shots-track { animation-play-state: paused; }

/* 6 · reading progress */
.fx-bar { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 95; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* 7/8/9 · behind the opening */
.home-hero { position: relative; isolation: isolate; }
.fx-layer { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fxl-blobs i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(60px); opacity: 0.18; background: var(--accent); }
.fxl-blobs i:nth-child(1) { left: -12vmax; top: -18vmax; animation: blob-a 22s ease-in-out infinite alternate; }
.fxl-blobs i:nth-child(2) { right: -16vmax; top: 10%; opacity: 0.12; animation: blob-b 26s ease-in-out infinite alternate; }
.fxl-blobs i:nth-child(3) { left: 30%; bottom: -30vmax; opacity: 0.1; animation: blob-a 30s ease-in-out infinite alternate-reverse; }
@keyframes blob-a { to { transform: translate(14vmax, 8vmax) scale(1.15); } }
@keyframes blob-b { to { transform: translate(-12vmax, 10vmax) scale(0.9); } }
.fxl-spot { position: absolute; left: 0; top: 0; width: 400px; height: 400px; border-radius: 50%; opacity: 0; transition: opacity 400ms ease;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--accent) 22%, transparent), transparent); }

/* 12 · depth: the phone moves at its own speed */
.fx-depth .home-shot-phone, .fx-depth .case-phone { translate: 0 var(--depth, 0px); }
.fx-depth.fx-float .home-shot-phone, .fx-depth.fx-float .case-phone { animation: none; }

/* 13 · screenshots revealed with a wipe */
.fx-wipe .home-shot-desk { animation: wipe 1100ms 300ms var(--motion-ease) both; }
.fx-wipe .rv .work-shot img, .fx-wipe .rv .case-desk { clip-path: inset(0 100% 0 0); transition: clip-path 1000ms 120ms var(--motion-ease); }
.fx-wipe .rv-in .work-shot img, .fx-wipe .rv-in .case-desk { clip-path: inset(0 0 0 0); }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* 14 · work cards flip into place */
.fx-flip .work-row { perspective: 1200px; }
.fx-flip .work.rv { opacity: 0; transform: rotateY(-12deg) translateX(12px); transform-origin: left center; transition: opacity 600ms var(--motion-ease), transform 900ms var(--motion-ease); transition-delay: calc(var(--rv-i, 0) * 110ms); }
.fx-flip .work.rv.rv-in { opacity: 1; transform: none; }

/* 15 · drawn underline under headings */
.fx-underline main h2.ul { position: relative; padding-bottom: 6px; }
.fx-underline main h2.ul::after { content: ""; position: absolute; left: 0; bottom: 0; width: 2.4em; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 800ms 150ms var(--motion-ease); }
.fx-underline main h2.ul.ul-in::after { transform: scaleX(1); }
.fx-underline .slab--accent h2.ul::after { background: var(--accent-fg); }

/* 18 · light sweeps across the price card */
.fx-sheen .price-card { position: relative; overflow: hidden; }
.fx-sheen .price-card::after { content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.14), transparent); animation: sheen 1.8s var(--motion-ease) 0.6s 1 both; pointer-events: none; }
/* Plays once, when the card arrives (not on a timer). */
.fx-sheen .price-card.rv:not(.rv-in)::after { animation: none; }
@keyframes sheen { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(520%) skewX(-18deg); } }

/* 21 · pages fade between each other */
.fx-transition body { animation: page-in 380ms var(--motion-ease) both; }
/* opacity only: a transform on <body> would capture every fixed element on the page */
.fx-transition.fx-leaving body { opacity: 0; transition: opacity 220ms ease; }
@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

/* 22 · back to top, with a ring that fills as you read */
.fxl-top { position: fixed; z-index: 85; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 999px; background: var(--bg); box-shadow: var(--shadow-lg); cursor: pointer;
  opacity: 0; transform: translateY(14px) scale(0.9); pointer-events: none; transition: opacity 250ms, transform 250ms var(--motion-ease); }
.fxl-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fxl-top svg { width: 48px; height: 48px; display: block; }
.fxl-top-bg { fill: none; stroke: var(--line); stroke-width: 3; }
.fxl-top-ring { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: 119.4; transform: rotate(-90deg); transform-origin: center; }
.fxl-top-arrow { fill: none; stroke: var(--fg); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the Effects panel (review only) ---- */
.fx-open { position: fixed; z-index: 96; left: max(12px, env(safe-area-inset-left, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: #12151b; color: #e8ecf2; font: 600 0.9rem var(--body-font);
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.3); cursor: pointer; }
.fx-open b { margin-left: 6px; color: #8fb6e8; font-variant-numeric: tabular-nums; }
.fx-sheet { position: fixed; z-index: 97; left: max(8px, env(safe-area-inset-left, 0px)); right: max(8px, env(safe-area-inset-right, 0px));
  bottom: calc(64px + env(safe-area-inset-bottom, 0px)); max-width: 420px; max-height: min(72vh, 640px); display: flex; flex-direction: column;
  background: #12151b; color: #e8ecf2; border-radius: 18px; box-shadow: 0 18px 50px rgb(0 0 0 / 0.45); overflow: hidden; font-family: var(--body-font); }
.fx-sheet[hidden] { display: none; }
.fx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 14px 10px; border-bottom: 1px solid #2b313b; }
.fx-head b { display: block; font-size: 1rem; }
.fx-head span { font-size: 0.8rem; color: #a7b0bd; }
.fx-x { width: 44px; height: 44px; flex: none; border-radius: 999px; border: 1px solid #2b313b; background: transparent; color: #e8ecf2; font-size: 1rem; cursor: pointer; }
.fx-warn { margin: 0; padding: 10px 14px; background: #3a2a10; color: #f0c27a; font-size: 0.82rem; }
.fx-rows { overflow-y: auto; padding: 6px; display: grid; gap: 2px; }
.fx-row { display: grid; grid-template-columns: 30px 1fr 44px; align-items: center; gap: 8px; min-height: 48px; padding: 4px 8px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; text-align: left; font: 500 0.88rem var(--body-font); cursor: pointer; }
.fx-row:hover { background: #1c2129; }
.fx-n { font: 700 0.8rem "Courier New", ui-monospace, monospace; color: #8fb6e8; }
.fx-sw { width: 40px; height: 24px; border-radius: 999px; background: #3a4150; position: relative; }
.fx-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 999px; background: #e8ecf2; transition: transform 160ms; }
.fx-row[aria-pressed="true"] .fx-sw { background: #3664be; }
.fx-row[aria-pressed="true"] .fx-sw::after { transform: translateX(16px); }
.fx-foot { display: flex; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid #2b313b; }
.fx-all { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid #2b313b; background: transparent; color: #e8ecf2; font: 600 0.88rem var(--body-font); cursor: pointer; }
/* Depth eases to each new scroll position, so a mouse-wheel step glides instead of jumping. */
.fx-depth .home-shot-phone, .fx-depth .case-phone { transition: translate 500ms var(--motion-ease); }
