:root {
  --ground: #F4F6F3;
  --surface: #FFFFFF;
  --sunken: #EDF0EC;
  --ink: #121A18;
  --ink-2: #3A4744;
  --dim: #5F6D69;
  --line: #D9DED9;
  --line-soft: #E8EBE7;
  --brand: #0A6B5E;
  --brand-hover: #085449;
  --brand-soft: #E2EEEA;
  --amber: #8A5A14;
  --amber-soft: #F5E9D4;
  --amber-line: #E4D3B4;

  --sans: Archivo, system-ui, sans-serif;
  --serif: Newsreader, Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
a { color: var(--brand); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1312px; margin: 0 auto; padding: 0 32px; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.muted { color: var(--dim); }
.mono { font-family: var(--mono); font-size: 12.5px; color: var(--dim); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 4px; font: 600 15px var(--sans); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-hover); color: #FFFFFF; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { color: var(--ink); border-color: var(--dim); }
.btn-outline { background: var(--surface); color: var(--brand); border-color: var(--brand); }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }

/* Header and footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo span { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a:not(.btn) { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.site-nav a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.site-footer { margin-top: 72px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 34px; padding-bottom: 34px; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-cols { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col a { font-size: 14px; color: var(--ink-2); text-decoration: none; }

/* Home: hero */
.hero { padding: 88px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: 60px; line-height: 1.04; letter-spacing: -0.032em; font-weight: 700; }
.hero .lede { font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* The core component: a candidate, their own words, and where they came from */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.candidate { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.candidate-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.candidate-name { font-size: 19px; font-weight: 600; }
.candidate-sub { font-size: 14.5px; color: var(--ink-2); }
.source { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 3px; font-family: var(--mono); font-size: 11px; white-space: nowrap; }
.source::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.source-rfai { background: var(--brand-soft); color: var(--brand); }
.source-demo { background: var(--amber-soft); color: var(--amber); }
.quote { margin: 0; padding: 15px 17px; background: var(--ground); border-radius: 5px; display: flex; flex-direction: column; gap: 9px; }
.quote-text { font-family: var(--serif); font-size: 16.5px; line-height: 1.58; color: var(--ink); }
.quote-cite { font-family: var(--mono); font-size: 10.5px; font-style: normal; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); }
.consent { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--brand); }
.consent-stale { color: var(--amber); }
.fine-print { font-size: 13.5px; line-height: 1.55; color: var(--dim); border-top: 1px solid var(--line-soft); padding-top: 14px; }

/* Home: sections */
.band { background: var(--ink); color: var(--ground); padding: 52px 0; }
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.band p { font-family: var(--serif); font-size: 26px; line-height: 1.4; max-width: 30em; }
.band .btn { background: transparent; color: var(--ground); border-color: var(--dim); }
.section { padding-top: 76px; }
.section-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.section-head h2 { font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 28px; display: flex; flex-direction: column; gap: 13px; }
.feature h3 { font-size: 21px; font-weight: 600; }
.feature p, .step p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.step { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 2px solid var(--line); }
.step:first-child { border-top-color: var(--brand); }
.step h3 { font-size: 18px; font-weight: 600; }
.step-num { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.honest { padding: 40px 44px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; }
.honest-copy { display: flex; flex-direction: column; gap: 16px; }
.honest-copy h2 { font-size: 31px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 600; }
.honest-copy p { font-size: 15.5px; line-height: 1.62; color: var(--ink-2); }
.checks { display: flex; flex-direction: column; gap: 12px; }
.check { display: flex; gap: 12px; padding: 16px 18px; background: var(--ground); border-radius: 5px; }
.check svg { flex: none; margin-top: 2px; }
.check strong { display: block; font-size: 15px; font-weight: 600; }
.check span { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.cta { margin-top: 72px; border-radius: 8px; background: var(--brand); padding: 52px 48px; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta h2 { font-size: 34px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; color: #FFFFFF; }
.cta p { font-size: 16px; color: #D5E6E1; margin-top: 8px; }
.cta .btn { background: #FFFFFF; color: var(--brand); font-weight: 700; }

/* Pricing */
.pricing-head { padding: 64px 0 36px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.pricing-head h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.028em; font-weight: 700; }
.pricing-head p { font-size: 17.5px; color: var(--ink-2); }
.plan { padding: 28px 26px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.plan-featured { border: 2px solid var(--brand); padding: 27px 25px; }
.plan-badge { position: absolute; top: -12px; left: 24px; padding: 4px 10px; border-radius: 3px; background: var(--brand); color: #FFFFFF; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }
.plan-name { font-size: 22px; font-weight: 600; }
.price { display: flex; align-items: baseline; gap: 5px; }
.price b { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price span { font-size: 14.5px; color: var(--dim); }
.plan-allowance { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; color: var(--dim); }
.plan ul { margin: 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.plan li { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.plan li.lead { color: var(--ink); font-weight: 500; }
.rules { margin-top: 56px; }
.rules h2 { font-size: 28px; line-height: 1.2; letter-spacing: -0.018em; font-weight: 600; margin-bottom: 22px; }
.rule { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.rule .eyebrow { color: var(--brand); }
.rule p { font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.wide-note { margin-top: 40px; padding: 30px 34px; display: flex; gap: 48px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.wide-note strong { font-size: 19px; font-weight: 600; }
.wide-note p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 48em; margin-top: 8px; }

/* Demo */
.demo-banner { background: var(--amber-soft); border-bottom: 1px solid var(--amber-line); }
.demo-banner .wrap { padding-top: 15px; padding-bottom: 15px; display: flex; gap: 13px; align-items: center; font-size: 14.5px; line-height: 1.5; color: var(--amber); }
.demo-banner svg { flex: none; }
.demo { padding-top: 36px; }
.demo .wrap { display: grid; grid-template-columns: 452px minmax(0, 1fr); gap: 28px; align-items: start; }
.demo-form { display: flex; flex-direction: column; gap: 18px; }
.demo-form h1 { font-size: 30px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.field textarea { min-height: 380px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font: 14.5px/1.65 var(--sans); color: var(--ink); resize: vertical; }
.results { display: flex; flex-direction: column; }
.results-head { padding: 20px 26px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.results-head strong { font-size: 16px; font-weight: 600; }
.results-body { padding: 22px 26px; display: flex; flex-direction: column; gap: 16px; }
.results-body .candidate { border: 1px solid var(--line-soft); border-radius: 6px; }
.results-note { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); padding: 13px 16px; background: var(--ground); border-radius: 6px; }
.results-empty { padding: 56px 32px; text-align: center; color: var(--dim); font-size: 15px; line-height: 1.6; }
.results-foot { padding: 22px 26px; border-top: 1px solid var(--line-soft); background: var(--ground); border-radius: 0 0 8px 8px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.results-foot strong { font-size: 16px; font-weight: 600; display: block; }
.results-foot span { font-size: 14px; color: var(--ink-2); }

@media (max-width: 1000px) {
  .hero .wrap, .honest, .demo .wrap { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 44px; }
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .section-head h2, .pricing-head h1 { font-size: 30px; }
  .honest, .cta { padding: 28px 22px; }
  .band p { font-size: 21px; }
  .candidate-head { flex-direction: column; }
  .footer-cols { gap: 32px; }
}

/* Forms */
.form-card { max-width: 460px; margin: 64px auto 0; padding: 36px 36px 32px; display: flex; flex-direction: column; gap: 20px; }
.form-card h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
.form-card form, .stack { display: flex; flex-direction: column; gap: 16px; }
.input-field { display: flex; flex-direction: column; gap: 7px; }
.input-field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.input-field input, .input-field select { min-height: 46px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); font: 15px var(--sans); color: var(--ink); }
.input-field .hint { font-size: 13px; color: var(--dim); }
.alert { padding: 12px 15px; border-radius: 5px; font-size: 14px; line-height: 1.5; }
.alert-error { background: #F3DED9; color: #A03325; border: 1px solid #E4BDB4; }
.alert-ok { background: var(--brand-soft); color: var(--brand); border: 1px solid #BFDAD3; }
.form-foot { font-size: 14px; color: var(--ink-2); }

/* App shell */
.app-shell { display: flex; min-height: 100vh; }
.rail { width: 236px; flex: none; background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 0; }
.rail .logo { padding: 0 20px 26px; }
.rail-nav { display: flex; flex-direction: column; }
.rail-nav a, .rail-nav span { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 0 20px 0 23px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.rail-nav a[aria-current="page"] { padding-left: 20px; border-left: 3px solid var(--brand); background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.rail-nav .soon { color: var(--dim); cursor: default; }
.rail-nav .soon small { margin-left: auto; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.rail-foot { margin-top: auto; padding: 0 16px; }
.trial-chip { border: 1px solid var(--amber-line); background: var(--amber-soft); border-radius: 6px; padding: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.trial-chip .eyebrow { color: var(--amber); font-size: 11px; }
.app-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top { height: 68px; border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; padding: 0 34px; gap: 20px; }
.app-top h1 { font-size: 19px; font-weight: 600; }
.app-top .who { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--ink-2); }
.app-body { padding: 30px 34px 48px; display: flex; flex-direction: column; gap: 20px; max-width: 1100px; }
.panel { padding: 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 18px; font-weight: 600; }
.panel p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.panels-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.meter { height: 9px; border-radius: 5px; background: var(--sunken); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 14.5px; color: var(--ink-2); }
.stat-row b { font-family: var(--mono); font-size: 13.5px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12.5px; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--brand); }
.status-wait { color: var(--amber); }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); font-weight: 400; padding: 0 12px 10px 0; border-bottom: 1px solid var(--line-soft); }
.table td { padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.btn-sm { min-height: 36px; padding: 0 13px; font-size: 13.5px; }
.btn-danger { background: var(--surface); color: #A03325; border-color: #E4BDB4; }
.inline-form { display: inline; }
.invite-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto; gap: 12px; align-items: end; }
.link-box { font-family: var(--mono); font-size: 13px; padding: 12px 14px; background: var(--ground); border: 1px solid var(--line); border-radius: 5px; word-break: break-all; }
.danger-zone { border-color: #E4BDB4; }
@media (max-width: 900px) {
  .rail { display: none; }
  .panels-2, .invite-row { grid-template-columns: 1fr; }
  .app-body, .app-top { padding-left: 16px; padding-right: 16px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
