/* =============================================
   MATT - Messaging Alignment Testing Tool
   Deep blue — lime + ember on dark teal-navy
   ============================================= */

:root {
  --bg: #001a28;
  --bg-card: #002b3f;
  --bg-card-hover: #003a52;
  --bg-input: rgba(229, 231, 235, 0.07);
  --border: rgba(229, 231, 235, 0.1);
  --border-focus: rgba(191, 245, 73, 0.4);
  --text: #e8eaed;
  --text-muted: #8ba3b5;
  --text-dim: #5a7585;
  --lime: #BFF549;
  --lime-dim: rgba(191, 245, 73, 0.15);
  --ember: #EB4203;
  --ember-dim: rgba(235, 66, 3, 0.15);
  --peach: #FF9C5F;
  --peach-dim: rgba(255, 156, 95, 0.15);
  --sand: #FCEFC3;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Fraunces', Georgia, serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient glow effects */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow-1 {
  width: 600px;
  height: 600px;
  background: rgba(191, 245, 73, 0.04);
  top: -200px;
  right: -100px;
}
.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: rgba(235, 66, 3, 0.03);
  bottom: -150px;
  left: -100px;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---- Navigation ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--lime);
  color: var(--bg);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  border-radius: 10px;
}
.logo-mark.small {
  width: 28px;
  height: 28px;
  font-size: 15px;
  border-radius: 7px;
}
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-link:hover {
  color: var(--lime);
}
.nav-tagline {
  color: var(--text-muted);
  font-size: 14px;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 48px 0 40px;
}
.acronym {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.acronym strong {
  color: var(--lime);
  font-weight: 700;
}
.badge {
  display: inline-block;
  background: var(--lime-dim);
  color: var(--lime);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text);
}
.text-gradient {
  background: linear-gradient(135deg, var(--lime) 0%, var(--peach) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ---- Form Card ---- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 64px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.form-group select,
.form-group input[type="email"],
.form-group input[type="url"] {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 15px;
  font-family: var(--font-body);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(191, 245, 73, 0.1);
}
.form-group input::placeholder {
  color: var(--text-dim);
}
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--lime);
  background: rgba(191, 245, 73, 0.03);
}
.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}
.upload-content svg {
  opacity: 0.5;
  margin-bottom: 4px;
}
.upload-content span {
  font-size: 14px;
}
.upload-hint {
  font-size: 12px !important;
  color: var(--text-dim) !important;
}
.upload-preview {
  position: relative;
  width: 100%;
  align-items: center;
  justify-content: center;
}
.upload-preview[hidden] {
  display: none !important;
}
.upload-preview:not([hidden]) {
  display: flex;
}
.upload-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  display: block;
}
.upload-remove {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ember);
  color: white;
  border: none;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  z-index: 3;
}
/* When preview is showing, change the zone style */
.upload-zone.has-preview {
  border-style: solid;
  border-color: var(--lime);
  padding: 12px;
}

/* Roast Me Checkbox */
.roast-checkbox {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
  padding: 16px 20px;
  border-radius: var(--radius);
  background: var(--bg-input);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}
.roast-checkbox:hover {
  border-color: var(--peach);
  background: var(--peach-dim);
}
.roast-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--peach);
  cursor: pointer;
  flex-shrink: 0;
}
.roast-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.roast-hint {
  width: 100%;
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 30px;
}

/* Submit button */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 32px;
  background: var(--lime);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
  text-decoration: none;
  text-align: center;
}
.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(191, 245, 73, 0.25);
}
.btn-submit:active {
  transform: translateY(0);
}
.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.spinner {
  animation: spin 1s linear infinite;
}
.spinner.large {
  width: 48px;
  height: 48px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- How It Works ---- */
.how-it-works {
  margin-bottom: 64px;
}
.how-it-works h2,
.what-we-check h2 {
  font-family: var(--font-heading);
  font-size: 28px;
  text-align: center;
  margin-bottom: 36px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime-dim);
  color: var(--lime);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}
