/* =========================================================
   S-Corp Savings — Design System & Styles
   Premium dark theme with glassmorphism + gradients
   ========================================================= */

/* === CSS Reset & Custom Properties === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(20, 20, 35, 0.7);
  --bg-card-hover: rgba(28, 28, 48, 0.8);
  --bg-input: rgba(15, 15, 30, 0.9);

  --text-primary: #f0f0f5;
  --text-secondary: #9898b0;
  --text-muted: #6a6a80;

  --accent-primary: #6366f1; /* Indigo */
  --accent-primary-light: #818cf8;
  --accent-primary-dark: #4f46e5;

  --accent-green: #22c55e;
  --accent-green-light: #4ade80;
  --accent-green-dark: #16a34a;

  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a78bfa);
  --gradient-green: linear-gradient(135deg, #22c55e, #10b981);
  --gradient-savings: linear-gradient(135deg, #22c55e 0%, #6366f1 100%);
  --gradient-cta: linear-gradient(135deg, #f59e0b, #ef4444);

  --border-color: rgba(100, 100, 150, 0.15);
  --border-glow: rgba(99, 102, 241, 0.3);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* === Background Effects === */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(100, 100, 150, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 100, 150, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 70%);
  top: -200px;
  right: -200px;
  animation: float 20s infinite ease-in-out;
}

.blob-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1), transparent 70%);
  bottom: 200px;
  left: -200px;
  animation: float 25s infinite ease-in-out reverse;
}

.blob-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.08), transparent 70%);
  top: 50%;
  right: 10%;
  animation: float 18s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, -15px) scale(1.02); }
}

/* === Layout === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-md) 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-sm);
  font-size: 1.2rem;
  font-weight: 800;
  color: white;
}

.logo-highlight {
  color: var(--accent-primary-light);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-btn {
  background: var(--gradient-primary);
  color: white;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition-base);
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* === Hero === */
.hero {
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-primary-light);
  margin-bottom: var(--space-xl);
  animation: fadeInDown 0.6s ease;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

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

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

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease 0.1s both;
}

