/* ============================================================
   shared.css — AskHomeFix.com Design System
   Apple-inspired: Clean, Minimal, Authoritative, Trustworthy
   Fonts: DM Sans (body) + Fraunces (display) — Google Fonts
   ============================================================ */

/* --------------------------------------------------------------
   1. GOOGLE FONTS IMPORT
   -------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,300&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* --------------------------------------------------------------
   2. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary:        #1a6b3c;   /* Deep forest green */
  --color-primary-light:  #2d9158;   /* Medium green */
  --color-primary-dark:   #0f4526;   /* Dark green */
  --color-accent:         #f5a623;   /* Warm amber accent */
  --color-accent-light:   #fbbf50;
  --color-accent-dark:    #d4891a;

  /* Neutrals */
  --color-white:          #ffffff;
  --color-off-white:      #f8f9fa;
  --color-bg:             #fafafa;
  --color-surface:        #ffffff;
  --color-surface-raised: #f2f4f6;
  --color-border:         #e4e8ec;
  --color-border-light:   #f0f2f4;

  /* Text */
  --color-text-primary:   #0d1117;
  --color-text-secondary: #4a5568;
  --color-text-muted:     #8a96a3;
  --color-text-inverse:   #ffffff;

  /* Semantic */
  --color-success:        #22c55e;
  --color-warning:        #f59e0b;
  --color-error:          #ef4444;
  --color-info:           #3b82f6;

  /* Niche Colors */
  --niche-roofing:        #7c3aed;
  --niche-hvac:           #0ea5e9;
  --niche-plumbing:       #06b6d4;
  --niche-electrical:     #eab308;
  --niche-solar:          #f97316;
  --niche-pest:           #84cc16;
  --niche-landscaping:    #10b981;
  --niche-lawn:           #22c55e;
  --niche-tree:           #65a30d;

  /* Typography */
  --font-display:         'Fraunces', Georgia, serif;
  --font-body:            'DM Sans', -apple-system, sans-serif;

  /* Font Sizes — fluid scale */
  --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;
  --text-6xl:   3.75rem;
  --text-7xl:   4.5rem;

  /* Font Weights */
  --font-light:    300;
  --font-regular:  400;
  --font-medium:   500;
  --font-semibold: 600;
  --font-bold:     700;

  /* Line Heights */
  --leading-tight:  1.2;
  --leading-snug:   1.35;
  --leading-normal: 1.6;
  --leading-relaxed:1.75;

  /* 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;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Border Radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 40px rgba(0,0,0,0.10);
  --shadow-xl:  0 16px 60px rgba(0,0,0,0.12);
  --shadow-primary: 0 8px 32px rgba(26,107,60,0.25);

  /* Transitions */
  --transition-fast:   150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base:   250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:   400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max:  1200px;
  --container-wide: 1400px;
  --nav-height:     72px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--font-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

a:hover { color: var(--color-primary-dark); }

ul, ol { list-style: none; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  letter-spacing: -0.02em;
}

p { line-height: var(--leading-relaxed); }

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

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

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

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

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

.grid {
  display: grid;
  gap: var(--space-6);
}

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

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --------------------------------------------------------------
   5. NAVIGATION
   -------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--transition-base);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-lg);
  font-weight: var(--font-bold);
  font-family: var(--font-display);
  box-shadow: var(--shadow-primary);
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  letter-spacing: -0.03em;
}

.nav__logo-text span {
  color: var(--color-primary);
}

/* Desktop Nav Links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--color-primary);
  background: rgba(26,107,60,0.06);
}

.nav__link.active {
  color: var(--color-primary);
  background: rgba(26,107,60,0.08);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-3);
  min-width: 260px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all var(--transition-base);
  z-index: 100;
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav__dropdown-item:hover {
  background: var(--color-off-white);
  color: var(--color-primary);
}

.nav__dropdown-item-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  flex-shrink: 0;
}

/* Nav CTA */
.nav__cta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Mobile Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.nav__hamburger:hover { background: var(--color-surface-raised); }

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: var(--nav-height) 0 0 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  overflow-y: auto;
  padding: var(--space-6);
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-base);
}