.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- What We Check ---- */
.what-we-check {
  margin-bottom: 64px;
}
.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.check-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.15s;
}
.check-item:hover {
  border-color: var(--lime);
  transform: translateY(-2px);
}
.check-icon {
  font-size: 24px;
  margin-bottom: 12px;
}
.check-item h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.check-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- Results Page ---- */
.results-loading {
  text-align: center;
  padding: 80px 0;
}
.results-loading h2 {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-top: 24px;
}
.loading-sub {
  color: var(--text-muted);
  margin-top: 8px;
  font-size: 15px;
}
.loading-animation {
  display: flex;
  justify-content: center;
}
/* Loading table */
.loading-table {
  width: 100%;
  max-width: 720px;
  margin: 32px auto 0;
  border-collapse: collapse;
  text-align: left;
}
.loading-step td {
  padding: 10px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  transition: color 0.3s, opacity 0.3s;
}
.loading-step {
  color: var(--text-dim);
  font-size: 14px;
}

/* Column 1: Checkbox */
.step-check {
  width: 28px;
  text-align: center;
  font-size: 16px;
}
.loading-step.active .step-check::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 1.2s ease-in-out infinite;
}
.loading-step.done .step-check::before {
  content: '\2713';
  color: var(--lime);
  font-size: 14px;
  animation: none;
}

/* Column 2: Action */
.step-action {
  font-size: 14px;
  white-space: nowrap;
}
.loading-step.active .step-action {
  color: var(--text);
  font-weight: 500;
}
.loading-step.done .step-action {
  color: var(--text-muted);
}

/* Column 3: Research reasoning */
.step-reason {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}
.loading-step.active .step-reason {
  color: var(--text-muted);
  font-weight: 600;
}
.loading-step.done .step-reason {
  color: var(--text-dim);
  font-weight: 400;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 600px) {
  .step-action {
    white-space: normal;
  }
  .step-reason {
    font-size: 11px;
  }
}

/* Loading quote */
.loading-quote {
  max-width: 500px;
  margin: 36px auto 0;
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.7;
  transition: opacity 0.3s ease;
  min-height: 60px;
}
.quote-author {
  display: block;
  font-size: 13px;
  font-style: normal;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Test Name */
.test-name-section {
  text-align: center;
  padding: 40px 0 0;
}
.test-name {
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--text);
  margin-bottom: 6px;
}
.test-url {
  font-size: 15px;
  color: var(--text-dim);
}
.test-url strong {
  color: var(--text-muted);
  font-weight: 600;
}
.test-name-section {
  margin-bottom: 24px;
}

/* Evidence Section — show your work */
.evidence-section {
  margin-bottom: 16px;
}
.evidence-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
}
.evidence-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  font-size: 28px;
  opacity: 0.5;
  padding-top: 28px;
}
.evidence-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.evidence-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.evidence-img-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-input);
  max-height: 400px;
  overflow-y: auto;
}
.evidence-img-wrap img {
  width: 100%;
  display: block;
}
@media (max-width: 768px) {
  .evidence-grid {
    grid-template-columns: 1fr;
  }
  .evidence-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }
}

/* Score Continuum */
.continuum-section {
  padding: 48px 0 32px;
  text-align: center;
}
.continuum-title {
  font-family: var(--font-heading);
  font-size: 24px;
  margin-bottom: 48px;
  color: var(--text);
}
.continuum-wrapper {
  position: relative;
  margin: 0 20px;
}

/* The line — the anchor point. Everything positions relative to this. */
.continuum-bar {
  width: 100%;
  height: 2px;
  background: var(--lime);
  position: relative;
  margin-top: 80px;
  margin-bottom: 60px;
}
.continuum-fill { display: none; }

