/* ═══════════════════════════════════════════════════════════════
   LegalCalc.au — Australian Litigation Cost Calculator
   Design System & Styles
   ═══════════════════════════════════════════════════════════════ */

/* ═══ IMPORTS ═══ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ═══ CSS CUSTOM PROPERTIES ═══ */
:root {
  /* Background Palette */
  --bg-primary: #0a0e1a;
  --bg-secondary: #0f1422;
  --bg-tertiary: #141a2e;
  --bg-card: #181f36;
  --bg-card-hover: #1d2540;
  --bg-elevated: #222b4a;

  /* Text Palette */
  --text-primary: #e8e6e1;
  --text-secondary: #9b97a0;
  --text-tertiary: #5f5b66;
  --text-accent: #c9a84c;
  --text-white: #ffffff;

  /* Brand Colors */
  --gold: #c9a84c;
  --gold-light: #dbb64e;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --gold-border: rgba(201, 168, 76, 0.25);
  --navy: #1a2744;
  --navy-light: #243456;

  /* Functional Colors */
  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.08);
  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.08);
  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.08);
  --info: #3b82f6;
  --info-bg: rgba(59, 130, 246, 0.08);

  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);

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

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 0 40px rgba(201, 168, 76, 0.12);
  --shadow-glow: 0 0 60px rgba(201, 168, 76, 0.08);

  /* Transitions */
  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --max-width: 1200px;
  --header-height: 64px;
}

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

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

select, input {
  font-family: inherit;
}

/* ═══ UTILITY CLASSES ═══ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad {
  padding-top: 80px;
  padding-bottom: 80px;
}

.text-gold { color: var(--gold); }
.text-secondary { color: var(--text-secondary); }

/* ═══ AMBIENT BACKGROUND ═══ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.035;
  animation: orbFloat 20s ease-in-out infinite;
}

.ambient-orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: var(--gold);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.ambient-orb:nth-child(2) {
  width: 500px;
  height: 500px;
  background: #3b82f6;
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.ambient-orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: var(--gold-light);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
}

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

/* ═══ HEADER / NAV ═══ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 36px;
  border-radius: 6px;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.logo-text span {
  color: var(--gold);
  font-weight: 500;
}

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

.nav-links a {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  transition: color var(--duration-normal) var(--ease-out);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  margin-left: 6px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 24px;
  padding: 4px;
}

/* ═══ HERO SECTION ═══ */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 14, 26, 0.4) 0%,
    rgba(10, 14, 26, 0.2) 30%,
    rgba(10, 14, 26, 0.7) 70%,
    var(--bg-primary) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  margin-bottom: 28px;
  animation: badgePulse 3s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 168, 76, 0.15); }
  50% { box-shadow: 0 0 20px 4px rgba(201, 168, 76, 0.08); }
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  animation: dotBlink 1.5s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.2; }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-white);
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

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

.hero-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.hero-stat-label {
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ═══ BUTTONS ═══ */
.btn {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--duration-normal);
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
  font-size: 14px;
  padding: 16px 32px;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text-secondary);
  font-size: 13px;
  padding: 14px 24px;
}

.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

/* ═══ CALCULATOR SECTION ═══ */
.calculator-section {
  padding: 80px 0;
}

.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

/* ═══ CALCULATOR INPUT PANEL ═══ */
.calc-input-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
}

.calc-input-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.calc-panel-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.calc-panel-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

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

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-label .info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  font-size: 9px;
  color: var(--text-tertiary);
  cursor: help;
  margin-left: 6px;
  vertical-align: middle;
  transition: all var(--duration-fast);
  position: relative;
}

.form-label .info-tooltip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.form-label .info-tooltip .tooltip-text {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  color: var(--text-primary);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  min-width: 220px;
  line-height: 1.5;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  white-space: normal;
}

.form-label .info-tooltip:hover .tooltip-text {
  display: block;
}

