/* WorkshopCalc - Industrial Precision Design System */

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Industrial Precision */
  --bg-base: #1a1a1a;
  --bg-surface: #2d2d2d;
  --bg-card: #252525;
  --bg-elevated: #333333;
  --border: #404040;
  --border-light: #4a4a4a;

  /* Accent Colors */
  --accent: #FF6B35;
  --accent-hover: #ff8559;
  --accent-secondary: #4A90A4;
  --accent-secondary-hover: #5ba3b8;
  --success: #22C55E;
  --success-hover: #16a34a;
  --warning: #F59E0B;
  --error: #EF4444;
  --amazon: #FF9900;
  --amazon-hover: #ffad33;

  /* Text Colors */
  --text-primary: #F5F5F5;
  --text-secondary: #9CA3AF;
  --text-muted: #6B7280;
  --text-inverse: #1a1a1a;

  /* Typography */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 800px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  min-height: 100vh;
}

/* Subtle grid pattern background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: -1;
}

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

a:hover {
  color: var(--accent-secondary-hover);
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: var(--text-xl); }

p {
  margin-bottom: var(--space-4);
}

ul, ol {
  padding-left: var(--space-6);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-16) 0;
}

.section-sm {
  padding: var(--space-10) 0;
}

/* ===== NAVIGATION ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.nav-logo svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  transition: color var(--transition-fast);
}

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

.nav-links a.active {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: var(--space-2);
}

.nav-toggle svg {
  width: 24px;
  height: 24px;
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-4);
    gap: var(--space-4);
  }

  .nav-links.active {
    display: flex;
  }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--border);
}

.btn-amazon {
  background: var(--amazon);
  color: var(--text-inverse);
}

.btn-amazon:hover:not(:disabled) {
  background: var(--amazon-hover);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
}

.btn-full {
  width: 100%;
}

/* ===== CALCULATOR ===== */
.calculator {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.calculator-header {
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-card) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.calculator-header h1 {
  margin-bottom: var(--space-3);
}

.calculator-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.calculator-body {
  padding: var(--space-8);
}

/* ===== FORMS ===== */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--text-sm);
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-input,
.form-select {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239CA3AF' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-10);
}

/* Tool Checkboxes */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-3);
}

.tool-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-checkbox:hover {
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.tool-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.tool-checkbox input:checked + .tool-label {
  color: var(--accent);
}

.tool-label {
  font-weight: 500;
  color: var(--text-primary);
}

.tool-cfm {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Number Input with Buttons */
.number-input-group {
  display: flex;
  align-items: center;
  gap: 0;
}

.number-input-group .form-input {
  text-align: center;
  border-radius: 0;
  -moz-appearance: textfield;
}

.number-input-group .form-input::-webkit-outer-spin-button,
.number-input-group .form-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.number-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.number-btn:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  border-right: none;
}

.number-btn:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: none;
}

.number-btn:hover {
  background: var(--accent);
  color: var(--text-inverse);
}

/* Radio Cards */
.radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}

.radio-card {
  position: relative;
}

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-card-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.radio-card input:checked + .radio-card-label {
  border-color: var(--accent);
  background: rgba(255, 107, 53, 0.1);
}

.radio-card-label:hover {
  border-color: var(--accent);
}

.radio-card-icon {
  font-size: var(--text-2xl);
}

.radio-card-title {
  font-weight: 600;
  color: var(--text-primary);
}

.radio-card-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ===== RESULTS ===== */
.results {
  display: none;
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-elevated) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  animation: slideUp 0.3s ease;
}

.results.active {
  display: block;
}

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

