/* ============================================================
   ReviewBriefs — Global Styles
   ============================================================ */

/* ---- Design Tokens ---- */
:root {
  --rb-ink: #18201C;
  --rb-ink-soft: #3D4943;
  --rb-muted: #6F7A73;
  --rb-cream: #F7F3EA;
  --rb-paper: #FFFDF8;
  --rb-stone: #E7E0D3;
  --rb-moss: #4F6F52;
  --rb-moss-dark: #304734;
  --rb-sage: #A8B8A0;
  --rb-clay: #B86B4B;
  --rb-clay-soft: #E7BFAE;
  --rb-gold: #C6A15B;
  --rb-gold-soft: #EFE0C0;
  --rb-line: rgba(24, 32, 28, 0.12);
  --rb-line-strong: rgba(24, 32, 28, 0.22);

  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;

  --radius-card: 18px;
  --radius-btn: 8px;
  --shadow-card: 0 20px 60px rgba(24, 32, 28, 0.06);
  --shadow-card-hover: 0 28px 80px rgba(24, 32, 28, 0.10);

  --transition: 180ms ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--rb-ink);
  background-color: var(--rb-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--rb-moss);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--rb-moss-dark);
}

ul, ol {
  list-style: none;
}

/* ---- Layout ---- */
.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.container--narrow {
  width: min(720px, calc(100% - 40px));
  margin-inline: auto;
}

.container--wide {
  width: min(1280px, calc(100% - 40px));
  margin-inline: auto;
}

/* ---- Section Backgrounds ---- */
.bg-paper  { background-color: var(--rb-paper); }
.bg-cream  { background-color: var(--rb-cream); }
.bg-stone  { background-color: var(--rb-stone); }
.bg-ink    { background-color: var(--rb-ink); color: var(--rb-cream); }
.bg-moss   { background-color: var(--rb-moss); color: var(--rb-cream); }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.22;
  font-weight: 700;
  color: var(--rb-ink);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--rb-muted); }

.text-display {
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.text-muted   { color: var(--rb-muted); }
.text-moss    { color: var(--rb-moss); }
.text-clay    { color: var(--rb-clay); }
.text-gold    { color: var(--rb-gold); }
.text-ink-soft { color: var(--rb-ink-soft); }

.text-sm  { font-size: 0.875rem; }
.text-xs  { font-size: 0.75rem; }
.text-lg  { font-size: 1.125rem; }
.text-xl  { font-size: 1.25rem; }

.label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rb-muted);
}

p + p { margin-top: 1em; }
p { max-width: 68ch; }
p.wide { max-width: none; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-btn);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary — moss */
.btn-primary {
  background-color: var(--rb-moss);
  color: var(--rb-cream);
  border-color: var(--rb-moss);
}

.btn-primary:hover {
  background-color: var(--rb-moss-dark);
  border-color: var(--rb-moss-dark);
  color: var(--rb-cream);
  box-shadow: 0 6px 24px rgba(79, 111, 82, 0.28);
}

/* Secondary — outline */
.btn-secondary {
  background-color: transparent;
  color: var(--rb-ink);
  border-color: var(--rb-line-strong);
}

.btn-secondary:hover {
  background-color: var(--rb-cream);
  border-color: var(--rb-ink);
  color: var(--rb-ink);
}

/* Ghost on dark */
.btn-ghost-light {
  background-color: transparent;
  color: var(--rb-cream);
  border-color: rgba(247, 243, 234, 0.45);
}

.btn-ghost-light:hover {
  background-color: rgba(247, 243, 234, 0.12);
  border-color: var(--rb-cream);
  color: var(--rb-cream);
}

/* Clay accent */
.btn-clay {
  background-color: var(--rb-clay);
  color: #fff;
  border-color: var(--rb-clay);
}

.btn-clay:hover {
  background-color: #9f5b3d;
  border-color: #9f5b3d;
  color: #fff;
}

.btn-sm {
  font-size: 0.8125rem;
  padding: 0.5em 1.1em;
}

