:root {
  --page: #fbfbfa;
  --surface: #ffffff;
  --surface-subtle: #f7f7f5;
  --surface-muted: #f1f1ef;
  --ink: #111111;
  --text: #202020;
  --muted: #6f6f6b;
  --soft: #8b8b86;
  --line: #e2e2df;
  --line-strong: #c9c9c4;
  --button: #111111;
  --button-text: #ffffff;
  --danger: #3b3b38;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.05);
  --font-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "SFMono-Regular", "SF Mono", "Roboto Mono", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: default;
  opacity: 0.52;
}

a {
  color: inherit;
}

.hidden {
  display: none !important;
}

html.booting-app #hero {
  display: none !important;
}

.shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
}

.hero,
.loading,
.app {
  min-height: 100vh;
  padding: 48px 0;
}

.app {
  padding-bottom: 170px;
}

.hero {
  display: grid;
  align-content: start;
}

.brand {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 72px;
  border-bottom: 1px solid rgba(226, 226, 223, 0.72);
  background: rgba(251, 251, 250, 0.92);
  padding: 14px 0;
  backdrop-filter: blur(14px);
}

.brand-logo {
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}

.nav-links,
.nav-actions,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links {
  margin-left: auto;
}

.nav-links a,
.nav-login,
.site-footer a,
.site-footer small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-actions {
  gap: 8px;
}

.nav-login,
.nav-cta,
.final-cta a,
.pricing-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 6px;
  padding: 0 13px;
  text-decoration: none;
  font-weight: 750;
}

.nav-login {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.nav-cta,
.pricing-card a {
  background: var(--ink);
  color: var(--button-text);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: clamp(3rem, 6.8vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p:last-child {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 960px;
  margin-top: 28px;
}

.hero-proof article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 16px;
}

.hero-proof span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.hero-proof strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.hero-proof p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.42;
}

.roles-band,
.operator-section,
.isnt-band,
.pricing-section,
.legal-section,
.final-cta,
.site-footer {
  margin-top: 90px;
}

.section-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.roles-band,
.isnt-band,
.legal-section,
.final-cta {
  width: min(100vw, 1180px);
  margin-left: calc(50% - min(590px, 50vw));
  margin-right: calc(50% - min(590px, 50vw));
  border-radius: 8px;
  background: var(--ink);
  color: var(--button-text);
  padding: clamp(38px, 6vw, 72px);
}

.roles-band .section-kicker,
.isnt-band .section-kicker,
.legal-section .section-kicker,
.final-cta .section-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.roles-band h2,
.operator-section h2,
.pricing-section h2,
.legal-section h2,
.final-cta h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2.3rem, 6vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.role-lines,
.role-grid,
.stack-list {
  display: grid;
  margin-top: 34px;
}

.role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.role-grid article {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: clamp(18px, 3vw, 28px);
}

.role-grid strong {
  display: block;
  color: var(--button-text);
  font-size: clamp(1.35rem, 2.4vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.role-grid p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: clamp(0.98rem, 1.3vw, 1.12rem);
  line-height: 1.42;
}

.legal-section p:last-child {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.role-lines p,
.stack-list p {
  margin: 0;
  border-top: 1px solid var(--line);
  padding: 18px 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 3.2vw, 3rem);
  font-weight: 650;
  line-height: 1.08;
}

.role-lines p {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--button-text);
}

.role-lines span {
  font-weight: 850;
}

.role-coda {
  display: block;
  margin-top: 32px;
  color: var(--button-text);
  max-width: 820px;
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.1;
}

.operator-section,
.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: clamp(26px, 6vw, 72px);
  align-items: start;
}

.operator-section h2,
.pricing-section h2 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
}

.dark-list p {
  border-color: rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.62);
}

.dark-list .loud {
  color: var(--button-text);
}

.pricing-section > div > p:last-child {
  max-width: 560px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.1rem;
}

.pricing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 26px;
  box-shadow: var(--shadow);
}

.pricing-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
}