.results-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.results-header h2 {
  color: var(--success);
  margin-bottom: var(--space-2);
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.result-item {
  text-align: center;
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.result-value {
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.result-unit {
  font-size: var(--text-xl);
  color: var(--text-secondary);
}

.result-label {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-main {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: var(--accent);
}

.result-main .result-value {
  font-size: var(--text-5xl);
  color: var(--text-inverse);
}

.result-main .result-unit,
.result-main .result-label {
  color: rgba(26, 26, 26, 0.8);
}

.results-explanation {
  padding: var(--space-6);
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-8);
}

.results-explanation h4 {
  margin-bottom: var(--space-3);
  color: var(--text-primary);
}

.results-explanation p {
  color: var(--text-secondary);
  margin: 0;
}

/* Result boxes (used in newer calculators) */
.result-box {
  text-align: center;
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.result-box .result-label {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}

.result-box .result-value {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.result-box .result-unit {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-left: var(--space-1);
}

.result-box-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: var(--accent);
}

.result-box-primary .result-label {
  color: rgba(26, 26, 26, 0.7);
}

.result-box-primary .result-value {
  font-size: var(--text-4xl);
  color: var(--text-inverse);
}

/* Result cards (alternative styling) */
.result-card {
  text-align: center;
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.result-card-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: var(--accent);
}

.result-card-primary .result-value {
  color: var(--text-inverse);
}

.result-card-primary .result-label {
  color: rgba(26, 26, 26, 0.7);
}

/* Results panel (container for calculator results) */
.results-panel {
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
}

.result-explanation {
  padding: var(--space-5);
  background: var(--bg-card);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-md);
  margin-top: var(--space-6);
}

.result-explanation p {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== PRODUCT RECOMMENDATIONS ===== */
.recommendations {
  margin-top: var(--space-8);
}

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

.recommendations-header h3 {
  color: var(--text-primary);
}

.recommendations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.product-card-header {
  padding: var(--space-4);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.product-brand {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--space-1);
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
  margin-top: var(--space-2);
}

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

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.product-spec {
  display: inline-flex;
  padding: var(--space-1) var(--space-2);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4) 0;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.product-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: bold;
}

.product-card-footer {
  padding: var(--space-4);
  border-top: 1px solid var(--border);
}

/* ===== FAQ ===== */
.faq {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq h2 {
  text-align: center;
  margin-bottom: var(--space-8);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  overflow: hidden;
  background: var(--bg-card);
}

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

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

.faq-question::after {
  content: '+';
  font-size: var(--text-2xl);
  color: var(--accent);
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

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

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

.faq-answer-content {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}

.footer-section h4 {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-4);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--space-2);
}

.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

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

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

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

.footer-about {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.footer-affiliate {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-3);
}

.footer-legal {
  display: flex;
  justify-content: center;
  gap: var(--space-6);
  margin-top: var(--space-4);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ===== HERO ===== */
.hero {
  padding: var(--space-20) 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.hero h1 {
  margin-bottom: var(--space-4);
}

.hero p {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-8);
}

.hero-cta {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* Homepage Hero */
.hero-home {
  padding: var(--space-20) 0 var(--space-16);
}

.hero-home h1 {
  font-size: clamp(var(--text-4xl), 6vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

.hero-trust {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.trust-item svg {
  color: var(--success);
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  margin-bottom: var(--space-10);
}

.section-header h2 {
  margin-bottom: var(--space-3);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-alt {
  background: var(--bg-surface);
}

/* ===== STEPS GRID ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.step-card {
  text-align: center;
  padding: var(--space-8);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--text-inverse);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-3);
}

.step-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* ===== CALCULATOR CARDS ===== */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
}

.calc-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

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

.calc-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.calc-card-icon svg {
  width: 24px;
  height: 24px;
}

.calc-card h3 {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.calc-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  flex-grow: 1;
}

.calc-card-arrow {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent);
}

/* Featured calc card */
.calc-card.featured {
  position: relative;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255, 107, 53, 0.05) 100%);
}

.calc-card-badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  padding: var(--space-1) var(--space-2);
  background: var(--accent);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-sm);
}

/* Homepage calc grid - 4 columns on large screens */
.calc-grid-home {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (min-width: 1024px) {
  .calc-grid-home {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== CATEGORY CARDS ===== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-4);
}

@media (min-width: 1024px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.category-card:hover {
  border-color: var(--accent-secondary);
  background: var(--bg-surface);
  transform: translateY(-2px);
}

.category-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(74, 144, 164, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent-secondary);
}

.category-icon svg {
  width: 24px;
  height: 24px;
}

.category-card h3 {
  font-size: var(--text-lg);
  color: var(--text-primary);
  margin: 0;
}

.category-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ===== GUIDE CARDS ===== */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--space-6);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  text-decoration: none;
}

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

.guide-card-badge {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  padding: var(--space-1) var(--space-3);
  background: var(--accent);
  color: var(--text-inverse);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
}

.guide-card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
  color: var(--accent);
}

.guide-card-icon svg {
  width: 28px;
  height: 28px;
}

.guide-card h3 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.guide-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
  flex-grow: 1;
  line-height: 1.6;
}

