/* The homepage (spec 2026-09-26 §3): the website's palette (website/app/globals.css :root, oklch → hex) and fonts.
   Text colours hold 4.5:1 on the ground; the lighter grey (--faint) is for lines and marks, never for text. */
/* Geist / Geist Mono, the website's faces (OFL, agent/static/fonts/OFL.txt), served from this origin (P8) */
@font-face {
  font-family: "Geist"; src: url("/static/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono"; src: url("/static/fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  --bg: #F8FAFD; --card: #FFFFFF; --fg: #11161F; --soft: #3D4356; --muted: #626A75; --faint: #C9CDDC;
  --line: #DBDEE2; --line-soft: #EEF0F4; --edge: #B9BDD0; --hover: #EDF0F4; --well: #F7F8FB; --accent: #2759D6;
  --accent-ink: #1B387B; --accent-bg: #E4EBF9; --ok: #1F7A4D; --error: #A12C2C; --on-dark: #C9CDDC;
  --shadow: 0 1px 2px rgba(28, 31, 42, 0.04), 0 8px 24px rgba(28, 31, 42, 0.05);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  scroll-padding-top: 80px; scroll-padding-bottom: 120px; /* the sticky 64px header (+ air) and the dock */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg);
  color: var(--fg); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #1745C2; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
h1, h2, p { margin: 0; }
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}
.muted { color: var(--muted); }

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

.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 48px; border-bottom: 1px solid var(--line); background: rgba(248, 250, 253, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; border-radius: 4px; color: var(--fg); }
.brand:hover { color: var(--fg); }
.mark {
  display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 6px;
  background: var(--accent-bg); color: var(--accent);
}
.mark svg { width: 28px; height: 28px; }
.wordmark { font: 600 14px/1 var(--mono); letter-spacing: -0.01em; color: var(--fg); }
.wordmark span { color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  padding: 4px 0; border-radius: 4px; font: 14px/1.4 var(--mono); letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; color: var(--muted);
}
.nav a:hover { color: var(--fg); }
.nav a.soon, .nav a.soon:hover { cursor: default; color: var(--muted); }
.nav .account {
  width: 32px; height: 32px; padding: 0; border-radius: 999px; display: inline-flex; align-items: center;
  justify-content: center; background: var(--fg); color: #FFFFFF; font: 500 13px/1 var(--sans); letter-spacing: 0;
}
.nav .account:hover { background: #2A2E3D; color: #FFFFFF; }
/* No menu button. Signed in, the whole nav needs ~752px (Geist Mono: 0.6em a letter + 0.1em tracking), so below
   800px only Programmatic and the account stay (the account opens Settings too; the rest is "soon"). */
@media (max-width: 800px) {
  .nav a:not(.account):not(.signin):not(.programmatic) { display: none; }
}

/* ------------------------------------------------------------ first visit */

main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 24px 48px 40px; }  /* air under the sticky header */
.hero {
  width: 100%; max-width: 720px; margin: auto 0; display: flex; flex-direction: column; align-items: center;
  gap: 28px;
}
.returning #hero, .returning #foot { visibility: hidden; animation: appear 0s 3s forwards; }
@keyframes appear { to { visibility: visible; } }
.hero-head { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.eyebrow { font: 12px/1.4 var(--mono); letter-spacing: 0.14em; color: var(--muted); }
h1 { font-size: 44px; line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.lead { margin-top: 4px; max-width: 560px; font-size: 17px; line-height: 1.5; color: var(--muted); }
.ask {
  width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.ask:focus-within, .composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg), var(--shadow); }
.ask textarea, .composer textarea {
  width: 100%; border: 0; outline: none; resize: none; background: transparent; color: var(--fg);
}
.ask textarea { font-size: 17px; line-height: 1.5; padding: 2px 4px; }
textarea::placeholder, input::placeholder { color: var(--muted); opacity: 1; }
.ask-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hint { font-size: 13px; color: var(--muted); }
.notice { font-size: 15px; color: var(--fg); text-align: center; }
.send {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 999px; display: flex; align-items: center;
  justify-content: center; background: var(--fg); color: #FFFFFF;
}
.send.accent { background: var(--accent); }
.send:disabled { opacity: 0.45; }
.examples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip, .pill {
  min-height: 40px; font-size: 14px; color: var(--soft); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 9px 14px;
}
.chip:hover, .pill:hover:not(:disabled) { border-color: var(--edge); color: var(--fg); }
.pill.on { border-color: var(--accent); background: var(--accent-bg); color: var(--accent-ink); font-weight: 500; }
.divider {
  width: 100%; margin-top: 8px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted);
  white-space: nowrap;
}
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.divider.small { margin: 0; font-size: 12px; gap: 12px; }
.assist { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.muse {
  width: 100%; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border: 0; border-radius: 12px; background: var(--fg); color: #FFFFFF; font-size: 17px;
  font-weight: 500; text-align: left;
}
.muse:hover { background: #2A2E3D; }
.muse small { display: block; margin-top: 3px; font-size: 13px; font-weight: 400; color: var(--on-dark); }
.quiet { border: 0; background: none; padding: 8px; font-size: 13px; color: var(--muted); }
.quiet:hover { color: var(--fg); text-decoration: underline; }
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; padding: 0 48px 26px; font-size: 13px;
  color: var(--muted);
}
.foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.foot a:hover { color: var(--fg); }

/* ------------------------------------------------------------ the conversation */

.talking main { padding-top: 8px; }
.convo { width: 100%; max-width: 720px; }
.log { display: flex; flex-direction: column; gap: 36px; }
.turn, .says { display: flex; flex-direction: column; gap: 8px; }
.says { gap: 14px; }
.turn.echo { align-items: flex-end; }
.who { font: 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.msg { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
.msg.soft { color: var(--soft); font-size: 15px; }
.msg.error { color: var(--error); }
.ans {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 8px 14px 8px 10px; font-size: 15px;
  font-weight: 500; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  overflow-wrap: anywhere;
}
.check { flex: none; color: var(--ok); }
.question { display: flex; flex-direction: column; gap: 14px; }
.q-head { display: flex; align-items: baseline; gap: 12px; }
.q-index { flex: none; font: 12px var(--mono); color: var(--muted); }
.q-head h2 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
.options.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.options.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.opt {
  min-height: 44px; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; text-align: left;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
}
.opt:hover:not(:disabled) { border-color: var(--edge); }
.opt b { font-size: 15px; font-weight: 500; }
.opt span { font-size: 13px; color: var(--muted); }
.opt.on { border-color: var(--accent); background: var(--accent-bg); }
.question.spent .opt:not(.on), .question.spent .pill:not(.on) { opacity: 0.55; }
.question.spent .other, .question.spent .next { display: none; }
.q-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.other { flex: 1; min-width: 200px; }
.other label { display: block; }
.other input {
  width: 100%; min-height: 40px; padding: 9px 14px; font-size: 14px; background: transparent;
  border: 1px dashed var(--faint); border-radius: 999px; outline: none;
}
.other input:focus { border: 1px solid var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); background: var(--card); }
.thinking { display: flex; gap: 5px; padding: 20px 0 0; }
.thinking span { width: 6px; height: 6px; border-radius: 999px; background: var(--muted); animation: pulse 1.2s infinite; }
.thinking span:nth-child(2) { animation-delay: 0.2s; }
.thinking span:nth-child(3) { animation-delay: 0.4s; }
@keyframes pulse { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------ cards: progress, wall, plan */

.card {
  min-width: 0; max-width: 100%; display: flex; flex-direction: column; gap: 16px; padding: 24px 26px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
}
.k { font: 11px/1.4 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.progress { padding: 20px 22px; gap: 12px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--soft); }
.steps li.todo { color: var(--muted); }
.ring {
  flex: none; width: 16px; height: 16px; border-radius: 999px; border: 2px solid var(--faint);
  border-top-color: var(--accent);
}
.busy .ring { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.wall {
  align-self: center; width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 18px; padding: 32px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28, 31, 42, 0.04), 0 12px 32px rgba(28, 31, 42, 0.06);
}
.wall-head { display: flex; flex-direction: column; gap: 8px; }
.ready { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ok); }
.wall h2 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.015em; }
.wall .muted { font-size: 15px; }
.fine { font-size: 12px; line-height: 1.5; color: var(--muted); text-wrap: balance; }
.wall .fine { text-align: center; }
.btn {
  min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 18px;
  font-size: 15px; font-weight: 500; color: var(--fg); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none;
}
.btn:hover:not(:disabled) { color: var(--fg); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-bg); }
.btn.dark { background: var(--fg); border-color: var(--fg); color: #FFFFFF; }
.btn.dark:hover:not(:disabled) { background: #2A2E3D; color: #FFFFFF; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; }
.plan { display: flex; flex-direction: column; gap: 22px; }
.plan hr { width: 100%; height: 1px; margin: 0; border: 0; background: var(--line-soft); }
.goal { font-size: 26px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.channels { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.channels li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.ch-name { font-size: 16px; font-weight: 500; }
.ch-why { margin-top: 3px; font-size: 14px; color: var(--muted); }
.channels .later .ch-name { color: var(--muted); }
.tag {
  flex: none; padding: 4px 8px; border-radius: 6px; font: 11px/1.4 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--hover); color: var(--muted);
}
.tag.primary { background: var(--accent-bg); color: var(--accent-ink); }
.grid { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 40px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 15px; }
.row dt { flex: none; color: var(--muted); white-space: nowrap; }
.row dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.budget-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge {
  padding: 3px 10px; border-radius: 999px; font: 500 11px/1.5 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--hover); color: var(--muted); transition: background 0.2s, color 0.2s;
}
.badge.on { background: var(--accent-bg); color: var(--accent-ink); }
.amount { display: flex; flex-direction: column; gap: 2px; }
.big { font-size: 48px; line-height: 1.05; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.unit { margin-left: 10px; font-size: 18px; color: var(--soft); }
.amount .muted { font-size: 15px; font-variant-numeric: tabular-nums; }
.slider { display: flex; flex-direction: column; gap: 4px; padding: 2px 0; }
.track { position: relative; }
.track input[type="range"] { position: relative; z-index: 1; display: block; }
/* a level's place on the track: under the thumb, above the rail; 11px = half the thumb, where the thumb's centre
   can go */
.ticks { position: absolute; inset: 0 11px; pointer-events: none; }
.tick {
  position: absolute; top: 50%; left: var(--at); z-index: 2; width: 8px; height: 8px; margin: -4px 0 0 -4px;
  border-radius: 999px; background: var(--card); border: 2px solid var(--faint); transition: border-color 0.15s;
}
.tick.in { border-color: var(--accent); }
.tick.recommended { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
.card table { transition: opacity 0.2s; }
.card.stale table { opacity: 0.4; }
.ends { display: flex; justify-content: space-between; font: 12px var(--mono); color: var(--muted); }
input[type="range"] {
  --fill: 50%; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none;
  appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 999px;
  background: linear-gradient(var(--accent), var(--accent)) 0 / var(--fill) 100% no-repeat, var(--line);
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  position: relative; z-index: 3; -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 999px;
  background: var(--card); border: 2px solid var(--accent); box-shadow: 0 1px 3px rgba(28, 31, 42, 0.2);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px; background: var(--card); border: 2px solid var(--accent);
  box-shadow: 0 1px 3px rgba(28, 31, 42, 0.2);
}
.segs { display: flex; }
.seg {
  flex: 1; min-height: 44px; padding: 9px 8px; display: flex; flex-direction: column; align-items: center; gap: 1px;
  font-size: 14px; color: var(--soft); background: var(--card); border: 1px solid var(--line);
}
.seg .amt { font: 12px var(--mono); color: var(--muted); }
.seg[aria-pressed="true"] .amt { color: var(--on-dark); }
.seg + .seg { margin-left: -1px; }
.seg:first-child { border-radius: 10px 0 0 10px; }
.seg:last-child { border-radius: 0 10px 10px 0; }
.seg:hover:not(:disabled) { color: var(--fg); background: var(--well); }
.seg[aria-pressed="true"] { position: relative; background: var(--fg); border-color: var(--fg); color: #FFFFFF; font-weight: 500; }
.note { font-size: 14px; line-height: 1.5; color: var(--muted); }
.table-wrap { max-width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; text-align: right; }
td { padding-left: 16px; font: 14px var(--mono); white-space: nowrap; }
tbody th { text-align: left; font-weight: 400; color: var(--muted); }
thead th { padding-left: 16px; font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
tr.total th, tr.total td { color: var(--fg); font-weight: 500; }
.assumptions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.plan .note { font-size: 13px; }
.budget .note { font-size: 14px; }
.searches { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.q { padding: 6px 10px; border-radius: 6px; background: var(--hover); font: 13px var(--mono); color: var(--soft); }
.launch { border-color: var(--faint); gap: 20px; }
.launch-buttons { display: flex; gap: 12px; }
.btn.two { flex: 1; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 3px; padding: 14px 18px; text-align: left; }
.btn.two small { font-size: 13px; font-weight: 400; color: var(--muted); }
.btn.two.dark small { color: var(--on-dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ghost {
  min-height: 40px; padding: 10px 14px; font-size: 14px; color: var(--soft); background: transparent;
  border: 1px solid var(--line); border-radius: 999px;
}
.ghost:hover:not(:disabled) { border-color: var(--edge); color: var(--fg); }

/* ------------------------------------------------------------ the bottom input */

.dock {
  position: sticky; bottom: 0; display: flex; flex-direction: column; align-items: center; padding: 16px 48px 20px;
  background: var(--bg);
}
.composer {
  width: 100%; max-width: 720px; display: flex; align-items: flex-end; gap: 12px; padding: 10px 10px 10px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.composer textarea { min-height: 36px; max-height: 160px; padding: 6px 0; font-size: 16px; line-height: 1.5; }
.composer .send { width: 36px; height: 36px; }
.dock-alt { margin-top: 4px; }
.small-only { display: none; } /* the plan card's own Muse button: phones only, where the dock has no room for its link */

/* ------------------------------------------------------------ the assistant sheet */

.sheet { width: calc(100% - 32px); max-width: 480px; padding: 0; border: 0; background: transparent; color: var(--fg); }
.sheet::backdrop { background: rgba(28, 31, 42, 0.35); }
.sheet-body {
  display: flex; flex-direction: column; gap: 18px; padding: 28px 32px 30px; background: var(--card);
  border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(28, 31, 42, 0.04), 0 12px 32px rgba(28, 31, 42, 0.06);
}
.sheet-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tabs { display: flex; gap: 4px; }
.tab {
  min-height: 36px; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid transparent; border-radius: 999px;
}
.tab:hover { color: var(--fg); }
.tab[aria-selected="true"] { background: var(--fg); color: #FFFFFF; }
.close {
  flex: none; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 0;
  border-radius: 999px; background: var(--hover); color: var(--muted);
}
.sheet-panel { display: flex; flex-direction: column; gap: 18px; }
.sheet-panel h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.howto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.howto li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: var(--soft); counter-increment: step; }
.howto li::before { content: counter(step); min-width: 16px; font: 500 14px/1.5 var(--mono); color: var(--muted); }
.prompt {
  width: 100%; min-height: 132px; padding: 14px 16px; resize: none; font: 13px/1.55 var(--mono); color: var(--soft);
  background: var(--well); border: 1px solid var(--line); border-radius: 10px;
}
.cli { display: flex; flex-direction: column; gap: 6px; }
.cli code { padding: 8px 10px; border-radius: 6px; background: var(--hover); font: 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.sheet-actions { display: flex; gap: 10px; }
.sheet-actions .btn { flex: 1; }

/* ------------------------------------------------------------ phones: one column, 44px targets */

@media (max-width: 720px) {
  :root { scroll-padding-bottom: 140px; }
  .top { padding: 0 16px; }
  .nav { gap: 16px; }
  .nav .programmatic, .nav .signin { min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; }
  .nav .account { width: 44px; height: 44px; }
  main { padding: 20px 16px 24px; }
  .hero { gap: 22px; align-items: stretch; }
  .hero-head { align-items: flex-start; text-align: left; gap: 10px; }
  .eyebrow { font-size: 11px; }
  h1 { font-size: 32px; line-height: 1.12; }
  .lead { font-size: 15px; }
  .ask { padding: 14px 14px 12px; gap: 10px; }
  .ask textarea { font-size: 16px; padding: 2px; }
  .ask-foot { justify-content: flex-end; }
  .hint { display: none; }
  .send, .composer .send { width: 44px; height: 44px; }
  .examples { flex-direction: column; align-items: stretch; }
  .chip, .pill, .ghost, .other input, .tab { min-height: 44px; }
  .chip { text-align: left; padding: 10px 14px; }
  .divider { font-size: 12px; gap: 12px; margin-top: 0; }
  .muse { min-height: 52px; padding: 14px 16px; font-size: 15px; gap: 12px; }
  .muse small { font-size: 12px; }
  .quiet { min-height: 44px; }
  .foot { flex-direction: column; align-items: center; gap: 2px; padding: 12px 16px 20px; font-size: 12px; }
  .talking main { padding-bottom: 150px; }
  .log { gap: 28px; }
  .q-head h2 { font-size: 18px; }
  .options.cards { grid-template-columns: minmax(0, 1fr); }
  .opt { padding: 14px 16px; }
  .other { flex-basis: 100%; }
  .card { padding: 20px 18px; }
  .wall { padding: 24px 20px; }
  .goal { font-size: 22px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  input[type="range"] { height: 44px; }
  .big { font-size: 40px; }
  .seg { padding: 8px 4px; font-size: 13px; }
  .segs[data-n="4"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .segs[data-n="4"] .seg + .seg { margin-left: 0; }
  .segs[data-n="4"] .seg:nth-child(2n) { margin-left: -1px; }
  .segs[data-n="4"] .seg:nth-child(n + 3) { margin-top: -1px; }
  .segs[data-n="4"] .seg:first-child { border-radius: 10px 0 0 0; }
  .segs[data-n="4"] .seg:nth-child(2) { border-radius: 0 10px 0 0; }
  .segs[data-n="4"] .seg:nth-child(3) { border-radius: 0 0 0 10px; }
  .segs[data-n="4"] .seg:last-child { border-radius: 0 0 10px 0; }
  th, td { font-size: 14px; }
  td, thead th { padding-left: 10px; }
  .launch-buttons { flex-direction: column; }
  .dock {
    position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  .composer { padding: 6px 6px 6px 14px; }
  .dock-alt { display: none; }
  .small-only { display: inline-flex; width: 100%; justify-content: center; margin-top: 14px; }
  .sheet { width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92dvh; }
  .sheet-body {
    max-height: 92dvh; overflow-y: auto; padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    border-bottom: 0; border-radius: 16px 16px 0 0;
  }
  .close { width: 44px; height: 44px; }
  .sheet-actions { flex-direction: column; } /* Share (first in the markup) sits above Copy */
}

/* under 360px (a 320px phone) brand + Programmatic + Sign in need ~341px: smaller, tighter labels keep one row */
@media (max-width: 359px) {
  .nav { gap: 12px; }
  .nav .programmatic, .nav .signin { font-size: 12px; letter-spacing: 0.05em; } /* ~313px signed out */
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .returning #hero, .returning #foot { visibility: visible; }
}
/* ads setup cards (static/setup.js) */
.setup { gap: 14px; }
.setup.busy { opacity: 0.6; pointer-events: none; }
.setup-how { font-size: 15px; color: var(--soft); }
.linkish { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; cursor: pointer; }
.setup-docs { display: flex; flex-direction: column; gap: 10px; }
.setup-doc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 15px; }
.setup-doc input { width: 18px; height: 18px; margin: 0 4px 0 0; accent-color: var(--accent); align-self: center; }
.setup-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.setup-row input {
  flex: 1; min-width: 160px; min-height: 44px; padding: 8px 12px; font: 16px var(--mono);
  border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--fg);
}
.setup-dollar { font: 18px var(--mono); color: var(--muted); }
.setup-done { font-size: 16px; font-weight: 500; color: var(--ok); }
.setup-error { font-size: 14px; color: var(--error); }
.sheet.legal { background: var(--card); padding: 18px; border-radius: 14px; max-width: 720px; max-height: 85dvh; overflow-y: auto; }
.legal-body h1 { font-size: 20px; } .legal-body h2 { font-size: 16px; margin-top: 18px; }
.legal-body p, .legal-body li { font-size: 14px; line-height: 1.55; color: var(--soft); }
