/* Reddit orange for logo dot */
:root {
  --reddit-orange: #ff4500;
  --text: #1a1a1a;
  --text-muted: #71767b;
  --border: #edeff1;
  --bg: #ffffff;
  --bg-card: #ffffff;
  --link: #0079d3;
  --link-visited: #8774b8;
  --intent-high: #46d160;
  --intent-medium: #ffb000;
  --intent-low: #94a3b8;
  /* Header only: horizontal margin so logo/login don’t sit at viewport edge */
  --header-margin-x: 2rem;
  --header-max-width: 1500px;
  /* Same as .search-form; analysis box + hero search share this ruler */
  --search-row-width: 50rem;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 64px;
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/** Push footer to the bottom on short pages (requires a direct child <main>). */
body > main {
  flex: 1 0 auto;
}

/** Pages that do not use the fixed global header (simple local top bar only). */
body.page-simple-topbar {
  padding-top: 0 !important;
}

body.page-simple-topbar > main {
  flex: 1 0 auto;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

/* Header uses its own margin vars; change --header-margin-x / --header-max-width to tune */
.header-inner {
  position: relative;
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 1rem var(--header-margin-x);
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* left logo | centered nav | right login */
  align-items: center;
}

.header-inner .logo {
  flex-shrink: 0;
}

/* Center nav with page (H1): absolute center of header-inner = viewport center */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  justify-self: center;
}

/** Logo + right actions only (no center links). Homepage uses default 3-column grid + .header-nav. */
body.header-no-center-nav .header-inner {
  grid-template-columns: 1fr auto;
}

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-self: end;
}

.header-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

.header-link:hover {
  color: var(--reddit-orange);
}

.header-login {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1rem;
}

.header-login:hover {
  color: var(--reddit-orange);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.875rem;
  letter-spacing: -0.02em;
}

.header-inner .logo {
  flex-shrink: 0;
}

.logo-mark {
  width: 1.2em;
  height: 1.2em;
  display: block;
  flex-shrink: 0;
}

.logo-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}

.logo-text {
  font-weight: 600;
}

.logo-period {
  color: var(--reddit-orange);
  font-weight: 600;
  font-size: 1.2em;
  line-height: 1;
}

/* Match .hero-inner max-width so teaser + analysis align with the search row above */
.main {
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  padding: 2rem var(--header-margin-x) 2rem;
  margin-top: 1rem;
  margin-bottom: 3rem;
  box-sizing: border-box;
}

