/* ============================================================
   ERP Health Check — Report Styles
   SuiteMaple · suitemaple.com
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */

:root {
  /* Brand */
  --maple:       #CC1111;
  --amber:       #C17F24;
  --charcoal:    #2C2C2C;
  --bg:          #FAF7F2;
  --border:      #E5DFDA;
  --muted:       #6B6560;

  /* Scores */
  --critical:    #B91C1C;
  --critical-bg: #FEF2F2;
  --critical-bd: #FECACA;
  --high:        #B45309;
  --high-bg:     #FFFBEB;
  --high-bd:     #FDE68A;
  --medium:      #1D4ED8;
  --medium-bg:   #EFF6FF;
  --medium-bd:   #BFDBFE;
  --low:         #166534;
  --low-bg:      #F0FDF4;
  --low-bd:      #BBF7D0;

  --score-critical: #B91C1C;
  --score-poor:     #B45309;
  --score-fair:     #1D4ED8;
  --score-good:     #15803D;
  --score-healthy:  #14532D;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'DM Mono', 'Courier New', monospace;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2x: 3rem;
  --space-3x: 4.5rem;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
}

/* ── Reset ─────────────────────────────────────────────────── */

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Landing Page ──────────────────────────────────────────── */

.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.landing-inner {
  max-width: 560px;
  text-align: center;
}

.landing-brand {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  letter-spacing: -0.02em;
}

.brand-maple { color: var(--maple); }
.brand-name  { color: var(--charcoal); }

.landing-headline {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.landing-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.landing-cta { margin-bottom: var(--space-md); }

.landing-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Buttons ───────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s, transform 0.1s;
}

.btn:hover  { opacity: 0.92; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background-color: var(--maple);
  color: #fff;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1rem;
}

/* ── Report Layout ─────────────────────────────────────────── */

.report-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3x);
}

/* ── Report Header ─────────────────────────────────────────── */

.report-header {
  border-bottom: 2px solid var(--border);
  padding: 0;
  margin-bottom: var(--space-2x);
}

