/* ============================================================
   ContractCheck — Design System
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Core palette */
  --ink:       #0d1117;
  --ink-2:     #1c2431;
  --ink-3:     #374151;
  --muted:     #6b7280;
  --subtle:    #9ca3af;
  --border:    #e5e7eb;
  --border-2:  #f3f4f6;
  --surface:   #ffffff;
  --bg:        #f8f9fb;
  --hero-bg:   #0d1117;

  /* Accent */
  --accent:       #f97316;
  --accent-dark:  #ea6c0a;

  /* Risk */
  --red:        #dc2626;
  --red-mid:    #ef4444;
  --red-bg:     #fef2f2;
  --red-border: #fecaca;
  --red-muted:  #fee2e2;

  --amber:        #d97706;
  --amber-mid:    #f59e0b;
  --amber-bg:     #fffbeb;
  --amber-border: #fde68a;
  --amber-muted:  #fef3c7;

  --green:        #16a34a;
  --green-mid:    #22c55e;
  --green-bg:     #f0fdf4;
  --green-border: #bbf7d0;
  --green-muted:  #dcfce7;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 4px 6px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.08);
}

html { font-size: 16px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   NAV
   ============================================================ */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-mark.sm {
  width: 22px;
  height: 22px;
  font-size: 9px;
  border-radius: 4px;
}

.logo-text {
  color: white;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.nav-beta {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--accent);
  background: rgba(249,115,22,0.12);
  border: 1px solid rgba(249,115,22,0.25);
  border-radius: 4px;
  padding: 3px 8px;
}

.rb-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--subtle);
  margin-bottom: 2px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  background: var(--hero-bg);
  padding: 64px 20px 72px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #ffffff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-pill {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  padding: 4px 12px;
  letter-spacing: 0.1px;
}

/* ============================================================
   LAYOUT
   ============================================================ */

main {
  flex: 1;
  max-width: 860px;
  width: 100%;
  margin: 0 auto;
  padding: 32px 20px 48px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
}

.hidden { display: none !important; }

/* ============================================================
   FORM
   ============================================================ */

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-req {
  font-size: 11px;
  font-weight: 500;
  color: var(--subtle);
  font-style: normal;
}

/* Drop zone */
.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  position: relative;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone:hover,
.dropzone.over {
  border-color: var(--accent);
  background: #fff8f5;
}

.dropzone.has-file {
  border-color: var(--green);
  border-style: solid;
  background: var(--green-bg);
}

.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.dz-inner {
  padding: 32px 20px;
  text-align: center;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.dz-icon-ring {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: white;
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s, color 0.2s;
  margin-bottom: 4px;
}

.dropzone.over .dz-icon-ring,
.dropzone:hover .dz-icon-ring {
  border-color: var(--accent);
  color: var(--accent);
}

.dropzone.has-file .dz-icon-ring {
  border-color: var(--green);
  color: var(--green);
}

.dz-primary {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-3);
}

.dz-secondary {
  font-size: 12px;
  color: var(--subtle);
}

.dz-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Select */
.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  appearance: none;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}

.select-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.12);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--subtle);
  pointer-events: none;
}

.field-note {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.5;
  margin-top: 2px;
}

/* Submit */
#submit-btn {
  margin-top: 16px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

#submit-btn:hover:not(:disabled) {
  background: var(--ink-2);
}

#submit-btn:active:not(:disabled) {
  transform: scale(0.99);
}

#submit-btn:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

#submit-btn.ready {
  background: var(--accent);
}

#submit-btn.ready:hover {
  background: var(--accent-dark);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--subtle);
  margin-top: 12px;
  justify-content: center;
}

/* ============================================================
   LOADING
   ============================================================ */

.loader-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 8px;
  gap: 24px;
  text-align: center;
}

.loader-ring-wrap {
  position: relative;
  width: 80px;
  height: 80px;
}

.loader-ring {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
}

.lr-track {
  fill: none;
  stroke: var(--border-2);
  stroke-width: 5;
}

.lr-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 207.3;
  stroke-dashoffset: 207.3;
  transition: stroke-dashoffset 0.6s ease;
}

.lr-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.loader-text h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}

.loader-text p {
  font-size: 13px;
  color: var(--subtle);
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--subtle);
  transition: color 0.3s;
}

.step.active {
  color: var(--ink);
  font-weight: 600;
}

.step.done {
  color: var(--green);
}

.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.3s;
}

.step.active .sdot {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(249,115,22,0.2);
}

.step.done .sdot {
  background: var(--green);
}

/* ============================================================
   RESULTS
   ============================================================ */

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.rb-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rb-type {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.rb-state {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.rb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.rb-counts {
  display: flex;
  gap: 8px;
}

.count-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  padding: 4px 10px;
}

.count-pill.red   { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-border); }
.count-pill.amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.count-pill.green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }

.count-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.count-pill.red .count-dot   { background: var(--red); }
.count-pill.amber .count-dot { background: var(--amber); }
.count-pill.green .count-dot { background: var(--green); }