.form-select,
.form-input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  transition: all var(--duration-fast);
  appearance: none;
  outline: none;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%239b97a0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select:focus,
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder {
  color: var(--text-tertiary);
}

/* Range Slider */
.range-container {
  position: relative;
  padding: 4px 0;
}

.form-range {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--bg-elevated);
  outline: none;
  appearance: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 10px rgba(201, 168, 76, 0.3);
  cursor: pointer;
  transition: transform var(--duration-fast);
}

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

.range-value {
  text-align: right;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 6px;
}

/* Toggle Switches */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-chip {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration-fast);
}

.toggle-chip:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
}

.toggle-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-primary);
  font-weight: 600;
}

/* Divider */
.form-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 24px 0;
}

.calc-btn {
  width: 100%;
  padding: 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 8px;
}

/* ═══ CALCULATOR RESULTS PANEL ═══ */
.calc-results-panel {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.results-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.results-header {
  padding: 24px 28px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-bottom: 1px solid var(--border-light);
}

.results-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}

.results-amount {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 800;
  color: var(--text-white);
  line-height: 1;
}

.results-amount small {
  font-size: 0.5em;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 4px;
}

.results-body {
  padding: 24px 28px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.result-label {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-label .icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.result-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Result Categories */
.result-category {
  margin-bottom: 20px;
}

.result-category-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Total Highlight */
.result-total {
  background: var(--gold-glow);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.result-total-label {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
}

.result-total-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-light);
}

/* Range Badge */
.result-range-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-top: 12px;
}

.result-range-badge.low {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.result-range-badge.medium {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.result-range-badge.high {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Empty State */
.results-empty {
  text-align: center;
  padding: 60px 28px;
}

.results-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.results-empty-text {
  font-size: 14px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

/* ═══ AD SLOT PLACEHOLDERS ═══ */
.ad-slot {
  background: var(--bg-tertiary);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 32px 0;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ad-slot-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  opacity: 0.5;
}

/* ═══ INFO CARDS / FEATURES ═══ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═══ FAQ SECTION ═══ */
.faq-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-overline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--duration-normal);
}

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

.faq-question {
  width: 100%;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  padding: 18px 24px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background var(--duration-fast);
}

.faq-question:hover {
  background: var(--bg-card-hover);
}

.faq-chevron {
  font-size: 18px;
  color: var(--text-tertiary);
  transition: transform var(--duration-normal) var(--ease-out);
  flex-shrink: 0;
}

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

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

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

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

/* ═══ FOOTER ═══ */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
}

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

.footer-brand {
  max-width: 280px;
}

.footer-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 8px;
}

.footer-brand-name span {
  color: var(--gold);
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.7;
}

.footer-col-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

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

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul a {
  font-size: 13px;
  color: var(--text-tertiary);
  transition: color var(--duration-fast);
}

.footer-col ul a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-tertiary);
}

.footer-disclaimer {
  max-width: 600px;
  line-height: 1.6;
  font-size: 11px;
  color: var(--text-tertiary);
  opacity: 0.7;
  margin-top: 16px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
  .calc-container {
    grid-template-columns: 1fr;
  }

  .calc-results-panel {
    position: static;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 60px 0 48px;
  }

  .hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }

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

  .calc-input-panel {
    padding: 24px;
  }

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

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-pad {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-secondary {
    justify-content: center;
  }

  .results-amount {
    font-size: 32px;
  }
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.animate-in {
  animation: fadeInUp 0.6s var(--ease-out) forwards;
  opacity: 0;
}

.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.2s; }
.animate-in:nth-child(4) { animation-delay: 0.3s; }

/* ═══ GLOSSARY DEFINITIONS MODAL ═══ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 15, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalSlideUp 0.3s var(--ease-out);
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  transition: color var(--duration-fast);
}

.modal-close:hover {
  color: var(--gold);
}

.modal-body {
  padding: 28px;
}

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

@media (max-width: 640px) {
  .glossary-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.glossary-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
}

.glossary-term {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-light);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.glossary-def {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

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

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


/* ═══ INTERACTIVE CLAIM CALCULATOR POPOVER ═══ */
.calc-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: -50px;
  width: 320px;
  background: var(--bg-card);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 20px;
  z-index: 1050;
  animation: calcSlideDown 0.25s var(--ease-out);
  cursor: default;
}