.nav__mobile.open {
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-section {
  margin-bottom: var(--space-8);
}

.nav__mobile-label {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}

.nav__mobile-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-size: var(--text-base);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav__mobile-link:hover {
  background: var(--color-off-white);
  border-color: var(--color-border);
  color: var(--color-primary);
}

/* --------------------------------------------------------------
   6. BUTTONS
   -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
}

/* Primary Button */
.btn--primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-primary);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,107,60,0.35);
  color: var(--color-white);
}

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

/* Secondary Button */
.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

/* Accent Button */
.btn--accent {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(245,166,35,0.35);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.45);
  color: var(--color-white);
}

/* Ghost Button */
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.3);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Sizes */
.btn--sm {
  padding: 0.55rem 1.1rem;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
}

.btn--xl {
  padding: 1.1rem 2.4rem;
  font-size: var(--text-lg);
}

.btn--full { width: 100%; }

/* --------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  background: linear-gradient(160deg, #0d2e1a 0%, #1a4d2e 40%, #1f6b40 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(45,145,88,0.3) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 60%, rgba(245,166,35,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--space-16);
  align-items: center;
  padding: var(--space-20) 0 var(--space-24);
}

/* Hero Content */
.hero__content {
  color: var(--color-white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.6s ease forwards;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: var(--font-bold);
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero__title em {
  font-style: italic;
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-lg);
  font-weight: var(--font-light);
  color: rgba(255,255,255,0.75);
  max-width: 520px;
  margin-bottom: var(--space-8);
  line-height: var(--leading-relaxed);
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.12);
  animation: fadeInUp 0.6s ease 0.4s both;
}

.hero__stat-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-bold);
  color: var(--color-white);
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  margin-top: 2px;
}

/* Hero Lead Capture Form (RIGHT SIDE) */
.hero__form-card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
  animation: fadeInRight 0.7s ease 0.2s both;
  position: relative;
}

.hero__form-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--space-8);
  right: var(--space-8);
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.hero__form-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.hero__form-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

.hero__form-trust {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------
   8. FORMS
   -------------------------------------------------------------- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
}

.form-label span {
  color: var(--color-error);
  margin-left: 2px;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--color-text-primary);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26,107,60,0.12);
}

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

.form-control--error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: var(--space-1);
}

select.form-control {
  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 fill='%238a96a3' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* Multi-step form */
.form-step {
  display: none;
}
.form-step.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.form-progress {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.form-progress-step {
  flex: 1;
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  transition: background var(--transition-base);
}

.form-progress-step.active {
  background: var(--color-primary);
}

.form-progress-step.completed {
  background: var(--color-success);
}

/* Lead Capture Form (after tool result) */
.lead-form-wrapper {
  display: none;
  margin-top: var(--space-8);
  padding: var(--space-8);
  background: linear-gradient(135deg, rgba(26,107,60,0.04) 0%, rgba(245,166,35,0.04) 100%);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.5s ease;
}

.lead-form-wrapper.visible {
  display: block;
}

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

.lead-form-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.lead-form-subtitle {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Success Message */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-12);
}

.form-success.visible { display: block; animation: fadeInUp 0.4s ease; }

.form-success__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
  color: white;
  font-size: 28px;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
}

.form-success__text {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------
   9. TOOL CARDS
   -------------------------------------------------------------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}

.tool-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  transition: all var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--niche-color, var(--color-primary)), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

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

.tool-card:hover::before { opacity: 1; }

.tool-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--color-off-white);
  transition: all var(--transition-base);
}

.tool-card:hover .tool-card__icon {
  background: rgba(26,107,60,0.08);
}

.tool-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  line-height: var(--leading-snug);
}

.tool-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  flex: 1;
}

.tool-card__arrow {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  margin-top: var(--space-2);
  transition: gap var(--transition-fast);
}

.tool-card:hover .tool-card__arrow { gap: var(--space-2); }

/* --------------------------------------------------------------
   10. NICHE CARDS (Homepage)
   -------------------------------------------------------------- */
.niche-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.niche-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-6) var(--space-5);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.niche-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--niche-color, var(--color-primary)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.niche-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
  color: inherit;
}

.niche-card:hover::after { opacity: 0.06; }

.niche-card__emoji {
  font-size: 2.5rem;
  line-height: 1;
}

.niche-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
}

.niche-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

.niche-card__count {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  background: rgba(26,107,60,0.08);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-self: flex-start;
}