.rb-verdict {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--r-sm);
  padding: 5px 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rb-verdict.high  { background: var(--red-bg);   color: var(--red);   border: 1px solid var(--red-border); }
.rb-verdict.medium { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.rb-verdict.low   { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }

.clauses-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--subtle);
  padding: 0 4px;
  margin-bottom: 10px;
}

/* ============================================================
   SECTION CARDS
   ============================================================ */

.clause-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.clause-card:hover { box-shadow: var(--shadow-md); }

.clause-card.red   { border-top: 3px solid var(--red-mid); }
.clause-card.amber { border-top: 3px solid var(--amber-mid); }
.clause-card.green { border-top: 3px solid var(--green-mid); }

.clause-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  user-select: none;
  gap: 12px;
}

.clause-header:hover { background: var(--bg); }

.clause-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.clause-risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.clause-card.red   .clause-risk-dot { background: var(--red-mid); }
.clause-card.amber .clause-risk-dot { background: var(--amber-mid); }
.clause-card.green .clause-risk-dot { background: var(--green-mid); }

.clause-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.clause-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.risk-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: var(--r-sm);
  padding: 3px 9px;
  white-space: nowrap;
}

.risk-tag.red   { background: var(--red-muted);   color: var(--red); }
.risk-tag.amber { background: var(--amber-muted); color: var(--amber); }
.risk-tag.green { background: var(--green-muted); color: var(--green); }

.chevron-icon {
  color: var(--subtle);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.chevron-icon.open { transform: rotate(180deg); }

.clause-body {
  border-top: 1px solid var(--border-2);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.clause-body.closed { display: none; }

.clause-summary {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-3);
}

.clause-legislation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: var(--r-sm);
  border: 1px solid var(--border-2);
}

.clause-legislation svg { flex-shrink: 0; margin-top: 2px; color: var(--subtle); }

.clause-legislation p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  font-style: italic;
}

