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

:root {
  --font-family: 'Outfit', sans-serif;
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-accent: #0d9488;
  --color-accent-hover: #0f766e;
  --color-success: #10b981;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --max-width: 1200px;
  --header-height: 80px;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
header {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.logo:hover {
  transform: scale(1.02);
}

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

/* Checkbox */
#menu-toggle {
  display: none;
}

.menu-icon {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1002;
}

.menu-icon .hamburger,
.menu-icon .cross {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-primary);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-icon .cross {
  display: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s ease, border-color 0.2s ease;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}

.nav-cta {
  background-color: var(--color-primary);
  color: #ffffff !important;
  padding: 0.6rem 1.2rem !important;
  border-radius: 6px;
  border-bottom: none !important;
  transition: background-color 0.2s ease, transform 0.2s ease !important;
}

.nav-cta:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* Footer Section */
footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 4rem 2rem 2rem 2rem;
  margin-top: auto;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-info h3 {
  color: #ffffff;
  margin-bottom: 1.2rem;
  font-size: 1.4rem;
}

.footer-info p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-links h4 {
  color: #ffffff;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 0.8rem;
}

.footer-links ul li a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.95rem;
}

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

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid #1e293b;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

main {
  flex: 1;
}

.hero-section {
  position: relative;
  background-image: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.85)), url('./9.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 8rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content p {
  font-size: 1.25rem;
  color: #e2e8f0;
  margin-bottom: 2.5rem;
}

.cta-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  font-size: 1rem;
  border: none;
}

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

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

.btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.btn-secondary:hover {
  background-color: #ffffff;
  color: var(--text-primary);
  transform: translateY(-2px);
}

.section {
  padding: 5rem 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem auto;
  font-size: 1.1rem;
}

/* Cards Layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-body {
  padding: 1.8rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.card-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Text and Image Split Feature Layout */
.feature-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 6rem;
}

.feature-split.reverse {
  flex-direction: row-reverse;
}

.feature-split-img {
  flex: 1;
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  max-height: 450px;
}

.feature-split-content {
  flex: 1;
}

.feature-split-content h2 {
  font-size: 2rem;
  margin-bottom: 1.2rem;
  color: var(--text-primary);
}

.feature-split-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

/* Form Styles */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  font-family: var(--font-family);
  font-size: 1rem;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color 0.2s ease, outline 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* Success Alert */
.success-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease;
}

.success-overlay:target {
  display: flex;
}

.success-alert-card {
  background-color: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-width: 450px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--border-color);
  animation: slideDown 0.3s ease;
}

.success-icon {
  width: 64px;
  height: 64px;
  background-color: #ecfdf5;
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem auto;
}

.success-alert-card h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.success-alert-card p {
  color: var(--text-secondary);
  margin-bottom: 1.8rem;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.hero-split-section {
  position: relative;
  background-color: #0f172a; 
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.75) 100%), url('9.avif');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #ffffff;
  padding: 6rem 2rem;
  border-bottom: 1px solid #1e293b;
}

