/* PDF Hound landing page.
   Hand-written, Tailwind-token-flavored CSS. Zero frameworks, zero images, one file.
   Accessibility notes:
   - all text/background pairs >= 4.5:1 (grade badges use dark backgrounds for white text)
   - visible :focus-visible styles everywhere
   - honors prefers-reduced-motion
*/

:root {
  /* ---- PDF Hound design system (Anthropic cream / coral / navy) ---- */
  --canvas: #faf9f5;                 /* warm cream page floor — the brand's defining choice */
  --surface-soft: #f5f0e8;
  --surface-card: #efe9de;
  --surface-cream-strong: #e8e0d2;
  --surface-dark: #181715;
  --surface-dark-elevated: #252320;
  --surface-dark-soft: #1f1e1b;

  --coral: #9a4d35;                  /* signature accent — primary CTAs + full-bleed callouts */
  --coral-active: #7f3d28;
  --coral-disabled: #e6dfd8;

  --ink: #141413;                    /* headlines + primary text */
  --body-strong: #252523;
  --body: #3d3d3a;
  --muted: #6c6a64;
  --muted-soft: #8e8b82;
  --on-primary: #ffffff;
  --on-dark: #faf9f5;
  --on-dark-soft: #a09d96;

  --hairline: #e6dfd8;               /* 1px borders on cream — one elevation step, not ink lines */
  --hairline-soft: #ebe6df;

  --success: #2e7d55;                /* dark enough for white text on a badge */
  --success-dot: #5db872;
  --warning: #92400e;
  --error: #b23b3b;

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-pill: 9999px;
  --maxw: 1120px;

  /* ---- Legacy token names remapped so existing rules inherit the new palette ---- */
  --blue-700: var(--coral);
  --blue-800: var(--coral-active);
  --blue-900: var(--coral-active);
  --navy: var(--surface-dark);
  --slate-900: var(--ink);
  --slate-700: var(--body);
  --slate-600: var(--muted);
  --slate-200: var(--hairline);
  --slate-100: var(--surface-soft);
  --slate-50: var(--surface-soft);
  --green-900: var(--success);
  --amber-900: var(--warning);
  --red-900: var(--error);
  --radius: var(--r-lg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 17px;
}

.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Editorial display: EB Garamond serif at weight 400 with negative tracking, warm ink. */
h1, h2, h3 { font-family: "EB Garamond", Garamond, "Times New Roman", serif; font-weight: 400;
  color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.018em; }
h3 { font-size: 1.3rem; margin: 0 0 6px; letter-spacing: -0.01em; }
a { color: var(--blue-700); }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, label:focus-visible {
  outline: 3px solid var(--blue-700);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff;
  padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--hairline); background: var(--canvas); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; padding-bottom: 10px; gap: 16px; }