.report-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.report-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.report-company {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.report-details {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.report-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-badge--type {
  background: var(--maple);
  color: #fff;
}

.report-date,
.report-account {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ── Score Hero ────────────────────────────────────────────── */

.score-hero {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2x);
  margin-bottom: var(--space-2x);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.score-hero-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2x);
  flex-wrap: wrap;
}

.score-circle {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid currentColor;
  position: relative;
}

.score-circle--critical { color: var(--score-critical); background: var(--critical-bg); }
.score-circle--poor     { color: var(--score-poor);     background: var(--high-bg);     }
.score-circle--fair     { color: var(--score-fair);     background: var(--medium-bg);   }
.score-circle--good     { color: var(--score-good);     background: var(--low-bg);      }
.score-circle--healthy  { color: var(--score-healthy);  background: #F0FDF4;             }

.score-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.score-denom {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.score-word {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: inherit;
  margin-top: 2px;
}

.score-summary { flex: 1; min-width: 220px; }

.score-headline {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.score-desc {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.score-counts {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.count-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  min-width: 70px;
  border: 1px solid;
}

.count-pill--critical { background: var(--critical-bg); border-color: var(--critical-bd); }
.count-pill--high     { background: var(--high-bg);     border-color: var(--high-bd);     }
.count-pill--medium   { background: var(--medium-bg);   border-color: var(--medium-bd);   }
.count-pill--low      { background: var(--low-bg);      border-color: var(--low-bd);      }

.count-n {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.count-pill--critical .count-n { color: var(--critical); }
.count-pill--high     .count-n { color: var(--high);     }
.count-pill--medium   .count-n { color: var(--medium);   }
.count-pill--low      .count-n { color: var(--low);      }

.count-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Sections ──────────────────────────────────────────────── */

.section {
  margin-bottom: var(--space-2x);
}

.section-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: var(--space-md);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
}

/* ── Scorecard ─────────────────────────────────────────────── */

.scorecard {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.scorecard-row {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.scorecard-row:last-child { border-bottom: none; }
.scorecard-row:hover { background: var(--bg); }

.scorecard-area-name {
  font-weight: 600;
  font-size: 0.9375rem;
  display: block;
}

.scorecard-weight {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.scorecard-bar-wrap {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.scorecard-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s ease;
}

.scorecard-bar--critical { background: var(--score-critical); }
.scorecard-bar--poor     { background: var(--score-poor);     }
.scorecard-bar--fair     { background: var(--score-fair);     }
.scorecard-bar--good     { background: var(--score-good);     }
.scorecard-bar--healthy  { background: var(--score-healthy);  }

.scorecard-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 200px;
  justify-content: flex-end;
}

.scorecard-score {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 500;
  min-width: 2.5rem;
  text-align: right;
}

.scorecard-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  min-width: 70px;
  text-align: center;
}

.scorecard-label--critical { color: var(--score-critical); background: var(--critical-bg); }
.scorecard-label--poor     { color: var(--score-poor);     background: var(--high-bg);     }
.scorecard-label--fair     { color: var(--score-fair);     background: var(--medium-bg);   }
.scorecard-label--good     { color: var(--score-good);     background: var(--low-bg);      }
.scorecard-label--healthy  { color: var(--score-healthy);  background: #F0FDF4;             }

.scorecard-finding-count {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--font-mono);
  min-width: 70px;
}

/* ── Findings ──────────────────────────────────────────────── */

.area-block { margin-bottom: var(--space-xl); }

.area-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.area-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--charcoal);
}

.area-score {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 2px 12px;
  border-radius: var(--radius-xl);
}

.area-score--critical { color: var(--score-critical); background: var(--critical-bg); }
.area-score--poor     { color: var(--score-poor);     background: var(--high-bg);     }
.area-score--fair     { color: var(--score-fair);     background: var(--medium-bg);   }
.area-score--good     { color: var(--score-good);     background: var(--low-bg);      }
.area-score--healthy  { color: var(--score-healthy);  background: #F0FDF4;             }

.findings-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.finding-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: box-shadow 0.15s;
}

.finding-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.06); }

.finding-card--critical { border-left-color: var(--score-critical); }
.finding-card--high     { border-left-color: var(--score-poor);     }
.finding-card--medium   { border-left-color: var(--score-fair);     }
.finding-card--low      { border-left-color: var(--score-good);     }

.finding-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  flex-wrap: wrap;
}

.severity-badge,
.difficulty-badge,
.priority-badge,
.deduction-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.severity-badge--critical { background: var(--critical-bg); color: var(--score-critical); border: 1px solid var(--critical-bd); }
.severity-badge--high     { background: var(--high-bg);     color: var(--score-poor);     border: 1px solid var(--high-bd);     }
.severity-badge--medium   { background: var(--medium-bg);   color: var(--score-fair);     border: 1px solid var(--medium-bd);   }
.severity-badge--low      { background: var(--low-bg);      color: var(--score-good);     border: 1px solid var(--low-bd);      }

.difficulty-badge--easy { background: #F0FDF4; color: #166534; border: 1px solid #BBF7D0; }
.difficulty-badge--medium { background: #FFFBEB; color: #92400E; border: 1px solid #FDE68A; }
.difficulty-badge--hard { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

.deduction-badge {
  background: var(--bg);
  color: var(--charcoal);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
}

.priority-badge {
  background: var(--bg);
  color: var(--muted);
  border: 1px solid var(--border);
}

.finding-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.finding-detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-xs) var(--space-md);
  font-size: 0.875rem;
}

.finding-detail dt {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: 1px;
}

.finding-detail dd {
  color: var(--charcoal);
  line-height: 1.6;
}

/* ── CTA Section ───────────────────────────────────────────── */

.cta-section {
  background: var(--charcoal);
  border-radius: var(--radius-xl);
  padding: var(--space-2x);
  margin-bottom: var(--space-xl);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.cta-sub {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 500px;
}

.cta-section .btn-primary {
  background: var(--maple);
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
}

/* ── Report Footer Note ────────────────────────────────────── */

.report-footer-note {
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--space-lg);
  line-height: 1.7;
}

/* ── Site Footer ───────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) var(--space-xl);
  margin-top: var(--space-3x);
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--charcoal);
}

.footer-tagline {
  color: var(--muted);
  font-size: 0.875rem;
  flex: 1;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--maple);
  text-decoration: none;
}

.footer-link:hover { text-decoration: underline; }

/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 640px) {
  .report-wrap { padding: 0 var(--space-md) var(--space-2x); }

  .score-hero-inner  { flex-direction: column; align-items: flex-start; }
  .score-circle      { width: 120px; height: 120px; }
  .score-num         { font-size: 2.25rem; }

  .scorecard-row     { grid-template-columns: 1fr auto; }
  .scorecard-bar-wrap { display: none; }

  .finding-detail    { grid-template-columns: 1fr; }
  .finding-detail dt { margin-top: var(--space-sm); }

  .cta-inner         { flex-direction: column; }
  .cta-section .btn  { width: 100%; justify-content: center; }

  .scorecard-right   { min-width: auto; }
}

/* ── Print ─────────────────────────────────────────────────── */

@media print {
  body    { background: white; }
  .cta-section, .site-footer { display: none; }
  .finding-card { break-inside: avoid; }
  .area-block   { break-inside: avoid; }
}

/* ── Landing Page ──────────────────────────────────────────── */

/* Nav */
.lp-nav {
  border-bottom: 1px solid var(--border);
  padding: 0 var(--space-xl);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
}

.lp-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lp-brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-outline:hover { border-color: var(--charcoal); }

.btn-inverse {
  background: #fff;
  color: var(--charcoal);
  border: 1.5px solid #fff;
}

.btn-inverse:hover {
  background: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.88);
}

.btn-secondary {
  background: var(--charcoal);
  color: #fff;
}

/* Hero */
.lp-hero {
  padding: var(--space-3x) var(--space-xl);
  border-bottom: 1px solid var(--border);
}

.lp-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.lp-hero-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maple);
  margin-bottom: var(--space-md);
}