.gradient-text {
  background: var(--gradient-savings);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-cta {
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-trust {
  margin-top: var(--space-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-check {
  color: var(--accent-green);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2xl);
  margin-top: var(--space-4xl);
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border-color);
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(99, 102, 241, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-accent {
  background: var(--gradient-green);
  color: white;
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(34, 197, 94, 0.4);
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

/* === Section Styles === */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

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

/* === Calculator Section === */
.calculator-section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.calculator-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

/* === Cards === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  transition: var(--transition-base);
}

.card:hover {
  border-color: var(--border-glow);
}

.card-header {
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid var(--border-color);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card-icon {
  font-size: 1.25rem;
}

.card-body {
  padding: var(--space-xl);
}

/* === Form Elements === */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-group-row {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.form-group-row .form-group {
  margin-bottom: 0;
  flex: 1;
}

.form-label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.form-hint {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  background: rgba(100, 100, 150, 0.2);
  border-radius: 50%;
  font-size: 0.7rem;
  cursor: help;
  color: var(--text-muted);
}

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

.input-prefix {
  position: absolute;
  left: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-muted);
  pointer-events: none;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition-base);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

select.form-input {
  padding-right: 2.5rem;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239898b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.input-group .form-input {
  padding-left: 2.2rem;
}

.form-input.error {
  border-color: var(--accent-red);
  background-color: rgba(239, 68, 68, 0.05);
}

.form-input.error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.error-message {
  display: none;
  color: var(--accent-red);
  font-size: 0.85rem;
  font-weight: 500;
  margin-top: 0.5rem;
  animation: fadeIn 0.3s ease;
}

.error-message.show {
  display: block;
}

.form-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-base);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%239898b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* === Checkbox === */
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 28px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 20px;
  width: 20px;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: var(--transition-base);
}

.checkbox-container:hover input ~ .checkmark {
  border-color: var(--accent-primary);
}

.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-container .checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* === Foldout === */
.foldout-container {
  overflow: hidden;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
  margin-top: 1rem;
  animation: slideDown 0.3s ease-out forwards;
}

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

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 2rem 0;
  width: 100%;
}

/* Tooltip Override for wider text */
.form-hint[data-tooltip]::before,
.form-hint[data-tooltip]::after {
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  position: absolute;
  z-index: 9999;
}

.form-hint svg {
  width: 14px;
  height: 14px;
}

.form-hint {
  position: relative;
}

.form-hint[data-tooltip]:hover::before,
.form-hint[data-tooltip]:hover::after {
  opacity: 1;
}

.form-hint[data-tooltip]::before {
  content: attr(data-tooltip);
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 500;
  border-radius: 6px;
  width: max-content;
  max-width: 250px;
  text-align: left;
  line-height: 1.4;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-hint[data-tooltip]::after {
  content: '';
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: var(--text-primary) transparent transparent transparent;
}

/* === Slider === */
.income-slider-group {
  margin-bottom: var(--space-xl);
}

.income-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: rgba(100, 100, 150, 0.2);
  border-radius: 3px;
  outline: none;
  margin: var(--space-md) 0 var(--space-sm);
}

.income-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--gradient-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
  transition: var(--transition-fast);
}

.income-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === Savings Card === */
.savings-card {
  text-align: center;
  padding: var(--space-2xl);
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(99, 102, 241, 0.08));
  border-color: rgba(34, 197, 94, 0.2);
  animation: fadeInUp 0.5s ease;
}

.savings-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--accent-green-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.savings-amount {
  font-family: var(--font-mono);
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 900;
  background: var(--gradient-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.savings-monthly {
  font-size: 1rem;
  color: var(--text-secondary);
}

.savings-bar-container {
  margin-top: var(--space-xl);
}

.savings-bar {
  display: flex;
  border-radius: var(--radius-sm);
  overflow: hidden;
  height: 48px;
  gap: 2px;
}

.savings-bar-before {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  transition: width 0.8s ease;
}

.savings-bar-after {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  background: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: width 0.8s ease;
}

.bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.bar-amount {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

/* === Breakdown === */
.breakdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-lg);
  animation: fadeInUp 0.5s ease 0.1s both;
}



.scorp-card {
  border-color: rgba(34, 197, 94, 0.2);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.status-red {
  background: var(--accent-red);
}

.status-green {
  background: var(--accent-green);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breakdown-row.highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.breakdown-row.divider {
  border-bottom: 1px solid var(--border-color);
  padding: 0;
  margin: var(--space-sm) 0;
}

.breakdown-row.total {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1rem;
}

.breakdown-footnote {
  margin-top: var(--space-md);
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
}

.mono {
  font-family: var(--font-mono);
  font-weight: 600;
}

/* === CTA Card === */
.cta-card {
  margin-top: var(--space-lg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
  border-color: rgba(99, 102, 241, 0.25);
  animation: fadeInUp 0.5s ease 0.2s both;
}

.cta-header {
  padding: var(--space-2xl) var(--space-2xl) 0;
  text-align: center;
}

.cta-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0;
}

.cta-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-2xl);
  padding: var(--space-xl) var(--space-2xl) var(--space-2xl);
}

.cta-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.cta-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cta-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.cta-features svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

.cta-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-price {
  margin-bottom: var(--space-sm);
}

.price-currency {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-secondary);
  vertical-align: super;
}

.price-amount {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 900;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.price-period {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

.cta-compare {
  margin-bottom: var(--space-lg);
}

.compare-line {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.cta-guarantee {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-md);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cta-guarantee svg {
  color: var(--accent-green);
}

/* === How It Works === */
.how-it-works {
  padding: var(--space-4xl) 0;
  background: rgba(18, 18, 26, 0.5);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-3xl);
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: var(--transition-base);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.step-description {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Comparison Visual === */
.comparison-visual {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.comparison-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.comparison-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.comparison-label {
  font-weight: 700;
  font-size: 1rem;
}

.comparison-badge {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.comparison-badge.bad {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
}

.comparison-badge.good {
  background: rgba(34, 197, 94, 0.15);
  color: var(--accent-green);
}

.comparison-bar-stack {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.comp-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  text-align: center;
}

.comp-bar-setax {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}

.comp-bar-salary {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #fcd34d;
}

.comp-bar-dist {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.25);
  color: #86efac;
}

.comparison-arrow {
  display: flex;
  align-items: center;
  font-size: 2rem;
  color: var(--text-muted);
}

/* === FAQ === */
.faq-section {
  padding: var(--space-4xl) 0;
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-base);
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) var(--space-xl);
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-primary-light);
}

.faq-arrow {
  transition: transform var(--transition-base);
  flex-shrink: 0;
  color: var(--text-muted);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* === Footer === */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--border-color);
  background: rgba(10, 10, 15, 0.8);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-disclaimer {
  max-width: 600px;
}

.footer-disclaimer p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: var(--space-xl);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .calculator-layout {
    grid-template-columns: 1fr;
  }

  .cta-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links .nav-link {
    display: none;
  }

  .hero {
    padding: 8rem 0 3rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

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

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

  .comparison-visual {
    flex-direction: column;
  }

  .comparison-arrow {
    transform: rotate(90deg);
    justify-content: center;
  }

  .footer-content {
    flex-direction: column;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .cta-content {
    padding: var(--space-lg);
  }
}

/* === Animations for results appearing === */
.slide-in {
  animation: slideIn 0.6s ease forwards;
}

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

/* === Counter animation helper === */
.counter-animate {
  transition: all 0.4s ease;
}

/* === Loading state === */
.btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn.loading span {
  visibility: hidden;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* === Tooltip === */
[data-tooltip] {
  position: relative;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 400;
  white-space: normal;
  width: 250px;
  z-index: 100;
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

/* === Preset Income Buttons === */
.preset-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.preset-btn {
  flex: 1;
  min-width: 52px;
  padding: 0.5rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  background: rgba(99, 102, 241, 0.06);
  border: 1.5px solid rgba(99, 102, 241, 0.2);
  border-radius: 999px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  text-align: center;
  letter-spacing: 0.02em;
}

.preset-btn:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

.preset-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.3);
}

/* === CTA No-Subscription Callout === */
.cta-no-subscription {
  font-size: 0.8rem;
  color: var(--accent-green);
  text-align: center;
  margin-top: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* === Resources Dropdown Nav === */
.nav-dropdown {
  position: relative;
}

.nav-dropdown .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-dropdown .nav-link .dropdown-arrow {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(18, 18, 30, 0.97);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s;
}

.nav-dropdown-menu a:hover {
  background: rgba(99, 102, 241, 0.1);
}

.nav-dropdown-menu a .dropdown-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.nav-dropdown-menu a .dropdown-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* === SEO Content Pages === */
.content-page {
  max-width: 780px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

.content-page h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.6rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-page .content-meta {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.content-page h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.content-page h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--accent-primary-light);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.content-page p {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.content-page ul, .content-page ol {
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 1.2rem;
  padding-left: 1.5rem;
  font-size: 1.02rem;
}

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

.content-page li::marker {
  color: var(--accent-primary-light);
}

.content-page strong {
  color: var(--text-primary);
  font-weight: 600;
}

.content-page .content-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: 0.92rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.content-page .content-table th {
  text-align: left;
  padding: 0.85rem 1.1rem;
  background: rgba(99, 102, 241, 0.12);
  color: var(--accent-primary-light);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-color);
}

.content-page .content-table td {
  padding: 0.85rem 1.1rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(100, 100, 150, 0.08);
}

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

.content-page .content-table tr:nth-child(even) td {
  background: rgba(99, 102, 241, 0.03);
}

.content-page .content-table tr:hover td {
  background: rgba(99, 102, 241, 0.06);
}

.content-page .content-cta {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  margin-top: 3.5rem;
  position: relative;
  overflow: hidden;
}

.content-page .content-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.content-page .content-cta h3 {
  color: var(--text-primary);
  margin-top: 0;
  font-size: 1.4rem;
}

.content-page .content-cta p {
  max-width: 500px;
  margin: 0.75rem auto 1.5rem;
}

/* Article sidebar nav for content pages */
.content-page .article-nav {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
}

.content-page .article-nav-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.content-page .article-nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--accent-primary-light);
  text-decoration: none;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  margin-bottom: 0.25rem;
}

.content-page .article-nav a:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

.content-page .article-nav a.current {
  background: rgba(99, 102, 241, 0.12);
  color: var(--text-primary);
  font-weight: 600;
}

.content-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s;
  padding: 0.4rem 0;
}

.content-back:hover {
  color: var(--accent-primary-light);
}