.brand-logo-link { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.brand-logo { height: 50px; width: auto; display: block; }
.brand-word { font-weight: 800; font-size: 25px; line-height: 1; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; }
.brand-word b { color: var(--coral); font-weight: 800; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.site-header nav a { padding: 6px 12px; text-decoration: none; color: var(--body); font-weight: 500; border-radius: var(--r-md); white-space: nowrap; }
.site-header nav a:hover { color: var(--coral-active); background: var(--surface-soft); }
.site-header nav a[aria-current="page"] { color: var(--ink); background: var(--surface-soft); }

/* Hamburger — hidden on desktop */
.nav-toggle { display: none; flex: 0 0 auto; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: var(--r-md); color: var(--ink); }
.nav-toggle:hover { background: var(--surface-soft); }
.nav-toggle svg { display: block; }

/* Mobile nav drawer */
.nav-drawer { display: none; flex-direction: column; border-top: 1px solid var(--hairline); }
.nav-drawer nav { display: flex; flex-direction: column; }
.nav-drawer nav a { padding: 13px 20px; border-bottom: 1px solid var(--hairline); font-size: 1rem;
  font-weight: 500; color: var(--body); text-decoration: none; }
.nav-drawer nav a:hover { background: var(--surface-soft); color: var(--coral-active); }
.auth-area-mobile { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px 20px; font-size: 0.95rem; color: var(--body); }
.gsi-slot { display: inline-flex; }

@media (max-width: 720px) {
  .brand-logo { height: 42px; }
  .brand-word { font-size: 21px; }
  .header-nav, #auth-area { display: none !important; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .site-header.nav-open .nav-drawer { display: flex; }
}

/* Anchor targets clear the sticky header when scrolled into view. */
#result, #result-heading, .result-h { scroll-margin-top: 96px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--slate-50), #fff); padding: 48px 0 56px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 48px; align-items: center;
}
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.subhead { font-size: 1.15rem; color: var(--slate-700); margin: 0 0 18px; }
.hero-support { font-size: 1rem; color: var(--slate-700); max-width: 640px; margin: 0 0 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 20px; }
.hero-cta, .section-cta { width: auto; text-decoration: none; text-align: center; }
.hero-link {
  display: inline-flex; align-items: center; min-height: 38px;
  color: var(--coral); font-weight: 700; text-decoration: none;
}
.hero-link:hover { color: var(--coral-active); text-decoration: underline; }
.privacy-strip {
  font-size: 0.92rem; color: var(--slate-700); background: var(--slate-100);
  border-left: 4px solid var(--blue-700); padding: 10px 14px; border-radius: 0 8px 8px 0;
}

/* Upload card */
.upload-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 10px 30px rgba(15, 26, 61, 0.08);
  width: 100%; justify-self: end;
}
.dropzone {
  border: 2px dashed var(--blue-700); border-radius: var(--radius);
  background: var(--slate-50); text-align: center; position: relative;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone.dragover { background: #e8efff; border-color: var(--blue-900); }
/* The file input is opacity:0 over the dropzone, so its own focus ring is invisible — surface
   keyboard focus on the dropzone container instead (WCAG 2.4.7). */
.dropzone:focus-within { outline: 3px solid var(--blue-700); outline-offset: 3px; border-color: var(--blue-900); }
.dropzone-label { display: block; padding: 34px 18px; cursor: pointer; }
.dropzone-title { display: block; font-weight: 700; font-size: 1.05rem; color: var(--blue-800); }
.dropzone-hint { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--slate-600); }
#file-input {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
}
.dropzone + .btn { margin-top: 16px; }
.email-row { margin: 16px 0 14px; display: flex; flex-direction: column; gap: 6px; }
.email-row label { font-weight: 600; font-size: 0.95rem; }
.optional { font-weight: 400; color: var(--slate-600); }
.email-row input {
  padding: 10px 12px; border: 1px solid var(--slate-200); border-radius: 8px; font-size: 1rem;
}
.btn {
  display: inline-block; border: 0; border-radius: var(--r-md); padding: 12px 22px;
  font-size: 1rem; font-weight: 500; cursor: pointer; width: 100%;
}
.btn-primary { background: var(--coral); color: var(--on-primary); }
.btn-primary:hover { background: var(--coral-active); }
.btn-primary[disabled] { background: var(--coral-disabled); color: var(--muted); cursor: wait; }
.btn-ghost { background: var(--canvas); color: var(--ink); border: 1px solid var(--hairline);
  text-decoration: none; }
.btn-ghost:hover { background: var(--surface-soft); }
/* The per-page math shown above the remediation CTA (Addendum E). */
.price-math { font-size: 0.85rem; color: var(--slate-600); margin: 0 0 8px;
  font-variant-numeric: tabular-nums; }
.fine-print { font-size: 0.85rem; color: var(--slate-600); margin: 10px 0 0; }

/* Result area — a full-width panel in the main body (not the narrow upload column). The wrapper
   adds no chrome when empty (so there's no gap before an audit runs); spacing lives on the panel. */
#result:not(:empty) {
  margin: 16px 0 48px;
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 26px 30px; box-shadow: 0 10px 30px rgba(15, 26, 61, 0.06);
}
@media (max-width: 560px) { #result:not(:empty) { padding: 20px 18px; } }
/* Focus is moved here programmatically after an audit; the heading is the visible cue, so no
   outline on the container itself. */
#result:focus { outline: none; }
.result-h { font-size: 1.5rem; margin: 0 0 18px; }

/* Grade header spans the full width; then issues | remediation sit side by side. */
.result-header {
  display: flex; gap: 20px; align-items: center;
  padding-bottom: 18px; border-bottom: 1px solid var(--slate-200); margin-bottom: 20px;
}
.result-header-text { flex: 1; }
.result-header-text p { margin: 0 0 6px; }
.result-header-text p:last-child { margin-bottom: 0; }
.grade-label { color: var(--slate-700); }
.report-actions { margin: -6px 0 18px; }
.report-actions .btn { width: auto; padding: 9px 14px; font-size: 0.92rem; }
.result-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
@media (max-width: 760px) { .result-cols { grid-template-columns: 1fr; gap: 20px; } }
.result-col > h3:first-child { margin-top: 0; }
.result-col .buckets { grid-template-columns: 1fr; }   /* stack the two buckets in the side column */
.result-col .verdict { margin-top: 0; }
.muted { color: var(--slate-600); }
.result-cta { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--slate-200); }
.result-cta .btn { width: auto; }

