/* ─── GoWebCheck — Phase 2 Styles ─────────────────────────────────────────── */
/* Brand: Forest #0D2B1F, Evergreen #1A6B47, Zest #C8E678, Oat #F5F2EB, Charcoal #2C2C2A */

/* ─── RESET & BASE ───────────────────────────────────────────────────────── */

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

:root {
  --forest: #0D2B1F;
  --evergreen: #1A6B47;
  --zest: #C8E678;
  --oat: #F5F2EB;
  --charcoal: #2C2C2A;
  --white: #FFFFFF;
  --gray-100: #F8F8F6;
  --gray-200: #E8E5DE;
  --gray-400: #9B9688;
  --gray-500: #6B6760;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── HEADER ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--forest);
  padding: 0.85rem 0;
}

.site-header .header-inner {
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--zest);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  gap: 1.5rem;
}

.header-nav a {
  color: var(--gray-200);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--zest);
}

.header-login {
  background: rgba(200, 230, 120, 0.15);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  color: var(--zest) !important;
}

.header-login:hover {
  background: rgba(200, 230, 120, 0.25);
}

/* ─── MOBILE HAMBURGER MENU ─────────────────────────────────────────────── */

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--zest);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 480px) {
  .hamburger {
    display: block;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--forest);
    flex-direction: column;
    padding: 1rem 1.5rem 1.5rem;
    gap: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .header-nav.open {
    display: flex;
  }

  .header-nav a {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .header-nav a:last-child {
    border-bottom: none;
  }

  .header-login {
    margin-top: 0.5rem;
    text-align: center;
  }
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--zest);
  color: var(--forest);
}

.btn-primary:hover {
  background: #d4ee8a;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: var(--gray-200);
  color: var(--gray-400);
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: var(--forest);
  color: var(--white);
}

.btn-secondary:hover {
  background: #143d2a;
  transform: translateY(-1px);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(200, 230, 120, 0.4);
}

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

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ─── STATES (show/hide) ─────────────────────────────────────────────────── */

.state { display: none; }
.state.active { display: block; flex: 1; }

/* ─── SECTION HEADINGS ───────────────────────────────────────────────────── */

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.section-heading-light {
  color: var(--white);
}

.section-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
}

.section-supporting {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 560px;
  margin: 2rem auto 0;
}

/* ─── SECTION 1: HERO ────────────────────────────────────────────────────── */

.hero {
  background: var(--forest);
  background-image:
    radial-gradient(ellipse at 20% 50%, rgba(26, 107, 71, 0.4) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(200, 230, 120, 0.07) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(26, 107, 71, 0.25) 0%, transparent 45%);
  padding: 5rem 0 5.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(200, 230, 120, 0.06);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(200, 230, 120, 0.04);
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -1px;
  position: relative;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--gray-200);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── SECTION 2: THE PROBLEM ─────────────────────────────────────────────── */

.section-problem {
  padding: 5rem 0;
  background: var(--white);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.problem-card {
  background: var(--oat);
  border-radius: 12px;
  padding: 2rem;
}

.problem-icon {
  color: var(--evergreen);
  margin-bottom: 0.75rem;
}

.problem-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.problem-card p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
}

/* ─── SECTION 3: THE 7 PILLARS ───────────────────────────────────────────── */

.section-pillars {
  padding: 5rem 0;
  background: var(--forest);
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.pillar-card-landing {
  background: rgba(26, 107, 71, 0.4);
  border: 1px solid rgba(200, 230, 120, 0.15);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.pillar-card-landing:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 230, 120, 0.35);
}

.pillar-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  background: rgba(200, 230, 120, 0.12);
  color: var(--zest);
  margin-bottom: 0.75rem;
}

.pillar-card-landing h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--zest);
  margin-bottom: 0.4rem;
}

.pillar-card-landing p {
  font-size: 0.875rem;
  color: var(--gray-200);
  line-height: 1.5;
}

/* ─── SECTION 4: DEMO REPORT ─────────────────────────────────────────────── */

.section-demo {
  padding: 5rem 0;
  background: var(--oat);
}

.demo-preview {
  max-width: 640px;
  margin: 0 auto 2rem;
  text-align: center;
}