.clause-recommendation {
  border-radius: var(--r-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.clause-card.red   .clause-recommendation { background: var(--red-bg);   border: 1px solid var(--red-border); }
.clause-card.amber .clause-recommendation { background: var(--amber-bg); border: 1px solid var(--amber-border); }
.clause-card.green .clause-recommendation { background: var(--green-bg); border: 1px solid var(--green-border); }

.rec-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.clause-card.red   .rec-label { color: var(--red); }
.clause-card.amber .rec-label { color: var(--amber); }
.clause-card.green .rec-label { color: var(--green); }

.rec-text {
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-3);
  font-weight: 500;
}

/* ============================================================
   LOCKED SECTIONS
   ============================================================ */

.locked-section {
  position: relative;
}

.locked-section .clause-legislation,
.locked-section .clause-recommendation {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.locked-overlay {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8f5ff;
  border: 1px solid #e0d4f5;
  border-radius: var(--r-sm);
  color: #6d28d9;
  font-size: 12px;
  font-weight: 600;
}

.locked-overlay svg { flex-shrink: 0; }

/* ============================================================
   UPGRADE CTA
   ============================================================ */

.upgrade-cta {
  background: linear-gradient(135deg, #0d1117 0%, #1a1f2e 100%);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  text-align: center;
  margin-top: 16px;
}

.upgrade-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.upgrade-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(249,115,22,0.15);
  border: 1px solid rgba(249,115,22,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.upgrade-inner h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.3px;
}

.upgrade-inner h3 span {
  color: var(--accent);
}

.upgrade-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

.upgrade-form-wrap {
  width: 100%;
  margin-top: 4px;
}

.upgrade-soon {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

.upgrade-form {
  display: flex;
  gap: 8px;
  width: 100%;
}

.upgrade-form input[type="email"] {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.06);
  color: white;
  font-family: var(--font);
  font-size: 14px;
}

.upgrade-form input[type="email"]::placeholder {
  color: rgba(255,255,255,0.3);
}

.upgrade-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.upgrade-form button {
  padding: 10px 20px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.upgrade-form button:hover { background: var(--accent-dark); }

.upgrade-sent {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  padding: 8px 0;
}

/* Payment button */
.upgrade-payment-wrap {
  width: 100%;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.btn-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(249,115,22,0.4);
  letter-spacing: -0.2px;
}

.btn-pay:hover:not(:disabled) {
  background: var(--accent-dark);
  box-shadow: 0 6px 20px rgba(249,115,22,0.5);
  transform: translateY(-1px);
}

.btn-pay:active:not(:disabled) { transform: translateY(0); }

.btn-pay:disabled {
  opacity: 0.7;
  cursor: default;
}

.pay-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
}

.pay-error {
  font-size: 12px;
  color: #f87171;
  font-weight: 600;
  text-align: center;
}

/* Payment success banner */
.payment-success-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  border-radius: var(--r-md);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

/* Unlocked recommendation (full report) — remove tinted BG, use cleaner style */
.clause-recommendation.unlocked {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

/* Industry-standard comparison block */
.clause-standard {
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clause-standard .rec-label { color: #1d4ed8; }
.clause-standard .rec-text  { font-size: 13px; line-height: 1.65; color: var(--ink-3); font-weight: 500; }

/* Negotiation script block */
.clause-script {
  border-radius: var(--r-md);
  padding: 12px 14px;
  background: #fdf4ff;
  border: 1px solid #e9d5ff;
  border-left: 3px solid #a855f7;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.clause-script .rec-label { color: #7e22ce; }
.script-text {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
  font-style: italic;
}

/* ============================================================
   PRIORITIES — "Fix these first"
   ============================================================ */

.priorities-header { margin-bottom: 14px; }
.priorities-header h3 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
  margin-bottom: 4px;
}
.priorities-header p { font-size: 13px; color: var(--muted); }

.priorities-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.priority-item {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--border);
  align-items: flex-start;
}

.priority-item.red   { background: var(--red-bg);   border-color: var(--red-border); }
.priority-item.amber { background: var(--amber-bg); border-color: var(--amber-border); }
.priority-item.green { background: var(--green-bg); border-color: var(--green-border); }

.priority-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  color: white;
  flex-shrink: 0;
}
.priority-item.red   .priority-num { background: var(--red); }
.priority-item.amber .priority-num { background: var(--amber); }
.priority-item.green .priority-num { background: var(--green); }

.priority-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.priority-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.priority-reason { font-size: 13px; color: var(--ink-3); line-height: 1.6; }

/* ============================================================
   FULL REPORT ACTIONS — download + bookmark
   ============================================================ */

.full-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.full-actions-row {
  display: flex;
  justify-content: center;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: var(--shadow-sm);
}
.btn-download:hover { background: var(--ink-2); }
.btn-download:active { transform: scale(0.99); }

.bookmark-row { display: flex; flex-direction: column; gap: 6px; }

.bookmark-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.bookmark-inline {
  display: flex;
  gap: 8px;
}

.bookmark-inline input {
  flex: 1;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--bg);
}

.bookmark-inline input:focus {
  outline: none;
  border-color: var(--accent);
}

.bookmark-inline button {
  padding: 9px 16px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.bookmark-inline button:hover { background: var(--accent-dark); }

/* ============================================================
   LAWYER LEAD GEN CTA
   ============================================================ */

.lawyer-cta {
  margin-top: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}

.lawyer-inner {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.lawyer-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  flex-shrink: 0;
}

.lawyer-text {
  flex: 1;
  min-width: 200px;
}

.lawyer-text h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.lawyer-text p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

.lawyer-cta-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 240px;
  flex-shrink: 0;
}

.lawyer-form {
  display: flex;
  gap: 8px;
}

.lawyer-form input[type="email"] {
  flex: 1;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
}

.lawyer-form input[type="email"]::placeholder { color: var(--subtle); }

.lawyer-form input[type="email"]:focus {
  outline: none;
  border-color: #2563eb;
}

.lawyer-form button {
  padding: 9px 14px;
  background: #1d4ed8;
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.lawyer-form button:hover { background: #1e3a8a; }

.lawyer-sent {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
  padding: 6px 0;
}

@media (max-width: 580px) {
  .lawyer-inner { flex-direction: column; gap: 14px; }
  .lawyer-cta-right { width: 100%; }
}

/* ============================================================
   RESULTS FOOTER + RESET
   ============================================================ */

.results-disc {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg);
  border-color: var(--border-2);
  padding: 16px 20px;
  margin-top: 10px;
}

.results-disc svg { flex-shrink: 0; color: var(--subtle); margin-top: 1px; }

.results-disc p {
  font-size: 12px;
  color: var(--subtle);
  line-height: 1.6;
}

.btn-ghost {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  margin-top: 12px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface);
}

/* ============================================================
   ERROR
   ============================================================ */

.error-wrap {
  text-align: center;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.error-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.error-wrap h3 { font-size: 17px; font-weight: 700; }
.error-wrap p  { font-size: 14px; color: var(--muted); max-width: 320px; }

.submit-btn, .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: var(--ink);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}

.submit-btn:hover, .btn-primary:hover { background: var(--ink-2); }

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background: var(--ink);
  padding: 28px 20px;
  margin-top: auto;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

footer p {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  line-height: 1.5;
  max-width: 480px;
}

/* ============================================================
   BLOG STRIP (homepage)
   ============================================================ */

.blog-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 20px 64px;
}

.blog-strip-inner {
  max-width: 860px;
  margin: 0 auto;
}

.blog-strip-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-strip-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.blog-strip-heading {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.blog-strip-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-strip-all:hover { text-decoration: underline; }

.blog-strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-strip-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: var(--shadow-sm);
}

.blog-strip-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.blog-strip-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.blog-strip-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.blog-strip-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  letter-spacing: -0.1px;
}

.blog-strip-card-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: auto;
}

@media (max-width: 660px) {
  .blog-strip-grid { grid-template-columns: 1fr; }
  .blog-strip-header { align-items: flex-start; flex-direction: column; }
}