/* Full inline report (Addendum E): the free deliverable is the whole report, shown up front. */
.remediable { text-align: center; padding: 0 6px; }
.remediable-num { display: block; font-size: 2.2rem; font-weight: 800; color: var(--green-900);
  line-height: 1; }
.remediable-label { display: block; font-size: 0.78rem; color: var(--slate-600); max-width: 150px;
  margin-top: 4px; }
.result-verdict { margin: 6px 0; }
.report-h { font-size: 1.15rem; margin: 26px 0 12px; color: var(--navy); }
.findings-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .findings-list { grid-template-columns: 1fr; } }
.finding { background: #fff; border: 1px solid var(--slate-200); border-left-width: 5px;
  border-radius: 8px; padding: 12px 14px; }
.finding.sev-critical { border-left-color: #991b1b; }
.finding.sev-serious { border-left-color: #9a3412; }
.finding.sev-moderate { border-left-color: #92400e; }
.finding.sev-minor { border-left-color: #4b5563; }
.finding .f-head { margin: 0 0 4px; }
.sev-pill { display: inline-block; border-radius: 20px; padding: 1px 9px; font-size: 0.7rem;
  font-weight: 700; color: #fff; text-transform: capitalize; }
.sev-pill.sev-critical { background: #991b1b; } .sev-pill.sev-serious { background: #9a3412; }
.sev-pill.sev-moderate { background: #92400e; } .sev-pill.sev-minor { background: #4b5563; }
.f-clauses { font-size: 0.75rem; color: var(--slate-600); margin: 0 0 6px; }
.f-exp { margin: 0 0 6px; font-size: 0.92rem; color: var(--slate-700); }
.f-fix { margin: 0; font-size: 0.9rem; background: var(--slate-50); border-radius: 6px;
  padding: 6px 10px; }
.f-tag { margin: 6px 0 6px; font-size: 0.85rem; font-weight: 700; }
.f-tag-fix { color: var(--green-900); }
.f-tag-flag { color: var(--warning); }
.finding.finding-flag { border-left-color: #d97706; background: #fffbeb; }
.fixplan { padding-left: 22px; } .fixplan li { margin: 6px 0; }

/* Machine-validation evidence (veraPDF profiles) */
.val-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column;
  gap: 8px; }
.val-item { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.val-badge { display: inline-block; border-radius: 20px; padding: 2px 11px; font-size: 0.75rem;
  font-weight: 700; color: #fff; }
.val-badge.val-pass { background: var(--green-900); }
.val-badge.val-fail { background: #9a3412; }
.val-item small { color: var(--slate-600); }

/* Credit purchase / post-payment (Stripe + prepaid credits) */
.buy-panel { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--slate-200);
  border-radius: 10px; background: var(--slate-50); }
.buy-opts { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.remediation-started { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-card); border: 1px solid var(--hairline); }
.pay-banner { margin: 16px 0; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-card); border: 1px solid var(--hairline); }

/* Account sign-in (Phase 2) */
.auth-area { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  justify-content: flex-end; font-size: 0.9rem; }
.auth-user { color: var(--slate-700); }
.btn-link { background: none; border: none; color: var(--blue-700); cursor: pointer;
  font: inherit; text-decoration: underline; padding: 0; }
.attach-note { flex-basis: 100%; font-size: 0.82rem; color: var(--slate-600); text-align: right; }

/* Local audit history (this browser's past audits) */
.history { margin: 8px 0 6px; }
.history:empty { display: none; }
.hist-h { font-size: 1.05rem; margin: 0 0 10px; }
.hist-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column;
  gap: 8px; }
.hist-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  border: 1px solid var(--slate-200); border-radius: 10px; background: #fff; }
.grade-badge.hist-grade { width: 38px; height: 38px; min-width: 38px; font-size: 1.1rem;
  border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.hist-meta { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.hist-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-meta small { color: var(--slate-600); }
.hist-open { width: auto; padding: 6px 14px; flex: 0 0 auto; }
.hist-review { width: auto; padding: 6px 14px; flex: 0 0 auto; }
.hist-tag { align-self: flex-start; margin: 2px 0; padding: 1px 8px; border-radius: 999px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  color: #065f46; background: #ecfdf5; border: 1px solid var(--green-900); }
.hist-job-dot {
  width: 38px; height: 38px; min-width: 38px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-dark); color: var(--on-dark); font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase;
}
.hist-job-open { width: auto; padding: 6px 14px; flex: 0 0 auto; }
.hist-del { flex: 0 0 auto; font-size: 0.82rem; }
@media (max-width: 560px) { .hist-item { flex-wrap: wrap; } .hist-meta { flex-basis: 55%; } }

.grade-badge {
  font-size: 2.4rem; font-weight: 800; color: #fff; border-radius: 10px;
  padding: 6px 20px; line-height: 1.2;
}
.grade-A, .grade-B { background: var(--green-900); }
.grade-C { background: var(--amber-900); }
.grade-D, .grade-F { background: var(--red-900); }
.result-issues { margin: 10px 0 0; padding-left: 20px; }
.result-issues li { margin: 6px 0; }
.sev-tag { font-weight: 700; text-transform: capitalize; }
.result-cta { margin-top: 14px; }
.decline-box {
  background: var(--slate-100); border-left: 4px solid var(--amber-900);
  padding: 12px 16px; border-radius: 0 8px 8px 0;
}
.error-box { color: var(--red-900); font-weight: 600; }

/* Bands */
.band { padding: 56px 0; }
.band-alt { background: var(--slate-50); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; background: var(--blue-700);
  color: #fff; font-weight: 800; margin-bottom: 10px;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 980px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: #fff; border: 1px solid var(--slate-200); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column;
}
.pricing-grid-2 { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }
@media (max-width: 560px) { .pricing-grid-2 { grid-template-columns: 1fr; } }
.price-card-featured { border: 2px solid var(--blue-700); }
.price { font-size: 2rem; font-weight: 800; color: var(--navy); margin: 4px 0 10px; }
.price .per { display: block; font-size: 0.85rem; font-weight: 500; color: var(--slate-600); }
.price-card p:last-child { font-size: 0.95rem; color: var(--slate-700); }
.pricing-note { margin-top: 16px; font-weight: 600; }
.pricing-examples {
  max-width: 560px; margin: 24px auto 0;
}
.pricing-examples h3 { font-size: 1.1rem; margin-bottom: 10px; }
.pricing-examples table {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--slate-200); border-radius: var(--radius); overflow: hidden;
}
.pricing-examples th, .pricing-examples td {
  padding: 10px 14px; border-bottom: 1px solid var(--slate-100); text-align: left;
}
.pricing-examples tr:last-child td { border-bottom: 0; }
.pricing-examples th:last-child, .pricing-examples td:last-child {
  text-align: right; font-variant-numeric: tabular-nums; font-weight: 700;
}

/* Deadlines */
.lede { font-size: 1.1rem; max-width: 720px; }
.split-band { display: flex; justify-content: space-between; gap: 28px; align-items: center; }
@media (max-width: 720px) { .split-band { display: block; } }
.split-band p:last-child { flex: 0 0 auto; margin: 0; }

/* Review & edit capabilities checklist */
.review-caps { list-style: none; padding: 0; margin: 18px 0; display: grid;
  grid-template-columns: 1fr 1fr; gap: 10px 30px; max-width: 920px; }
@media (max-width: 640px) { .review-caps { grid-template-columns: 1fr; } }
.review-caps li { padding-left: 28px; position: relative; color: var(--slate-700); }
.review-caps li::before { content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green-900); font-weight: 800; }
.review-note { font-size: 0.92rem; color: var(--slate-600); margin-top: 12px; max-width: 720px; }
.deadlines { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 860px; }
@media (max-width: 720px) { .deadlines { grid-template-columns: 1fr; } }
.deadlines li {
  background: var(--slate-100); border-radius: 8px; padding: 10px 14px; font-weight: 600;
  border-left: 4px solid var(--blue-700);
}

/* Scope */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .scope-grid { grid-template-columns: 1fr; } }
.scope-col { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--slate-200); }
.scope-in { border-top: 4px solid var(--green-900); }
.scope-out { border-top: 4px solid var(--amber-900); }
.scope-col ul { padding-left: 20px; }
.scope-col li { margin: 6px 0; }

/* Sample report */
.sample-report-band {
  border-top: 3px solid var(--coral); border-bottom: 1px solid var(--hairline);
  padding-top: 8px; padding-bottom: 8px;
}

/* FAQ */
.faq-item {
  background: #fff; border: 1px solid var(--slate-200); border-radius: 10px;
  margin: 10px 0; padding: 0 18px;
}
.faq-item summary {
  font-weight: 700; padding: 14px 0; cursor: pointer; list-style-position: inside;
}
.faq-item p { margin-top: 0; color: var(--slate-700); }

/* Developer preview panel (local only) */
.dev-box { margin-top: 18px; padding-top: 16px; border-top: 2px dashed var(--slate-200); }
.dev-label {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--slate-600); margin: 0 0 10px;
}
.dev-box .btn { width: auto; display: inline-block; margin: 0 6px 8px 0; text-decoration: none; }
#dev-remediate { background: var(--green-900); }
#dev-remediate:hover { background: #035a41; }
.dev-remediation { margin-top: 14px; }
.dev-remediation h3 { font-size: 1.05rem; margin: 18px 0 6px; color: var(--navy); }
.dev-remediation .muted { color: var(--slate-600); font-size: 0.9rem; margin: 2px 0 8px; }
.dev-remediation ul.mani { margin: 0 0 6px; padding-left: 20px; }
.dev-remediation ul.mani li { margin: 3px 0; }
.at-stream {
  margin: 0; padding: 12px 16px 12px 34px; background: var(--slate-50);
  border: 1px solid var(--slate-200); border-radius: 10px; max-height: 340px; overflow-y: auto;
  font-size: 0.9rem; line-height: 1.5;
}
.at-stream li { margin: 2px 0; color: var(--slate-700); }
.at-stream li.at-h { font-weight: 700; color: var(--navy); margin-top: 8px; }
.gate-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: #fff;
  border-radius: 20px; padding: 2px 12px; vertical-align: middle; text-transform: uppercase;
}
.gate-badge.ok { background: var(--green-900); }
.gate-badge.warn { background: var(--amber-900); }
.gate-badge.bad { background: var(--red-900); }
.dev-remediation .verdict { font-size: 1.05rem; font-weight: 600; color: var(--slate-900); margin: 6px 0; }
.dev-remediation .tech { font-size: 0.82rem; color: var(--slate-600); margin: 2px 0 8px; }
.dev-remediation ul.breaks { margin: 4px 0; padding-left: 20px; }
.dev-remediation ul.breaks li { margin: 4px 0; color: var(--slate-700); font-size: 0.9rem; }
.dev-remediation .cost { background: var(--slate-100); border-radius: 8px; padding: 8px 12px; display: inline-block; }
.dev-actions { margin-top: 14px; }
.dev-actions .btn { width: auto; display: inline-block; }
.dev-final { margin-top: 12px; font-size: 1.05rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--slate-200); padding: 30px 0 40px; font-size: 0.92rem; color: var(--slate-700); }
.site-footer a { color: var(--blue-800); }

/* Remediability verdict + two-bucket honest disclosure (Addendum C.4/C.5, D) */
.verdict { margin: 16px 0; padding: 14px 16px; border: 1px solid var(--slate-200);
  border-left: 4px solid var(--slate-600); border-radius: var(--radius); background: var(--slate-50); }
.verdict-standard { border-left-color: var(--green-900); }
.verdict-caveated { border-left-color: var(--amber-900); }
.verdict-human_tier, .verdict-declined { border-left-color: var(--red-900); }
.verdict-headline { font-weight: 700; margin: 0 0 10px; color: var(--slate-900); }
.buckets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 12px; }
@media (max-width: 560px) { .buckets { grid-template-columns: 1fr; } }
.bucket h4 { margin: 0 0 6px; font-size: 0.95rem; }
.bucket ul { margin: 0; padding-left: 18px; font-size: 0.9rem; color: var(--slate-700); }
.bucket-fix h4 { color: var(--green-900); }
.bucket-flag h4 { color: var(--amber-900); }
.verdict-note { font-size: 0.92rem; color: var(--slate-700); margin: 6px 0 0; }
.consent { display: block; font-size: 0.9rem; color: var(--slate-700); margin: 6px 0 10px; }
.consent input { margin-right: 6px; }

/* Background job status page */
.job-main { padding-top: 48px; padding-bottom: 72px; }
.job-card {
  max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--hairline);
  border-radius: var(--r-md); padding: 28px 30px; box-shadow: 0 10px 30px rgba(15, 26, 61, 0.06);
}
.job-status-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; margin-bottom: 14px; }
.job-kicker {
  margin: 0 0 4px; color: var(--muted); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.job-status-head h1 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 2.8rem); }