.hero {
  width: 100%;
  text-align: center;
  padding: 9.5rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-inner {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-search {
  max-width: 60rem;
  margin-top: 2.5rem;
}

.hero-inner .subhead {
  width: 100%;
  max-width: 47rem;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

.hero-inner .search-form {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.headline-wrap {
  position: relative;
  width: 100%;
  max-width: var(--header-max-width);
  margin: 0 auto 2.75rem;
  padding: 0 var(--header-margin-x);
  box-sizing: border-box;
}

.headline {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-size: 4.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.25;
  white-space: nowrap;
  text-align: center;
}

.headline-scribble {
  position: relative;
  display: inline-block;
}

.headline-scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -12%;
  bottom: 0.02em;
  height: 0.19em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' fill='none' preserveAspectRatio='none'%3E%3Cpath d='M2 9c30-6 60 3 90-1.5s60-7 90-1.5 60 7 90 1.5 60-6 90-1.5' stroke='%23ff4500' stroke-width='3.5' stroke-linecap='round' fill='none' opacity='0.45'/%3E%3Cpath d='M2 12c30-5 60 2.5 90-1s60-6 90-1 60 6 90 1 60-5 90-1' stroke='%23ff4500' stroke-width='2.5' stroke-linecap='round' fill='none' opacity='0.3'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}

.headline-accent {
  color: var(--reddit-orange);
}

.subhead {
  color: #505050;
  margin: 0 0 2.5rem;
  font-size: 1.46rem;
  line-height: 1.5;
  font-weight: 400;
}

.subhead-highlight {
  font-size: 1.15em;
}

.hero-h3 {
  display: block;
  width: 100%;
  max-width: var(--header-max-width);
  margin: 0 auto 2.5rem;
  padding: 0 var(--header-margin-x);
  box-sizing: border-box;
  font-size: 1.76rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  white-space: normal;
  text-align: center;
}

.search-form {
  --search-control-height: 5rem;
  display: block;
  margin-bottom: 0;
  width: min(100%, var(--search-row-width));
  min-width: 0;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input-wrap.has-error .placeholder-roller {
  opacity: 0;
  visibility: hidden;
}

.placeholder-roller {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
  padding: 0 10rem 0 1.75rem;
  font: inherit;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--text-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
}

.placeholder-roller.hidden {
  opacity: 0;
  visibility: hidden;
}

.placeholder-roller-inner {
  transition: transform 0.3s ease-out, opacity 0.25s ease-out;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.placeholder-roller-inner.out {
  transform: translateY(-100%);
  opacity: 0;
}

.placeholder-roller-inner.in {
  transform: translateY(100%);
  opacity: 0;
}

.search-input {
  width: 100%;
  height: var(--search-control-height);
  padding: 0 10rem 0 1.75rem;
  font: inherit;
  font-size: 1.3rem;
  border: 2px solid #c4c8cc;
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input::placeholder {
  color: transparent;
}

.search-input:hover {
  border-color: #c4c8cc;
}

.search-input:focus {
  outline: none;
  border-color: var(--reddit-orange);
  box-shadow: 0 0 0 3px rgba(255, 69, 0, 0.12);
}

.search-input.error-state {
  border-color: #d93a2f;
  box-shadow: 0 0 0 3px rgba(217, 58, 47, 0.12);
}

.search-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  height: calc(var(--search-control-height) - 1rem);
  min-width: 8.5rem;
  padding: 0 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  background: var(--reddit-orange);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.search-btn:hover {
  background: #e03e00;
}

.search-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.search-inline-error {
  position: absolute;
  top: 0;
  left: 0;
  right: 10rem;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 1.75rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: #d93a2f;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  z-index: 2;
}

.search-inline-error:hover {
  text-decoration: underline;
}

.search-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* Teaser */
.teaser-section {
  position: relative;
}

.teaser-card-wrap {
  position: relative;
  transition: transform 0.2s ease;
}

.teaser-card-wrap:hover {
  transform: scale(1.02) translateY(-4px);
}

.teaser-card-wrap:hover .lead-card {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.teaser-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  z-index: 1;
}

.teaser-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.teaser-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

/* Grey box around entire analysis: loading stages, progress bar, scanning counter, skeleton/result cards */
.analysis-box {
  margin-top: 0;
  width: 100%;
  max-width: var(--search-row-width);
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

/* When analysis is visible, reduce gap between hero search and grey box (main’s top padding) */
.main:has(.analysis-box:has(.loading-section:not(.hidden))),
.main:has(.analysis-box:has(.results-section:not(.hidden))),
.main:has(.analysis-box:has(.error-section:not(.hidden))) {
  padding-top: 0.5rem;
}

.analysis-box:has(.loading-section:not(.hidden)),
.analysis-box:has(.results-section:not(.hidden)),
.analysis-box:has(.error-section:not(.hidden)) {
  background: #f6f7f8;
  border-radius: 12px;
  padding: 1.5rem 2rem 2rem;
  border: 1px solid var(--border);
}

.analysis-box .loading-section {
  margin-top: 0;
  width: 100%;
}

.analysis-box .results-section {
  margin-top: 0;
}

/* Anchor sections: scroll margin so fixed header doesn't cover title */
#how-it-works,
#pricing {
  scroll-margin-top: 5.5rem;
}

/* Loading */
.loading-section {
  margin-top: 2rem;
  width: 100%;
  box-sizing: border-box;
}

/* Equal columns so ✓ marks don’t change total width (no “growing” strip) */
.loading-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem 0.65rem;
  margin-bottom: 1rem;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 520px) {
  .loading-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.step {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.96rem; /* was 0.8rem; ~20% larger for readability */
  color: var(--text-muted);
  min-width: 0;
  text-align: center;
}

.step .step-label {
  line-height: 1.25;
}

.step.active {
  color: var(--text);
  font-weight: 500;
}

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

.step.done::after {
  content: "✓";
  color: var(--intent-high);
  font-size: 0.85rem;
}

.loading-bar {
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  box-sizing: border-box;
}

.loading-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--reddit-orange);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.scanning-counter {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 1.25rem 0 0;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

/* Subline + time hint share one breathe so phase stays synced when subline text updates */
.loading-breathe-group {
  width: 100%;
  box-sizing: border-box;
  margin-top: 1.25rem;
  text-align: center;
  animation: loading-subline-breathe 2s ease-in-out infinite;
}

.loading-breathe-group--done {
  animation: none;
  opacity: 1;
}

/* Loading subline under steps: same typography as scanning line + breathing on all phases */
.loading-subline {
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.01em;
  min-height: 1.5em;
  font-variant-numeric: normal;
}

.loading-subline .loading-subline-wrap {
  display: inline-block;
}

.loading-subline .loading-subline-text {
  display: inline-block;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.loading-subline.loading-subline--done {
  font-variant-numeric: tabular-nums;
}

@keyframes loading-subline-breathe {
  0%,
  100% {
    opacity: 0.22;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-breathe-group {
    animation: none;
    opacity: 1;
  }
}

/* Subtle note under loading subline (landing) — same grey as .loading-subline */
.loading-time-hint {
  font-size: 0.75rem; /* was 0.625rem; ~20% larger */
  line-height: 1.35;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 400;
  margin: 0.75rem auto 0;
  max-width: 20rem;
  text-align: center;
}

.pricing-billing-toggle {
  position: relative;
}

/* Yearly toggle: orange suffix after label */
.pricing-yearly-offer-suffix {
  color: var(--reddit-orange);
  font-weight: 600;
}

/* Scroll target after “Choose plan & unlock” */
#pricing.pricing-section-highlight {
  box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.45), 0 8px 32px rgba(255, 69, 0, 0.12);
  border-radius: 0.75rem;
  transition: box-shadow 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  #pricing.pricing-section-highlight {
    box-shadow: 0 0 0 2px rgba(255, 69, 0, 0.35);
  }
}

.skeleton-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  width: 100%;
  box-sizing: border-box;
}

/* Dashboard run overlay: generous vertical rhythm (in-panel loading feels cramped otherwise) */
#dashboardLoadingSection .loading-steps {
  margin-bottom: 1.5rem;
}
#dashboardLoadingSection .loading-bar {
  margin-bottom: 2rem;
}
#dashboardLoadingSection .loading-breathe-group {
  margin-top: 0;
  margin-bottom: 0.25rem;
}
#dashboardLoadingSection .loading-subline {
  margin-bottom: 0;
}
#dashboardLoadingSection .skeleton-cards {
  margin-top: 4rem;
}

