/* ==========================================================================
   SM TOOLS — Core Design System
   ========================================================================== */

:root {
  /* Color tokens */
  --red-800: #6E0E1F;
  --red-700: #8E1327;
  --red-600: #A5182F;
  --red-500: #C41E3A;   /* primary */
  --red-400: #DE3B52;
  --red-100: #FBE4E7;

  --gray-950: #17161A;
  --gray-900: #201F22;  /* accent / body text */
  --gray-700: #4A4850;
  --gray-500: #7A7780;
  --gray-300: #C9C6CD;
  --gray-200: #E4E2E6;
  --gray-100: #F1F0F2;
  --gray-050: #F8F7F8;  /* page background */

  --white: #FFFFFF;

  --success: #1E8E5A;
  --warning: #B8860B;

  /* Gradients */
  --grad-red: linear-gradient(135deg, var(--red-600) 0%, var(--red-400) 100%);
  --grad-red-hover: linear-gradient(135deg, var(--red-700) 0%, var(--red-500) 100%);

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

  /* Elevation */
  --shadow-sm: 0 1px 3px rgba(23, 22, 26, 0.06), 0 1px 2px rgba(23, 22, 26, 0.08);
  --shadow-md: 0 6px 16px rgba(23, 22, 26, 0.08), 0 2px 6px rgba(23, 22, 26, 0.06);
  --shadow-lg: 0 20px 40px rgba(23, 22, 26, 0.12), 0 8px 16px rgba(23, 22, 26, 0.08);
  --shadow-red: 0 10px 24px rgba(196, 30, 58, 0.25);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Layout */
  --container-w: 1180px;
  --nav-h: 72px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t-med: 280ms;
}

[data-theme="dark"] {
  --gray-050: #131215;
  --gray-100: #1B1A1E;
  --gray-200: #262529;
  --gray-300: #38363C;
  --gray-500: #93909A;
  --gray-700: #C9C6CD;
  --gray-900: #F1F0F2;
  --white: #1B1A1E;
  --red-100: #3A1620;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.35);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 48px rgba(0,0,0,0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--gray-050);
  color: var(--gray-900);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--gray-700); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible {
  outline: 2px solid var(--red-500);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  border: none; cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-red); color: #fff; box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--grad-red-hover); transform: translateY(-2px); box-shadow: 0 14px 28px rgba(196,30,58,0.32); }
.btn-secondary {
  background: var(--white); color: var(--gray-900); border: 1.5px solid var(--gray-200); box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--red-400); color: var(--red-600); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--gray-700); padding: 10px 16px; }
.btn-ghost:hover { color: var(--red-500); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--gray-050) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--gray-200);
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--gray-900); }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--grad-red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 800; box-shadow: var(--shadow-red);
}
.brand-sub { font-size: 0.62rem; letter-spacing: 0.18em; color: var(--gray-500); font-weight: 700; text-transform: uppercase; display: block; margin-top: -2px; }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.92rem; color: var(--gray-700);
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover, .nav-link[aria-expanded="true"] { background: var(--red-100); color: var(--red-600); }
.nav-link .chev { transition: transform var(--t-fast) var(--ease); font-size: 0.7rem; }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 240px; background: var(--white); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility var(--t-fast);
}
.dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--gray-700);
}
.dropdown a i { color: var(--red-500); width: 18px; text-align: center; }
.dropdown a:hover { background: var(--gray-100); color: var(--gray-900); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gray-200);
  background: var(--white); display: flex; align-items: center; justify-content: center;
  color: var(--gray-700); transition: all var(--t-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--red-400); color: var(--red-500); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

.hamburger { display: none; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--gray-050); flex-direction: column; align-items: stretch;
    padding: 18px; gap: 4px; transform: translateX(100%); transition: transform var(--t-med) var(--ease);
    overflow-y: auto; z-index: 400;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > li { width: 100%; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 16px; }
  .dropdown { position: static; box-shadow: none; border: none; width: 100%; opacity: 1; visibility: visible; transform: none; max-height: 0; overflow: hidden; padding: 0; transition: max-height var(--t-med) var(--ease); }
  .dropdown.open { max-height: 500px; padding: 6px 0 6px 12px; }
  .hamburger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gray-200); background: var(--white);
  }
  .hamburger span { width: 18px; height: 2px; background: var(--gray-900); margin: 0 auto; transition: all var(--t-fast) var(--ease); border-radius: 2px; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Search ---------- */
.search-overlay {
  position: fixed; inset: 0; background: rgba(23,22,26,0.5); backdrop-filter: blur(4px);
  z-index: 700; display: flex; align-items: flex-start; justify-content: center; padding-top: 12vh;
  opacity: 0; visibility: hidden; transition: opacity var(--t-fast), visibility var(--t-fast);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-panel { width: min(600px, 92vw); background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; transform: translateY(-16px); transition: transform var(--t-med) var(--ease); }
.search-overlay.open .search-panel { transform: translateY(0); }
.search-input-row { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--gray-200); }
.search-input-row i { color: var(--red-500); font-size: 1.1rem; }
.search-input-row input { flex: 1; border: none; background: transparent; font-size: 1.05rem; color: var(--gray-900); outline: none; }
.search-results { max-height: 50vh; overflow-y: auto; padding: 8px; }
.search-result {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
}
.search-result:hover, .search-result.active { background: var(--gray-100); }
.search-result .sr-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--red-100); color: var(--red-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.search-result .sr-name { font-weight: 600; font-size: 0.92rem; color: var(--gray-900); }
.search-result .sr-cat { font-size: 0.76rem; color: var(--gray-500); }
.search-empty { padding: 30px 16px; text-align: center; color: var(--gray-500); font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -180px; width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(196,30,58,0.14) 0%, transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px;
  background: var(--red-100); color: var(--red-600); border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); color: var(--gray-900); }