.btn-lg {
  font-size: 1.0625rem;
  padding: 0.875em 1.875em;
  border-radius: 10px;
}

/* ---- Card ---- */
.card {
  background: var(--rb-paper);
  border: 1px solid var(--rb-line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.card--cream {
  background: var(--rb-cream);
}

.card--hover {
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.card-body { padding: 2rem; }

/* ---- Badge / Tag ---- */
.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3em 0.75em;
  border-radius: 100px;
  border: 1px solid currentColor;
}

.badge-moss  { color: var(--rb-moss); background: rgba(79,111,82,0.09); }
.badge-clay  { color: var(--rb-clay); background: rgba(184,107,75,0.1); }
.badge-gold  { color: var(--rb-gold); background: rgba(198,161,91,0.1); }
.badge-stone { color: var(--rb-ink-soft); background: var(--rb-stone); border-color: var(--rb-line); }

/* ---- Divider ---- */
.divider {
  height: 1px;
  background: var(--rb-line);
  border: none;
  margin: 0;
}

/* ---- Section spacing ---- */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

@media (max-width: 640px) {
  .section    { padding: 3.5rem 0; }
  .section-sm { padding: 2rem 0; }
  .section-lg { padding: 4.5rem 0; }
}

/* ---- Site Header / Nav ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rb-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--rb-ink);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.site-logo:hover { color: var(--rb-moss); }

.site-logo__mark {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--rb-moss);
  border-radius: 7px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  margin-right: 1.25rem;
}

.site-nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rb-ink-soft);
  padding: 0.4em 0.8em;
  border-radius: 6px;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.site-nav__link:hover,
.site-nav__link.active {
  color: var(--rb-moss);
  background-color: rgba(79, 111, 82, 0.07);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--rb-ink);
}

.nav-toggle svg {
  display: block;
  width: 22px;
  height: 22px;
}

.site-nav__mobile {
  display: none;
}

@media (max-width: 900px) {
  .site-nav__links {
    display: none;
  }

  .site-nav .btn:not(.btn-primary) {
    display: none;
  }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav__mobile {
    display: none;
    flex-direction: column;
    background: var(--rb-paper);
    border-top: 1px solid var(--rb-line);
    padding: 1rem 0 1.5rem;
  }

  .site-nav__mobile.is-open {
    display: flex;
  }

  .site-nav__mobile .site-nav__link {
    padding: 0.65em 1.25em;
    border-radius: 0;
    font-size: 1rem;
  }

  .site-nav__mobile .btn {
    margin: 0.75rem 1.25rem 0;
    align-self: flex-start;
  }
}

/* ---- Hero ---- */
.hero {
  padding: 5.5rem 0 5rem;
  background: var(--rb-cream);
  border-bottom: 1px solid var(--rb-line);
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero__copy { max-width: 52ch; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rb-moss);
  margin-bottom: 1.25rem;
}

.hero__kicker::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--rb-moss);
  border-radius: 2px;
}

.hero__heading { margin-bottom: 1.25rem; }

.hero__body {
  font-size: 1.125rem;
  color: var(--rb-ink-soft);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero__note {
  font-size: 0.825rem;
  color: var(--rb-muted);
  margin-top: 1rem;
}

/* ---- Hero report card ---- */
.hero__visual {
  position: relative;
}

.hero__visual::before {
  content: '';
  position: absolute;
  inset: -16px -12px;
  background: var(--rb-stone);
  border-radius: 26px;
  opacity: 0.35;
  z-index: 0;
}

.hero-card {
  position: relative;
  z-index: 1;
  background: var(--rb-paper);
  border: 1px solid var(--rb-line);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(24, 32, 28, 0.10), 0 4px 16px rgba(24, 32, 28, 0.06);
  overflow: hidden;
}

.hero-card__header {
  background: var(--rb-moss-dark);
  padding: 1.25rem 1.5rem;
}

.hero-card__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rb-sage);
  margin-bottom: 0.5rem;
}

