/* =========================================================
   CarCostFinder.online — Premium Automotive Financial Design System
   Brand: CarCostFinder | Domain: carcostfinder.online
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* Core Brand Colors */
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --primary-glow: rgba(14, 165, 233, 0.35);
  --primary-light: #e0f2fe;

  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-emerald-glow: rgba(16, 185, 129, 0.3);

  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;

  --accent-indigo: #6366f1;
  --accent-indigo-light: #e0e7ff;

  --accent-rose: #f43f5e;
  --accent-rose-light: #ffe4e6;

  /* Neutral Dark / Slate Foundation */
  --slate-950: #070d18;
  --slate-900: #0f172a;
  --slate-850: #131f37;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Backgrounds & Surfaces */
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  --bg-dark-section: #0f172a;
  --border-subtle: #e2e8f0;
  --border-card: rgba(226, 232, 240, 0.8);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-accent: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Elevations & Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --shadow-card-hover: 0 22px 40px -10px rgba(14, 165, 233, 0.15), 0 10px 20px -5px rgba(15, 23, 42, 0.08);

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #10b981 100%);
  --grad-dark: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  --grad-hero: linear-gradient(135deg, #070d18 0%, #0f172a 50%, #131f37 100%);
  --grad-badge: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(16, 185, 129, 0.15));
  --grad-card-glow: radial-gradient(circle at 50% 0%, rgba(14, 165, 233, 0.12), transparent 70%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================================
   RESET & BASE STYLES
   ========================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--slate-700);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--slate-900);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
}

.container-wide {
  max-width: 1400px;
}

/* Section Header Utility */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.section-header.text-left {
  text-align: left;
  margin-left: 0;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--grad-badge);
  border: 1px solid rgba(14, 165, 233, 0.25);
  color: var(--primary);
  font-family: var(--font-accent);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.badge-tag.badge-light {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #38bdf8;
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  margin-bottom: 16px;
  color: var(--slate-900);
}

.section-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* =========================================================
   BUTTONS & ACTIONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 28px;
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  color: var(--white);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--primary-glow);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: var(--white);
  box-shadow: 0 4px 16px var(--accent-emerald-glow);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-emerald-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--slate-300);
  color: var(--slate-800);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--white);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* =========================================================
   HEADER & NAVIGATION
   ========================================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: all var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  border-bottom-color: var(--border-subtle);
}

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

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 42px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-accent);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 2.5px;
  width: 100%;
  background-color: var(--slate-900);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 90px;
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.15), transparent 45%),
              radial-gradient(circle at 10% 60%, rgba(16, 185, 129, 0.12), transparent 40%),
              #090e1a;
  color: var(--white);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 80%);
  pointer-events: none;
}

.hero-glow-1 {
  position: absolute;
  top: 10%;
  left: 25%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.25) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
}

.hero-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  animation: float-reverse 16s ease-in-out infinite alternate;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 660px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.86rem;
  font-weight: 700;
  color: #38bdf8;
  margin-bottom: 24px;
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
}