/* ---- User's score pin ---- */
/* The dot is the anchor point — centered on the 2px bar line.
   Creative (56px total + 6px gap) sits above, score hangs below.
   top: 1px centers on 2px bar; margin-top pulls up so dot lands on line. */
.score-pin {
  position: absolute;
  left: 0;
  top: 1px;
  margin-top: -68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  transition: left 2.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 2;
}

/* Thumbnail — above the dot */
.pin-creative {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--lime);
  background: var(--bg-card);
  margin-bottom: 6px;
}
.pin-creative img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pin-creative.no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.score-pin.mid .pin-creative { border-color: var(--peach); }
.score-pin.low .pin-creative { border-color: var(--ember); }

/* Dot — this element is centered on the line */
.pin-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  flex-shrink: 0;
}
.score-pin.mid .pin-dot { background: var(--peach); }
.score-pin.low .pin-dot { background: var(--ember); }
.pin-line { display: none; }

/* Score number — below the dot */
.pin-score {
  font-family: var(--font-body);
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
  line-height: 1;
}

/* ---- Past score pins ---- */
/* Also anchored to .continuum-bar */
.past-pins-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  pointer-events: none;
}
.past-pin {
  position: absolute;
  top: 1px;
  margin-top: -4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%) translateY(-15px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.past-pin.dropped {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* Dot centered on the line */
.past-pin-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  opacity: 0.35;
}
/* Score below the line */
.past-pin-score {
  font-size: 11px;
  font-weight: 600;
  color: var(--lime);
  opacity: 0.35;
  margin-top: 8px;
}

/* ---- Labels ---- */
.continuum-labels {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-dim);
}
.continuum-mid-label, .continuum-mid-label-right {
  color: var(--text-dim);
  font-size: 11px;
}
.continuum-avg {
  color: var(--text-muted);
  font-weight: 500;
}

/* ---- Reveal animation ---- */
.score-pin.revealed {
  animation: pinReveal 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes pinReveal {
  0% { opacity: 0; transform: translateX(-50%) scale(0.6) translateY(-10px); }
  60% { opacity: 1; transform: translateX(-50%) scale(1.05) translateY(0); }
  100% { opacity: 1; transform: translateX(-50%) scale(1) translateY(0); }
}

/* ---- Verdict ---- */
.continuum-verdict {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 32px;
  line-height: 1.6;
  transition: opacity 0.6s ease;
}

/* Email CTA */
.email-cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(191, 245, 73, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 24px 0;
}
.email-cta-icon {
  margin-bottom: 16px;
  line-height: 0;
}
.email-cta-card h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--lime);
  margin-bottom: 8px;
}
.email-cta-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

@keyframes pinSettle {
  0% { top: -20px; opacity: 0; }
  30% { top: 5px; opacity: 1; }
  50% { top: -3px; }
  70% { top: 2px; }
  100% { top: 0; }
}

/* Roast Card */
.roast-card {
  background: linear-gradient(135deg, rgba(235, 66, 3, 0.1), rgba(255, 156, 95, 0.08));
  border: 1px solid rgba(235, 66, 3, 0.3);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.roast-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.roast-header h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--peach);
}
.roast-icon {
  font-size: 24px;
}
.roast-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  font-style: italic;
}

/* Score Bars */
.scores-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin-bottom: 24px;
}
.scores-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}
.score-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.score-row:last-child {
  margin-bottom: 0;
}
.score-label {
  width: 160px;
  font-size: 14px;
  color: var(--text-muted);
  flex-shrink: 0;
}
.score-bar-bg {
  flex: 1;
  height: 10px;
  background: var(--bg-input);
  border-radius: 5px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease-out;
  background: var(--lime);
}
.score-bar-fill.mid { background: var(--peach); }
.score-bar-fill.low { background: var(--ember); }
.score-value {
  width: 36px;
  text-align: right;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}