.hero-card__property {
  font-size: 1rem;
  font-weight: 700;
  color: var(--rb-paper);
  margin-bottom: 0.25rem;
}

.hero-card__meta {
  font-size: 0.775rem;
  color: var(--rb-sage);
}

.hero-card__body {
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-card__section-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rb-muted);
  margin-bottom: 0.5rem;
}

.hero-card__signal {
  font-size: 0.875rem;
  color: var(--rb-ink-soft);
  line-height: 1.55;
  margin: 0;
}

.hero-card__signal strong { color: var(--rb-ink); }

.hero-card__actions-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.hero-card__actions-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--rb-ink-soft);
  line-height: 1.4;
}

.hero-card__action-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.hero-card__action-dot--high { background: var(--rb-clay); }
.hero-card__action-dot--med  { background: var(--rb-gold); }

.hero-card__badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.hero-card__badge--high { background: rgba(184,107,75,0.12); color: var(--rb-clay); }
.hero-card__badge--med  { background: rgba(198,161,91,0.15); color: #9a7a30; }

.hero-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hero-card__chip {
  font-size: 0.775rem;
  color: var(--rb-ink-soft);
  background: var(--rb-cream);
  border: 1px solid var(--rb-stone);
  border-radius: 6px;
  padding: 0.2rem 0.6rem;
}

.hero-card__footer {
  border-top: 1px solid var(--rb-line);
  padding: 0.875rem 1.5rem;
  background: var(--rb-cream);
}

@media (max-width: 900px) {
  .hero__layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__copy { max-width: none; }
  .hero__visual::before { display: none; }
}

@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 3rem; }
  .hero__actions .btn { width: 100%; justify-content: center; }
}

/* ---- Feature Grid ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.feature-card {
  padding: 1.75rem;
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.feature-card__icon--moss  { background: rgba(79,111,82,0.12); }
.feature-card__icon--clay  { background: rgba(184,107,75,0.12); }
.feature-card__icon--gold  { background: rgba(198,161,91,0.12); }

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--rb-ink-soft);
  max-width: none;
}

/* ---- How it works steps ---- */
.steps {
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.5rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--rb-line);
  counter-increment: steps;
}

.step:last-child { border-bottom: none; }

.step__num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--rb-cream);
  border: 1.5px solid var(--rb-line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--rb-moss);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.step__num::after {
  content: counter(steps, decimal-leading-zero);
}

.step h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.step p { color: var(--rb-ink-soft); font-size: 0.95rem; max-width: none; }

/* ---- Report preview card ---- */
.report-preview-card {
  overflow: hidden;
}

.report-preview-card__header {
  background: var(--rb-moss);
  color: var(--rb-cream);
  padding: 2rem 2.25rem 1.75rem;
}

.report-preview-card__header h2 {
  color: var(--rb-cream);
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.report-preview-card__meta {
  font-size: 0.8rem;
  opacity: 0.75;
}

.report-preview-card__body {
  padding: 2rem 2.25rem;
}

/* ---- Quote / Callout ---- */
.callout {
  border-left: 3px solid var(--rb-moss);
  padding: 1rem 1.25rem;
  background: rgba(79,111,82,0.05);
  border-radius: 0 8px 8px 0;
}

.callout--clay {
  border-left-color: var(--rb-clay);
  background: rgba(184,107,75,0.05);
}

.callout--gold {
  border-left-color: var(--rb-gold);
  background: rgba(198,161,91,0.06);
}

/* ---- Trend blocks (What Changed This Month) ---- */
.trend-block {
  border-radius: 12px;
  border: 1px solid var(--rb-line);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.trend-block__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.6rem;
}

.trend-block h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--rb-ink);
}

.trend-block p {
  font-size: 0.875rem;
  color: var(--rb-ink-soft);
  margin: 0;
  max-width: none;
}

.trend-block--up {
  background: rgba(79,111,82,0.04);
  border-color: rgba(79,111,82,0.2);
}
.trend-block--up .trend-block__label {
  color: var(--rb-moss);
}