.demo-preview-inner {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(13, 43, 31, 0.08);
  border: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.demo-score-section {
  margin-bottom: 2rem;
}

.demo-score-ring {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 0.75rem;
}

.demo-ring-svg {
  width: 100%;
  height: 100%;
}

.demo-ring-progress {
  animation: demo-ring-fill 1.5s ease-out forwards;
  stroke-dashoffset: 327;
}

@keyframes demo-ring-fill {
  to { stroke-dashoffset: 138; }
}

.demo-score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.demo-score-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}

.demo-score-label {
  font-size: 0.7rem;
  color: var(--gray-400);
  margin-top: 0.15rem;
}

.demo-score-verdict {
  font-size: 0.95rem;
  color: var(--gray-500);
}

.demo-pillars-preview {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.demo-pillar-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.demo-pillar-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--charcoal);
  width: 120px;
  text-align: right;
  flex-shrink: 0;
}

.demo-pillar-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.demo-pillar-fill {
  height: 100%;
  border-radius: 4px;
  animation: demo-bar-fill 1.2s ease-out forwards;
  transform-origin: left;
  transform: scaleX(0);
}

@keyframes demo-bar-fill {
  to { transform: scaleX(1); }
}

.demo-pillar-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal);
  width: 2rem;
  text-align: right;
  flex-shrink: 0;
}

.score-poor-text {
  color: #dc2626;
}

.demo-btn {
  margin-top: 0.5rem;
}

.demo-cta {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--charcoal);
}

/* ─── SECTION 5: HOW IT WORKS ────────────────────────────────────────────── */

.section-how {
  padding: 5rem 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.step-card {
  text-align: center;
  padding: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--evergreen);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.5;
}

/* ─── SECTION 6: PRICING ─────────────────────────────────────────────────── */

.section-pricing {
  padding: 5rem 0;
  background: var(--oat);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.pricing-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  border: 2px solid var(--gray-200);
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 43, 31, 0.08);
}

.pricing-card-featured {
  border-color: var(--evergreen);
  background: linear-gradient(175deg, var(--white) 0%, rgba(200, 230, 120, 0.06) 100%);
  box-shadow: 0 12px 40px rgba(13, 43, 31, 0.15);
  transform: scale(1.03);
}

.pricing-card-featured:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 16px 48px rgba(13, 43, 31, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--evergreen);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  white-space: nowrap;
}

.pricing-tier {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.pricing-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--evergreen);
  margin-bottom: 1.5rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  font-size: 0.9rem;
  color: var(--gray-500);
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--evergreen);
}

.pricing-btn-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pricing-btn {
  width: 100%;
}

.pricing-btn-annual {
  font-size: 0.8rem;
  padding: 0.6rem 1rem;
  color: var(--charcoal) !important;
  border-color: var(--gray-200) !important;
}

.pricing-btn-annual:hover {
  border-color: var(--evergreen) !important;
  color: var(--evergreen) !important;
}

.pricing-period {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
}

.pricing-annual {
  font-size: 0.8rem;
  color: var(--evergreen);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.pricing-keyline {
  font-size: 0.85rem;
  color: var(--gray-500);
  font-style: italic;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

/* On-demand section */
.on-demand-section {
  margin-top: 3rem;
  text-align: center;
  background: var(--white);
  border-radius: 16px;
  padding: 2rem;
  border: 2px solid var(--gray-200);
}

.on-demand-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.on-demand-price-line {
  font-size: 1.05rem;
  color: var(--charcoal);
  margin-bottom: 0.35rem;
}

.on-demand-subscriber-line {
  font-size: 0.9rem;
  color: var(--evergreen);
  margin-bottom: 1.5rem;
}

.on-demand-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 520px;
  margin: 0 auto;
}

.on-demand-input-group input {
  width: 100%;
  padding: 0.85rem 1.15rem;
  font-size: 0.95rem;
  font-family: inherit;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
  box-shadow: 0 2px 12px rgba(13, 43, 31, 0.08);
}

.on-demand-input-group input:focus {
  border-color: var(--evergreen);
}

.on-demand-input-group .btn {
  border-radius: 10px;
  white-space: nowrap;
  padding: 0.85rem 1.5rem;
}

/* Included features strip */
.pricing-included-heading {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.pricing-included {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  text-align: center;
}

.pricing-included span {
  font-size: 0.8rem;
  color: var(--gray-500);
  position: relative;
  padding-left: 1rem;
}

.pricing-included span::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--evergreen);
}