.calc-popover::after {
  content: '';
  position: absolute;
  top: -6px;
  right: 80px;
  width: 12px;
  height: 12px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-medium);
  border-top: 1px solid var(--border-medium);
  transform: rotate(45deg);
}

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

.calc-popover-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 1px;
}

.calc-popover-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
}

.calc-popover-close:hover {
  color: var(--gold);
}

.calc-popover-screen {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-white);
  text-align: right;
  margin-bottom: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calc-popover-voice-status {
  font-size: 11px;
  color: var(--warning);
  background: rgba(245, 158, 11, 0.08);
  border: 1px dashed rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Voice Claim Items List */
.calc-popover-items {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin-bottom: 12px;
  max-height: 90px;
  overflow-y: auto;
}

.calc-items-title {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

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

.calc-items-list li {
  font-size: 11.5px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.calc-items-list li:last-child {
  border-bottom: none;
}

/* Keypad Grid */
.calc-popover-keys {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.calc-key {
  height: 40px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-key:hover {
  border-color: var(--text-secondary);
  color: var(--text-white);
  background: var(--border-light);
}

.calc-key.btn-clear {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.2);
}

.calc-key.btn-clear:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
}

.calc-key.btn-mic {
  font-size: 16px;
  border-color: rgba(201, 168, 76, 0.2);
  color: var(--gold);
}

.calc-key.btn-mic:hover {
  background: rgba(201, 168, 76, 0.1);
  border-color: var(--gold);
}

.calc-key.btn-mic.listening {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
  animation: micPulse 1.2s infinite;
}

@keyframes micPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }
  100% { transform: scale(1); }
}

.calc-key.btn-op {
  color: var(--gold);
  font-weight: 700;
}

.calc-key.btn-equals {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg-primary);
  font-weight: 700;
  grid-column: span 2;
}

.calc-key.btn-equals:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.calc-popover-actions {
  display: flex;
  gap: 8px;
}

.btn-use-claim {
  flex: 1;
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12px;
  font-weight: 600;
  height: 38px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--duration-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-use-claim:hover {
  background: var(--gold);
  color: var(--bg-primary);
}


/* ═══ PRINT STYLES ═══ */
@media print {
  .header, .footer, .ad-slot, .hero-bg-img, .ambient-bg, .calc-popover, .modal-overlay, .result-actions {
    display: none !important;
  }

  body {
    background: white !important;
    color: #1a1a1a !important;
  }

  .results-card {
    border: 2px solid #333 !important;
    background: white !important;
    color: #1a1a1a !important;
    break-inside: avoid;
  }

  .calc-input-panel {
    display: none !important;
  }

  .calc-results-panel {
    width: 100% !important;
    position: static !important;
  }

  .result-total {
    background: #f3f4f6 !important;
    border: 1px solid #ccc !important;
    color: #111 !important;
  }

  .result-total-label, .result-total-value {
    color: #111 !important;
  }

  .result-range-badge {
    border: 1px solid #999 !important;
    background: transparent !important;
    color: #333 !important;
  }

  .result-row {
    border-bottom: 1px solid #eee !important;
  }
}

#btn-speak-items.listening {
  background: rgba(201, 168, 76, 0.2) !important;
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  box-shadow: 0 0 15px rgba(201, 168, 76, 0.4);
  animation: goldPulse 1.2s infinite;
}

@keyframes goldPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 20px rgba(201, 168, 76, 0.6); }
  100% { transform: scale(1); }
}

/* ═══ FEEDBACK UI ═══ */
.floating-feedback-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--gold-border);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 30px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.floating-feedback-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.2);
}

.feedback-icon {
  font-size: 1.1rem;
}