.trend-block--down {
  background: rgba(184,107,75,0.04);
  border-color: rgba(184,107,75,0.2);
}
.trend-block--down .trend-block__label {
  color: var(--rb-clay);
}

.trend-block--new {
  background: rgba(198,161,91,0.05);
  border-color: rgba(198,161,91,0.25);
}
.trend-block--new .trend-block__label {
  color: #9a7a3a;
}

.trend-block--seasonal {
  background: rgba(168,184,160,0.1);
  border-color: rgba(168,184,160,0.35);
}
.trend-block--seasonal .trend-block__label {
  color: #5a7a5d;
}

.trend-block--resolved {
  background: rgba(79,111,82,0.04);
  border-color: rgba(79,111,82,0.2);
}
.trend-block--resolved .trend-block__label {
  color: var(--rb-moss);
}

blockquote.guest-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--rb-ink-soft);
  font-style: italic;
  border-left: 3px solid var(--rb-gold);
  padding: 0.75rem 1.25rem;
  margin: 1rem 0;
  background: rgba(198,161,91,0.06);
  border-radius: 0 6px 6px 0;
}

blockquote.guest-quote cite {
  display: block;
  font-size: 0.8rem;
  font-style: normal;
  font-family: var(--font-body);
  color: var(--rb-muted);
  margin-top: 0.5rem;
}

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.pricing-grid--4 {
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1100px) {
  .pricing-grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pricing-grid--4 { grid-template-columns: repeat(2, 1fr); max-width: none; }
  .pricing-card__body { padding: 1.75rem; }
}

@media (max-width: 560px) {
  .pricing-grid--4 { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .pricing-card__body { padding: 1.5rem; }
}

.pricing-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--rb-line);
  background: var(--rb-paper);
  box-shadow: var(--shadow-card);
}

.pricing-card--featured {
  border-color: var(--rb-moss);
  box-shadow: 0 24px 80px rgba(79,111,82,0.14);
}

.pricing-card__tag {
  background: var(--rb-moss);
  color: var(--rb-cream);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 0.45em 1em;
}

.pricing-card__body {
  padding: 2rem;
}

.pricing-card__price {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0.5rem 0;
  color: var(--rb-ink);
}

.pricing-card__price sup {
  font-size: 1.25rem;
  font-weight: 700;
  vertical-align: super;
  line-height: 0;
}

.pricing-card__period {
  font-size: 0.875rem;
  color: var(--rb-muted);
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  list-style: none;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
  font-size: 0.9rem;
  color: var(--rb-ink-soft);
}

.pricing-card__features li::before {
  content: '✓';
  color: var(--rb-moss);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ---- Table ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--rb-cream);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--rb-muted);
  border-bottom: 1px solid var(--rb-line);
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rb-line);
  color: var(--rb-ink-soft);
  vertical-align: top;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: rgba(247,243,234,0.6);
}

.priority-high   { color: var(--rb-clay); font-weight: 700; }
.priority-medium { color: var(--rb-gold); font-weight: 600; }
.priority-low    { color: var(--rb-muted); font-weight: 500; }

/* ---- Report Document ---- */
.report-doc {
  max-width: 820px;
  margin: 0 auto;
}

.report-doc__cover {
  background: var(--rb-moss);
  color: var(--rb-cream);
  padding: 3rem 3rem 2.5rem;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  margin-bottom: 0;
}

.report-doc__cover h1 {
  color: var(--rb-cream);
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.report-doc__cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  font-size: 0.85rem;
  opacity: 0.8;
  margin-top: 1.25rem;
}

.report-doc__cover-meta span {
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.report-doc__body {
  background: var(--rb-paper);
  border: 1px solid var(--rb-line);
  border-top: none;
  border-radius: 0 0 var(--radius-card) var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.report-section {
  padding: 2.5rem 3rem;
  border-bottom: 1px solid var(--rb-line);
}

.report-section:last-child {
  border-bottom: none;
}

.report-section:nth-child(even) {
  background: var(--rb-cream);
}

.report-section__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.report-section__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rb-moss);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.report-section__title h2 {
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* ---- Praise theme cards ---- */
.theme-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.theme-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--rb-paper);
  border: 1px solid var(--rb-line);
}