/* --------------------------------------------------------------
   11. SECTION HEADERS
   -------------------------------------------------------------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* --------------------------------------------------------------
   12. TOOL PAGE LAYOUT
   -------------------------------------------------------------- */
.tool-page {
  min-height: 100vh;
}

.tool-hero {
  background: linear-gradient(160deg, #0d2e1a 0%, #1a4d2e 60%, #1f6b40 100%);
  padding: var(--space-16) 0 var(--space-12);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.tool-hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--color-bg));
}

.tool-hero__inner { position: relative; z-index: 1; }

.tool-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
}

.tool-hero__breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.tool-hero__breadcrumb a:hover { color: white; }

.tool-hero__breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.tool-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}

.tool-hero__desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  line-height: var(--leading-relaxed);
}

/* Tool Content Area */
.tool-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-8);
  align-items: start;
  padding: var(--space-10) 0;
}

.tool-main { min-width: 0; }

.tool-sidebar { position: sticky; top: calc(var(--nav-height) + var(--space-6)); }

/* Tool Widget Box */
.tool-widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-6);
}

.tool-widget__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

/* Tool Result Box */
.tool-result {
  display: none;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  color: var(--color-white);
  margin-top: var(--space-6);
  animation: fadeInUp 0.5s ease;
}

.tool-result.visible { display: block; }

.tool-result__label {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tool-result__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: var(--font-bold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.tool-result__breakdown {
  background: rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  margin-top: var(--space-4);
}

.tool-result__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: var(--text-sm);
}

.tool-result__row:last-child { border-bottom: none; }

/* Related Tools in Sidebar */
.related-tools {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}

.related-tools__title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}

.related-tool-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.related-tool-link:hover {
  background: var(--color-off-white);
  color: var(--color-primary);
}

/* --------------------------------------------------------------
   13. CONTENT / ARTICLE
   -------------------------------------------------------------- */
.content-body {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

.content-body h2 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin: var(--space-10) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.content-body h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--color-text-primary);
  margin: var(--space-8) 0 var(--space-3);
}

.content-body p { margin-bottom: var(--space-5); }

.content-body ul, .content-body ol {
  margin: var(--space-5) 0;
  padding-left: var(--space-6);
}

.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }

.content-body li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

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

/* --------------------------------------------------------------
   14. FAQ SECTION
   -------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover { box-shadow: var(--shadow-sm); }

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

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

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  flex-shrink: 0;
  transition: all var(--transition-base);
  color: var(--color-text-muted);
}

.faq-item.open .faq-icon {
  background: var(--color-primary);
  color: white;
  transform: rotate(45deg);
}

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

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

.faq-answer-inner {
  padding: 0 var(--space-6) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: var(--leading-relaxed);
}

/* AdSense between FAQs */
.faq-ad-break {
  padding: var(--space-4);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------
   15. ADSENSE PLACEHOLDER SLOTS
   -------------------------------------------------------------- */
.ad-slot {
  background: var(--color-off-white);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: var(--font-medium);
}

/* Leaderboard 728x90 */
.ad-slot--leaderboard {
  width: 100%;
  height: 90px;
  max-width: 728px;
  margin: 0 auto;
}

/* Rectangle 300x250 */
.ad-slot--rectangle {
  width: 300px;
  height: 250px;
}

/* Large Rectangle 336x280 */
.ad-slot--large-rectangle {
  width: 100%;
  max-width: 336px;
  height: 280px;
  margin: 0 auto;
}

/* Full-width responsive */
.ad-slot--responsive {
  width: 100%;
  min-height: 90px;
}

/* In-content ad wrapper */
.ad-wrapper {
  text-align: center;
  padding: var(--space-6) 0;
}

.ad-wrapper-label {
  font-size: 9px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------------
   16. TRUST SIGNALS / BADGES
   -------------------------------------------------------------- */
.trust-bar {
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-4) 0;
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-10);
  flex-wrap: wrap;
}

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

.trust-item__icon {
  color: var(--color-primary);
  font-size: var(--text-lg);
}