.skeleton-card {
  background: #fff;
  border-radius: 10px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.skeleton-line {
  height: 0.7rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #e8eaed 25%, #f0f1f3 50%, #e8eaed 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}

.skeleton-line-short {
  width: 30%;
}

.skeleton-line-long {
  width: 90%;
}

.skeleton-line-med {
  width: 55%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Results */
.results-section {
  margin-top: 2rem;
  text-align: left;
}


.results-header {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding: 0.75rem 0;
  text-align: center;
}

.results-count {
  position: relative;
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--reddit-orange);
}

.results-count::after {
  content: "";
  position: absolute;
  left: -4%;
  right: -12%;
  bottom: 0.02em;
  height: 0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 14' fill='none' preserveAspectRatio='none'%3E%3Cpath d='M2 9c30-6 60 3 90-1.5s60-7 90-1.5 60 7 90 1.5 60-6 90-1.5' stroke='%23ff4500' stroke-width='3' stroke-linecap='round' fill='none' opacity='0.45'/%3E%3Cpath d='M2 12c30-5 60 2.5 90-1s60-6 90-1 60 6 90 1 60-5 90-1' stroke='%23ff4500' stroke-width='2' stroke-linecap='round' fill='none' opacity='0.3'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  pointer-events: none;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

/* Reddit-style card */
.lead-card {
  padding: 1.25rem 1.75rem 1.75rem 1.75rem;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lead-card:hover {
  transform: scale(1.02) translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.dashboard-welcome-card .card-inner {
  width: 100%;
  margin: 0;
  text-align: center;
}

.dashboard-welcome-card .card-title {
  margin-bottom: 0.5rem;
}

.dashboard-welcome-card .card-body {
  margin-bottom: 1rem;
}

.dashboard-welcome-card .primary-btn {
  width: min(78%, 760px);
  margin: 0 auto;
  display: block;
}

.lead-card.blurred {
  position: relative;
  user-select: none;
}

.lead-card.blurred .card-inner {
  filter: blur(6px);
  pointer-events: none;
}

.paywall-cta {
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 0.25rem;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #d4d6d9;
}

.paywall-cta-text {
  font-size: 1rem;
  color: var(--text);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.paywall-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 2rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  background: var(--reddit-orange);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.paywall-cta-btn:hover {
  background: #e03e00;
}

/* Landing results unlock CTA — match pricing section primary button */
.paywall-cta-btn-large {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.5rem;
  font: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  background: var(--reddit-orange);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
}

.paywall-cta-btn-large:hover {
  background: #e03e00;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
}

.paywall-cta-microcopy {
  text-align: center;
  font-size: 0.75rem;
  color: #000;
  margin: 1rem 0 0;
  line-height: 1.4;
}

.intent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.27rem;
  padding: 0.27rem 0.63rem;
  border-radius: 10px;
  font-size: 0.675rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 1rem;
}

.intent-badge.hot {
  background: #a5d6a7;
  color: #1b5e20;
}

.intent-badge.warm {
  background: #fff3e0;
  color: #e65100;
}

.intent-badge.lead {
  background: #f3f4f6;
  color: #6b7280;
}

.intent-badges-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.intent-badges-row .intent-badge {
  margin-bottom: 0;
}

.intent-badge.recent {
  background: #dbeafe;
  color: #1d4ed8;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.subreddit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--reddit-orange);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.meta-dot {
  color: var(--text-muted);
  margin: 0 0.15rem;
}

.meta-time {
  color: var(--text-muted);
}

.card-meta a {
  color: var(--text-muted);
  text-decoration: none;
}

.card-meta a:hover {
  text-decoration: underline;
}

.card-title {
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.5rem;
  line-height: 1.35;
}

.card-title a {
  color: var(--text);
  text-decoration: none;
}

.card-title a:hover {
  color: var(--link);
}

.card-title a:visited {
  color: var(--link-visited);
}

.card-body {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  line-height: 1.4;
}

.card-engagement {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.card-explanation {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
  line-height: 1.4;
}

.reply-toggle {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--link);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem 0;
  margin: 0 0 0.5rem;
}

.reply-toggle:hover {
  text-decoration: underline;
}

.reply-content {
  font-size: 0.875rem;
  color: var(--text-muted);
  background: #f6f7f8;
  padding: 0.75rem;
  border-radius: 6px;
  margin-top: 0.25rem;
  line-height: 1.45;
}

.reply-content .reply-text {
  white-space: pre-wrap;
}

.lead-feedback-row {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid #e8eaed;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
}

.lead-feedback-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.lead-feedback-label {
  font-size: 0.76rem;
  color: #666;
}

.lead-feedback-actions {
  display: inline-flex;
  gap: 0.4rem;
}

.lead-feedback-btn {
  border: none;
  border-radius: 8px;
  background: transparent;
  min-width: 40px;
  height: 28px;
  line-height: 1.1;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0 0.4rem;
}

.lead-feedback-btn.up {
  color: #15803d;
}

.lead-feedback-btn.down {
  color: #b91c1c;
}

.lead-feedback-btn.is-selected {
  text-decoration: underline;
}

.lead-feedback-btn:disabled {
  opacity: 0.88;
  cursor: not-allowed;
}

.lead-feedback-thanks {
  font-size: 0.76rem;
  color: #4b5563;
}

.hidden {
  display: none !important;
}

.error-section {
  margin-top: 2rem;
  text-align: center;
}

.error-message {
  color: #b5493e;
  font-size: 0.95rem;
}

.site-footer {
  background: #1f2328;
  color: #ffffff;
  margin-top: 3rem;
  padding: 3rem 0;
}

.site-footer-inner {
  max-width: var(--header-max-width);
  margin: 0 auto;
  padding: 0 var(--header-margin-x);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.site-footer-logo {
  color: #ffffff;
}

.site-footer-h1 {
  margin: 1rem 0 0;
  font-size: 1.15rem;
  line-height: 1.45;
  font-weight: 500;
  color: #f2f4f7;
  max-width: 32rem;
}

.site-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.site-footer-column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.site-footer-title {
  margin: 0 0 0.35rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
}

.site-footer-link {
  color: #e8eaed;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1.4;
}

.site-footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (min-width: 640px) {
  .headline {
    font-size: 4.7rem;
  }

  .subhead {
    font-size: 1.63rem;
    margin-bottom: 3rem;
  }

  .search-btn {
    min-width: 9.25rem;
    padding: 0 2rem;
  }
}

@media (max-width: 639px) {
  .site-footer {
    padding: 2.25rem 0;
  }

  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-footer-h1 {
    font-size: 1.02rem;
  }

  .placeholder-roller {
    padding-right: 8rem;
  }

  .search-input {
    padding-right: 8rem;
  }

  .search-btn {
    min-width: 6.75rem;
    padding: 0 1.25rem;
  }

  .search-inline-error {
    right: 8rem;
    font-size: 0.8rem;
  }
}
