:root {
  /* Color Palette */
  --color-primary: #1e3a5f;
  --color-primary-light: #2d5f8a;
  --color-accent: #2563eb;
  --color-accent-light: #3b82f6;
  --color-accent-hover: #1d4ed8;
  --color-success: #059669;
  --color-success-light: #10b981;
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-bg: #f0f4f8;
  --color-bg-alt: #e8eef4;
  --color-card: #ffffff;
  --color-text: #0f172a;
  --color-text-secondary: #64748b;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;

  /* Shadows & Radii */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  /* Fonts */
  --font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

/* Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

/* Typography */
h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* Focus States */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  padding: 0.75rem 1.5rem;
  border: none;
  font-size: 1rem;
  text-align: center;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

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

.btn-primary:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-back {
  background-color: transparent;
  color: var(--color-text-secondary);
  border: 1px solid transparent;
}

.btn-back:hover {
  color: var(--color-text);
  background-color: var(--color-bg-alt);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-text-secondary);
  background-color: var(--color-bg-alt);
}

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

/* Header */
.site-header {
  background-color: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

/* Site Navigation & Dropdown */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.9375rem;
}

.site-nav a:hover {
  color: var(--color-accent);
}

/* Dropdown styling */
.site-nav .dropdown {
  position: relative;
}

.site-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--color-card);
  min-width: 220px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition-fast);
  z-index: 110;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-nav .dropdown:hover .dropdown-menu,
.site-nav .dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav .dropdown-menu li {
  width: 100%;
}

.site-nav .dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color-text);
  font-weight: 400;
}

.site-nav .dropdown-menu a:hover {
  background-color: var(--color-bg-alt);
  color: var(--color-accent);
}

/* Hero Section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--color-bg) 100%);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Calculator Section */
.calculator-section {
  padding: 2rem 0 4rem;
}

.calculator-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Progress Bar */
.progress-section {
  margin-bottom: 2.5rem;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.progress-bar {
  height: 8px;
  background-color: var(--color-bg-alt);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--color-accent);
  border-radius: 4px;
  transition: width 0.4s ease;
}