.theme-item__rank {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--rb-stone);
  letter-spacing: -0.05em;
  line-height: 1;
  padding-top: 0.15rem;
  min-width: 2rem;
  text-align: right;
}

.theme-item__content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.theme-item__content p {
  font-size: 0.875rem;
  color: var(--rb-ink-soft);
  max-width: none;
  margin-bottom: 0.75rem;
}

.theme-item__bar {
  height: 5px;
  background: var(--rb-stone);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.theme-item__bar-fill {
  height: 100%;
  background: var(--rb-moss);
  border-radius: 3px;
  transition: width 1s ease;
}

/* ---- Risk list ---- */
.risk-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.risk-item {
  padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 4px solid var(--rb-clay);
  background: var(--rb-paper);
  border-radius: 0 10px 10px 0;
  border-top: 1px solid var(--rb-line);
  border-right: 1px solid var(--rb-line);
  border-bottom: 1px solid var(--rb-line);
}

.risk-item--medium {
  border-left-color: var(--rb-gold);
}

.risk-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-clay);
  margin-bottom: 0.25rem;
}

.risk-item--medium .risk-item__label {
  color: var(--rb-gold);
}

.risk-item h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.risk-item p {
  font-size: 0.875rem;
  color: var(--rb-ink-soft);
  max-width: none;
}

/* ---- Guest language chips ---- */
.phrase-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.phrase-chip {
  background: var(--rb-cream);
  border: 1px solid var(--rb-line-strong);
  border-radius: 100px;
  padding: 0.4em 1em;
  font-size: 0.875rem;
  color: var(--rb-ink-soft);
  font-style: italic;
}

/* ---- Marketing opps ---- */
.opp-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

.opp-item {
  padding: 1.25rem;
  background: var(--rb-paper);
  border: 1px solid var(--rb-line);
  border-radius: 12px;
}

.opp-item__channel {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-gold);
  margin-bottom: 0.4rem;
}

.opp-item h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.opp-item p  { font-size: 0.85rem; color: var(--rb-ink-soft); max-width: none; }

/* ---- Website copy suggestions ---- */
.copy-block {
  background: var(--rb-cream);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rb-line);
}

.copy-block__context {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-muted);
  margin-bottom: 0.5rem;
}

.copy-block__text {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--rb-ink);
  font-style: italic;
  line-height: 1.5;
}

/* ---- Review response suggestions ---- */
.response-block {
  margin-bottom: 1.5rem;
  border: 1px solid var(--rb-line);
  border-radius: 12px;
  overflow: hidden;
}

.response-block__original {
  background: var(--rb-stone);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--rb-ink-soft);
  border-bottom: 1px solid var(--rb-line);
}

.response-block__original strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-muted);
  margin-bottom: 0.35rem;
}

.response-block__response {
  background: var(--rb-paper);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: var(--rb-ink-soft);
  line-height: 1.65;
}

.response-block__response strong {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rb-moss);
  margin-bottom: 0.35rem;
}

/* ---- Report actions bar ---- */
.report-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.25rem 0;
  margin-bottom: 2rem;
}

/* ---- CTA Section ---- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  background: var(--rb-ink);
  color: var(--rb-cream);
}

.cta-section h2 {
  color: var(--rb-cream);
  margin-bottom: 0.75rem;
}

.cta-section p {
  color: rgba(247,243,234,0.7);
  margin: 0 auto 2rem;
  max-width: 52ch;
}

/* ---- Testimonial ---- */
.testimonial {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.testimonial__quote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--rb-ink);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial__author {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rb-muted);
}