/* Two column results */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
.result-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.result-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card-icon {
  font-size: 18px;
}
.strengths-card {
  border-color: rgba(191, 245, 73, 0.2);
}
.weaknesses-card {
  border-color: rgba(235, 66, 3, 0.2);
}
.result-card ul, .result-card ol {
  list-style: none;
  padding: 0;
}
.result-card li {
  font-size: 14px;
  color: var(--text-muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.5;
}
.result-card li:last-child {
  border-bottom: none;
}
.strengths-card li::before {
  content: '+ ';
  color: var(--lime);
  font-weight: 700;
}
.weaknesses-card li::before {
  content: '- ';
  color: var(--ember);
  font-weight: 700;
}
.recs-card {
  margin-bottom: 24px;
  border-color: rgba(255, 156, 95, 0.2);
}
.recs-card li {
  counter-increment: rec;
  padding-left: 4px;
}
.recs-card li::before {
  content: counter(rec) '. ';
  color: var(--peach);
  font-weight: 700;
}

.results-cta {
  text-align: center;
  padding: 32px 0 16px;
}
.results-cta p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 16px;
}
.results-cta .btn-submit {
  width: auto;
  padding: 14px 40px;
}

/* Error */
.error-card {
  text-align: center;
  padding: 80px 0;
}
.error-card h2 {
  font-family: var(--font-heading);
  color: var(--ember);
  margin-bottom: 12px;
}
.error-card p {
  color: var(--text-muted);
  margin-bottom: 24px;
}
.error-card .btn-submit {
  width: auto;
  display: inline-flex;
  padding: 14px 40px;
}

/* ---- Leaderboard ---- */
.lb-header {
  text-align: center;
  padding: 40px 0 32px;
}
.lb-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.5rem);
  margin-bottom: 8px;
}
.lb-header p {
  color: var(--text-muted);
  font-size: 16px;
}
.lb-loading {
  text-align: center;
  padding: 40px 0;
}
.lb-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted);
  font-size: 16px;
}
.lb-empty a {
  color: var(--lime);
  text-decoration: none;
}
.lb-empty a:hover {
  text-decoration: underline;
}
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.lb-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  transition: border-color 0.2s, transform 0.15s;
}
.lb-card:hover {
  border-color: rgba(191, 245, 73, 0.2);
  transform: translateY(-1px);
}
.lb-card.lb-top {
  border-color: rgba(191, 245, 73, 0.15);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(191, 245, 73, 0.03) 100%);
}
.lb-rank {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.lb-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-input);
}
.lb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lb-thumb-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.lb-info {
  flex: 1;
  min-width: 0;
}
.lb-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.lb-domain {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}
.lb-domain:hover {
  color: var(--text-muted);
  text-decoration: underline;
}
.lb-score {
  font-family: var(--font-body);
  font-size: 32px;
  font-weight: 700;
  flex-shrink: 0;
  width: 60px;
  text-align: right;
}
.lb-roast {
  cursor: help;
  font-size: 16px;
  position: relative;
}
.lb-roast:hover::after {
  content: attr(title);
  position: absolute;
  left: 50%;
  bottom: 130%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--peach);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  width: 280px;
  white-space: normal;
  line-height: 1.5;
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.lb-cta {
  text-align: center;
  padding: 16px 0 32px;
}
.lb-cta .btn-submit {
  width: auto;
  display: inline-flex;
  padding: 14px 40px;
}

@media (max-width: 600px) {
  .lb-card {
    padding: 12px 14px;
    gap: 10px;
  }
  .lb-thumb {
    width: 40px;
    height: 40px;
  }
  .lb-score {
    font-size: 24px;
  }
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.footer p {
  font-size: 13px;
  color: var(--text-dim);
}
.footer a {
  color: var(--peach);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .check-grid {
    grid-template-columns: 1fr 1fr;
  }
  .grade-hero {
    flex-direction: column;
    text-align: center;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .form-card {
    padding: 24px 20px;
  }
  .score-label {
    width: 120px;
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 1.75rem;
  }
}
