/* ── TriagePilot — automation-first landing ── */
:root {
  --bg: #fafaff;
  --surface: #ffffff;
  --ink: #14141f;
  --ink-soft: #3a3a4d;
  --muted: #6d6d82;
  --line: #e7e7f2;
  --accent: #4f46e5;
  --accent-dark: #3d35c4;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --hero-bg: #0d0d1a;
  --hero-ink: #f4f4fb;
  --hero-muted: #a7a7c4;
  --good: #16a34a;
  --warn: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 20, 40, 0.05), 0 8px 28px rgba(20, 20, 60, 0.08);
  --shadow-lg: 0 2px 6px rgba(20, 20, 40, 0.06), 0 20px 60px rgba(20, 20, 60, 0.14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
code { background: #eef0f6; padding: 1px 7px; border-radius: 6px; font-size: 0.88em; }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(13, 13, 26, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; color: #fff; }
.logo-mark { color: #a5b4fc; }
.site-header nav { display: flex; gap: 22px; align-items: center; }
.site-header nav a:not(.btn) { color: var(--hero-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.site-header nav a:not(.btn):hover { color: #fff; }

/* ── buttons ── */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--font); font-size: 1rem; font-weight: 650;
  padding: 13px 26px; border-radius: 12px; text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, var(--accent) 55%, var(--accent-dark) 100%);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover { box-shadow: 0 8px 28px var(--accent-glow); filter: brightness(1.06); }
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 15px 32px; font-size: 1.06rem; }
.btn-small { padding: 9px 16px; font-size: 0.88rem; border-radius: 10px; }
.btn-block { display: block; text-align: center; width: 100%; }
.hero .btn-ghost { color: var(--hero-ink); border-color: rgba(255, 255, 255, 0.25); }
.hero .btn-ghost:hover { border-color: #a5b4fc; color: #fff; }
.site-header .btn-primary { box-shadow: none; }

/* ── hero ── */
.hero {
  background:
    radial-gradient(900px 420px at 12% -8%, rgba(99, 102, 241, 0.35), transparent 60%),
    radial-gradient(760px 380px at 88% 8%, rgba(168, 85, 247, 0.22), transparent 60%),
    var(--hero-bg);
  color: var(--hero-ink);
  padding: 84px 0 90px;
  overflow: hidden;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-visual { max-width: 520px; } }
.eyebrow {
  display: inline-block; font-size: 0.76rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em; color: #c7d2fe;
  background: rgba(99, 102, 241, 0.16); border: 1px solid rgba(99, 102, 241, 0.35);
  padding: 7px 14px; border-radius: 999px; margin: 0 0 20px;
}
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 3.9rem);
  line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 18px; color: #fff;
}
.lede { font-size: 1.18rem; color: var(--hero-muted); max-width: 560px; margin: 0 0 30px; }
.lede em { color: #fff; font-style: normal; font-weight: 650; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 560px; }
.hero-points li { color: var(--hero-muted); font-size: 0.96rem; padding-left: 28px; position: relative; }
.hero-points li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 800; }
.hero-points strong { color: #fff; }

/* hero mock dashboard */
.hero-visual { position: relative; }
.mock-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 18px; padding: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transform: rotate(1.2deg);
  color: var(--ink);
}
.mock-title { font-weight: 750; font-size: 0.95rem; margin: 0 0 14px; letter-spacing: -0.01em; }
.mock-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: #fff; }
.mock-row:last-child { margin-bottom: 0; }
.mock-row.dim { opacity: 0.72; }
.mock-row p { margin: 8px 0 10px; font-size: 0.9rem; color: var(--ink-soft); }
.mock-row .badge, .mock-row .pill { margin-right: 6px; }

/* ── how it works ── */
.steps { padding: 60px 0 8px; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 760px) { .steps-grid { grid-template-columns: 1fr; } }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, var(--accent-dark));
  color: #fff; font-weight: 800; font-size: 0.95rem; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 1.08rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* ── sections ── */
.inbox, .demo, .pricing, .waitlist { padding: 76px 0; }
.section-eyebrow {
  font-size: 0.76rem; font-weight: 750; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--accent); margin: 0 0 10px;
}
.inbox h2, .demo h2, .pricing h2, .waitlist h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; margin: 0 0 10px;
}
.section-sub { color: var(--muted); margin: 0 0 30px; max-width: 660px; font-size: 1.05rem; }