.hero h1 span { color: var(--red-500); }
.hero p.lead { font-size: 1.12rem; max-width: 46ch; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stat b { font-family: var(--font-display); font-size: 1.5rem; color: var(--gray-900); display: block; }
.hero-stat span { font-size: 0.8rem; color: var(--gray-500); }

/* Signature element: live tool deck */
.tool-deck { position: relative; height: 380px; }
.deck-card {
  position: absolute; inset: 0; background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); padding: 26px;
  opacity: 0; transform: scale(0.94) translateY(14px); pointer-events: none;
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}
.deck-card.active { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.deck-card .deck-label { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.deck-card .deck-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(30,142,90,0.18); }
.deck-dots { position: absolute; bottom: -30px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.deck-dots button { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--gray-300); padding: 0; transition: all var(--t-fast); }
.deck-dots button.active { background: var(--red-500); width: 22px; border-radius: var(--radius-pill); }
.deck-mono { font-family: var(--font-mono); font-size: 0.85rem; background: var(--gray-100); border-radius: var(--radius-sm); padding: 14px; color: var(--gray-900); }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .tool-deck { height: 320px; } }

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.section-head p { margin: 6px 0 0; max-width: 52ch; }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cat-card {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 26px; transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), border-color var(--t-fast);
  position: relative; overflow: hidden;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--red-400); }
.cat-icon { width: 52px; height: 52px; border-radius: 15px; background: var(--grad-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 18px; box-shadow: var(--shadow-red); }
.cat-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.cat-card p { font-size: 0.88rem; margin-bottom: 14px; }
.cat-count { font-size: 0.78rem; color: var(--red-500); font-weight: 700; }

/* ---------- Tool cards (grids of tools) ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tool-card {
  display: flex; align-items: center; gap: 14px; background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); padding: 18px; transition: all var(--t-fast) var(--ease);
}
.tool-card:hover { border-color: var(--red-400); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.tool-card .ti { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--red-100); color: var(--red-500); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.tool-card h4 { margin: 0 0 3px; font-size: 0.98rem; }
.tool-card p { margin: 0; font-size: 0.8rem; color: var(--gray-500); }
.tool-card .badge-new { font-size: 0.62rem; font-weight: 800; text-transform: uppercase; background: var(--red-100); color: var(--red-600); padding: 3px 8px; border-radius: var(--radius-pill); margin-left: auto; flex-shrink: 0; }

/* ---------- Stats band ---------- */
.stats-band { background: var(--gray-900); border-radius: var(--radius-lg); padding: 46px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
[data-theme="dark"] .stats-band { background: var(--gray-100); border: 1px solid var(--gray-200); }
.stats-band .stat b { font-family: var(--font-display); font-size: 2.1rem; color: #fff; display: block; }
[data-theme="dark"] .stats-band .stat b { color: var(--gray-900); }
.stats-band .stat span { color: var(--gray-300); font-size: 0.85rem; }
@media (max-width: 800px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Newsletter ---------- */
.newsletter { background: var(--grad-red); border-radius: var(--radius-lg); padding: 50px; text-align: center; color: #fff; }
.newsletter h2 { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0 auto 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 13px 18px; border-radius: var(--radius-pill); border: none; font-size: 0.92rem; }
.newsletter-form button { background: var(--gray-900); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-100); border-top: 1px solid var(--gray-200); margin-top: 80px; padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.88rem; max-width: 34ch; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.footer-col h5 { font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gray-500); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 0.9rem; color: var(--gray-700); padding: 6px 0; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--red-500); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--gray-200); font-size: 0.82rem; color: var(--gray-500); flex-wrap: wrap; gap: 10px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-red); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-red); border: none; opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all var(--t-fast) var(--ease); z-index: 300;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-3px); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--gray-500); padding: 22px 0 0; flex-wrap: wrap; }
.breadcrumbs a { color: var(--gray-500); }
.breadcrumbs a:hover { color: var(--red-500); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--gray-900); font-weight: 600; }

