:root {
  color-scheme: light;
  --ink: #1e2a4a;
  --muted: #5b6472;
  --paper: #f7f8fb;
  --card: #ffffff;
  --line: #dde1e8;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --accent-pale: #e7edfc;
  --accent-secondary: #0d9488;
  --error: #b91c1c;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 15%, rgba(197, 209, 230, .42), transparent 24rem),
    radial-gradient(circle at 92% 68%, rgba(190, 216, 220, .3), transparent 28rem),
    var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
}

button, textarea, input, select { font: inherit; }
button { cursor: pointer; }
.page-shell { min-height: 100vh; }
.site-header {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(30, 42, 74, .13);
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 750; letter-spacing: -.02em; }
.brand-mark { width: 31px; height: 31px; border-radius: 50% 50% 42% 58%; display: grid; place-items: center; color: #fff; background: var(--accent); font-family: var(--sans); }
.phase-label { color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.account-menu { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .76rem; }
.account-menu .text-button { padding: 7px 9px; }
main { width: min(920px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.auth-panel { min-height: 68vh; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(36px, 8vw, 90px); }
.auth-copy h1 { font-size: clamp(2.7rem, 5vw, 4.6rem); }
.auth-copy > p:last-child { max-width: 510px; margin: 24px 0 0; color: var(--muted); font-size: 1.02rem; }
.auth-card { padding: 34px; border: 1px solid rgba(30, 42, 74, .12); border-radius: 18px; background: var(--card); box-shadow: 0 22px 60px rgba(30, 42, 74, .1); }
.auth-card > p:not(.panel-number) { margin: 9px 0 26px; color: var(--muted); font-size: .86rem; }
.auth-card label { margin-top: 17px; }
.auth-card .primary-button { width: 100%; margin-top: 24px; }
.auth-toggle { width: 100%; margin-top: 8px; font-size: .76rem; }
.auth-message { margin: 18px 0 4px; padding: 11px 13px; color: var(--accent); border: 1px solid #c7d4f0; border-radius: 8px; background: var(--accent-pale); font-size: .78rem; }
input, select { width: 100%; padding: 13px 14px; color: var(--ink); border: 1px solid #c9cdd6; border-radius: 9px; outline: none; background: #fafbfd; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.hero { text-align: center; max-width: 760px; margin: 0 auto 46px; }
.eyebrow, .ready-label { margin: 0 0 12px; color: var(--accent-secondary); font-size: .75rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1 { margin: 0; font: 600 clamp(2.65rem, 6vw, 5.15rem)/.98 var(--sans); letter-spacing: -.055em; }
h1 em { color: var(--accent); font-weight: 600; font-style: normal; }
.hero-copy { max-width: 650px; margin: 25px auto 0; color: var(--muted); font-size: 1.08rem; }
.progress { max-width: 730px; margin: 0 auto 28px; display: flex; align-items: center; }
.progress-step { display: flex; align-items: center; gap: 10px; color: #7b8494; white-space: nowrap; }
.progress-step > span { width: 31px; height: 31px; border: 1px solid #c9cdd6; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 800; }
.progress-step strong, .progress-step small { display: block; }
.progress-step strong { font-size: .8rem; }
.progress-step small { font-size: .68rem; }
.progress-step.is-active { color: var(--accent); }
.progress-step.is-active > span { color: #fff; border-color: var(--accent); background: var(--accent); }
.progress-step.is-complete > span { color: var(--accent); border-color: #9fb3e0; background: var(--accent-pale); }
.progress-line { height: 1px; flex: 1; min-width: 24px; margin: 0 15px; background: #d3d7de; }
.workspace-card { overflow: hidden; border: 1px solid rgba(30, 42, 74, .12); border-radius: 20px; background: var(--card); box-shadow: 0 24px 70px rgba(30, 42, 74, .09); }
.flow-panel { padding: clamp(28px, 5vw, 54px); }
.panel-heading { display: flex; gap: 20px; margin-bottom: 34px; }
.panel-number { flex: 0 0 auto; color: var(--accent-secondary); font: 600 .75rem var(--sans); letter-spacing: .12em; }
h2 { margin: 0; font: 600 clamp(1.7rem, 3vw, 2.35rem)/1.1 var(--sans); letter-spacing: -.025em; }
.panel-heading p { margin: 9px 0 0; color: var(--muted); }
label { display: block; margin: 0 0 9px; font-size: .78rem; font-weight: 800; letter-spacing: .035em; }
textarea { width: 100%; resize: vertical; padding: 18px; color: var(--ink); border: 1px solid #c9cdd6; border-radius: 11px; outline: none; background: #fafbfd; line-height: 1.55; transition: border .2s, box-shadow .2s; }
textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
textarea::placeholder { color: #8b93a3; }
.prompt-hints { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.prompt-hints span, .tag { padding: 5px 9px; border: 1px solid #dbe0e8; border-radius: 999px; color: #525b6b; background: #f2f4f8; font-size: .7rem; font-weight: 650; }
.form-footer, .review-actions, .button-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 30px; }
.form-footer p { margin: 0; color: var(--muted); font-size: .75rem; }
.shield { color: var(--accent); font-weight: 900; }
.primary-button, .secondary-button, .text-button { border-radius: 9px; padding: 12px 18px; font-weight: 750; transition: transform .15s, background .15s; }
.primary-button { color: #fff; border: 1px solid var(--accent); background: var(--accent); box-shadow: 0 7px 18px rgba(37, 99, 235, .22); }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.primary-button span { margin-left: 18px; }
.secondary-button { color: var(--accent); border: 1px solid #b7c3e0; background: transparent; }
.secondary-button:hover { background: var(--accent-pale); }
.text-button { color: var(--muted); border: 0; background: transparent; }
button:disabled { cursor: wait; opacity: .58; transform: none !important; }
.error-banner { margin: 0 0 18px; padding: 14px 17px; color: var(--error); border: 1px solid rgba(185, 28, 28, .25); border-radius: 9px; background: #fdecec; font-size: .86rem; }
.tab-nav { display: flex; gap: 6px; margin: 0 0 28px; padding: 5px; border: 1px solid rgba(30, 42, 74, .12); border-radius: 999px; background: rgba(255, 255, 255, .6); }
.tab-button { flex: 1; padding: 11px 18px; color: var(--muted); border: 0; border-radius: 999px; background: transparent; font: 700 .82rem var(--sans); cursor: pointer; transition: background .15s, color .15s; }
.tab-button:hover { color: var(--ink); }
.tab-button.is-active { color: #fff; background: var(--accent); box-shadow: 0 6px 16px rgba(37, 99, 235, .25); }
.getting-started { margin: 0 0 28px; padding: clamp(20px, 3vw, 28px); border: 1px solid #b7c6ea; border-radius: 16px; background: var(--accent-pale); }
.getting-started .eyebrow { margin-bottom: 14px; }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid rgba(37, 99, 235, .18); border-radius: 11px; background: #fff; }
.checklist-item > div { flex: 1; }
.checklist-item strong { display: block; font-size: .88rem; }
.checklist-item p { margin: 3px 0 0; color: var(--muted); font-size: .74rem; }
.check-dot { position: relative; flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid #b7c3e0; border-radius: 50%; }
.checklist-item.is-done { opacity: .55; }
.checklist-item.is-done .check-dot { border-color: var(--accent); background: var(--accent); }
.checklist-item.is-done .check-dot::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .68rem; font-weight: 900; }
.checklist-item.is-done button { display: none; }
.profiles-section > .queue-section:first-child,
.profiles-section > .history-section:first-child,
.profiles-section > .pipeline-section:first-child,
.profiles-section > .analytics-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.question-list { display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; }
.question-list li { position: relative; padding: 15px 17px 15px 45px; border: 1px solid #dbe0e8; border-radius: 10px; background: #f5f7fb; }
.question-list li::before { content: "?"; position: absolute; left: 15px; top: 14px; width: 20px; height: 20px; display: grid; place-items: center; color: var(--accent); border-radius: 50%; background: var(--accent-pale); font-size: .72rem; font-weight: 900; }
.align-right { justify-content: flex-end; }
.review-heading { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.ready-label { margin-bottom: 6px !important; }
.filter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--line); }
.filter-field { min-height: 130px; padding: 20px; background: #fafbfd; }
.filter-field.is-wide { grid-column: 1 / -1; }
.filter-field h3 { margin: 0 0 13px; color: var(--muted); font-size: .67rem; letter-spacing: .12em; text-transform: uppercase; }
.filter-field p { margin: 0; font-size: .92rem; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { color: var(--accent); border-color: #c7d4f0; background: var(--accent-pale); }
.correction-box { margin-top: 24px; padding: 22px; border: 1px solid #dbe0e8; border-radius: 12px; background: #f5f7fb; }
.button-row { justify-content: flex-end; margin-top: 15px; }
.review-actions { padding-top: 26px; border-top: 1px solid var(--line); }
.success-panel { padding-top: 70px; padding-bottom: 70px; text-align: center; }
.success-icon { width: 56px; height: 56px; margin: 0 auto 22px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--accent); font-size: 1.45rem; }
.success-panel > p:not(.eyebrow) { max-width: 560px; margin: 15px auto 27px; color: var(--muted); }
.scope-note { display: flex; justify-content: space-between; gap: 24px; margin: 22px 5px 0; color: var(--muted); font-size: .74rem; }
.scope-note span { color: var(--accent); font-weight: 800; white-space: nowrap; }
.scope-note p { max-width: 540px; margin: 0; text-align: right; }
.profiles-section { margin-top: 42px; padding: clamp(26px, 4vw, 38px); border: 1px solid rgba(30, 42, 74, .12); border-radius: 18px; background: rgba(255, 255, 255, .7); }
.profiles-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.profiles-heading .eyebrow { margin-bottom: 5px; }
.profiles-list { display: grid; gap: 10px; margin-top: 18px; }
.pipeline-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.pipeline-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.pipeline-heading h2 { margin: 4px 0 0; font: 600 1.35rem var(--sans); }
.pipeline-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: .76rem; }
.pipeline-board { display: grid; grid-template-columns: repeat(4, minmax(190px, 1fr)); gap: 12px; margin-top: 18px; overflow-x: auto; }
.pipeline-column { min-width: 190px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f4f6fa; }
.pipeline-column-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; color: var(--accent); font-size: .74rem; font-weight: 800; text-transform: uppercase; }
.pipeline-count { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--accent-pale); }
.pipeline-cards { display: grid; gap: 9px; }
.pipeline-card { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }
.pipeline-card strong { display: block; font: 600 .95rem var(--sans); }
.pipeline-card p { margin: 5px 0 9px; color: var(--muted); font-size: .68rem; }
.pipeline-card .outcome-summary { margin: 9px 0 0; color: var(--accent); font-weight: 750; }
.pipeline-card select { width: 100%; padding: 7px; font-size: .7rem; }
.pipeline-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.pipeline-card-actions .text-button { padding: 5px 7px; font-size: .66rem; }
.queue-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.queue-list { display: grid; gap: 10px; margin-top: 18px; }
.queue-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; }
.queue-item h3 { margin: 0; font: 600 .95rem var(--sans); }
.queue-item p { margin: 4px 0 0; color: var(--muted); font-size: .7rem; }
.queue-item .status-tag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; background: var(--accent-pale); color: var(--accent); font-size: .64rem; font-weight: 700; text-transform: uppercase; }
.queue-item .button-row { display: flex; gap: 6px; }
.history-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.history-list { display: grid; gap: 7px; margin-top: 18px; }
.history-row { display: grid; grid-template-columns: 1.3fr .8fr 1fr; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; font-size: .72rem; }
.history-row .history-status { font-weight: 700; text-transform: uppercase; font-size: .64rem; }
.history-row .history-status.sent { color: var(--accent); }
.history-row .history-status.failed { color: var(--error); }
.history-row .history-status.pending { color: var(--muted); }
.history-row .history-error { color: var(--error); font-size: .68rem; }
.outcome-form { display: grid; gap: 6px; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.outcome-form .text-button { padding: 6px; font-size: .68rem; }
.outcome-money { display: grid; grid-template-columns: 1fr 54px; gap: 5px; }
.outcome-money input { min-width: 0; padding: 7px; font-size: .7rem; }
.analytics-section { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.analytics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.analytics-grid article { padding: 15px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; }
.analytics-grid span, .analytics-grid small { display: block; color: var(--muted); font-size: .68rem; }
.analytics-grid strong { display: block; margin: 6px 0 4px; color: var(--accent); font: 600 1.45rem var(--sans); }
.analytics-revenue { margin: 12px 0 0; color: var(--muted); font-size: .74rem; }
.profile-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 17px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.profile-row h3 { margin: 0; font: 600 1.05rem var(--sans); }
.profile-row p { margin: 5px 0 0; color: var(--muted); font-size: .72rem; }
.profile-row .tags { margin-top: 10px; }
.profile-row button { align-self: center; }
.profile-actions { display: flex; align-items: center; gap: 8px; }
.calculator-shape-select { width: auto; padding: 8px 10px; font-size: .78rem; }
.seller-context-panel { margin-top: 20px; padding: 18px 20px; border: 1px solid #d3dae8; border-radius: 11px; background: #f7f9fc; }
.seller-context-heading { margin: 0 0 16px; font: 700 1.05rem var(--sans); }
.mailbox-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mailbox-panel p { margin: 4px 0 0; color: var(--muted); font-size: .76rem; }
.seller-context-form { margin-top: 22px; }
.seller-context-form > p:first-child { margin: 0 0 20px; color: var(--muted); font-size: .82rem; }
.seller-context-form > label { margin-top: 18px; }
.seller-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 18px; }
.seller-grid label { margin-top: 0; }
.prospects-panel { margin-top: 22px; padding: clamp(22px, 4vw, 34px); border: 1px solid #c3d0e8; border-radius: 14px; background: var(--card); }
.prospects-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.prospects-heading .eyebrow { margin-bottom: 5px; }
.prospects-summary { margin: 16px 0; color: var(--muted); font-size: .82rem; }
.prospects-list { display: grid; gap: 10px; }
.prospect-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfd; }
.prospect-card h3 { margin: 0; font: 600 1.08rem var(--sans); }
.prospect-card p { margin: 5px 0 0; color: var(--muted); font-size: .76rem; }
.prospect-card .tags { margin-top: 11px; }
.match-score { min-width: 58px; color: var(--accent); font-size: .76rem; font-weight: 800; text-align: right; }
.provider-note { margin: 18px 0 0; padding-top: 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: .7rem; }
.prospect-actions { display: grid; justify-items: end; gap: 9px; }
.draft-panel { margin-top: 20px; padding: 22px; border: 1px solid #c3d0e8; border-radius: 12px; background: #f6f8fc; }
.draft-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.draft-heading h3 { margin: 0; font: 600 1.35rem var(--sans); }
.draft-status { padding: 5px 9px; color: var(--accent); border: 1px solid #b7c6ea; border-radius: 999px; background: var(--accent-pale); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.draft-form label, #draft-form label { margin-top: 16px; }
.personalization-box { margin-top: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; font-size: .76rem; }
.personalization-box ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.nurture-step { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fafbfd; }
.nurture-step:first-child { margin-top: 0; }
.nurture-step h4 { margin: 0 0 12px; font: 600 .9rem var(--sans); }
.empty-state { margin-top: 18px; padding: 24px; color: var(--muted); border: 1px dashed #c9cdd6; border-radius: 10px; text-align: center; font-size: .82rem; }
.privacy-controls { margin-top: 25px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.pilot-panel { margin-top: 25px; padding: 18px 20px; border: 1px solid #d3dae8; border-radius: 11px; background: #f7f9fc; }
.pilot-panel summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.pilot-copy { margin-top: 14px; color: var(--muted); font-size: .76rem; }
.pilot-copy p { margin: 7px 0; }
.pilot-copy .profile-actions { justify-content: flex-start; margin-top: 12px; }
.pilot-feedback-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid #dbe0e8; }
.pilot-feedback-form h3 { margin: 0; font: 600 1.15rem var(--sans); }
.pilot-feedback-form > label { margin-top: 18px; }
.pilot-feedback-form > button { margin-top: 14px; }
.privacy-controls summary { cursor: pointer; color: var(--ink); font-weight: 750; }
.privacy-controls > div { display: flex; justify-content: space-between; gap: 25px; align-items: center; margin-top: 13px; }
.privacy-controls p { max-width: 580px; margin: 0; }
.danger-button { padding: 9px 12px; color: var(--error); border: 1px solid rgba(185, 28, 28, .3); border-radius: 8px; background: #fdecec; font-size: .72rem; font-weight: 750; white-space: nowrap; }
[hidden] { display: none !important; }

@media (max-width: 700px) {
  main { padding-top: 48px; }
  .hero { margin-bottom: 35px; }
  .progress-step div { display: none; }
  .progress { max-width: 320px; }
  .filter-grid { grid-template-columns: 1fr; }
  .filter-field.is-wide { grid-column: auto; }
  .form-footer, .review-actions, .scope-note { align-items: stretch; flex-direction: column; }
  .form-footer .primary-button, .review-actions button { width: 100%; }
  .scope-note p { text-align: left; }
  .auth-panel { min-height: auto; grid-template-columns: 1fr; }
  .auth-copy { text-align: center; }
  .auth-copy > p:last-child { margin-left: auto; margin-right: auto; }
  .account-menu span { display: none; }
  .profiles-heading, .privacy-controls > div { align-items: stretch; flex-direction: column; }
  .tab-nav { flex-wrap: wrap; border-radius: 16px; }
  .tab-button { flex: 1 1 40%; font-size: .76rem; padding: 10px 12px; }
  .checklist-item { flex-wrap: wrap; }
  .checklist-item button { margin-left: 36px; }
  .profile-row { grid-template-columns: 1fr; }
  .profile-actions { align-items: stretch; flex-direction: column; }
  .seller-grid { grid-template-columns: 1fr; }
  .pipeline-board { grid-template-columns: repeat(4, minmax(210px, 1fr)); }
  .analytics-grid { grid-template-columns: repeat(2, 1fr); }
  .prospect-card { grid-template-columns: 1fr; }
  .match-score { text-align: left; }
  .prospect-actions { justify-items: stretch; }
}