/* ---- Form ---- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rb-ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--rb-ink);
  background: var(--rb-paper);
  border: 1.5px solid var(--rb-line-strong);
  border-radius: 8px;
  padding: 0.7em 0.875em;
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--rb-moss);
  box-shadow: 0 0 0 3px rgba(79,111,82,0.15);
}

.form-field textarea { resize: vertical; min-height: 120px; }

.form-placeholder {
  font-size: 0.9rem;
  color: var(--rb-muted);
  padding: 1.5rem;
  text-align: center;
  border: 1px dashed var(--rb-line-strong);
  border-radius: 8px;
}

/* ---- Thank you / success ---- */
.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(79,111,82,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
}

/* ---- 404 ---- */
.error-page {
  text-align: center;
  padding: 7rem 0;
}

.error-page__code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 900;
  color: var(--rb-stone);
  line-height: 1;
  margin-bottom: 0;
  letter-spacing: -0.05em;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--rb-ink);
  color: rgba(247,243,234,0.65);
  padding: 3.5rem 0 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
}

.site-footer__brand .site-logo {
  color: var(--rb-cream);
  margin-bottom: 0.75rem;
}

.site-footer__brand .site-logo:hover { color: var(--rb-sage); }

.site-footer__brand .site-logo__mark {
  background: rgba(247,243,234,0.15);
}

.site-footer__tagline {
  font-size: 0.875rem;
  line-height: 1.55;
  max-width: 32ch;
}