/* ---------- Tool page layout ---------- */
.tool-header { padding: 30px 0 10px; }
.tool-header .ti-lg { width: 60px; height: 60px; border-radius: 16px; background: var(--grad-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; box-shadow: var(--shadow-red); margin-bottom: 18px; }
.tool-header h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.tool-header p.lead { max-width: 60ch; }

.tool-panel {
  background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-sm); margin: 28px 0;
}
.dropzone {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-md); padding: 44px 20px; text-align: center;
  transition: all var(--t-fast) var(--ease); cursor: pointer; background: var(--gray-050);
}
.dropzone.dragover { border-color: var(--red-500); background: var(--red-100); }
.dropzone i { font-size: 2rem; color: var(--red-500); margin-bottom: 12px; }
.dropzone p { margin: 0; font-weight: 600; color: var(--gray-900); }
.dropzone span { font-size: 0.82rem; color: var(--gray-500); }

.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--gray-900); }
.field .hint { font-weight: 400; color: var(--gray-500); font-size: 0.78rem; }
.field input[type="text"], .field input[type="number"], .field input[type="email"], .field textarea, .field select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--gray-200);
  background: var(--white); color: var(--gray-900); font-size: 0.92rem; transition: border-color var(--t-fast);
}
.field textarea { resize: vertical; min-height: 140px; font-family: var(--font-mono); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--red-500); outline: none; }
.field input[type="range"] { width: 100%; accent-color: var(--red-500); }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1; min-width: 160px; }

.toggle-group { display: flex; gap: 8px; flex-wrap: wrap; }
.toggle-chip {
  padding: 9px 16px; border-radius: var(--radius-pill); border: 1.5px solid var(--gray-200);
  background: var(--white); font-size: 0.85rem; font-weight: 600; color: var(--gray-700);
  transition: all var(--t-fast) var(--ease);
}
.toggle-chip.active, .toggle-chip:hover { border-color: var(--red-500); color: var(--red-600); background: var(--red-100); }

.tool-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.output-area { margin-top: 22px; }
.output-box {
  background: var(--gray-050); border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  padding: 18px; font-family: var(--font-mono); font-size: 0.86rem; color: var(--gray-900);
  white-space: pre-wrap; word-break: break-word; max-height: 400px; overflow-y: auto;
}
.result-preview { display: flex; align-items: center; justify-content: center; background: var(--gray-050); border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); padding: 18px; min-height: 160px; }
.result-preview img { max-height: 320px; border-radius: var(--radius-sm); }
.stat-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--gray-100); padding: 6px 12px; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600; color: var(--gray-700); margin: 3px 6px 3px 0; }
.stat-pill b { color: var(--red-500); }

.color-swatch { width: 26px; height: 26px; border-radius: 7px; border: 1.5px solid var(--gray-200); display: inline-block; cursor: pointer; transition: transform var(--t-fast); }
.color-swatch:hover { transform: scale(1.12); }

.instructions ol, .instructions ul { list-style: decimal; padding-left: 22px; }
.instructions ol li, .instructions ul li { margin-bottom: 8px; color: var(--gray-700); }
.instructions ul { list-style: disc; }

.faq-item { border-bottom: 1px solid var(--gray-200); }
.faq-item:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; padding: 18px 4px;
  display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 0.95rem; color: var(--gray-900);
}
.faq-q i { color: var(--red-500); transition: transform var(--t-fast) var(--ease); }
.faq-q[aria-expanded="true"] i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height var(--t-med) var(--ease); }
.faq-a p { padding: 0 4px 18px; font-size: 0.9rem; }

.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }

.share-row { display: flex; gap: 8px; }

/* ---------- Ad slots ---------- */
.ad-slot {
  background: var(--gray-100); border: 1px dashed var(--gray-300); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center; color: var(--gray-500); font-size: 0.78rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin: 32px 0; min-height: 90px;
}

/* ---------- Misc pages ---------- */
.page-hero { padding: 56px 0 28px; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.prose h2 { margin-top: 2em; font-size: 1.3rem; }
.prose p, .prose li { color: var(--gray-700); }
.prose ul { list-style: disc; padding-left: 22px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .ci-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--red-100); color: var(--red-500); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

.error-page { text-align: center; padding: 110px 0; }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; background: var(--grad-red); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--red-500); color: #fff; padding: 12px 18px;
  border-radius: 0 0 8px 0; z-index: 999; font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: fadeUp 600ms var(--ease) both; }