.guide-card-meta {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.guide-card-meta span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ===== GUIDE ARTICLE STYLES ===== */
.guide-article {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.guide-header {
  margin-bottom: var(--space-10);
}

.guide-header h1 {
  margin-bottom: var(--space-4);
}

.guide-meta {
  display: flex;
  gap: var(--space-6);
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.guide-intro {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Table of Contents */
.toc {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-bottom: var(--space-10);
}

.toc h2 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

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

.toc-list li {
  margin-bottom: var(--space-2);
}

.toc-list a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  padding: var(--space-2) 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
}

.toc-list a:hover {
  color: var(--accent);
}

.toc-list a::before {
  content: '→';
  color: var(--accent);
}

.toc-list .toc-sub {
  padding-left: var(--space-6);
}

/* Guide Content */
.guide-content h2 {
  margin-top: var(--space-12);
  margin-bottom: var(--space-6);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.guide-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--text-xl);
}

.guide-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-5);
}

.guide-content ul, .guide-content ol {
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
  padding-left: var(--space-6);
}

.guide-content li {
  margin-bottom: var(--space-2);
  line-height: 1.7;
}

.guide-content strong {
  color: var(--text-primary);
}

/* Callout Boxes */
.callout {
  padding: var(--space-5);
  border-radius: var(--radius-md);
  margin: var(--space-6) 0;
}

.callout-tip {
  background: rgba(34, 197, 94, 0.1);
  border-left: 4px solid var(--success);
}

.callout-warning {
  background: rgba(245, 158, 11, 0.1);
  border-left: 4px solid var(--warning);
}

.callout-info {
  background: rgba(74, 144, 164, 0.1);
  border-left: 4px solid var(--accent-secondary);
}

.callout h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.callout p {
  margin: 0;
  font-size: var(--text-sm);
}

/* Calculator CTA in guides */
.guide-calculator-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(255, 107, 53, 0.05) 100%);
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.guide-calculator-cta:hover {
  background: rgba(255, 107, 53, 0.1);
  transform: translateX(4px);
}

.guide-calculator-cta-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  border-radius: var(--radius-md);
  color: var(--text-inverse);
  flex-shrink: 0;
}

.guide-calculator-cta-icon svg {
  width: 24px;
  height: 24px;
}

.guide-calculator-cta-text h4 {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.guide-calculator-cta-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Product Recommendations in Guides */
.guide-products {
  margin: var(--space-8) 0;
  padding: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.guide-products h4 {
  margin-bottom: var(--space-4);
}

.guide-product-list {
  display: grid;
  gap: var(--space-4);
}

.guide-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.guide-product-info h5 {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.guide-product-info p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* Related Guides */
.related-guides {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.related-guides h3 {
  margin-bottom: var(--space-6);
}

.related-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-4);
}

.related-guide-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.related-guide-card:hover {
  border-color: var(--accent-secondary);
  background: var(--bg-elevated);
}

.related-guide-card h4 {
  font-size: var(--text-base);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.related-guide-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h2 {
  margin-bottom: var(--space-4);
}

.contact-info > p {
  color: var(--text-secondary);
  margin-bottom: var(--space-8);
}

.contact-info h3 {
  font-size: var(--text-lg);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
}

.contact-info ul {
  color: var(--text-secondary);
  padding-left: var(--space-6);
}

.contact-info li {
  margin-bottom: var(--space-3);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.contact-method {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 107, 53, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent);
  flex-shrink: 0;
}

.contact-method-text h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-2);
}

.contact-method-text p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin: 0;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.contact-form-card h3 {
  margin-bottom: var(--space-6);
}

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

.form-disclaimer {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-4);
  text-align: center;
}

/* ===== TRUST BADGES ===== */
.trust-badges {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  padding: var(--space-8) 0;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.trust-badge svg {
  width: 20px;
  height: 20px;
  color: var(--success);
}

/* ===== AFFILIATE DISCLOSURE ===== */
.affiliate-disclosure {
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-top: var(--space-8);
}

.affiliate-disclosure p {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--success); }

.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav,
  .footer,
  .btn,
  .recommendations {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .calculator,
  .results {
    background: white;
    border: 1px solid #ccc;
  }

  .result-value {
    color: black;
  }
}