.site-footer__col h6 {
  color: rgba(247,243,234,0.45);
  margin-bottom: 1rem;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.site-footer__links a {
  font-size: 0.875rem;
  color: rgba(247,243,234,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

.site-footer__links a:hover { color: var(--rb-cream); }

.site-footer__bottom {
  border-top: 1px solid rgba(247,243,234,0.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
}

/* ---- Utilities ---- */
.mt-0  { margin-top: 0; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mt-6  { margin-top: 3rem; }
.mb-0  { margin-bottom: 0; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }
.mb-6  { margin-bottom: 3rem; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.w-full { width: 100%; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

.hidden { display: none; }

/* ---- Print tip ---- */
.print-tip {
  font-size: 0.75rem;
  color: var(--rb-muted);
  margin-top: 0.5rem;
  line-height: 1.4;
  max-width: 52ch;
}

/* ---- Print-only elements (hidden on screen) ---- */
.print-only {
  display: none;
}

/* ---- Report Index ---- */
.report-index {
  background: var(--rb-paper);
  border: 1px solid var(--rb-line);
  border-radius: 18px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}

.report-index__dashboard {
  border-bottom: 1px solid var(--rb-line);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.report-index__stat {
  text-align: center;
  padding: 1rem 0.75rem;
  background: var(--rb-cream);
  border-radius: 10px;
  border: 1px solid var(--rb-line);
}

.report-index__stat-value {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--rb-ink);
  line-height: 1;
}

.report-index__stat-label {
  font-size: 0.72rem;
  color: var(--rb-ink-soft);
  margin-top: 0.3rem;
}

.report-index__signal {
  padding: 0.875rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--rb-line);
}

.report-index__signal-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.report-index__signal-value {
  font-size: 0.825rem;
  color: var(--rb-ink-soft);
  line-height: 1.4;
}

.report-index__signal--up {
  background: rgba(79,111,82,0.04);
  border-color: rgba(79,111,82,0.2);
}
.report-index__signal--up .report-index__signal-label { color: var(--rb-moss); }

.report-index__signal--down {
  background: rgba(184,107,75,0.04);
  border-color: rgba(184,107,75,0.2);
}
.report-index__signal--down .report-index__signal-label { color: var(--rb-clay); }

.report-index__signal--opp {
  background: rgba(198,161,91,0.05);
  border-color: rgba(198,161,91,0.2);
}
.report-index__signal--opp .report-index__signal-label { color: #9a7a3a; }

.report-index__signal--action {
  background: rgba(79,111,82,0.04);
  border-color: rgba(79,111,82,0.2);
}
.report-index__signal--action .report-index__signal-label { color: var(--rb-moss); }

.report-index__toc { }

.report-index__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.25rem 1.5rem;
  counter-reset: toc-counter;
}

.report-index__list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--rb-line);
  font-size: 0.875rem;
  counter-increment: toc-counter;
}

.report-index__list li::before {
  content: counter(toc-counter);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rb-muted);
  min-width: 1.2em;
  flex-shrink: 0;
}

.report-index__list a {
  color: var(--rb-ink);
  text-decoration: none;
  font-weight: 500;
}
.report-index__list a:hover { color: var(--rb-moss); text-decoration: underline; }

.report-index__sub {
  font-size: 0.75rem;
  color: var(--rb-muted);
  margin-left: 0.25rem;
}

/* ---- Action cards (print-only checklist alternative) ---- */
.action-card {
  border: 1px solid var(--rb-line);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  break-inside: avoid;
  page-break-inside: avoid;
}

.action-card__priority {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.action-card__priority--high { color: var(--rb-clay); }
.action-card__priority--medium { color: #9a7a3a; }
.action-card__priority--low { color: var(--rb-muted); }

.action-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rb-ink);
  margin-bottom: 0.3rem;
}

.action-card__detail {
  font-size: 0.825rem;
  color: var(--rb-ink-soft);
  margin-bottom: 0.6rem;
  max-width: none;
}

.action-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  color: var(--rb-ink-soft);
}

/* ============================
   PRINT / PDF STYLES
   ============================ */

@media print {
  @page {
    size: Letter;
    margin: 0.65in 0.75in;
  }

  /* Hide web chrome */
  .no-print,
  .site-header,
  .site-footer,
  .report-actions,
  .cta-section,
  .print-tip {
    display: none !important;
  }

  /* Show print-only elements */
  .print-only {
    display: block !important;
  }

  /* Hide web-only tables in action checklist */
  .data-table,
  .data-table + .print-only { } /* specificity helper */

  /* Base */
  body {
    background: #fff !important;
    color: #18201C !important;
    font-size: 10pt;
    line-height: 1.45;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  /* Remove outer page chrome */
  .bg-paper, .bg-cream, .section {
    background: #fff !important;
    padding: 0 !important;
  }

  .container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Report doc wrapper */
  .report-doc {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  /* Cover: dark background prints dark */
  .report-doc__cover {
    border-radius: 0 !important;
    padding: 1.5rem !important;
    break-after: page;
    page-break-after: always;
  }

  /* Report index on its own page */
  .report-index {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    break-after: page;
    page-break-after: always;
  }

  .report-index__list {
    grid-template-columns: 1fr 1fr;
  }

  /* Report body */
  .report-doc__body {
    padding: 0 !important;
  }

  /* Section spacing and breaks */
  .report-section {
    margin-bottom: 0.4in !important;
    padding-bottom: 0 !important;
  }

  .report-section.force-page {
    break-before: page;
    page-break-before: always;
    padding-top: 0 !important;
  }

  /* Keep content together */
  .theme-item,
  .risk-item,
  .opp-item,
  .response-block,
  .copy-block,
  .action-card,
  .callout,
  .trend-block,
  .guest-quote {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Section headers stay with content */
  .report-section__title {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Reduce shadows and backgrounds in print */
  .card,
  .report-index__stat,
  .report-index__signal,
  .trend-block,
  .callout,
  .copy-block,
  .response-block {
    box-shadow: none !important;
  }

  /* Keep stat grid readable */
  .report-index__stat {
    border: 1px solid #ccc !important;
    background: #f9f9f9 !important;
  }

  /* Hide the data tables; show action cards */
  .data-table {
    display: none !important;
  }

  /* Section numbers */
  .report-section__num {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  /* Typography scale down slightly */
  h2 { font-size: 1.15rem !important; }
  h3 { font-size: 1rem !important; }
  h4 { font-size: 0.9rem !important; }

  /* Prevent orphan lines */
  p { orphans: 3; widows: 3; }

  /* Links: no underline in print */
  a { text-decoration: none !important; color: inherit !important; }
}
