/* ============================================
   WhatToCharge.co.uk — Global Stylesheet
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

:root {
  --primary: #1B4F8A;
  --primary-light: #2563EB;
  --accent: #F59E0B;
  --success: #10B981;
  --warning: #EF4444;
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
  --radius: 10px;
  --radius-sm: 6px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.875rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2vw, 1.375rem); margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; color: var(--text); }
p:last-child { margin-bottom: 0; }

a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.35rem; }

strong { font-weight: 600; }

/* ============================================
   LAYOUT
   ============================================ */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ============================================
   HEADER / NAV
   ============================================ */

.site-header {
  background: var(--primary);
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  gap: 1rem;
}

.site-logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

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

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

.site-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(255,255,255,0.1);
  color: white;
  text-decoration: none;
}

.site-nav a.active {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  color: white;
  padding: 4rem 0 3.5rem;
  text-align: center;
}

.hero h1 {
  color: white;
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

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

.badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a1a1a;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1;
  min-height: 48px;
}

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

.btn--primary:hover {
  background: #1d4ed8;
  text-decoration: none;
  color: white;
}

.btn--accent {
  background: var(--accent);
  color: #1a1a1a;
}

.btn--accent:hover {
  background: #d97706;
  text-decoration: none;
  color: #1a1a1a;
}

.btn--outline {
  background: transparent;
  color: var(--primary-light);
  border: 2px solid var(--primary-light);
}

.btn--outline:hover {
  background: var(--primary-light);
  color: white;
  text-decoration: none;
}

.btn--full {
  width: 100%;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  min-height: 56px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card--featured {
  border-color: var(--primary-light);
  border-width: 2px;
}

/* ============================================
   CALCULATOR GRID (Homepage)
   ============================================ */

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.calc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--primary-light);
  text-decoration: none;
  color: var(--text);
}

.calc-card__icon {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

.calc-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.calc-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.calc-card__cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-light);
  margin-top: 0.5rem;
}

/* ============================================
   CALCULATOR FORM
   ============================================ */

.calc-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

.calc-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
}