.hero-title {
  font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-title span {
  background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--slate-300);
  line-height: 1.75;
  margin-bottom: 34px;
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item h3 {
  font-size: 1.8rem;
  color: var(--white);
  font-weight: 800;
}

.hero-stat-item h3 span {
  color: #38bdf8;
}

.hero-stat-item p {
  font-size: 0.85rem;
  color: var(--slate-400);
  font-family: var(--font-accent);
}

/* Hero Quick Estimator Card */
.hero-widget-card {
  background: rgba(19, 31, 55, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(14, 165, 233, 0.15);
  position: relative;
}

.widget-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.widget-header h3 {
  font-size: 1.25rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-tag {
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.widget-field {
  margin-bottom: 18px;
}

.widget-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--slate-300);
  font-weight: 600;
  margin-bottom: 8px;
}

.widget-label span.val {
  color: #38bdf8;
  font-weight: 700;
}

.widget-input,
.widget-select {
  width: 100%;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  color: var(--white);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.widget-input:focus,
.widget-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.range-slider {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  outline: none;
  -webkit-appearance: none;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-glow);
  border: 2px solid var(--white);
}

.widget-output-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(16, 185, 129, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 18px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.widget-output-item p {
  font-size: 0.8rem;
  color: var(--slate-300);
}

.widget-output-item h4 {
  font-size: 1.45rem;
  color: var(--white);
  font-weight: 800;
}

.widget-output-item h4.accent {
  color: #34d399;
}

/* =========================================================
   COMPREHENSIVE CALCULATOR SUITE SECTION
   ========================================================= */
.calculator-section {
  padding: 110px 0;
  background: #ffffff;
  position: relative;
}

.calc-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.calc-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.calc-tab-btn:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.calc-tab-btn.active {
  background: var(--slate-900);
  color: var(--white);
  border-color: var(--slate-900);
  box-shadow: var(--shadow-md);
}

.calc-tab-pane {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.calc-tab-pane.active {
  display: block;
}

.calc-wrapper {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.calc-inputs-col {
  padding: 44px;
  background: #fafbfd;
  border-right: 1px solid var(--slate-200);
}

.calc-results-col {
  padding: 44px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-accent);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 8px;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: #ffffff;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--slate-900);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.preset-pills {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.preset-pill {
  padding: 5px 12px;
  background: var(--slate-200);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-pill:hover,
.preset-pill.active {
  background: var(--primary);
  color: var(--white);
}

/* Results Visuals */
.results-hero-metric {
  text-align: center;
  padding: 24px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 1px solid #bae6fd;
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
}

.results-hero-metric p {
  font-size: 0.9rem;
  color: var(--slate-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.results-hero-metric h2 {
  font-size: 2.8rem;
  color: var(--slate-900);
  font-weight: 900;
  margin: 6px 0;
}

.results-hero-metric .sub-stat {
  font-size: 0.92rem;
  color: var(--primary-hover);
  font-weight: 700;
}

.breakdown-bars-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.breakdown-bar-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
}

.bar-meta span.amount {
  font-weight: 700;
  color: var(--slate-900);
}

.bar-track {
  width: 100%;
  height: 9px;
  background: var(--slate-100);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.fill-depreciation { background: #0284c7; }
.fill-fuel { background: #10b981; }
.fill-insurance { background: #6366f1; }
.fill-maintenance { background: #f59e0b; }
.fill-financing { background: #f43f5e; }

/* =========================================================
   POPULAR VEHICLE COST INDEX SECTION
   ========================================================= */
.vehicle-index-section {
  padding: 100px 0;
  background: #f8fafc;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.vehicle-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.vehicle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--grad-primary);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.vehicle-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: #bae6fd;
}

.vehicle-card:hover::before {
  opacity: 1;
}

.vehicle-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.vehicle-category-badge {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  background: var(--slate-100);
  color: var(--slate-600);
}

.vehicle-category-badge.ev {
  background: #ecfdf5;
  color: #059669;
}

.vehicle-name {
  font-size: 1.35rem;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.vehicle-msrp {
  font-size: 0.92rem;
  color: var(--slate-500);
  font-weight: 500;
}

.vehicle-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 0;
  margin: 14px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}

.v-stat p {
  font-size: 0.78rem;
  color: var(--slate-400);
  text-transform: uppercase;
  font-weight: 600;
}

.v-stat h4 {
  font-size: 1.15rem;
  color: var(--slate-800);
  font-weight: 800;
}

.tco-highlight {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--slate-50);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.tco-highlight span.label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--slate-600);
}

.tco-highlight span.val {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-hover);
}

/* =========================================================
   FOUR PILLARS / HOW OWNERSHIP MATH WORKS
   ========================================================= */
.pillars-section {
  padding: 100px 0;
  background: #ffffff;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: all var(--transition-normal);
  position: relative;
}

.pillar-card:hover {
  background: #ffffff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: #e0f2fe;
  color: var(--primary);
}

.pillar-card:nth-child(2) .pillar-icon-box { background: #ecfdf5; color: #10b981; }
.pillar-card:nth-child(3) .pillar-icon-box { background: #fef3c7; color: #d97706; }
.pillar-card:nth-child(4) .pillar-icon-box { background: #e0e7ff; color: #6366f1; }

.pillar-card h3 {
  font-size: 1.18rem;
  margin-bottom: 10px;
  color: var(--slate-900);
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* =========================================================
   DEALERSHIP HIDDEN FEES SCANNER
   ========================================================= */
.fee-scanner-section {
  padding: 100px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.fee-scanner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.fee-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fee-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-fast);
}

.fee-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(56, 189, 248, 0.4);
}

.fee-info h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 4px;
}

.fee-info p {
  font-size: 0.85rem;
  color: var(--slate-300);
}

.fee-action-badge {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  font-family: var(--font-accent);
}

.fee-action-badge.avoid {
  background: rgba(244, 63, 94, 0.2);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.fee-action-badge.negotiate {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.fee-action-badge.legit {
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

/* =========================================================
   BLOG & KNOWLEDGE HUB SHOWCASE
   ========================================================= */
.blog-preview-section {
  padding: 100px 0;
  background: #ffffff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: #bae6fd;
}

.blog-card-thumb {
  position: relative;
  height: 210px;
  overflow: hidden;
  background: var(--slate-100);
}

.blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-thumb img {
  transform: scale(1.05);
}

.blog-card-category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 4px 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  font-family: var(--font-accent);
}

.blog-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--slate-400);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 1.18rem;
  color: var(--slate-900);
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card-title a {
  color: inherit;
}

.blog-card-title a:hover {
  color: var(--primary);
}

.blog-card-excerpt {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 18px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--slate-100);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-accent);
}

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq-section {
  padding: 100px 0;
  background: #f8fafc;
}

.faq-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-card.open {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
}

.faq-chevron {
  width: 20px;
  height: 20px;
  transition: transform 0.3s ease;
  color: var(--slate-400);
}

.faq-card.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 24px;
  color: var(--slate-600);
  font-size: 0.96rem;
  line-height: 1.7;
}

.faq-card.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 22px;
}

/* =========================================================
   CTA & NEWSLETTER SECTION
   ========================================================= */
.cta-banner-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 60%, #10b981 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.cta-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-banner-text {
  max-width: 600px;
}

.cta-banner-text h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner-text p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-form-wrap {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 460px;
}

.cta-input {
  flex-grow: 1;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  color: var(--slate-900);
}

.cta-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: #0b1120;
  color: var(--slate-400);
  padding: 80px 0 30px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--slate-400);
  margin: 18px 0 24px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-300);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--white);
  margin-bottom: 20px;
  font-family: var(--font-accent);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col ul li a {
  color: var(--slate-400);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.footer-disclaimer-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--slate-500);
  line-height: 1.6;
  margin-bottom: 36px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--slate-400);
}

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

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 16px 24px;
  background: var(--slate-900);
  color: var(--white);
  border-left: 4px solid var(--accent-emerald);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.92rem;
  font-family: var(--font-accent);
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-msg.show {
  transform: translateY(0);
  opacity: 1;
}

/* =========================================================
   ANIMATIONS & KEYFRAMES
   ========================================================= */
@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes float-reverse {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(20px) rotate(-4deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

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

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .calc-inputs-col {
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
  }
  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fee-scanner-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: #ffffff;
    flex-direction: column;
    padding: 36px 24px;
    gap: 24px;
    align-items: flex-start;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    box-shadow: var(--shadow-xl);
    overflow-y: auto;
  }
  .nav-menu.open {
    transform: translateX(0);
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 18px;
  }
  .nav-links a {
    font-size: 1.15rem;
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-100);
  }
  .nav-actions {
    width: 100%;
    margin-top: 10px;
  }
  .nav-actions .btn {
    width: 100%;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner-box {
    flex-direction: column;
    text-align: center;
  }
  .cta-form-wrap {
    flex-direction: column;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}