.pricing-card strong {
  display: block;
  margin-top: 14px;
  color: var(--ink);
  font-size: clamp(2.3rem, 5vw, 4.6rem);
  line-height: 1;
}

.pricing-card p {
  margin: 18px 0 22px;
  color: var(--muted);
}

.final-cta h2 em {
  font-style: italic;
  font-weight: 300;
}

.final-cta a {
  width: fit-content;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: var(--button-text);
  color: var(--ink);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer small {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-weight: 500;
}

.auth-form,
.url-form,
.mode-picker,
.promise-row,
.account-bar {
  max-width: 760px;
}

.auth-form,
.url-form {
  margin-top: 34px;
}

.auth-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: var(--shadow);
}

.auth-form h2 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.auth-form p:not(.eyebrow):not(.form-note) {
  max-width: 620px;
  color: var(--muted);
  font-size: 1rem;
}

.auth-form .form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.auth-form label,
.url-form label,
.lead-form label,
.settings-url-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-form input,
.url-box input,
.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  outline: 0;
}

.auth-form input {
  min-height: 54px;
  margin-top: 8px;
  padding: 0 14px;
  font-size: 1rem;
}

.auth-form input:focus,
.url-box input:focus,
.lead-form input:focus,
.lead-form textarea:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

.auth-form button,
.url-box button,
#launch-cycle,
.primary-action,
.lead-form button {
  min-height: 48px;
  border-radius: 6px;
  background: var(--button);
  color: var(--button-text);
  padding: 0 18px;
  font-weight: 700;
}

.auth-form button {
  margin-top: 18px;
}

.auth-form .ghost-auth,
.terminal-head button,
.top-actions button,
.secondary-action,
.ghost-action,
.account-bar button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-weight: 650;
}

.auth-form .ghost-auth {
  margin-left: 8px;
}

.auth-form small {
  display: block;
  min-height: 22px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 0.92rem;
}

.account-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.account-bar span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.url-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.url-box input {
  min-height: 50px;
  border-color: transparent;
  background: var(--surface-subtle);
  padding: 0 14px;
}

.mode-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mode {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 14px;
  text-align: left;
}

.mode.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.mode span {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 720;
}

.mode small,
.metrics small,
.card small {
  color: var(--muted);
}

.promise-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.promise-row span,
.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 7px 11px;
  font-size: 0.84rem;
  font-weight: 650;
}

.loading {
  display: grid;
  align-content: center;
}

.loading-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.36fr) minmax(0, 0.64fr);
  gap: 14px;
}

.agent-card,
.terminal-card,
.workspace-panel,
.card,
.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.agent-card,
.terminal-card,
.workspace-panel,
.card,
.metric-card {
  box-shadow: none;
}

.agent-card,
.terminal-card {
  padding: 20px;
}

.agent-face {
  display: grid;
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.agent-face span {
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 720;
  line-height: 1;
}

.agent-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.agent-stats {
  display: grid;
  gap: 8px;
  margin: 24px 0 0;
}

.agent-stats div,
.status-strip article,
.metrics article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 13px;
}

.agent-stats dt,
.status-strip span,
.metrics span,
.card-label,
.launch-band span,
.timeline-state,
.status-chip {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 720;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--font-sans);
}

.terminal-head button {
  margin-left: auto;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ink);
}

#log-list {
  display: grid;
  gap: 8px;
  min-height: 360px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#log-list li {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--text);
  font-family: var(--font-sans);
}

.workspace-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.workspace-title h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.5rem, 5vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