/* --------------------------------------------------------------
   17. BREADCRUMB
   -------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding: var(--space-4) 0;
}

.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb a:hover { color: var(--color-primary); }

.breadcrumb__sep { color: var(--color-border); }

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

/* --------------------------------------------------------------
   18. CARDS / SURFACES
   -------------------------------------------------------------- */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-xs);
}

.card--elevated {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card--highlight {
  background: linear-gradient(135deg, rgba(26,107,60,0.04), rgba(245,166,35,0.04));
  border-color: rgba(26,107,60,0.15);
}

/* --------------------------------------------------------------
   19. ALERTS & NOTIFICATIONS
   -------------------------------------------------------------- */
.alert {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
}

.alert--info {
  background: rgba(59,130,246,0.08);
  border: 1px solid rgba(59,130,246,0.2);
  color: #1d4ed8;
}

.alert--success {
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.2);
  color: #15803d;
}

.alert--warning {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  color: #92400e;
}

/* --------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------- */
.footer {
  background: var(--color-text-primary);
  color: rgba(255,255,255,0.7);
  padding: var(--space-16) 0 var(--space-8);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
}

.footer__brand { }

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  text-decoration: none;
}

.footer__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--font-display);
  font-weight: var(--font-bold);
  font-size: var(--text-base);
}

.footer__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: white;
}

.footer__tagline {
  font-size: var(--text-sm);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-6);
  max-width: 300px;
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: white;
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__link:hover { color: white; }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-5);
}

.footer__legal-link {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__legal-link:hover { color: rgba(255,255,255,0.8); }

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

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

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

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

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Scroll-triggered fade-in */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }
.reveal--delay-4 { transition-delay: 0.4s; }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--color-border) 25%, var(--color-off-white) 50%, var(--color-border) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* --------------------------------------------------------------
   22. UTILITY CLASSES
   -------------------------------------------------------------- */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

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

.font-display { font-family: var(--font-display); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }

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

.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* --------------------------------------------------------------
   23. RESPONSIVE — TABLET (max 1024px)
   -------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .hero__form-card {
    max-width: 480px;
  }

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

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

  .tool-sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

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

/* --------------------------------------------------------------
   24. RESPONSIVE — MOBILE (max 768px)
   -------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

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

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

  /* Nav */
  .nav__links   { display: none; }
  .nav__cta     { display: none; }
  .nav__hamburger { display: flex; }
  .nav__mobile  { display: block; }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: var(--space-12) 0 var(--space-16);
    gap: var(--space-8);
  }

  .hero__title { font-size: 2rem; }
  .hero__subtitle { font-size: var(--text-base); }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .hero__stats {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .hero__form-card { padding: var(--space-6); }

  /* Grids */
  .niche-grid   { grid-template-columns: 1fr; }
  .grid-2       { grid-template-columns: 1fr; }
  .grid-3       { grid-template-columns: 1fr; }
  .grid-4       { grid-template-columns: 1fr; }
  .tools-grid   { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  /* Tool page */
  .tool-sidebar {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Section header */
  .section-title { font-size: 1.6rem; }
  .section-desc  { font-size: var(--text-base); }

  /* Trust bar */
  .trust-bar__inner {
    gap: var(--space-5);
    justify-content: flex-start;
  }

  /* Ad slots — hide desktop-only sizes */
  .ad-slot--leaderboard { height: 60px; }
  .ad-slot--rectangle {
    width: 100%;
    height: 200px;
  }
}

/* --------------------------------------------------------------
   25. RESPONSIVE — SMALL MOBILE (max 480px)
   -------------------------------------------------------------- */
@media (max-width: 480px) {
  .hero__title { font-size: 1.75rem; }

  .tool-widget { padding: var(--space-5); }

  .lead-form-wrapper { padding: var(--space-5); }

  .footer__legal-links {
    flex-direction: column;
    gap: var(--space-3);
  }

  .hero__stat-value { font-size: var(--text-xl); }
}

/* --------------------------------------------------------------
   26. PRINT STYLES
   -------------------------------------------------------------- */
@media print {
  .nav, .footer, .ad-slot, .ad-wrapper, .hero__form-card { display: none !important; }
  body { font-size: 12pt; color: black; background: white; }
  a { color: black; text-decoration: underline; }
  .tool-content { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------
   27. ACCESSIBILITY
   -------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  :root {
    --color-border: #767676;
    --color-text-muted: #595959;
  }
}