.lp-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: var(--space-lg);
}

.lp-hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: var(--space-xl);
  max-width: 580px;
}

.lp-hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.lp-hero-note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* Shared section layout */
.lp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-3x) var(--space-xl);
}

.lp-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.lp-section-sub {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: var(--space-xl);
  max-width: 580px;
  line-height: 1.7;
}

/* Area grid */
.lp-areas { background: white; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.lp-area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-md);
}

.lp-area-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.lp-area-weight {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--maple);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.04em;
}

/* Card category eyebrow label -- for use on lp-area-card and similar marketing cards.
   NOT the same as lp-area-weight, which is designed for numeric scoring weights in the
   healthcheck context. Use this class wherever you need a readable document-type label. */
.card-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.lp-area-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.lp-area-card p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Pricing */
.lp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
  align-items: start;
}

.lp-pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  position: relative;
}

.lp-pricing-card--featured {
  border-color: var(--maple);
  box-shadow: 0 0 0 1px var(--maple);
}

.lp-pricing-badge {
  position: absolute;
  top: -12px;
  left: var(--space-xl);
  background: var(--maple);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 10px;
  border-radius: var(--radius-xl);
}

.lp-pricing-tier {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.lp-pricing-price {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.lp-pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted);
  font-family: var(--font-body);
}

.lp-pricing-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.lp-pricing-list {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lp-pricing-list li {
  font-size: 0.9rem;
  color: var(--charcoal);
  padding-left: 1.25rem;
  position: relative;
}

.lp-pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--maple);
  font-weight: 700;
  font-size: 0.75rem;
}

/* About */
.lp-about {
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.lp-about-inner {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--space-3x);
  align-items: center;
}

.lp-about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 2.5vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.lp-about-text p {
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: var(--space-md);
  font-size: 0.9375rem;
}

/* Sample score card */
.sample-score-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.sample-score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.sample-score-circle--poor {
  color: var(--score-poor);
  background: var(--high-bg);
}

.sample-score-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: inherit;
}

.sample-score-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: inherit;
}

.sample-findings {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.sample-finding {
  font-size: 0.8125rem;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border-left: 3px solid;
}

.sample-finding--critical {
  background: var(--critical-bg);
  border-color: var(--score-critical);
  color: var(--score-critical);
}

.sample-finding--high {
  background: var(--high-bg);
  border-color: var(--score-poor);
  color: var(--score-poor);
}

.lp-sample-link {
  display: block;
  text-align: center;
  margin-top: var(--space-md);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.lp-sample-link:hover { color: rgba(255,255,255,0.8); }

@media (max-width: 768px) {
  .lp-about-inner   { grid-template-columns: 1fr; }
  .lp-hero-actions  { flex-direction: column; }
  .lp-hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Intake Form (/start) ──────────────────────────────────── */

.intake-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3x);
}

.intake-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2x);
}

.intake-brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.intake-progress {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.progress-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--border);
  color: var(--muted);
}

.progress-step--active {
  background: var(--maple);
  color: #fff;
}

.progress-line {
  width: 32px;
  height: 2px;
  background: var(--border);
}

.intake-headline {
  font-family: var(--font-display);
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-sm);
}

.intake-sub {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: var(--space-2x);
}

.intake-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
}

.intake-legend {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.intake-q-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--maple);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.intake-options { display: flex; flex-direction: column; gap: var(--space-sm); }
.intake-options--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.intake-option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: white;
  transition: border-color 0.12s, background 0.12s;
}

.intake-option:hover { border-color: var(--maple); }

.intake-option--selected {
  border-color: var(--maple);
  background: #FFF5F5;
}

.intake-option input[type="radio"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--maple);
}

