/**
 * Stundenlohnrechner 2027 - Premium Modern Design System
 * Domain: https://stundenlohnrechner2027.de/
 */

/* ==========================================================================
   1. CSS Custom Properties / Design Tokens
   ========================================================================== */
:root {
  /* Brand Colors */
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-500: #3b82f6;
  --primary-600: #2563eb;
  --primary-700: #1d4ed8;
  --primary-800: #1e40af;
  --primary-900: #1e3a8a;

  /* Accent Colors (Emerald / Growth / Finance) */
  --accent-50: #ecfdf5;
  --accent-100: #d1fae5;
  --accent-500: #10b981;
  --accent-600: #059669;
  --accent-700: #047857;

  /* Neutral Shades */
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic UI */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-focus: #3b82f6;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.05);
  --shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.1), 0 1px 2px -1px rgb(15 23 42 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(15 23 42 / 0.1), 0 2px 4px -2px rgb(15 23 42 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(15 23 42 / 0.1), 0 4px 6px -4px rgb(15 23 42 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(15 23 42 / 0.1), 0 8px 10px -6px rgb(15 23 42 / 0.1);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 74px;
}

/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color 0.18s ease;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 1rem;
  background: var(--primary-600);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 9999;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-xs);
  transition: box-shadow 0.2s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--slate-900);
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.2;
}

.brand-name span {
  color: var(--primary-600);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-700);
  background-color: var(--accent-50);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  display: inline-block;
  width: fit-content;
  border: 1px solid var(--accent-100);
}

.main-nav {
  display: flex;
  align-items: center;
}

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

.nav-link {
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: all 0.15s ease;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-600);
  background-color: var(--primary-50);
  text-decoration: none;
}

.nav-cta {
  background-color: var(--primary-600);
  color: #fff !important;
  margin-left: 0.5rem;
  padding: 0.55rem 1.15rem;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

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

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--slate-700);
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

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

.hero-content {
  padding-top: 0.5rem;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  color: var(--primary-700);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-500);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title .text-gradient {
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.hero-usps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  list-style: none;
}

.hero-usp-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-700);
}

.hero-usp-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-600);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   5. Calculator Card (Main Application UI)
   ========================================================================== */
.calculator-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1.75rem;
  position: relative;
  z-index: 10;
}

/* Mode Switcher Tabs */
.calc-mode-switcher {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background-color: var(--slate-100);
  padding: 0.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.75rem;
}

.mode-tab-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 0.9rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--slate-600);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-tab-btn:hover {
  color: var(--slate-900);
}

.mode-tab-btn.active {
  background-color: #ffffff;
  color: var(--primary-700);
  box-shadow: var(--shadow-sm);
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.45rem;
}

.label-hint {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--slate-500);
}

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

.form-input {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--slate-900);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.input-adornment {
  position: absolute;
  right: 1rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--slate-400);
  pointer-events: none;
}

.form-select {
  width: 100%;
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--slate-800);
  background-color: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Quick Select Pills */
.quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.quick-pill-btn {
  background-color: var(--slate-100);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
  transition: all 0.15s ease;
}

.quick-pill-btn:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.quick-pill-btn.active {
  background-color: var(--primary-600);
  border-color: var(--primary-600);
  color: #ffffff;
}

/* Advanced Settings Accordion within Card */
.advanced-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1rem;
  background-color: var(--slate-50);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--slate-700);
  cursor: pointer;
  margin-bottom: 1.25rem;
  transition: all 0.2s ease;
}

.advanced-toggle-btn:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.advanced-panel {
  display: none;
  background-color: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.advanced-panel.is-open {
  display: block;
}

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

/* Action Buttons */
.calc-actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary-600);
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
  flex: 1;
}

.btn-primary:hover {
  background-color: var(--primary-700);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
}

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

/* ==========================================================================
   6. Live Results Showcase
   ========================================================================== */
.results-container {
  margin-top: 1.75rem;
  border-top: 1.5px solid var(--slate-100);
  padding-top: 1.5rem;
}

.result-main-card {
  background: linear-gradient(135deg, var(--slate-900) 0%, var(--slate-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.result-main-card::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.result-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.result-title-badge {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--slate-300);
}

.result-mode-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

.result-primary-number {
  font-size: 2.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: #34d399; /* soft vivid emerald */
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.result-sub-detail {
  font-size: 0.88rem;
  color: var(--slate-400);
}

/* Effective Rate Card */
.effective-rate-card {
  background-color: var(--accent-50);
  border: 1px solid var(--accent-100);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.effective-label {
  display: flex;
  flex-direction: column;
}

.effective-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-700);
}

.effective-desc {
  font-size: 0.75rem;
  color: var(--slate-600);
}

.effective-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-600);
}

/* Detailed Results Table / Grid */
.results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.result-item-box {
  background-color: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
}

.result-item-label {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.result-item-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--slate-900);
}