/* ── demo ── */
.demo { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
.demo-toolbar { display: flex; gap: 8px; margin-bottom: 10px; }
#emailInput {
  width: 100%; font-family: var(--font); font-size: 0.92rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 14px; resize: vertical; background: var(--bg); color: var(--ink);
}
#emailInput:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.demo-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.mode-badge {
  font-size: 0.8rem; font-weight: 650; color: #92400e;
  background: #fef3c7; border: 1px solid #fcd34d;
  padding: 6px 13px; border-radius: 999px;
}
.mode-badge.live { color: #065f46; background: #d1fae5; border-color: #6ee7b7; }
.error { color: var(--warn); font-size: 0.92rem; font-weight: 600; }

.stats-bar { display: flex; gap: 12px; margin-bottom: 16px; }
.stat {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px 14px; text-align: center;
  box-shadow: var(--shadow);
}
.stat span { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }
.stat label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.stat-alert span { color: var(--warn); }
.stat-good span { color: var(--good); }

.results { display: grid; gap: 12px; }
.results-empty {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 44px 20px; text-align: center; color: var(--muted);
  background: var(--bg);
}
.result-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.result-card.is-urgent { border-left: 4px solid var(--warn); }
.result-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.badge {
  font-size: 0.76rem; font-weight: 750; padding: 5px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.cat-lead { background: #dcfce7; color: #166534; }
.cat-support { background: #dbeafe; color: #1e40af; }
.cat-refund { background: #fee2e2; color: #991b1b; }
.cat-spam { background: #f1f1f6; color: #6d6d82; }
.cat-general { background: #ede9fe; color: #5b21b6; }
.pill { font-size: 0.76rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; }
.pill-urgent { background: var(--warn); color: #fff; }
.pill-routine { background: #f1f1f6; color: var(--muted); }
.result-snippet { margin: 0 0 12px; font-size: 0.95rem; color: var(--ink-soft); }
.conf-row { display: flex; align-items: center; gap: 10px; }
.conf-bar { flex: 1; height: 8px; background: #eef0f6; border-radius: 999px; overflow: hidden; }
.conf-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #a5b4fc); border-radius: 999px; }
.conf-label { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }

/* ── inbox (Pro) ── */
.inbox { background: linear-gradient(180deg, #eef0ff 0%, var(--bg) 90px); }
.inbox-gate {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 32px 22px; text-align: center; color: var(--muted); background: var(--surface);
  box-shadow: var(--shadow);
}
.inbox-gate a { color: var(--accent); font-weight: 650; }
.inbox-status {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin-bottom: 22px;
  box-shadow: var(--shadow); font-size: 0.93rem;
}
.inbox-status .ok-line { color: var(--good); font-weight: 700; margin: 0 0 6px; }
.inbox-status .err-line { color: var(--warn); font-weight: 700; margin: 8px 0 0; }
.inbox-status p { margin: 4px 0; }
.inbox-form {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; box-shadow: var(--shadow-lg);
}
.inbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 6px; }
@media (max-width: 640px) { .inbox-grid { grid-template-columns: 1fr; } .inbox-form { padding: 20px; } }
.inbox-grid label { display: grid; gap: 7px; font-size: 0.85rem; font-weight: 650; color: var(--ink-soft); }
.inbox-grid input, .inbox-grid select {
  font-family: var(--font); font-size: 0.96rem; font-weight: 400;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--bg); width: 100%; color: var(--ink);
}
.inbox-grid input:focus, .inbox-grid select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.inbox-hint { text-align: left; margin: 12px 0 0; }
.email-meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 8px; }
.email-meta strong { color: var(--ink-soft); }
#inboxEmailsWrap { margin-top: 30px; }
#inboxEmailsWrap h3 { margin: 0 0 14px; font-size: 1.25rem; letter-spacing: -0.01em; }

/* ── pricing ── */
.pricing { background: var(--hero-bg); color: var(--hero-ink); position: relative; overflow: hidden; }
.pricing::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 340px at 50% 0%, rgba(99, 102, 241, 0.28), transparent 65%);
  pointer-events: none;
}
.pricing .container { position: relative; }
.pricing .section-sub { color: var(--hero-muted); }
.pricing h2 { color: #fff; }
.price-card {
  max-width: 440px; margin: 0 auto; border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px; padding: 36px; background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}
.price-eyebrow { font-weight: 750; color: #a5b4fc; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.1em; margin: 0 0 10px; }
.price { margin: 0 0 22px; color: #fff; }
.price-range { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.per { color: var(--hero-muted); }
.price-card ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 11px; color: #d9d9ec; }
.price-card ul li { padding-left: 28px; position: relative; }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: #34d399; font-weight: 800; }
.fine-print { font-size: 0.8rem; text-align: center; margin: 12px 0 0; }

/* license activation */
.license-box { margin-top: 22px; padding-top: 22px; border-top: 1px dashed rgba(255, 255, 255, 0.16); }
.license-title { margin: 0 0 10px; font-size: 0.95rem; color: #fff; }
.license-title .muted { color: var(--hero-muted); }
.license-row { display: flex; gap: 8px; }
.license-row input {
  flex: 1; min-width: 0;
  font-family: var(--font); font-size: 0.9rem; color: #fff;
  padding: 11px 14px; border: 1.5px solid rgba(255, 255, 255, 0.18); border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
}
.license-row input::placeholder { color: #8b8ba8; }
.license-row input:focus { outline: none; border-color: #a5b4fc; }
.license-row .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.license-row .btn-ghost:hover { border-color: #a5b4fc; color: #fff; }
.license-msg { font-size: 0.88rem; font-weight: 600; margin: 10px 0 0; }
.license-msg.ok { color: #34d399; }
.license-msg.error { color: #fca5a5; }

/* usage line under the demo */
.usage-line { font-size: 0.85rem; margin: 10px 0 0; }
.usage-line a { color: var(--accent); font-weight: 650; }

/* ── waitlist / contact ── */
.waitlist { text-align: center; }
.waitlist .section-sub { margin-left: auto; margin-right: auto; }
.waitlist-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.waitlist-form input {
  font-family: var(--font); font-size: 1rem; padding: 13px 16px; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px; min-width: 280px; background: var(--surface);
}
.waitlist-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.waitlist-msg { color: var(--good); font-weight: 650; margin-top: 16px; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 30px 0; background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.9rem; }
.footer-inner p { margin: 0; }

@media (max-width: 640px) {
  .hero { padding: 60px 0 64px; }
  .site-header nav a:not(.btn) { display: none; }
  .inbox, .demo, .pricing, .waitlist { padding: 56px 0; }
}

/* ── added: new categories, urgency bands, corrections, contact ──────── */

/* two categories the old build was missing, and they are the two that
   matter most to a shop: scheduling and money owed */
.cat-sched   { background: #fef3c7; color: #92400e; }
.cat-billing { background: #ffe4e6; color: #9f1239; }

/* three urgency bands instead of a coin-flip yes/no at 0.5 */
.pill-maybe { background: #fef3c7; color: #92400e; }
.result-card.band-urgent  { border-left: 4px solid var(--warn); }
.result-card.band-maybe   { border-left: 4px solid #f59e0b; }
.result-card.band-routine { border-left: 4px solid transparent; }

/* the runner-up call: this is what makes "shows its work" true */
.alt-line {
  margin: 6px 0 0;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

/* one-tap correction */
.fix-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.fix-label {
  font-size: 0.74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.fix-select {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.82rem;
  padding: 6px 9px;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
}
.fix-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.result-card.was-corrected {
  box-shadow: inset 0 0 0 1.5px var(--good);
}
.result-card.was-corrected .fix-label::after {
  content: " \2713 saved";
  color: var(--good);
}

/* category legend under the demo */
.cat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}
.cat-legend li { margin: 0; }

/* contact note field */
.contact-note {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 12px auto 0;
  font: inherit;
  font-size: 0.92rem;
  padding: 11px 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  resize: vertical;
}
.contact-note:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.waitlist-msg.ok    { color: var(--good); }
.waitlist-msg.error { color: var(--warn); }

@media (max-width: 560px) {
  .fix-row { flex-wrap: wrap; }
  .fix-select { width: 100%; flex: 1 1 100%; }
}

/* the model is split and says so, rather than asserting a verdict */
.pill-unsure { background: #e0e7ff; color: #3730a3; }
.result-card.is-unsure { background: repeating-linear-gradient(135deg, transparent, transparent 14px, rgba(99,102,241,0.04) 14px, rgba(99,102,241,0.04) 28px); }
.unsure-line { color: #4338ca; font-weight: 600; }