.calc-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.calc-section-title:first-child {
  margin-top: 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.form-group .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.input-wrap {
  position: relative;
}

.input-wrap .prefix,
.input-wrap .suffix {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.95rem;
  pointer-events: none;
}

.input-wrap .prefix { left: 0.75rem; }
.input-wrap .suffix { right: 0.75rem; }

.input-wrap input[type="number"],
.input-wrap input[type="text"] {
  padding-left: 1.75rem;
}

.input-wrap.suffix-input input {
  padding-right: 2.5rem;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.toggle-group {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.toggle-group input[type="radio"] {
  display: none;
}

.toggle-group label {
  flex: 1;
  padding: 0.65rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-muted);
  transition: background 0.15s, color 0.15s;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  margin-bottom: 0;
}

.toggle-group label:last-child {
  border-right: none;
}

.toggle-group input[type="radio"]:checked + label {
  background: var(--primary);
  color: white;
}

/* ============================================
   RESULTS CARD
   ============================================ */

.results-card {
  background: var(--surface);
  border: 2px solid var(--primary-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  display: none;
}

.results-card.visible {
  display: block;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.result-highlight {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  color: white;
  border-radius: var(--radius-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.result-highlight__label {
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.result-highlight__value {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.result-highlight__sub {
  font-size: 0.9rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.result-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.result-item__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.result-item__value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.result-item--accent .result-item__value {
  color: var(--success);
}

.result-breakdown {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.result-breakdown__title {
  background: var(--bg);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-breakdown__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.result-breakdown__row:last-child {
  border-bottom: none;
}

.result-breakdown__row--total {
  background: var(--bg);
  font-weight: 700;
  font-size: 1rem;
}

.result-breakdown__row--total .amount {
  color: var(--primary);
}

.result-breakdown .amount {
  font-weight: 600;
  font-family: 'Inter', monospace;
}

.result-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.result-alert--warning {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.result-alert--success {
  background: #d1fae5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.result-alert--info {
  background: #dbeafe;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.result-alert__icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 0.05rem; }

/* ============================================
   SECTION STYLES
   ============================================ */

.section {
  padding: 3.5rem 0;
}

.section--alt {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__header p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0.5rem auto 0;
  font-size: 1.05rem;
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  color: white;
  padding: 2.5rem 0 2rem;
}

.page-hero h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 600px;
  margin-bottom: 0;
}

.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: white;
}

.breadcrumb span {
  opacity: 0.5;
}

/* ============================================
   BENEFITS / FEATURES
   ============================================ */

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}

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

.benefit-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(37,99,235,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

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

.benefit-item__content p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

/* ============================================
   TABLES
   ============================================ */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 1rem 0 1.5rem;
}

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

.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

.data-table tr:hover td {
  background: #f8fafc;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* ============================================
   FAQ
   ============================================ */

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

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

.faq-question {
  padding: 1.1rem 0;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  user-select: none;
  color: var(--text);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================
   RELATED TOOLS
   ============================================ */

.related-tools {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.related-tool-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-tool-link:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--primary);
}

.related-tool-link__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ============================================
   AFFILIATE BANNER
   ============================================ */

.affiliate-banner {
  background: linear-gradient(135deg, #1e3a5f 0%, #1B4F8A 100%);
  color: white;
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.affiliate-banner__text h4 {
  color: white;
  margin-bottom: 0.25rem;
}

.affiliate-banner__text p {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  margin: 0;
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
  background: #0f172a;
  color: rgba(255,255,255,0.7);
  padding: 3rem 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand .site-logo {
  font-size: 1.1rem;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.875rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 0.4rem;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-col ul li a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin: 0;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  max-width: 600px;
  line-height: 1.5;
}

/* ============================================
   SEO CONTENT SECTION
   ============================================ */

.seo-content {
  padding: 3rem 0;
}

.seo-content h2 {
  color: var(--primary);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.seo-content h2:first-child {
  margin-top: 0;
}

.seo-content p {
  color: var(--text);
  line-height: 1.75;
}

/* ============================================
   UTILITIES
   ============================================ */

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none !important; }

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag--blue { background: #dbeafe; color: #1e40af; }
.tag--green { background: #d1fae5; color: #065f46; }
.tag--amber { background: #fef3c7; color: #92400e; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

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

  .calc-form {
    padding: 1.25rem;
  }

  .hero {
    padding: 2.5rem 0 2rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .affiliate-banner {
    flex-direction: column;
    text-align: center;
  }
}

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

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

  .result-highlight__value {
    font-size: 2.5rem;
  }

  .site-nav {
    display: none;
  }
}

/* ============================================
   HERO — SPLIT LAYOUT
   ============================================ */

.hero--split {
  padding: 3.5rem 0 3rem;
  background: linear-gradient(135deg, var(--primary) 0%, #1a3560 60%, #112444 100%);
  position: relative;
  overflow: hidden;
}

.hero--split::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero__layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero__eyebrow {
  display: inline-block;
  background: var(--accent);
  color: #1a1a1a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.35rem 0.875rem;
  border-radius: 2rem;
  margin-bottom: 1.25rem;
}

.hero__text h1 {
  color: white;
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 1.1rem;
  max-width: 560px;
}

.hero__text p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  line-height: 1.65;
  max-width: 500px;
  margin-bottom: 2rem;
}

.hero__ctas {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.18);
  color: white;
  text-decoration: none;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  font-weight: 500;
}

.trust-badge svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Mock result card */
.mock-result {
  background: white;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3), 0 8px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

.mock-result:hover {
  transform: rotate(0deg);
}

.mock-result__header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e3a5f 100%);
  color: white;
  padding: 1.5rem;
  text-align: center;
}

.mock-result__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.75;
  display: block;
  margin-bottom: 0.375rem;
}

.mock-result__value {
  font-size: 3.25rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.mock-result__sub {
  font-size: 0.82rem;
  opacity: 0.65;
}

.mock-result__rows {
  padding: 0.25rem 0;
}

.mock-result__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.875rem;
  color: #475569;
}

.mock-result__row span:last-child {
  font-weight: 600;
  color: #1e293b;
}

.mock-result__row--total {
  background: #f8fafc;
  font-weight: 700;
  border-bottom: none;
}

.mock-result__row--total span {
  color: #1B4F8A !important;
}

.mock-result__footer {
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
}

/* ============================================
   STATS STRIP
   ============================================ */

.stats-strip {
  background: #0f172a;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0.75rem 1.5rem;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.stat-item:last-child {
  border-right: none;
}

.stat-item__value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-item__label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.35;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

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

.steps-grid::before {
  content: '';
  position: absolute;
  top: 42px;
  left: calc(16.67% + 28px);
  right: calc(16.67% + 28px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  opacity: 0.3;
  pointer-events: none;
}

.step-item {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.step-item__number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 28px;
  background: var(--primary-light);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.step-item__icon {
  width: 64px;
  height: 64px;
  background: rgba(37,99,235,0.08);
  border: 2px solid rgba(37,99,235,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 1.25rem;
  color: var(--primary-light);
}

.step-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   CALC SECTION LABEL
   ============================================ */

.calc-section-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* ============================================
   TRADE CARDS
   ============================================ */

.calc-card--trade {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.1rem;
}

.calc-card--trade .calc-card__cta {
  margin-top: 0;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.calc-card--trade .calc-card__trade-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.3;
}

.calc-card--trade .calc-card__trade-range {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
  white-space: nowrap;
}

/* Wrapper div needed around name+range so it can shrink properly */
.calc-card--trade .calc-card__trade-info {
  min-width: 0;
  flex: 1 1 0;
}

.trade-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trade-icon--blue  { background: rgba(37,99,235,0.1);  color: #2563eb; }
.trade-icon--yellow{ background: rgba(245,158,11,0.12); color: #d97706; }
.trade-icon--orange{ background: rgba(234,88,12,0.1);  color: #ea580c; }
.trade-icon--green { background: rgba(16,185,129,0.1); color: #059669; }

/* ============================================
   CALC CARD ICON WRAP (Core tools)
   ============================================ */

.calc-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0.5rem;
}

.calc-card__icon-wrap--blue   { background: rgba(37,99,235,0.1);  color: #2563eb; }
.calc-card__icon-wrap--green  { background: rgba(16,185,129,0.1); color: #059669; }
.calc-card__icon-wrap--orange { background: rgba(234,88,12,0.1);  color: #ea580c; }
.calc-card__icon-wrap--purple { background: rgba(124,58,237,0.1); color: #7c3aed; }

.calc-grid--core {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

/* ============================================
   SPLIT SECTION (Why different)
   ============================================ */

.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.problem-box {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.problem-box--correct {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.problem-box__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.problem-box__calc {
  font-size: 0.9rem;
}

.problem-box__row {
  display: flex;
  justify-content: space-between;
  padding: 0.3rem 0;
  color: #475569;
  border-bottom: 1px dashed #e2e8f0;
}

.problem-box__row:last-of-type { border-bottom: none; }

.problem-box__result {
  margin-top: 0.75rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  padding-top: 0.75rem;
  border-top: 2px solid rgba(37,99,235,0.2);
}

.problem-box .problem-box__result { color: #dc2626; }
.problem-box--correct .problem-box__result { color: #16a34a; }

.problem-box__note {
  font-size: 0.78rem;
  color: #dc2626;
  margin-top: 0.375rem;
  font-style: italic;
}

.split-section__benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ============================================
   RESPONSIVE — NEW SECTIONS
   ============================================ */

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

  .hero__visual {
    display: none;
  }

  .split-section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .steps-grid::before {
    display: none;
  }
}

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-top: 1px solid rgba(255,255,255,0.08);
  }

  .stat-item:nth-child(4) {
    border-top: 1px solid rgba(255,255,255,0.08);
    border-right: none;
  }

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

  .calc-card--trade {
    flex-direction: column;
    align-items: flex-start;
  }

  .calc-card--trade .calc-card__cta {
    margin-left: 0;
  }
}

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

  .hero__ctas .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}