/* ─── SECTION 7: TRUST & CREDIBILITY ─────────────────────────────────────── */

.section-trust {
  padding: 5rem 0;
  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.trust-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.trust-item p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.trust-testimonials {
  margin-top: 3rem;
  text-align: center;
}

.testimonials-placeholder {
  font-size: 0.9rem;
  color: var(--gray-400);
  font-style: italic;
}

/* ─── SECTION 8: FINAL CTA ──────────────────────────────────────────────── */

.section-final-cta {
  padding: 5rem 0;
  background: var(--forest);
  text-align: center;
}

.section-final-cta h2 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.section-final-cta p {
  font-size: 1.1rem;
  color: var(--gray-200);
  margin-bottom: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════════════ */
/* SCANNING & RESULTS STATES (preserved from Phase 1)                        */
/* ═══════════════════════════════════════════════════════════════════════════ */

/* ─── STATE 2: SCANNING ──────────────────────────────────────────────────── */

.scanning-section {
  text-align: center;
  padding: 4rem 0;
}

.scanning-section h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.scanning-url {
  font-size: 0.95rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
  word-break: break-all;
}

.progress-bar-wrapper {
  width: 100%;
  max-width: 480px;
  height: 8px;
  background: var(--gray-200);
  border-radius: 4px;
  margin: 0 auto 0.75rem;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--zest), var(--evergreen));
  border-radius: 4px;
  transition: width 0.4s ease;
  animation: progress-pulse 1.5s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.progress-text {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}

.elapsed-time {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-bottom: 2rem;
}

.pillar-checklist {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--gray-400);
  transition: color 0.3s;
}

.checklist-item.active {
  color: var(--charcoal);
  font-weight: 500;
}

.checklist-item.active .checklist-status {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid var(--gray-200);
  border-top-color: var(--evergreen);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  font-size: 0;
  vertical-align: middle;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.checklist-item.done {
  color: var(--evergreen);
}

.checklist-status { width: 1.25rem; text-align: center; }
.checklist-label { flex: 1; }
.checklist-score {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 3rem;
  text-align: right;
}

/* ─── STATE 3: RESULTS ───────────────────────────────────────────────────── */

.results-header {
  text-align: center;
  padding: 3rem 0 1.5rem;
}

.results-header h1 {
  font-size: 1.75rem;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}

.results-url {
  font-size: 0.95rem;
  color: var(--gray-500);
  word-break: break-all;
}

.results-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
  margin-top: 0.25rem;
}

.overall-score-wrapper {
  margin: 2rem 0;
}

.overall-score {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 6px solid;
  transition: border-color 0.5s;
}