.workspace-title p:last-child {
  margin: 10px 0 0;
  color: var(--muted);
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-account {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  max-width: min(360px, 42vw);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 6px 0 10px;
}

.workspace-account span {
  max-width: 240px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-account button {
  min-height: 30px;
  flex: 0 0 auto;
}

.top-actions .danger-action,
.danger-action {
  border-color: var(--line);
  background: var(--surface);
  color: var(--muted);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.status-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.launch-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.launch-band.live,
.launch-band.paused {
  border-color: var(--line-strong);
  background: var(--surface);
}

.launch-band strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.launch-band p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.launch-actions {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.secondary-action {
  background: var(--surface-subtle);
}

.agent-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(220px, 0.55fr) minmax(320px, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.agent-panel article,
.wave-bar,
.honesty-row {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  padding: 12px;
}

.agent-panel span,
.wave-bar span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
}

.agent-panel strong,
.wave-bar strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
}

.agent-panel p,
.agent-panel li {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.agent-actions ol {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.wave-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.wave-card summary {
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.compact-row {
  padding: 9px;
}

.honesty-table {
  display: grid;
  gap: 8px;
}

.honesty-row {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr 1.15fr 0.75fr 1fr;
  gap: 10px;
  align-items: start;
}

.honesty-head {
  background: var(--surface);
}

.honesty-row p,
.honesty-row strong {
  margin: 0;
  font-size: 0.88rem;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(1.7rem, 3vw, 2.9rem);
  line-height: 1;
}

.metrics small {
  display: block;
  margin-top: 8px;
  line-height: 1.3;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 251, 250, 0.94);
  backdrop-filter: blur(12px);
}

.tab {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-weight: 650;
}

.tab.active {
  border-color: var(--line);
  background: var(--surface-muted);
  color: var(--ink);
}

.tab-content {
  padding-bottom: 190px;
}

.workspace-grid,
.two-column,
.three-column,
.four-column {
  display: grid;
  gap: 12px;
}

.workspace-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workspace-panel,
.card {
  padding: 16px;
}

.wide-panel {
  grid-column: 1 / -1;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-head h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.panel-head p,
.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.list,
.timeline,
.mini-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-item,
.timeline-item,
.report-row,
.email-block,
.page-preview,
.source-row,
.task-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.list-item h4,
.timeline-item h4,
.card h4,
.page-preview h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 0.98rem;
}

.list-item p,
.timeline-item p,
.page-preview p,
.source-row p,
.task-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 4px 9px;
  text-align: center;
}

.status-chip.found,
.status-chip.built,
.status-chip.drafted,
.status-chip.queued,
.status-chip.sent,
.status-chip.followed-up,
.status-chip.replied,
.status-chip.booked,
.status-chip.learning,
.status-chip.paused {
  background: var(--surface);
  color: var(--muted);
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.profile-grid div {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.profile-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.profile-grid strong {
  color: var(--ink);
  line-height: 1.35;
}

.compact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.summary-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
}

.summary-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.summary-card p {
  margin: 0;
  color: var(--muted);
}

.heartbeat-source-list {
  margin-top: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
}

.timeline-state {
  color: var(--muted);
}

.email-block {
  display: grid;
  gap: 12px;
}

.email-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.email-body {
  margin: 0;
  white-space: pre-wrap;
  color: var(--text);
  font-family: inherit;
}

.recipient-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.recipient-preview span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  padding: 6px 9px;
  font-size: 0.82rem;
}

.page-preview {
  display: grid;
  gap: 10px;
}

.page-preview strong {
  color: var(--ink);
}

.hosted-page-note {
  margin-bottom: 12px;
}

.hosted-url {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.hosted-url span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hosted-url code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.86rem;
}

.ad-controls {
  display: grid;
  gap: 12px;
}

.budget-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.budget-options button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-weight: 650;
}

.budget-options button.active {
  border-color: var(--ink);
  color: var(--ink);
}

.report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.source-row strong,
.task-row strong,
.report-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.source-quality {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.founder-research {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.founder-research a {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.founder-research strong {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
}

.muted-note {
  color: var(--muted);
}

.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--text);
  padding: 12px;
}

.public-page {
  min-height: 100vh;
  padding: 42px 18px;
  background: var(--page);
}

.public-hero {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.public-brand {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-decoration: none;
}

.public-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.6rem);
}

.public-subhead {
  max-width: 760px;
  font-size: 1.15rem;
  line-height: 1.55;
}

.public-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.public-grid section,
.public-proof,
.public-next {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-subtle);
}

.public-grid h2,
.public-next h2,
.lead-form h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.public-grid ul,
.public-next ol {
  margin: 0;
  padding-left: 20px;
}

.public-proof {
  margin-top: 16px;
}

.public-intent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.public-intent span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.86rem;
}

.campaign-page-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.lead-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.lead-form label {
  display: grid;
  gap: 8px;
}

.lead-form input,
.lead-form textarea {
  padding: 12px;
  text-transform: none;
}

.lead-form button {
  width: fit-content;
}

.settings-url-form {
  display: grid;
  gap: 10px;
}

.settings-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.public-next {
  margin-top: 16px;
}

.chat-log {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  max-height: 360px;
  overflow: auto;
}

.chat-message {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.chat-message.owner {
  background: rgba(20, 40, 60, 0.06);
}

.chat-message p {
  margin: 6px 0 0;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.chat-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  font: inherit;
}

.chat-form button {
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--ink);
  color: var(--button-text);
  font: inherit;
  font-weight: 700;
}

.chat-dock {
  position: fixed;
  right: max(18px, calc((100vw - 1180px) / 2));
  bottom: 18px;
  z-index: 60;
  width: min(360px, calc(100vw - 28px));
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.chat-dock-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--ink);
  color: var(--button-text);
  text-align: left;
}