.option-label {
  font-size: 0.9375rem;
  color: var(--charcoal);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.option-hint {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 400;
}

.intake-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.intake-back {
  font-size: 0.875rem;
  color: var(--muted);
  text-decoration: none;
}

.intake-back:hover { color: var(--charcoal); }

/* ── Number input (Q5 period grace days) ────────────────────── */

.intake-number-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.intake-number-input {
  width: 80px;
  padding: 10px 12px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--charcoal);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  appearance: none;
  -moz-appearance: textfield;
}

.intake-number-input:focus {
  outline: none;
  border-color: var(--maple);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.intake-number-input::-webkit-inner-spin-button,
.intake-number-input::-webkit-outer-spin-button { opacity: 1; }

.intake-number-unit {
  font-size: 0.9375rem;
  color: var(--muted);
}

.intake-number-hint {
  margin-top: var(--space-sm);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Calibrated for badge (report header) ──────────────────── */

.report-calibration {
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2px 10px;
  margin-top: var(--space-xs);
  display: inline-block;
}

@media (max-width: 640px) {
  .intake-options--2col { grid-template-columns: 1fr; }
}

/* ── Logo ──────────────────────────────────────────────────── */

.site-logo {
  display: block;
  height: 80px;
  width: auto;
  max-width: 320px;
}

.site-logo--sm {
  height: 80px;
}

.site-logo--footer {
  height: 50px;
  opacity: 0.9;
}

.logo-fallback {
  display: none;         /* Hidden by default; shown via onerror if logo.png missing */
  font-family: var(--font-display);
  font-weight: 700;
}

/* ── CAD pricing notes ─────────────────────────────────────── */

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--muted);
  vertical-align: super;
}



/* ── Brand mark — logo + wordmark always side by side ──────── */

.lp-brand,
.intake-brand,
.report-brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1;
}

.brand-wordmark--sm {
  font-size: 1.125rem;
}

.brand-wordmark--footer {
  font-size: 1rem;
}

/* Hide old logo-fallback — no longer used */
.logo-fallback { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   ASSESSMENT QUESTIONNAIRE
   ASSESSMENT QUESTIONNAIRE (part of main.css)
═══════════════════════════════════════════════════════════ */

/* ── Page wrapper ────────────────────────────────────────── */

.assessment-page body { background: var(--bg); }

.q-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--space-lg) var(--space-3x);
}

/* ── Header bar ──────────────────────────────────────────── */

.q-progress-wrap {
  display: flex;
  align-items: center;
}

.q-progress-count {
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── Sticky section nav ──────────────────────────────────── */

.q-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: var(--space-xs);
  overflow-x: auto;
  padding: var(--space-sm) 0;
  margin: 0 calc(-1 * var(--space-lg));
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
  scrollbar-width: none;
}

.q-nav::-webkit-scrollbar { display: none; }

.q-nav-pill {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 4px 10px;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.q-nav-pill:hover {
  color: var(--charcoal);
  border-color: var(--charcoal);
}

.q-nav-pill.active {
  color: var(--maple);
  border-color: var(--maple);
  background: var(--critical-bg);
}

/* ── Company name field ──────────────────────────────────── */

.q-company-wrap {
  margin: var(--space-xl) 0 var(--space-lg);
}

.q-company-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.q-company-input {
  width: 100%;
  max-width: 360px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  box-sizing: border-box;
}

.q-company-input:focus {
  outline: none;
  border-color: var(--maple);
  box-shadow: 0 0 0 3px rgba(204, 17, 17, 0.1);
}

.q-company-hint {
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ── Section blocks ──────────────────────────────────────── */

.q-section {
  margin-top: var(--space-2x);
  scroll-margin-top: 56px; /* height of sticky nav */
}

.q-section-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 2px solid var(--border);
}

.q-section-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--charcoal);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.q-section-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 2px;
}

.q-section-sub {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 0;
}

/* ── Submit area ─────────────────────────────────────────── */

.q-submit-wrap {
  margin-top: var(--space-2x);
  padding-top: var(--space-xl);
  border-top: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
}

.q-submit-status {
  font-size: 0.875rem;
  color: var(--muted);
}

.q-submit-status--ready {
  color: var(--low);
  font-weight: 500;
}

/* ── Fix intake-number-input surface var (not defined in root) ─ */

.intake-number-input { background: #fff; }

/* ── Mobile ──────────────────────────────────────────────── */

@media (max-width: 640px) {
  .q-section-num { width: 28px; height: 28px; font-size: 0.8125rem; }
  .q-section-title { font-size: 1.125rem; }
}