.job-pill {
  flex: 0 0 auto; border-radius: var(--r-pill); padding: 6px 12px; color: #fff;
  background: var(--muted); font-size: 0.82rem; font-weight: 800; text-transform: uppercase;
}
.job-pill-queued, .job-pill-running { background: var(--warning); }
.job-pill-succeeded { background: var(--success); }
.job-pill-failed { background: var(--error); }
.job-message { margin: 0 0 12px; color: var(--body-strong); font-size: 1.05rem; }
.job-progress {
  height: 12px; border-radius: var(--r-pill); background: var(--surface-soft);
  border: 1px solid var(--hairline); overflow: hidden; margin: 18px 0 12px;
}
.job-progress span { display: block; height: 100%; background: var(--coral); transition: width 0.3s ease; }
.job-meta { margin: 8px 0 0; color: var(--muted); font-size: 0.92rem; }
.job-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.job-action { width: auto; text-decoration: none; }
@media (max-width: 560px) {
  .job-main { padding-top: 28px; }
  .job-card { padding: 22px 18px; }
  .job-status-head { display: block; }
  .job-pill { display: inline-block; margin-top: 12px; }
  .job-action { width: 100%; text-align: center; }
}

/* Simplified homepage: one primary job, upload a PDF. */
.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-active);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hero {
  background: var(--canvas);
  padding: 62px 0 48px;
}
.hero-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 440px);
  gap: 54px;
  align-items: center;
}
.hero h1 {
  max-width: 760px;
  font-size: clamp(2.85rem, 6.2vw, 5.4rem);
  line-height: 0.96;
  letter-spacing: -0.045em;
  margin-bottom: 22px;
}
.hero-copy {
  max-width: 640px;
  margin: 0 0 16px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
}
.hero-copy strong { color: var(--ink); }
.hero-actions { margin: 26px 0 16px; }
.hero-actions .btn,
.sample-demo-actions .btn,
.sample-actions .btn { width: auto; text-decoration: none; }
.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}
.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
}
.trust-line span::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
}
.upload-card {
  border-radius: var(--r-xl);
  padding: 24px;
}
.dropzone {
  background: #fff7f0;
  border-color: #c8896e;
  border-radius: var(--r-lg);
  min-height: 236px;
  display: grid;
  place-items: center;
}
.dropzone-label { padding: 42px 20px; }
.dropzone-title { color: var(--coral-active); }
.mini-benefits {
  padding: 0 20px 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.mini-card {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 20px;
}
.mini-card .number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface-soft);
  border: 1px solid #cfe3d1;
  color: var(--success);
  font-weight: 900;
  margin-bottom: 14px;
}
.mini-card h2 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 6px;
}
.mini-card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.sample-demo {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-soft);
}
.sample-demo-inner {
  padding-top: 38px;
  padding-bottom: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
}
.sample-demo h2 { margin-bottom: 8px; }
.sample-demo p { max-width: 680px; margin: 0; color: var(--muted); }
.sample-demo-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.faq-compact {
  padding: 58px 0 68px;
}
.faq-inner {
  max-width: 860px;
}