/* Steps */
.step {
  display: none;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

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

.step-number {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}

.step-title {
  margin-bottom: 0.75rem;
}

.step-description {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
}

/* Option Cards */
.step-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-card {
  position: relative;
  display: block;
  cursor: pointer;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-content {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  background-color: var(--color-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
  overflow: hidden;
}

.option-card:hover .option-content {
  border-color: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.option-card input[type="radio"]:checked + .option-content,
.option-card.selected .option-content {
  border-color: var(--color-accent);
  border-left-width: 4px;
  background-color: rgba(37, 99, 235, 0.04);
}

.option-card input[type="radio"]:focus-visible + .option-content {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.option-card input[type="radio"]:checked + .option-content::after,
.option-card.selected .option-content::after {
  content: '✓';
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  color: var(--color-accent);
  font-weight: bold;
}

.option-label {
  font-weight: 500;
  color: var(--color-text);
  padding-right: 1.5rem;
}

.option-hint {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Grid Layouts for Options */
.step-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.step-options-two {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.option-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* DSCR Calculator */
.dscr-calculator {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.dscr-title {
  font-size: 1.125rem;
  margin-bottom: 1.25rem;
}

.dscr-inputs {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.dscr-input-group {
  width: 100%;
}

.dscr-input-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.input-with-prefix {
  display: flex;
  align-items: center;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.input-with-prefix:focus-within {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 1px var(--color-accent);
}

.input-prefix {
  padding: 0.75rem 1rem;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-alt);
  border-right: 1px solid var(--color-border);
}

.input-with-prefix input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  width: 100%;
}

.dscr-divider, .dscr-equals {
  color: var(--color-text-muted);
  font-size: 1.5rem;
  font-weight: 300;
}

.dscr-result {
  text-align: center;
  padding: 1rem;
  background-color: var(--color-card);
  border-radius: var(--radius-sm);
  width: 100%;
  border: 1px solid var(--color-border);
}

.dscr-result label {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.25rem;
}

.dscr-ratio {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

/* Step Navigation */
.step-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: 2rem;
}

/* Email Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

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

.modal-title {
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--color-text-secondary);
  margin-bottom: 2rem;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-skip {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  text-decoration: underline;
  margin-bottom: 1.5rem;
  font-family: inherit;
}

.modal-skip:hover {
  color: var(--color-text);
}

.modal-privacy {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Results Section */
.results-section {
  display: none;
  padding: 2rem 0 4rem;
}

.results-section.visible {
  display: block;
}

.result-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s ease forwards;
}

@keyframes slideUpFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card:nth-child(1) { animation-delay: 0.1s; }
.result-card:nth-child(2) { animation-delay: 0.2s; }
.result-card:nth-child(3) { animation-delay: 0.3s; }
.result-card:nth-child(4) { animation-delay: 0.4s; }
.result-card:nth-child(5) { animation-delay: 0.5s; }
.result-card:nth-child(6) { animation-delay: 0.6s; }

.result-card-title {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.result-card-subtitle {
  color: var(--color-text-secondary);
  margin-top: -1rem;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
}

/* Score Card */
.score-card {
  text-align: center;
}

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

.data-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-alt);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.score-gauge-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 2rem;
  position: relative;
}

.score-gauge {
  width: 100%;
  height: 100%;
}

.gauge-bg {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 12;
  transform: rotate(-90deg);
  transform-origin: center;
}

.gauge-fill {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-dasharray: 534; /* 2 * PI * 85 */
  stroke-dashoffset: 534;
  transition: stroke-dashoffset 1.5s ease-out, stroke 0.5s ease;
  transform: rotate(-90deg);
  transform-origin: center;
}

.gauge-score {
  fill: var(--color-primary);
  font-size: 3.5rem;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  font-family: var(--font-family);
}

.gauge-label {
  fill: var(--color-text-secondary);
  font-size: 1rem;
  text-anchor: middle;
  dominant-baseline: central;
  font-family: var(--font-family);
}

.score-level {
  display: inline-block;
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.score-message {
  color: var(--color-text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

/* Dynamic content areas */
.program-matches, .rate-content, .risk-flags, .checklist-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Program Match Cards (JS-generated) */
.program-match-card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.program-match-card .badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  background-color: var(--color-accent);
  padding: 0.2rem 0.75rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.program-match-card h3 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.program-match-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.program-match-card li {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--color-border);
}

.program-match-card li:last-child {
  border-bottom: none;
}

.program-match-card li strong {
  color: var(--color-text);
  margin-right: 0.5rem;
}

/* Risk Flags (JS-generated) */
.risk-flag {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background-color: #fef3cd;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  align-items: flex-start;
}

.risk-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.risk-details h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.risk-details p {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Rate Estimate (JS-generated) */
.rate-estimate {
  text-align: center;
  padding: 1rem 0;
}

.rate-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.rate-formula {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
}

.rate-disclaimer {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Document Checklist (JS-generated) */
.checklist-content ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.checklist-content li {
  font-size: 0.9375rem;
  padding: 0.625rem 0.75rem;
  background-color: var(--color-bg);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--color-accent);
  color: var(--color-text-secondary);
}

.checklist-content li::before {
  content: '☐ ';
  color: var(--color-accent);
  font-weight: 600;
  margin-right: 0.25rem;
}

@media (min-width: 768px) {
  .program-matches {
    flex-direction: row;
    gap: 1.5rem;
  }
  .program-match-card {
    flex: 1;
  }
}

.cta-card {
  text-align: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: white;
}

.cta-card h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.5rem;
}

.cta-card .btn {
  background-color: white;
  color: var(--color-primary);
}

.cta-card .btn:hover {
  background-color: var(--color-bg);
}

.disclaimer-section {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 3rem;
  margin-bottom: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.btn-restart {
  display: block;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--color-bg);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  border-top: 1px solid var(--color-border);
}

.footer-links {
  margin-top: 0.5rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  margin: 0 0.5rem;
}

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

/* Responsive */
@media (min-width: 768px) {
  h1 { font-size: 2.5rem; }
  
  .calculator-card { padding: 3rem; }
  
  .step-options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-options-two {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dscr-inputs {
    flex-direction: row;
    align-items: center;
  }
  
  .dscr-divider, .dscr-equals {
    padding-top: 1.5rem;
  }
}
/* ==========================================================================
   PHASE 1.7 PREMIUM UI / UX & SEO COMPONENTS
   ========================================================================== */

/* Premium Calculator Grid */
.premium-calc-card {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.1);
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .calc-grid {
    grid-template-columns: 3fr 2fr;
  }
}

/* Input Side */
.calc-inputs {
  padding: 2.5rem;
  background-color: #ffffff;
}

.premium-input-group {
  margin-bottom: 1.5rem;
}

.premium-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.premium-subtext {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.premium-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.premium-prefix, .premium-suffix {
  position: absolute;
  color: var(--color-text-secondary);
  font-weight: 500;
  z-index: 2;
}
.premium-prefix { left: 1rem; }
.premium-suffix { right: 1rem; }

.premium-input, .premium-select {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-text);
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.premium-input.has-prefix { padding-left: 2rem; }
.premium-input.has-suffix { padding-right: 2rem; }

.premium-input:focus, .premium-select:focus {
  outline: none;
  border-color: var(--color-accent);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Results Side */
.calc-results {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f172a 100%);
  color: #ffffff;
  padding: 2.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* For sticky effect on desktop */
@media (min-width: 768px) {
  .calc-results {
    position: sticky;
    top: 70px;
    height: 100%;
  }
}

.result-title {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.result-primary-val {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.result-subtitle {
  font-size: 1.125rem;
  font-weight: 500;
  color: #38bdf8; /* a nice bright blue pop */
  margin-bottom: 2rem;
}

.result-breakdown {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: auto;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.breakdown-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.breakdown-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.breakdown-val {
  font-weight: 600;
  font-size: 1.125rem;
}

/* FAQ & SEO Section */
.seo-section {
  padding: 5rem 0;
  background-color: var(--color-card);
}

.seo-content {
  max-width: 800px;
  margin: 0 auto;
}

.seo-content h2 {
  margin-bottom: 1.5rem;
  font-size: 1.875rem;
}

.seo-content p {
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.faq-container {
  margin-top: 3rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.75rem;
}

.faq-item p {
  margin-bottom: 0;
}

/* ==========================================================================
   PHASE 1.8 HOMEPAGE & GRID UI
   ========================================================================== */

/* Typography & Logo */
.site-header .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #0f172a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.site-header .logo .logo-blue,
.site-header .logo span.logo-blue {
  color: #2563eb;
  font-weight: 800;
  margin-right: 0.35rem;
}

/* Background Pattern */
.dot-bg {
  background-color: #f8fafc;
  background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Massive Hero */
.massive-hero {
  padding: 6rem 0 3rem;
  text-align: center;
}

.massive-h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  color: #0f172a;
  max-width: 900px;
  margin: 0 auto 1.5rem;
}

@media (min-width: 768px) {
  .massive-h1 {
    font-size: 5.5rem;
  }
}

.text-blue {
  color: #2563eb;
}

.massive-subtitle {
  font-size: 1.25rem;
  color: #475569;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Tools Grid Section */
.tools-section {
  padding: 5rem 0;
  background-color: #ffffff;
  border-top: 1px solid var(--color-border);
}

.tools-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.tools-section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.5px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tool-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card:hover {
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.1);
  transform: translateY(-5px);
  border-color: #93c5fd;
}

.tool-icon {
  width: 48px;
  height: 48px;
  background-color: #eff6ff;
  color: #2563eb;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.tool-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
}

.tool-card p {
  color: #64748b;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.tool-link {
  color: #2563eb;
  font-weight: 600;
  font-size: 0.9375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.tool-card:hover .tool-link {
  color: #1d4ed8;
}

/* ==========================================================================
   PHASE 1.9 REPORT UPGRADES
   ========================================================================== */

/* Score Breakdown Bars */
.score-breakdown {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.score-breakdown h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-align: center;
}

.breakdown-item {
  margin-bottom: 1.25rem;
}

.breakdown-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.breakdown-label {
  color: var(--color-text);
}

.breakdown-value {
  color: var(--color-text-light);
}

.breakdown-track {
  height: 8px;
  background-color: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
}

.breakdown-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Premium Score Gauge Upgrades */
.score-card {
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.05);
  border: 1px solid #e2e8f0;
}
.score-gauge {
  filter: drop-shadow(0 10px 15px rgba(37, 99, 235, 0.15));
}
.gauge-bg {
  stroke-width: 14;
  stroke: #f1f5f9;
}
.gauge-fill {
  stroke-width: 14;
  stroke-linecap: round;
}

/* Share Modal */
.share-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}
@media (min-width: 640px) {
  .share-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.share-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  font-weight: 600;
}
.share-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.share-btn.whatsapp { color: #25D366; }
.share-btn.messenger { color: #0084FF; }
.share-btn.telegram { color: #0088cc; }
.share-btn.email { color: #64748b; }
.share-btn.sms { color: #10b981; }


/* ==========================================================================
   STATIC PAGES (About, Legal, etc.)
   ========================================================================== */
.page-header {
  padding: 4rem 0 2rem;
  text-align: center;
  background-color: #f8fafc;
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1rem;
  line-height: 1.8;
  color: #334155;
  font-size: 1.0625rem;
}

.page-content h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #0f172a;
  margin: 2.5rem 0 1rem;
}

.page-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin: 1.5rem 0 0.75rem;
}

.page-content p {
  margin-bottom: 1.5rem;
}

.page-content ul, .page-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content a {
  color: #2563eb;
  text-decoration: underline;
}
/* ==========================================================================
   HOMEPAGE SPLIT LAYOUT & WHAT YOU NEED
   ========================================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 992px) {
  .hero-split {
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
  }
  .hero-content {
    text-align: left;
  }
}

.preparation-box {
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
  text-align: left;
}

.preparation-box h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.prep-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.prep-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  color: #334155;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.prep-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.125rem;
}

.how-it-works-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-number {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background-color: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.step-text h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.25rem 0;
}

.step-text p {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0;
}

/* ==========================================================================
   CLEAN RADIO BUTTON UI (Fixed)
   ========================================================================== */

/* The outer card is just a container */
.option-card {
  position: relative;
  display: block;
  cursor: pointer;
  margin-bottom: 0.75rem;
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* The visual box */
.option-content {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.25rem 1.25rem 3.5rem; /* Space for radio circle on the left */
  background-color: var(--color-card);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: relative;
}

/* The custom radio circle */
.option-content::before {
  content: '';
  position: absolute;
  left: 1.25rem;
  top: 1.25rem; /* Align with first line of text */
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background-color: #fff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

/* Remove the old checkmark */
.option-card input[type="radio"]:checked + .option-content::after,
.option-card.selected .option-content::after {
  display: none !important;
}

/* Hover state: slightly darker border for the radio */
.option-card:hover .option-content::before {
  border-color: #94a3b8;
}

.option-card:hover .option-content {
  border-color: #cbd5e1;
  background-color: #f8fafc;
}

/* SELECTED STATE: Fill the radio circle, leave the box clean */
.option-card input[type="radio"]:checked + .option-content,
.option-card.selected .option-content {
  border-color: #cbd5e1; /* Keep it subtle */
  border-left-width: 1px; /* Remove the thick left border from Phase 1 */
  background-color: #f8fafc; /* Keep background subtle */
  box-shadow: none;
}

.option-card input[type="radio"]:checked + .option-content::before,
.option-card.selected .option-content::before {
  border-color: #2563eb;
  border-width: 7px; /* Creates the inner blue dot effect */
}

/* Clean text colors */
.option-label {
  font-weight: 500;
  color: #1e293b;
}

.option-hint {
  font-size: 0.875rem;
  color: #64748b;
}

/* ==========================================================================
   PRINT STYLESHEET (Only print the report section)
   ========================================================================== */
@media print {
  /* Hide everything on the page by default */
  header, footer, .hero, .prep-section, .calculator-section, .report-actions, .btn-restart, .modal-overlay {
    display: none !important;
  }
  
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 12pt;
  }
  
  /* Show only the results section */
  .results-section {
    display: block !important;
    opacity: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  
  .result-card, .breakdown-card {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 1.5rem !important;
  }
  
  .gauge-container {
    page-break-inside: avoid;
  }
}