.chat-dock-toggle span {
  font-weight: 800;
}

.chat-dock-toggle small {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.chat-dock-body {
  padding: 12px;
}

.chat-dock.collapsed .chat-dock-body {
  display: none;
}

.chat-dock-intro {
  display: grid;
  gap: 3px;
}

.chat-dock-intro strong {
  color: var(--ink);
}

.chat-dock-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.chat-dock-log {
  max-height: 220px;
}

.chat-dock-form {
  grid-template-columns: minmax(0, 1fr) 72px;
}

@media (max-width: 1120px) {
  .status-strip,
  .metrics,
  .four-column {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .loading-layout,
  .workspace-header,
  .launch-band,
  .hero-proof,
  .role-grid,
  .operator-section,
  .pricing-section,
  .site-footer,
  .agent-panel,
  .wave-timeline,
  .honesty-row,
  .workspace-grid,
  .public-grid,
  .two-column,
  .three-column,
  .four-column {
    grid-template-columns: 1fr;
  }

  .workspace-header {
    display: grid;
  }

  .top-actions,
  .launch-actions {
    width: 100%;
  }

  .top-actions {
    display: grid;
    justify-content: stretch;
  }

  .top-actions button,
  .launch-actions button,
  .workspace-account {
    width: 100%;
  }

  .workspace-account {
    justify-content: space-between;
    max-width: none;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(100vw - 28px, 1180px);
  }

  .hero,
  .loading,
  .app {
    padding: 30px 0;
  }

  h1 {
    font-size: clamp(2.45rem, 13vw, 4.2rem);
  }

  .url-box,
  .auth-grid,
  .brand,
  .mode-picker,
  .status-strip,
  .metrics,
  .profile-grid,
  .timeline-item,
  .list-item,
  .report-row {
    grid-template-columns: 1fr;
  }

  .url-box button,
  .lead-form button,
  .chat-form button {
    width: 100%;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .chat-dock {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }

  .chat-dock-log {
    max-height: 220px;
  }

  .chat-dock-form {
    grid-template-columns: minmax(0, 1fr) 64px;
  }

  .chat-dock-form button {
    width: auto;
  }

  .brand {
    align-items: stretch;
    gap: 12px;
    margin-bottom: 44px;
  }

  .nav-links,
  .nav-actions,
  .site-footer nav {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .roles-band,
  .isnt-band,
  .legal-section,
  .final-cta {
    width: auto;
    margin-left: 0;
    margin-right: 0;
    padding: 28px;
  }

  .roles-band,
  .operator-section,
  .isnt-band,
  .pricing-section,
  .legal-section,
  .final-cta,
  .site-footer {
    margin-top: 58px;
  }

  .public-hero,
  .auth-form {
    padding: 20px;
  }
}

/* --- Modern login modal --- */
button.nav-login {
  cursor: pointer;
  font-family: inherit;
}

.login-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 17, 17, 0.38);
  backdrop-filter: blur(6px);
  animation: login-fade 0.16s ease-out;
}

@keyframes login-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.login-modal {
  position: relative;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 36px 32px 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
  animation: login-rise 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes login-rise {
  from { transform: translateY(10px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.login-modal .brand-logo {
  display: inline-block;
  margin-bottom: 22px;
  font-size: 1.3rem;
}

.login-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.login-close:hover {
  background: var(--surface-muted);
  color: var(--ink);
}

.login-step h2 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1.1;
}

.login-step > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.login-step label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.login-step input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  font-size: 1rem;
  outline: 0;
}

.login-step input:focus {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06);
}

#login-code {
  letter-spacing: 0.4em;
  font-variant-numeric: tabular-nums;
  font-family: var(--font-mono);
}

.login-step button[type="submit"] {
  width: 100%;
  min-height: 50px;
  margin-top: 18px;
  border: 0;
  border-radius: 8px;
  background: var(--button);
  color: var(--button-text);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.login-step button[type="submit"]:hover {
  background: #000;
}

.login-step button[type="submit"]:disabled {
  opacity: 0.55;
  cursor: default;
}

.login-ghost {
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 650;
  cursor: pointer;
}

.login-ghost:hover {
  border-color: var(--line-strong);
}

.login-step small {
  display: block;
  min-height: 20px;
  margin-top: 12px;
  color: var(--danger);
  font-size: 0.9rem;
}

.login-switch {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.login-switch button {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* --- Company switcher --- */
.company-switcher {
  position: relative;
}

.switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font-family: inherit;
  font-weight: 650;
  cursor: pointer;
}

.switcher-toggle:hover {
  border-color: var(--line-strong);
}

.switcher-label {
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.switcher-current {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switcher-caret {
  color: var(--soft);
  font-size: 0.7rem;
}

.switcher-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  width: min(320px, 80vw);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14), 0 2px 6px rgba(0, 0, 0, 0.06);
  padding: 6px;
}

.switcher-list {
  max-height: 320px;
  overflow-y: auto;
}

.switcher-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.switcher-item:hover {
  background: var(--surface-muted);
}

.switcher-item.active {
  font-weight: 750;
}

.switcher-check {
  color: var(--ink);
}

.switcher-empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.switcher-add {
  width: 100%;
  margin-top: 4px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: transparent;
  color: var(--ink);
  padding: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 750;
  text-align: left;
  cursor: pointer;
}

.switcher-add:hover {
  background: var(--surface-muted);
}

/* --- Company picker / not-found --- */
.picker {
  min-height: 100vh;
  padding: 48px 0;
}

.picker-account {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.picker-body {
  max-width: 760px;
  margin: 72px auto 0;
}

.picker-body h1 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
}

.picker-message {
  margin: 0 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text);
  padding: 12px 14px;
  font-size: 0.95rem;
}

.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.picker-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.picker-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.picker-card strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.picker-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-family: var(--font-mono);
}

.picker-card small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.picker-empty {
  color: var(--muted);
}

.picker-add {
  min-height: 50px;
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--button-text);
  padding: 0 20px;
  font-family: inherit;
  font-weight: 750;
  cursor: pointer;
}

.picker-add:hover {
  background: #000;
}

/* --- Danger zone (delete company) --- */
.danger-zone {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.danger-zone > span {
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.danger-action {
  min-height: 40px;
  border: 1px solid #f0c2bd;
  border-radius: 6px;
  background: #fff;
  color: #b42318;
  padding: 0 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}

.danger-action:hover {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.danger-zone small {
  color: var(--muted);
  font-size: 0.82rem;
}