/* My PDFs page */
.my-pdfs-main {
  padding: 54px 0 72px;
}
.my-pdfs-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 26px;
  margin-bottom: 26px;
}
.my-pdfs-hero h1 {
  font-size: clamp(2.65rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}
.my-pdfs-hero p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}
.page-action {
  width: auto;
  text-decoration: none;
  text-align: center;
  flex: 0 0 auto;
}
.my-pdfs-shell {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 26, 61, 0.05);
}
.pdf-list-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 18px;
}
.pdf-list-head h2 {
  margin: 0 0 4px;
  font-size: 1.8rem;
}
.pdf-list-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.pdf-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.pdf-tab {
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--canvas);
  color: var(--body);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  padding: 7px 11px;
}
.pdf-tab span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.pdf-tab.is-active {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--on-dark);
}
.pdf-tab.is-active span { color: var(--on-dark-soft); }
.pdf-list {
  display: grid;
  gap: 12px;
}
.pdf-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  background: var(--canvas);
  padding: 16px;
}
.pdf-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.pdf-grade {
  width: 42px;
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  padding: 0;
  font-size: 1.22rem;
}
.pdf-title-block {
  min-width: 0;
}
.pdf-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}
.pdf-card h3 {
  margin: 0;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-status {
  flex: 0 0 auto;
  border-radius: var(--r-pill);
  padding: 4px 9px;
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--body);
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
}
.pdf-status-audited { color: #4b5563; background: #f8fafc; border-color: #cbd5e1; }
.pdf-status-scope { color: var(--warning); background: #fffbeb; border-color: #f5c469; }
.pdf-status-remediation { color: #174b76; background: #eff6ff; border-color: #93c5fd; }
.pdf-status-fixed { color: var(--success); background: #ecfdf5; border-color: #9dd5b4; }
.pdf-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pdf-meta span:not(:last-child)::after {
  content: "";
}
.pdf-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pdf-actions .btn,
.pdf-action {
  width: auto;
  white-space: nowrap;
  text-decoration: none;
}
.pdf-actions .btn {
  padding: 9px 13px;
  font-size: 0.94rem;
}
.pdf-remove {
  white-space: nowrap;
  font-size: 0.9rem;
}
.empty-state {
  text-align: center;
  padding: 54px 18px;
}
.empty-state h2 {
  margin-bottom: 8px;
}
.empty-state p {
  margin: 0 auto 18px;
  max-width: 460px;
  color: var(--muted);
}
.empty-filter {
  padding: 34px 18px;
}

/* Public sample audit page. */
.sample-page {
  padding-bottom: 70px;
}
.sample-hero {
  padding-top: 56px;
  padding-bottom: 30px;
}
.sample-hero h1 {
  max-width: 760px;
  font-size: clamp(2.5rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.sample-lede {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
}
.sample-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.sample-audit-grid,
.sample-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}
.sample-grade,
.sample-price,
.sample-columns article,
.sample-findings {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 22px;
}
.sample-grade {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.sample-grade h2,
.sample-price h2,
.sample-columns h2,
.sample-findings h2 { font-size: 1.55rem; margin-bottom: 10px; }
.sample-grade p,
.sample-price p { margin: 0 0 8px; color: var(--muted); }
.sample-findings {
  margin-top: 18px;
}

@media (max-width: 860px) {
  .hero-grid,
  .mini-benefits,
  .sample-audit-grid,
  .sample-columns { grid-template-columns: 1fr; }
  .my-pdfs-hero,
  .pdf-list-head {
    display: block;
  }
  .my-pdfs-hero .page-action,
  .pdf-list-head .pdf-tabs {
    margin-top: 18px;
  }
  .pdf-tabs {
    justify-content: flex-start;
  }
  .pdf-card {
    grid-template-columns: 1fr;
  }
  .pdf-actions {
    justify-content: flex-start;
  }
  .sample-demo-inner { display: block; }
  .sample-demo-actions { margin-top: 18px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 38px; }
  .hero-actions .btn,
  .sample-demo-actions .btn,
  .sample-actions .btn,
  .my-pdfs-hero .page-action,
  .empty-state .page-action,
  .pdf-actions .btn,
  .pdf-action { width: 100%; text-align: center; }
  .dropzone { min-height: 210px; }
  .sample-grade { display: block; }
  .sample-grade .grade-badge { display: inline-flex; margin-bottom: 14px; }
  .my-pdfs-main { padding-top: 34px; }
  .my-pdfs-shell { padding: 18px; }
  .pdf-card-main { align-items: flex-start; }
  .pdf-card-head { display: block; }
  .pdf-status { display: inline-flex; margin-top: 8px; }
  .pdf-actions { display: grid; grid-template-columns: 1fr; }
}