.overall-score.score-good { border-color: var(--evergreen); background: rgba(26, 107, 71, 0.06); }
.overall-score.score-ok { border-color: #f59e0b; background: #fffbeb; }
.overall-score.score-poor { border-color: #dc2626; background: #fef2f2; }

.score-number {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.score-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.15rem;
}

.score-summary {
  font-size: 1rem;
  color: var(--gray-500);
  max-width: 480px;
  margin: 0 auto;
}

/* Priority fixes */
.priority-fixes {
  padding: 1.5rem 0 2rem;
}

.priority-fixes h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.priority-item {
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  border-left: 4px solid;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.priority-item.severity-critical { border-left-color: #dc2626; }
.priority-item.severity-major { border-left-color: #f59e0b; }
.priority-item.severity-minor { border-left-color: #3b82f6; }

.priority-item-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.priority-number {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--charcoal);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.priority-severity {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.priority-severity.critical { background: #fef2f2; color: #dc2626; }
.priority-severity.major { background: #fffbeb; color: #b45309; }
.priority-severity.minor { background: #eff6ff; color: #2563eb; }

.priority-pillar {
  font-size: 0.7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.priority-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.priority-description {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.priority-fix {
  font-size: 0.85rem;
  color: var(--charcoal);
  background: var(--oat);
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  line-height: 1.5;
}

.priority-fix strong {
  color: var(--evergreen);
}

/* Pillar result cards */
.pillar-results {
  padding: 1rem 0 2rem;
}

.pillar-results h2 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.pillar-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.pillar-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--gray-200);
}

.pillar-card-header {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  cursor: pointer;
  gap: 1rem;
  transition: background 0.15s;
}

.pillar-card-header:hover {
  background: var(--gray-100);
}

.pillar-card-score {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 3px solid;
}

.pillar-card-score.score-good { border-color: var(--evergreen); color: var(--evergreen); background: rgba(26, 107, 71, 0.06); }
.pillar-card-score.score-ok { border-color: #f59e0b; color: #b45309; background: #fffbeb; }
.pillar-card-score.score-poor { border-color: #dc2626; color: #dc2626; background: #fef2f2; }

.pillar-card-info { flex: 1; }

.pillar-card-name {
  font-weight: 600;
  font-size: 1rem;
}

.pillar-card-summary {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: 0.1rem;
}

.pillar-card-toggle {
  font-size: 1.25rem;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.pillar-card.open .pillar-card-toggle {
  transform: rotate(180deg);
}

.pillar-card-body {
  display: none;
  padding: 0 1.25rem 1rem;
  border-top: 1px solid var(--gray-200);
}

.pillar-card.open .pillar-card-body {
  display: block;
}

.issue-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-100);
}

.issue-item:last-child { border-bottom: none; }

.issue-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.issue-severity {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.issue-severity.critical { background: #fef2f2; color: #dc2626; }
.issue-severity.major { background: #fffbeb; color: #b45309; }
.issue-severity.minor { background: #eff6ff; color: #2563eb; }
.issue-severity.pass { background: rgba(26, 107, 71, 0.08); color: var(--evergreen); }

.issue-title {
  font-weight: 500;
  font-size: 0.9rem;
}

.issue-description {
  font-size: 0.825rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin: 0.35rem 0;
}

.issue-fix {
  font-size: 0.825rem;
  background: var(--oat);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  line-height: 1.4;
  color: var(--charcoal);
}

.issue-fix strong { color: var(--evergreen); }

.pass-issues-toggle {
  font-size: 0.825rem;
  color: var(--gray-500);
  cursor: pointer;
  padding: 0.5rem 0;
  border: none;
  background: none;
  font-family: inherit;
}

.pass-issues-toggle:hover { color: var(--charcoal); }

.pass-issues { display: none; }
.pass-issues.show { display: block; }

/* Disclaimer */
.disclaimer {
  padding: 1.5rem 0;
  text-align: center;
}

.disclaimer p {
  font-size: 0.75rem;
  color: var(--gray-400);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Results actions */
.results-actions {
  text-align: center;
  padding: 1rem 0 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.results-actions .btn-secondary-outline {
  color: var(--charcoal);
  border-color: var(--gray-200);
}

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

/* ─── AUTO EMAIL BANNER ─────────────────────────────────────────────────── */

.auto-email-banner {
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
}

/* ─── EMAIL MODAL ───────────────────────────────────────────────────────── */

.email-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.email-modal[hidden] { display: none; }

.email-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

.email-modal-content {
  position: relative;
  background: var(--white);
  border-radius: 12px;
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.email-modal-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--charcoal);
}

.email-modal-content p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.email-modal-form {
  display: flex;
  gap: 0.75rem;
}

.email-modal-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.email-modal-form input:focus {
  border-color: var(--evergreen);
}

.email-modal-form .btn {
  white-space: nowrap;
}

.email-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-400);
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  line-height: 1;
}

.email-modal-close:hover {
  color: var(--charcoal);
}

.email-status {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

.email-status-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.email-status-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 480px) {
  .email-modal-form {
    flex-direction: column;
  }
}

/* ─── AUTH PAGE ──────────────────────────────────────────────────────────── */

.auth-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  background: var(--gray-100);
}

.auth-card {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(13, 43, 31, 0.08);
  text-align: center;
}

.auth-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.auth-subtitle {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.auth-form input {
  padding: 0.85rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.auth-form input:focus {
  border-color: var(--evergreen);
}

.auth-error {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.auth-sent-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.auth-sent-message {
  color: var(--charcoal);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.auth-sent-note {
  color: var(--gray-500);
  font-size: 0.85rem;
}

.auth-sent-note a {
  color: var(--evergreen);
}

/* ─── DASHBOARD PAGE ─────────────────────────────────────────────────────── */

.dashboard-page {
  flex: 1;
  padding: 2rem 0 3rem;
  background: var(--gray-100);
  min-height: 80vh;
}

.dash-loading {
  text-align: center;
  padding: 4rem 0;
  color: var(--gray-500);
}

.dash-header {
  margin-bottom: 2rem;
}

.dash-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
}

.dash-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.dash-user-email {
  color: var(--gray-400);
  font-size: 0.85rem;
}

.btn-text {
  background: none;
  border: none;
  color: var(--evergreen);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0;
}

.btn-text:hover {
  text-decoration: underline;
}

.dash-section {
  margin-bottom: 2.5rem;
}

.dash-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dash-section-header h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
}

.dash-empty {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--white);
  border-radius: 12px;
  border: 2px dashed var(--gray-200);
}

.dash-empty p {
  color: var(--gray-500);
  margin-bottom: 1rem;
}

/* Site cards */
.dash-site-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  flex-wrap: wrap;
}

.dash-site-score {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--white);
  background: var(--gray-400);
  flex-shrink: 0;
}

.dash-site-score.score-good { background: var(--evergreen); }
.dash-site-score.score-ok { background: #f59e0b; }
.dash-site-score.score-poor { background: #dc2626; }

.dash-site-info {
  flex: 1;
  min-width: 150px;
}

.dash-site-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.1rem;
}

.dash-site-url {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.25rem;
}

.dash-site-meta {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.dash-site-pillars {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.mini-pillar {
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--gray-100);
  color: var(--gray-500);
}

.mini-pillar.mini-good { background: #ecfdf5; color: #065f46; }
.mini-pillar.mini-ok { background: #fffbeb; color: #92400e; }
.mini-pillar.mini-poor { background: #fef2f2; color: #991b1b; }

.dash-history-btn {
  margin-left: auto;
}

/* History table */
.dash-history-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-history-table th {
  background: var(--forest);
  color: var(--white);
  padding: 0.6rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-history-table th:first-child {
  text-align: left;
}

.dash-history-table td {
  padding: 0.6rem 0.75rem;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--gray-100);
}

.dash-history-table td:first-child {
  text-align: left;
  color: var(--gray-500);
}

.score-good-text { color: var(--evergreen); }
.score-ok-text { color: #f59e0b; }
.score-poor-text { color: #dc2626; }

/* Subscription status */
.dash-subscription {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white);
  border-radius: 10px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-sub-badge {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--gray-200);
  color: var(--gray-500);
  white-space: nowrap;
}

.dash-sub-badge.dash-sub-active {
  background: var(--evergreen);
  color: var(--white);
}

.dash-sub-info {
  flex: 1;
}

.dash-sub-plan {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
}

.dash-sub-detail {
  font-size: 0.8rem;
  color: var(--gray-500);
}

/* Summary stats */
.dash-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.dash-stat {
  flex: 1;
  min-width: 120px;
  background: var(--white);
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-stat-number {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
}

.dash-stat-critical {
  color: #dc2626;
}

.dash-stat-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

/* Admin scan input */
.dash-admin-scan {
  margin-bottom: 1.5rem;
}

.dash-admin-scan-inner {
  display: flex;
  gap: 0.75rem;
  max-width: 520px;
}

.dash-admin-scan-inner input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.dash-admin-scan-inner input:focus {
  border-color: var(--evergreen);
}

/* Clickable site cards */
.dash-site-clickable {
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dash-site-clickable:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.dash-remove-btn {
  color: var(--gray-400) !important;
  font-size: 1rem;
  padding: 0.25rem 0.5rem;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
}

.dash-site-card:hover .dash-remove-btn {
  opacity: 1;
}

.dash-remove-btn:hover {
  color: #dc2626 !important;
}

.dash-site-arrow {
  font-size: 1.5rem;
  color: var(--gray-400);
  flex-shrink: 0;
}

/* Quick actions */
.dash-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* Score trend */
.dash-trend {
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.dash-trend h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--charcoal);
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  height: 160px;
  padding-bottom: 1.5rem;
}

.trend-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.trend-score {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--charcoal);
}

.trend-bar {
  width: 100%;
  max-width: 40px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
}

.trend-good { background: var(--evergreen); }
.trend-ok { background: #f59e0b; }
.trend-poor { background: #dc2626; }

.trend-date {
  font-size: 0.6rem;
  color: var(--gray-500);
  white-space: nowrap;
}

.trend-summary {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
  text-align: center;
}

.trend-up { color: var(--evergreen); }
.trend-down { color: #dc2626; }

/* Detail issues */
.dash-priority {
  margin-bottom: 1.5rem;
}

.dash-priority h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.dash-issue {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.dash-issue-critical { border-left-color: #dc2626; }
.dash-issue-major { border-left-color: #f59e0b; }
.dash-issue-minor { border-left-color: #60a5fa; }

.dash-issue-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.dash-severity {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.dash-severity.critical { background: #fef2f2; color: #991b1b; }
.dash-severity.major { background: #fffbeb; color: #92400e; }
.dash-severity.minor { background: #eff6ff; color: #1e40af; }

.dash-issue-pillar {
  font-size: 0.75rem;
  color: var(--gray-500);
}

.dash-issue-title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-bottom: 0.25rem;
}

.dash-issue-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

.dash-issue-fix {
  font-size: 0.8rem;
  color: var(--charcoal);
  background: var(--gray-100);
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  margin-top: 0.5rem;
  line-height: 1.5;
}

/* Pillar breakdown cards */
.dash-pillar-breakdown {
  margin-top: 1.5rem;
}

.dash-pillar-card {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.dash-pillar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: background 0.15s;
}

.dash-pillar-header:hover {
  background: var(--gray-100);
}

.dash-pillar-score-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.dash-pillar-score-badge.score-good { background: var(--evergreen); }
.dash-pillar-score-badge.score-ok { background: #f59e0b; }
.dash-pillar-score-badge.score-poor { background: #dc2626; }

.dash-pillar-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
}

.dash-pillar-summary {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-left: auto;
}

.dash-pillar-toggle {
  font-size: 0.7rem;
  color: var(--gray-400);
  transition: transform 0.2s;
}

.dash-pillar-card.open .dash-pillar-toggle {
  transform: rotate(180deg);
}

.dash-pillar-body {
  display: none;
  padding: 0 1rem 1rem;
}

.dash-pillar-card.open .dash-pillar-body {
  display: block;
}

.dash-pass-toggle {
  background: none;
  border: none;
  color: var(--evergreen);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
  font-family: inherit;
}

.dash-pass-list {
  display: none;
}

.dash-pass-list.show {
  display: block;
}

.dash-pass-item {
  font-size: 0.8rem;
  color: var(--evergreen);
  padding: 0.2rem 0;
}

.dash-loading-text {
  color: var(--gray-500);
  font-size: 0.9rem;
}

.dash-history-scroll {
  overflow-x: auto;
}

@media (max-width: 640px) {
  .dash-site-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .dash-site-pillars {
    width: 100%;
  }

  .dash-site-arrow {
    display: none;
  }

  .dash-history-table {
    font-size: 0.75rem;
  }

  .dash-history-table th,
  .dash-history-table td {
    padding: 0.4rem 0.35rem;
  }

  .dash-stats {
    gap: 0.5rem;
  }

  .dash-stat {
    min-width: 70px;
    padding: 0.75rem 0.5rem;
  }

  .dash-stat-number {
    font-size: 1.25rem;
  }

  .trend-bars {
    height: 120px;
  }
}

/* ─── BLOG ───────────────────────────────────────────────────────────────── */

.blog-page, .article-page {
  flex: 1;
  padding: 2rem 0 3rem;
  background: var(--gray-100);
}

.blog-header {
  margin-bottom: 2rem;
}

.blog-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
}

.blog-subtitle {
  color: var(--gray-500);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-card {
  display: block;
  background: var(--white);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  text-decoration: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--evergreen);
  background: #ecfdf5;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.blog-card h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.blog-card-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--evergreen);
}

/* Article page */
.article-container {
  max-width: 720px;
  margin: 0 auto;
}

.article-content {
  background: var(--white);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  margin-top: 1rem;
}

.article-content h1 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.article-content h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.75;
  margin-bottom: 1rem;
}

.article-content strong {
  color: var(--charcoal);
}

.article-cta {
  display: inline-block;
  margin-top: 0.5rem;
  text-decoration: none;
}

.article-disclaimer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: 0.8rem;
  color: var(--gray-500);
}

@media (max-width: 640px) {
  .article-content {
    padding: 1.5rem;
  }

  .article-content h1 {
    font-size: 1.4rem;
  }
}

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--forest);
  color: var(--gray-400);
  padding: 2rem 0;
  text-align: center;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--zest);
}

.footer-cookie-settings {
  background: none;
  border: none;
  color: var(--gray-400);
  font-size: 0.8rem;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}

.footer-cookie-settings:hover {
  color: var(--zest);
}

/* ─── POLICY PAGES ───────────────────────────────────────────────────────── */

.policy-page {
  flex: 1;
  padding: 3rem 0;
  background: var(--white);
}

.policy-container {
  max-width: 760px;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--evergreen);
  text-decoration: none;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

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

.policy-container h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.policy-container > p:first-of-type {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 2rem;
}

.policy-container h1:not(:first-child) {
  font-size: 1.35rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  color: var(--charcoal);
}

.policy-container h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--charcoal);
}

.policy-container p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.policy-container ul {
  margin: 0.5rem 0 1rem 1.5rem;
}

.policy-container li {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 0.35rem;
}

.policy-container table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.85rem;
}

.policy-container table th,
.policy-container table td {
  border: 1px solid var(--gray-200);
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.policy-container table tr:first-child td {
  background: var(--oat);
  font-weight: 600;
}

.policy-container strong {
  font-weight: 600;
}

.policy-container em {
  color: var(--gray-500);
}

/* ─── DEMO REPORT PAGE ───────────────────────────────────────────────────── */

.demo-report-page {
  flex: 1;
  padding-bottom: 2rem;
}

.demo-banner {
  background: var(--forest);
  color: var(--gray-200);
  padding: 1rem 1.5rem;
  border-radius: 10px;
  margin: 2rem 0;
  text-align: center;
}

.demo-banner strong {
  color: var(--zest);
}

.demo-banner p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.demo-top-cta {
  text-align: center;
  margin-top: 1.5rem;
}

.demo-locked .pillar-card-header {
  cursor: default;
}

.demo-locked .pillar-card-header:hover {
  background: var(--white);
}

.demo-lock-icon {
  font-size: 0.9rem;
  opacity: 0.4;
}

.demo-example-section {
  margin-top: 2.5rem;
}

.demo-example-section h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.demo-more-notice {
  background: var(--oat);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
  text-align: center;
}

.demo-more-notice p {
  font-size: 0.95rem;
  color: var(--charcoal);
  line-height: 1.6;
  margin: 0;
}

.demo-cta-section {
  text-align: center;
  padding: 3rem 0 2rem;
  border-top: 2px solid var(--gray-200);
  margin-top: 2rem;
}

.demo-cta-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.demo-cta-section p {
  font-size: 1rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.disclaimer-short {
  font-size: 0.7rem;
  max-width: 600px;
  margin: 0 auto 0.75rem;
  line-height: 1.4;
  color: rgba(200, 200, 190, 0.5);
}

.footer-credit {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer-credit a {
  color: var(--zest);
  text-decoration: none;
}

.footer-credit a:hover { text-decoration: underline; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .hero {
    padding: 3.5rem 0 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .section-heading {
    font-size: 1.5rem;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .pillar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .on-demand-input-group {
    gap: 0.6rem;
  }

  .section-final-cta h2 {
    font-size: 1.75rem;
  }

  .header-nav {
    gap: 1rem;
  }

  .header-nav a {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.65rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 280px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
  }


  .overall-score {
    width: 130px;
    height: 130px;
  }

  .score-number {
    font-size: 2.5rem;
  }

  .pillar-card-header {
    padding: 0.85rem 1rem;
  }

  .pillar-card-score {
    width: 44px;
    height: 44px;
    font-size: 0.95rem;
  }

  .priority-item {
    padding: 1rem;
  }
}

/* ─── SCAN ERROR ─────────────────────────────────────────────────────────── */

.scan-error {
  color: #dc2626;
  font-size: 0.875rem;
  margin-top: 0.75rem;
  text-align: center;
}