/* Result Action Tools (Copy & Print) */
.result-tools {
  display: flex;
  gap: 0.5rem;
}

.btn-tool {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.6rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background-color: var(--slate-100);
  color: var(--slate-700);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  transition: all 0.15s ease;
}

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

/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background-color: var(--slate-900);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.25s ease;
  pointer-events: none;
}

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

/* ==========================================================================
   7. Content & SEO Sections
   ========================================================================== */
.content-section {
  padding: 4rem 0;
  background-color: #ffffff;
}

.content-section.bg-alt {
  background-color: var(--slate-50);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.section-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary-600);
  background-color: var(--primary-50);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.15rem;
  font-weight: 800;
  color: var(--slate-900);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

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

/* Prose formatting */
.prose {
  color: var(--slate-700);
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
}

.prose p {
  margin-bottom: 1.25rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

/* Callout Box */
.callout-box {
  background-color: var(--primary-50);
  border-left: 4px solid var(--primary-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}

.callout-box strong {
  color: var(--primary-900);
}

.callout-formula {
  background-color: var(--slate-900);
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  font-family: var(--font-mono);
  font-size: 1.05rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid var(--slate-700);
  box-shadow: var(--shadow-sm);
}

.callout-formula span {
  color: #38bdf8;
  font-weight: 700;
}

/* Comparison Cards Grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.example-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.example-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.example-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: var(--slate-100);
  color: var(--slate-700);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.example-salary {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 0.25rem;
}

.example-model {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.example-list {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 0.75rem;
  font-size: 0.88rem;
}

.example-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
}

.example-rate {
  font-weight: 800;
  color: var(--primary-600);
}

/* Styled Responsive Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.styled-table th {
  background-color: var(--slate-100);
  color: var(--slate-800);
  font-weight: 700;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--border-color);
}

.styled-table td {
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}

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

.styled-table tr:hover td {
  background-color: var(--slate-50);
}

.styled-table .highlight {
  font-weight: 700;
  color: var(--primary-600);
}

/* ==========================================================================
   8. FAQ Accordion
   ========================================================================== */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

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

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-800);
  cursor: pointer;
  transition: color 0.15s ease;
}

.faq-question-btn:hover {
  color: var(--primary-600);
}

.faq-icon {
  width: 22px;
  height: 22px;
  color: var(--slate-400);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.15s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
  color: var(--primary-600);
}

.faq-answer {
  display: none;
  padding: 0 1.35rem 1.25rem;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--slate-600);
  border-top: 1px solid transparent;
}

.faq-item.is-open .faq-answer {
  display: block;
  border-top-color: var(--slate-100);
}

/* ==========================================================================
   9. Subpages & Form Styles (About, Contact, Legal)
   ========================================================================== */
.page-header {
  background: linear-gradient(180deg, #ffffff 0%, var(--slate-50) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--slate-500);
  margin-bottom: 1rem;
}

.breadcrumb-list {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.breadcrumb-item::after {
  content: '/';
  margin-left: 0.5rem;
  color: var(--slate-300);
}

.breadcrumb-item:last-child::after {
  content: '';
}

.breadcrumb-item.active {
  color: var(--slate-800);
  font-weight: 600;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.page-lead {
  font-size: 1.15rem;
  color: var(--slate-600);
  max-width: 780px;
}

.page-content {
  padding: 3.5rem 0 5rem;
}

.legal-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  max-width: 880px;
  margin: 0 auto;
}

.placeholder-tag {
  background-color: #fef3c7;
  color: #92400e;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Contact Form */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  max-width: 1040px;
  margin: 0 auto;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.contact-info-card {
  background-color: var(--slate-50);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-icon {
  width: 28px;
  height: 28px;
  color: var(--primary-600);
  flex-shrink: 0;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.form-alert-success {
  background-color: var(--accent-50);
  color: var(--accent-700);
  border: 1px solid var(--accent-200);
}

.form-alert-error {
  background-color: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* Honeypot field (hidden from legitimate users) */
.honey-pot {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
}

/* ==========================================================================
   10. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--slate-900);
  color: var(--slate-300);
  margin-top: auto;
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--slate-800);
}

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

.footer-brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-desc {
  font-size: 0.92rem;
  color: var(--slate-400);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 1.25rem;
}

.footer-col-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

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

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

.footer-links a {
  color: var(--slate-400);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--slate-500);
}

.footer-disclaimer-note {
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ==========================================================================
   11. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero-pill {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-usps {
    justify-content: center;
  }

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

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

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

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 1.25rem;
  }

  .main-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .hero-title {
    font-size: 2.15rem;
  }

  .grid-2col {
    grid-template-columns: 1fr;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Print Stylesheet */
@media print {
  .site-header, .site-footer, .calc-actions, .result-tools, .mobile-toggle, .skip-link, .advanced-toggle-btn {
    display: none !important;
  }

  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  .calculator-card, .result-main-card {
    border: 1px solid #000000 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .result-primary-number {
    color: #000000 !important;
  }
}
