:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --surface-3: #262626;
  --line: #2b2b2b;
  --text: #f3f3f1;
  --text-2: #c9c9c4;
  --muted: #8e8e88;
  --accent: #d8412b;        /* Say No To Slow red */
  --accent-soft: rgba(216, 65, 43, .14);
  --free: #5b7bea;          /* free-tier blue (brand blue, lifted for dark bg) */
  --free-soft: rgba(91, 123, 234, .16);
  --gold: #e3b451;
  --good: #3fb37f;
  --radius: 14px;
  --display: "Anton", "Impact", sans-serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 4vw, 48px);
  background: rgba(11, 11, 11, .82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: .02em; }
.brand img { width: 36px; height: 36px; }
.brand em { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); border: 1px solid var(--accent); border-radius: 99px; padding: 1px 8px; }
.nav nav { display: flex; gap: 22px; }
.nav nav a { text-decoration: none; color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav nav a:hover { color: var(--text); }

/* ---------- shared ---------- */
section { scroll-margin-top: 64px; padding: clamp(56px, 8vw, 110px) clamp(16px, 4vw, 48px); max-width: 1320px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: .98; margin: 0; }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { margin: 0 0 8px; font-size: 18px; }
.section-head { max-width: 760px; margin-bottom: 40px; position: relative; }
.section-head p:not(.eyebrow) { color: var(--text-2); font-size: 18px; margin: 14px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 99px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #e9543e; }
.btn.ghost { border-color: var(--surface-3); background: transparent; color: var(--text); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.sm { padding: 8px 16px; font-size: 14px; }
.small { color: var(--muted); font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px); align-items: center;
  padding-top: clamp(40px, 6vw, 80px);
}
.hero h1 { font-size: clamp(46px, 5.6vw, 84px); }
.hero h1 span { color: var(--accent); }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 600px; margin: 24px 0 32px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 48px 0 0; }
.stats div { border-top: 2px solid var(--surface-3); padding-top: 12px; }
.stats dt { color: var(--muted); font-size: 13px; }
.stats dd { margin: 4px 0 0; font-size: clamp(26px, 3vw, 36px); font-weight: 700; letter-spacing: -.02em; }
.hero-art { position: relative; }
.hero-art > img {
  border-radius: 22px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 40%; width: 100%;
  box-shadow: 0 40px 120px rgba(216, 65, 43, .18);
}
.float-card {
  position: absolute; left: -28px; bottom: 36px; display: flex; gap: 12px; align-items: center; max-width: 300px;
  background: rgba(20, 20, 20, .92); backdrop-filter: blur(8px); border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 16px 12px 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5);
  animation: bob 5s ease-in-out infinite;
}
.float-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.float-card strong { display: block; font-size: 15px; }
.float-card span { color: var(--accent); font-size: 13px; font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* ---------- chat ---------- */
.chat-shell {
  display: grid; grid-template-columns: 300px 1fr; gap: 0; border: 1px solid var(--line); border-radius: 22px;
  overflow: hidden; background: var(--surface); min-height: 680px;
}
.rail { padding: 22px; border-right: 1px solid var(--line); background: #111; }
.rail h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 0 0 12px; display: flex; justify-content: space-between; }
.rail h3 small { text-transform: none; letter-spacing: 0; color: var(--good); font-weight: 500; }
.agent-list { display: grid; gap: 10px; margin-bottom: 28px; }
.agent-card {
  text-align: left; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 12px 14px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.agent-card:hover { border-color: var(--muted); }
.agent-card[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.agent-card strong { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
.agent-card span { display: block; color: var(--text-2); font-size: 13px; margin-top: 4px; line-height: 1.4; }
.tier { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 7px; border-radius: 99px; font-weight: 700; white-space: nowrap; }
.tier.members { background: rgba(227, 180, 81, .16); color: var(--gold); }
.tier.public, .tier.free { background: var(--free-soft); color: #9fb3ff; }
.profile { display: grid; gap: 12px; }
.profile label { display: grid; gap: 4px; font-size: 13px; color: var(--text-2); }
.profile input, .profile select {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none;
}
.profile input:focus, .profile select:focus { border-color: var(--accent); }
.rail-note { color: var(--muted); font-size: 12px; margin-top: 12px; }

.chat { display: flex; flex-direction: column; min-width: 0; max-height: 820px; }
.chat-top { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat-top div { flex: 1; min-width: 0; }
.chat-top strong { display: block; }
.chat-top span { color: var(--muted); font-size: 13px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent); }
.badge { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.icon-btn { background: var(--surface-2); border: 1px solid var(--line); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.icon-btn:hover { border-color: var(--muted); }
.messages { position: relative; flex: 1; overflow-y: auto; padding: 24px 20px; display: flex; flex-direction: column; gap: 18px; min-height: 380px; }
.msg { max-width: 760px; }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; padding: 11px 16px; border-radius: 18px 18px 4px 18px; max-width: 78%; }
.msg.bot { align-self: flex-start; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; width: 100%; }
.msg.bot > div { min-width: 0; }
.msg.bot > img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bubble { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 14px 18px; min-width: 0; }
.bubble p { margin: 0 0 10px; }
.bubble p:last-child, .bubble ul:last-child, .bubble ol:last-child { margin-bottom: 0; }
.bubble ul, .bubble ol { margin: 0 0 10px; padding-left: 20px; }
.bubble li { margin: 4px 0; }
.bubble h3, .bubble h4 { font-size: 16px; margin: 14px 0 6px; color: var(--text); }
.bubble h3:first-child, .bubble h4:first-child { margin-top: 0; }
.bubble strong { color: #fff; }
.bubble code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.cite {
  display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: #ff8a73; border: 0;
  border-radius: 99px; padding: 0 8px; font-size: 12px; font-weight: 700; cursor: pointer; vertical-align: 1px; line-height: 20px;
}
.cite:hover { background: var(--accent); color: #fff; }
.status { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.cursor::after { content: "▍"; color: var(--accent); animation: pulse .8s infinite; }

.sources { display: flex; gap: 10px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
.src {
  flex: 0 0 220px; display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; text-decoration: none;
  background: #121212; border: 1px solid var(--line); border-radius: 12px; padding: 8px; cursor: pointer; text-align: left;
}
.src:hover { border-color: var(--accent); }
.src .thumb {
  width: 72px; height: 44px; border-radius: 8px; object-fit: cover; background: linear-gradient(135deg, #3a1a14, #d8412b);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .06em; text-align: center; line-height: 1.1; padding: 4px;
}
.src .thumb.skill { background: linear-gradient(135deg, #1b2345, #5b7bea); }
.src b { display: block; font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.src small { color: var(--muted); font-size: 11.5px; display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.src small .t { color: #ff8a73; font-weight: 700; }
.meta-row { display: flex; gap: 6px; align-items: center; margin-top: 8px; color: var(--muted); font-size: 12px; flex-wrap: wrap; }
.meta-row button { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 2px 9px; cursor: pointer; color: var(--text-2); }
.meta-row button:hover { border-color: var(--muted); }
.meta-row button.on { border-color: var(--good); color: var(--good); }
.meta-row .sp { flex: 1; }

/* reply suggestions: the first in full + "+N more" (chat.js collapseChips) */
.suggestions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 0 20px 12px; }
.suggestions:empty { padding-bottom: 0; }
.chip {
  background: transparent; border: 1px solid var(--surface-3); color: var(--text-2);
  border-radius: 99px; padding: 6px 12px; font-size: 13px; cursor: pointer; text-align: left;
}
.chip.chip-more { flex: none; color: #ff8a73; border-color: rgba(216, 65, 43, .45); font-weight: 600; }
.chip:hover { border-color: var(--accent); color: var(--text); }
.composer { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); background: #111; }
.composer textarea {
  flex: 1; resize: none; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  outline: none; max-height: 160px; line-height: 1.4;
}
.composer textarea:focus { border-color: var(--accent); }
.send { width: 48px; border-radius: 14px; border: 0; background: var(--accent); color: #fff; font-size: 18px; cursor: pointer; }
.send:disabled { opacity: .4; cursor: default; }
.disclaimer { margin: 0; padding: 0 20px 12px; font-size: 11.5px; color: var(--muted); background: #111; }

/* ---------- on your site: chat bubble preview ---------- */
.site-frame { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: 0 30px 90px rgba(0, 0, 0, .45); }
.site-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: #181818; border-bottom: 1px solid var(--line); }
.site-bar .dots { display: flex; gap: 6px; }
.site-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.site-url { flex: 0 1 360px; background: var(--surface-2); border-radius: 99px; padding: 4px 14px; font-size: 13px; color: var(--muted); }
.site-page { display: block; width: 100%; height: 640px; border: 0; background: #fff; }
.site-open { margin: 16px 0 0; }

/* ---------- how ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.flow-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.flow-col p { color: var(--text-2); font-size: 15px; }
.flow-step { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; display: grid; place-items: center; margin-bottom: 14px; }
.flow-arrow { align-self: center; font-size: 28px; color: var(--accent); }
.vault-tree { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; display: grid; gap: 6px; }
.vault-tree li { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--surface-2); border-radius: 8px; }
.vault-tree li span { color: var(--muted); }
.access { display: grid; gap: 10px; margin: 12px 0; }
.access div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.access strong { display: inline; }
.access em { display: block; color: var(--muted); font-style: normal; font-size: 13px; margin-top: 2px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.dot.free { background: var(--free); }
.dot.members { background: var(--gold); }
.channels { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; font-size: 15px; }
.channels em { color: var(--muted); font-style: normal; }
.ch { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: 2px 7px; border-radius: 99px; margin-right: 8px; }
.ch.live { background: rgba(63, 179, 127, .16); color: var(--good); }
.ch.next { background: var(--accent-soft); color: #ff8a73; }
.ch.later { background: var(--surface-3); color: var(--muted); }
.flow-img { border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }

.peek-title { margin: 40px 0 14px; font-size: 20px; }
.note-peek { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #101010; }
.note-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.note-tabs button {
  background: none; border: 0; border-right: 1px solid var(--line); padding: 12px 18px; cursor: pointer; color: var(--muted); font-size: 14px; white-space: nowrap;
}
.note-tabs button[aria-selected="true"] { color: var(--text); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.note-body { padding: 24px 28px; max-height: 460px; overflow-y: auto; font-size: 15px; color: var(--text-2); }
.note-body .fm { font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; color: var(--muted); margin-bottom: 18px; white-space: pre-wrap; }
.note-body h1, .note-body h2, .note-body h3 { font-family: var(--sans); text-transform: none; color: var(--text); line-height: 1.25; }
.note-body h1 { font-size: 24px; margin: 0 0 12px; }
.note-body h2 { font-size: 19px; margin: 22px 0 8px; }
.note-body h3 { font-size: 16px; margin: 16px 0 6px; }
.note-body blockquote { border-left: 3px solid var(--accent); margin: 10px 0; padding: 2px 14px; color: var(--text); }
.note-body .wl { color: #b69cff; }
.note-body .trow { padding: 8px 0; border-bottom: 1px solid var(--line); }
.note-body .trow span { color: var(--accent); margin: 0 10px; }
.note-body .trow.th { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.note-body code { color: #ff8a73; }

/* ---------- studio ---------- */
.studio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.agent-edit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; align-content: start; }
.agent-edit header { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.agent-edit header strong { font-size: 18px; }
.agent-edit label { display: grid; gap: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.agent-edit input, .agent-edit textarea {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font-size: 14px;
  text-transform: none; letter-spacing: 0; color: var(--text); outline: none; resize: vertical;
}
.agent-edit input:focus, .agent-edit textarea:focus { border-color: var(--accent); }
.agent-edit .file { font: 12px ui-monospace, monospace; color: var(--muted); }
.agent-edit footer { display: flex; align-items: center; gap: 10px; }
.saved { color: var(--good); font-size: 13px; opacity: 0; transition: opacity .3s; }
.saved.show { opacity: 1; }
.switch { position: relative; width: 42px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--surface-3); border-radius: 99px; cursor: pointer; transition: background .2s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- member sign-in (members coaches) ---------- */
.member-gate { padding: 16px 20px 14px; border-top: 1px solid var(--line); background: #111; }
.member-gate strong { display: block; margin-bottom: 4px; }
.member-gate p { color: var(--text-2); font-size: 14px; margin: 0 0 12px; }
.member-gate .row { display: flex; gap: 10px; }
.member-gate input {
  flex: 1; min-width: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--surface-3);
  background: var(--surface-2); outline: none;
}
.member-gate input:focus { border-color: var(--accent); }
.member-gate .err { color: var(--accent); margin: 10px 0 0; }
.member-gate .err:empty { display: none; }
.member-gate .gate-foot { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.member-gate .m-back { margin-top: 10px; font-size: 13px; }
button.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
button.link:hover, .member-gate a:hover { color: var(--text); }
.member-line b { color: var(--text-2); font-weight: 600; }
@media (max-width: 760px) { .member-gate .row { flex-wrap: wrap; } .member-gate .row .btn { flex: 1; } }

/* ---------- team sign-in ---------- */
.nav nav a.team-link { color: var(--accent); }
.sign-in { grid-column: 1 / -1; max-width: 460px; }
.sign-in h3 { color: var(--text); }
.sign-in p { color: var(--text-2); font-size: 14px; margin: 0 0 14px; }
.sign-in .row { display: flex; gap: 10px; }
.sign-in input {
  flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; font-size: 14px; color: var(--text); outline: none;
}
.sign-in input:focus { border-color: var(--accent); }
.sign-in .err { color: var(--accent); margin: 10px 0 0; min-height: 1em; }
.sign-in .err:empty { display: none; }

/* ---------- analytics ---------- */
.analytics .section-head { max-width: none; }
.analytics .section-head > p:not(.eyebrow) { max-width: 760px; }
#refresh-analytics { position: absolute; right: 0; bottom: 0; }
.dash { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h3 { font-size: 14px; color: var(--text-2); font-weight: 600; margin: 0 0 14px; }
.card .sub { color: var(--muted); font-size: 12.5px; margin: -10px 0 14px; }
.hero-fig { grid-column: span 4; display: flex; flex-direction: column; justify-content: space-between; }
.hero-fig .big { font-size: 64px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.hero-fig p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.tiles { grid-column: span 8; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile .label { color: var(--muted); font-size: 13px; }
.tile .value { font-size: 28px; font-weight: 600; letter-spacing: -.02em; margin-top: 4px; }
.tile .note { color: var(--muted); font-size: 12px; margin-top: 2px; }
.span-6 { grid-column: span 6; }
.span-4 { grid-column: span 4; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }
.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; align-items: center; font-size: 13.5px; }
.bar-row .name { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { position: relative; height: 16px; display: flex; align-items: center; gap: 8px; }
.bar { height: 16px; background: var(--accent); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar.blue { background: var(--free); }
.bar-track .v { color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.bar-row:hover .bar { filter: brightness(1.15); }
.gap-list, .recent { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gap-list li { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.gap-list li b { display: block; color: var(--text); }
.gap-list li span { color: var(--muted); font-size: 13px; }
.recent li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); align-items: baseline; }
.recent li em { font-style: normal; color: var(--muted); font-size: 12px; white-space: nowrap; }
.empty { color: var(--muted); font-size: 14px; }
.tooltip {
  position: fixed; pointer-events: none; z-index: 50; background: #000; border: 1px solid var(--surface-3); border-radius: 8px;
  padding: 6px 10px; font-size: 12.5px; opacity: 0; transition: opacity .1s; max-width: 280px;
}

.foot { border-top: 1px solid var(--line); padding: 32px clamp(16px, 4vw, 48px); display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.foot img { width: 32px; }

/* ---------- chat-only page (/coach) ---------- */
.back-link { display: none; color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.back-link:hover { color: var(--text); }
.section-link { margin: 18px 0 0; }
.coach-only .back-link { display: block; }
.coach-only .nav nav, .coach-only .hero, .coach-only #try .section-head, .coach-only main > section:not(#try), .coach-only .foot { display: none; }
.coach-only #try { padding: 16px clamp(12px, 2vw, 24px); }
.coach-only .chat-shell { height: calc(100svh - 61px - 32px); min-height: 560px; }
.coach-only .chat { max-height: none; }
.coach-only .messages { min-height: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { max-width: 460px; }
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); justify-self: center; }
  .studio-grid { grid-template-columns: 1fr 1fr; }
  .hero-fig, .tiles, .span-4, .span-6, .span-8 { grid-column: span 12; }
}
@media (max-width: 760px) {
  .nav nav { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .chat-shell { grid-template-columns: 1fr; }
  .rail { border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-list { grid-template-columns: 1fr; }
  .float-card { left: 12px; }
  .studio-grid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  #refresh-analytics { position: static; margin-top: 16px; }
  .msg.user { max-width: 90%; }
  /* chat-only page on a phone: compact coach picker and profile so the chat starts on the first screen */
  .coach-only #try { padding: 0; }
  .coach-only .chat-shell { height: auto; min-height: 0; border-radius: 0; border-width: 0 0 1px; }
  .coach-only .chat { height: calc(100svh - 61px); }
  .coach-only .rail { padding: 14px 16px; }
  .coach-only .rail h3 { margin-bottom: 8px; }
  .coach-only .agent-list { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 14px; }
  .coach-only .agent-card { padding: 8px; }
  .coach-only .agent-card strong { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 13px; }
  .coach-only .agent-card span { display: none; }
  .coach-only .profile { grid-template-columns: 1fr 1fr; gap: 8px; }
  .coach-only .profile label:first-child { grid-column: 1 / -1; }
  .coach-only .rail-note:not(.member-line) { display: none; }
  .site-page { height: 600px; }
}
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