.hero-split-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-split-text {
  flex: 1.2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(37, 99, 235, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-split-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-split-text h1 span {
  background: linear-gradient(135deg, #3b82f6 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-split-text p {
  font-size: 1.15rem;
  color: #94a3b8;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-split-image {
  flex: 0.8;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-split-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s ease;
}

.hero-split-image img:hover {
  transform: translateY(-5px) scale(1.01);
}

.dashboard-widget {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(37, 99, 235, 0.15);
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  color: #ffffff;
  font-family: var(--font-family);
  animation: fadeIn 0.8s ease-out;
}

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

.db-user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.db-avatar {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
}

.db-user-details {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.db-username {
  font-weight: 600;
  font-size: 0.95rem;
  color: #ffffff;
}

.db-status {
  font-size: 0.75rem;
  color: #94a3b8;
}

.db-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.db-status-dot {
  width: 6px;
  height: 6px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.db-gauge-area {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
}

.db-gauge-svg {
  width: 170px;
  height: 170px;
}

.db-gauge-track {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8px;
}

.db-gauge-fill {
  fill: none;
  stroke: #10b981;
  stroke-width: 8px;
  stroke-dasharray: 314.16;
  stroke-dashoffset: 314.16;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 60px 60px;
  animation: fillGauge 1.5s ease-out forwards;
}

@keyframes fillGauge {
  from {
    stroke-dashoffset: 314.16;
  }
  to {
    stroke-dashoffset: 75.4; 
  }
}

.db-gauge-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.db-gauge-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.db-gauge-value {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  margin: 0.2rem 0;
  color: #ffffff;
}

.db-gauge-rating {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #10b981;
}

.db-bureaus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.db-bureau-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 0.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.db-bureau-name {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 600;
}

.db-bureau-score {
  font-size: 1.1rem;
  font-weight: 700;
}

.val-experian { color: #3b82f6; }
.val-equifax { color: #10b981; }
.val-transunion { color: #06b6d4; }

.db-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.db-metric-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.db-metric-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.db-metric-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.db-action-container {
  text-align: center;
}

.db-action-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.db-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.stats-strip {
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 2rem;
}

.stats-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
  line-height: 1;
}

.stat-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.score-selector-section {
  padding: 6rem 2rem;
  background-color: var(--bg-primary);
}

.selector-container {
  max-width: 900px;
  margin: 0 auto;
}

.score-tab-radio {
  display: none;
}

.range-tabs {
  display: flex;
  background-color: var(--bg-secondary);
  padding: 0.4rem;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 2.5rem;
  overflow-x: auto;
}

.range-tabs label.range-tab {
  flex: 1;
  border: none;
  background: none;
  padding: 1rem 0.5rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.25s ease;
  text-align: center;
  white-space: nowrap;
}

.range-tabs label.range-tab:hover {
  color: var(--text-primary);
  background-color: rgba(0, 0, 0, 0.02);
}

.panel-container {
  position: relative;
}

.range-panel {
  display: none;
  background-color: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.4s ease;
}

#tab-poor:checked ~ .panel-container .panel-poor-content { display: block; }
#tab-fair:checked ~ .panel-container .panel-fair-content { display: block; }
#tab-good:checked ~ .panel-container .panel-good-content { display: block; }
#tab-vgood:checked ~ .panel-container .panel-vgood-content { display: block; }
#tab-excellent:checked ~ .panel-container .panel-excellent-content { display: block; }

#tab-poor:checked ~ .range-tabs .label-poor { background-color: #ef4444; color: #ffffff; box-shadow: var(--shadow-md); }
#tab-fair:checked ~ .range-tabs .label-fair { background-color: #f97316; color: #ffffff; box-shadow: var(--shadow-md); }
#tab-good:checked ~ .range-tabs .label-good { background-color: #eab308; color: #ffffff; box-shadow: var(--shadow-md); }
#tab-vgood:checked ~ .range-tabs .label-vgood { background-color: #10b981; color: #ffffff; box-shadow: var(--shadow-md); }
#tab-excellent:checked ~ .range-tabs .label-excellent { background-color: #06b6d4; color: #ffffff; box-shadow: var(--shadow-md); }

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.panel-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.panel-badge {
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
}

.panel-badge.poor { background-color: #ef4444; }
.panel-badge.fair { background-color: #f97316; }
.panel-badge.good { background-color: #eab308; }
.panel-badge.vgood { background-color: #10b981; }
.panel-badge.excellent { background-color: #06b6d4; }

.panel-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

.panel-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.panel-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.panel-action {
  background-color: var(--bg-primary);
  border-radius: 8px;
  padding: 1.5rem;
  border-left: 4px solid var(--color-primary);
}

.panel-action h4 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.panel-action p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.panel-action.poor { border-left-color: #ef4444; }
.panel-action.fair { border-left-color: #f97316; }
.panel-action.good { border-left-color: #eab308; }
.panel-action.vgood { border-left-color: #10b981; }
.panel-action.excellent { border-left-color: #06b6d4; }

.pathway-section {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
}

.path-step-card {
  background-color: var(--bg-primary);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.path-step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.step-num {
  font-size: 3.5rem;
  font-weight: 800;
  color: rgba(37, 99, 235, 0.1);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
}

.path-step-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}

.path-step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.calculator-section {
  padding: 6rem 2rem;
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.savings-table-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.savings-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.savings-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.savings-card-header {
  background-color: #0f172a;
  color: #ffffff;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.savings-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.savings-tag {
  background-color: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.savings-card-body {
  padding: 1.5rem;
}

.savings-row {
  display: grid;
  grid-template-columns: 1.5fr 1.2fr 1.2fr;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.header-row {
  font-weight: 700;
  color: var(--text-secondary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.poor-row {
  color: #ef4444;
}

.excellent-row {
  color: #10b981;
  font-weight: 600;
}

.savings-summary {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(6, 182, 212, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.summary-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: #10b981;
}

.testimonials-section {
  padding: 6rem 2rem;
  background-color: var(--bg-secondary);
}

.testimonial-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.testimonial-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.testimonial-meta h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 600;
}

.testimonial-meta p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.score-badge-container {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.score-badge {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.score-badge.before {
  background-color: #fef2f2;
  color: #ef4444;
}

.score-badge.after {
  background-color: #ecfdf5;
  color: #10b981;
}

.score-change-badge {
  background-color: #eff6ff;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.testimonial-quote {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.faq-input {
  display: none;
}
.faq-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary);
  user-select: none;
  transition: background-color 0.2s ease;
}
.faq-title:hover {
  background-color: var(--bg-primary);
}
.faq-title::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.2s ease;
}
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-top: 1px solid transparent;
}
.faq-input:checked ~ .faq-content {
  max-height: 300px;
  padding: 1.25rem 1.5rem;
  border-top-color: var(--border-color);
}
.faq-input:checked ~ .faq-title::after {
  content: '-';
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }
  
  .hero-split-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .cta-group {
    justify-content: center;
  }
  
  .hero-split-text h1 {
    font-size: 2.4rem;
  }
  
  .hero-split-image img {
    max-width: 100%;
  }

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


  #menu-toggle:checked ~ .menu-icon .hamburger {
    display: none;
  }

  #menu-toggle:checked ~ .menu-icon .cross {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 50%;
    height: 100vh;
    background-color: var(--bg-secondary);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding-top: 6rem; 
    gap: 2rem;
    transition: right 0.3s ease-in-out;
    z-index: 1001;
  }

  #menu-toggle:checked ~ .nav-links {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    width: 80%;
    text-align: center;
    padding: 0.8rem 0;
  }

  .feature-split,
  .feature-split.reverse {
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .form-container {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav-links {
    width: 60%; 
  }
  
  .hero-content h1 {
    font-size: 2.1rem;
  }
  
  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
