/* ============================================================
   Rechify — Global Design System
   Premium SaaS aesthetic: crisp, editorial, light-mode first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?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');

/* ── CSS Variables ─────────────────────────────────────── */
:root {
  --bg:         #fafaf8;
  --surface:    #ffffff;
  --surface-2:  #f4f4f1;
  --border:     #e8e8e3;
  --border-2:   #d4d4cc;

  --text-primary:   #18181a;
  --text-secondary: #6b6b72;
  --text-tertiary:  #9b9ba4;

  --accent:         #2563eb;
  --accent-light:   #eff4ff;
  --accent-mid:     #bfdbfe;
  --accent-dark:    #1d4ed8;

  --green:      #16a34a;
  --green-light:#f0fdf4;

  --shadow-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.07), 0 1px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.09), 0 2px 8px rgba(0,0,0,.05);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.11);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --font-display: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:   1120px;
  --max-w-sm: 760px;

  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ── Utilities ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}
.container--sm {
  max-width: var(--max-w-sm);
}

.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;
}

/* ── Fade-in animation ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.fade-up--delay-1 { animation-delay: 0.08s; }
.fade-up--delay-2 { animation-delay: 0.16s; }
.fade-up--delay-3 { animation-delay: 0.24s; }
.fade-up--delay-4 { animation-delay: 0.32s; }

/* ── Navigation ────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.nav__logo-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav__link:hover,
.nav__link--active {
  color: var(--text-primary);
  background: var(--surface-2);
}
.nav__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-light);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-mid);
  transition: all var(--transition);
}
.nav__cta:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  line-height: 1;
  white-space: nowrap;
}
.btn--primary {
  background: var(--text-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.btn--primary:hover {
  background: #2d2d31;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.btn--accent:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.btn--outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-2);
}
.btn--outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
  background: var(--surface-2);
}
.btn--sm {
  font-size: 14px;
  padding: 9px 18px;
}

/* ── Calculator Page Hero ──────────────────────────────── */
.calc-hero {
  padding-block: 56px 48px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.calc-hero__meta {
  margin-bottom: 20px;
}

/* ── Badges ────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 100px;
}
.badge--blue {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
}
.badge--green {
  background: var(--green-light);
  color: var(--green);
  border: 1px solid #bbf7d0;
}
.badge--gray {
  background: var(--surface-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.badge--teal {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}
.badge--purple {
  background: #faf5ff;
  color: #7c3aed;
  border: 1px solid #ddd6fe;
}
.badge--indigo {
  background: #eef2ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}
.badge--amber {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

/* ── Cards ─────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--border-2);
}
.card--flat {
  box-shadow: var(--shadow-sm);
}
.card--flat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ── Form Elements ─────────────────────────────────────── */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: .01em;
}
.field__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field__input-wrap .field__prefix {
  position: absolute;
  left: 14px;
  font-size: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
  font-weight: 500;
}
.field__input-wrap .field__suffix {
  position: absolute;
  right: 14px;
  font-size: 14px;
  color: var(--text-tertiary);
  pointer-events: none;
}
.field__input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.field__input::-webkit-outer-spin-button,
.field__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.field__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.field__input--prefix { padding-left: 32px; }
.field__input--suffix { padding-right: 52px; }
.field__hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ── Section spacing ───────────────────────────────────── */
.section { padding-block: 80px; }
.section--sm { padding-block: 56px; }
.section--lg { padding-block: 112px; }
.section--alt { background: var(--surface); }
.section--dark {
  background: var(--text-primary);
  color: #fff;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.section__subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.65;
}
.calc-hero .section__subtitle { max-width: none; }

/* ── Dividers ──────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* ── Footer ────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 48px 36px;
  background: var(--surface);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: start;
}
.footer__brand {
  max-width: 280px;
}
.footer__brand-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 8px;
}
.footer__brand-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.footer__nav {
  display: flex;
  gap: 48px;
}
.footer__nav-group h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}
.footer__nav-group a {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__nav-group a:hover { color: var(--text-primary); }
.footer__bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq__question {
  width: 100%;
  text-align: left;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}
.faq__question:hover { color: var(--accent); }
.faq__chevron {
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition);
}
.faq-item.open .faq__chevron {
  transform: rotate(180deg);
  background: var(--accent-light);
  color: var(--accent);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq__answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__nav { flex-wrap: wrap; gap: 32px; }
  .section { padding-block: 56px; }
  .section--lg { padding-block: 72px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ── Tooltip Icon ──────────────────────────────────────── */
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-tertiary);
  cursor: help;
  position: relative;
  margin-left: 5px;
  vertical-align: middle;
  transition: all var(--transition);
  flex-shrink: 0;
}
.tooltip-icon:hover,
.tooltip-icon:focus {
  background: var(--accent-light);
  border-color: var(--accent-mid);
  color: var(--accent);
  outline: none;
}
.tooltip-icon::before {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  width: 220px;
  padding: 9px 12px;
  background: #18181a;
  color: rgba(255,255,255,.9);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  border-radius: 10px;
  z-index: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
  white-space: normal;
  text-align: left;
}
.tooltip-icon::after {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: #18181a;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s, transform 0.15s;
}
.tooltip-icon:hover::before,
.tooltip-icon:focus::before {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.tooltip-icon:hover::after,
.tooltip-icon:focus::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Homepage ──────────────────────────────────────────── */
.hero {
  padding-block: 96px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(37,99,235,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero__badge { margin-bottom: 24px; justify-content: center; display: flex; }
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--text-primary);
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}
.hero__subtitle {
  font-size: 22px;
  color: var(--text-secondary);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero__trust {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.hero__trust-item svg {
  color: var(--accent);
  flex-shrink: 0;
}
.hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.hero__stat { text-align: center; }
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--text-primary);
}
.hero__stat-label {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* ── Calculator Grid ───────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.calc-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.calc-card__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  flex-shrink: 0;
}
.calc-card__icon--blue   { background: var(--accent-light); }
.calc-card__icon--green  { background: var(--green-light); }
.calc-card__icon--amber  { background: #fffbeb; }
.calc-card__icon--purple { background: #faf5ff; }
.calc-card__icon--teal   { background: #f0fdfa; }
.calc-card__icon--indigo { background: #eef2ff; }
.calc-card__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.calc-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-primary);
}
.calc-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.calc-card__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.calc-card:hover .calc-card__cta { gap: 8px; }
.calc-card--disabled {
  opacity: .6;
  pointer-events: none;
  cursor: default;
}
.calc-card__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-tertiary);
  border-radius: 20px;
  border: 1px solid var(--border);
  width: fit-content;
}

/* ── About section ─────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-grid__text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-grid__text p:last-child { margin-bottom: 0; }
.about-grid__visual {
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.about-mini-card {
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}
.about-mini-card__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.about-mini-card__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  flex: 1;
}
.about-mini-card__value {
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-display);
}

/* ── Legal pages ───────────────────────────────────────── */
.legal-content {
  max-width: 720px;
  margin-inline: auto;
  padding-block: 64px 96px;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -.02em;
  margin-bottom: 8px;
}
.legal-content .legal-meta {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}
.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-content ul {
  list-style: disc;
  padding-left: 20px;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-mid);
}
.legal-content a:hover {
  text-decoration-color: var(--accent);
}

/* ── Hero Search ───────────────────────────────────────── */
.hero__search {
  margin-top: 28px;
  max-width: 660px;
  margin-inline: auto;
}
.hero__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.hero__search-icon {
  position: absolute;
  left: 16px;
  color: var(--text-tertiary);
  pointer-events: none;
  flex-shrink: 0;
}
.hero__search-input {
  width: 100%;
  padding: 16px 52px 16px 50px;
  font-size: 16px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  box-shadow: var(--shadow-sm);
}
.hero__search-input::placeholder {
  color: var(--text-tertiary);
}
.hero__search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.hero__search-clear {
  position: absolute;
  right: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-tertiary);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.hero__search-clear:hover {
  background: var(--border-2);
  color: var(--text-primary);
}
.calc-card--hidden {
  display: none !important;
}
.calc-grid__empty {
  display: none;
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--text-tertiary);
  font-size: 15px;
}
.calc-grid__empty--visible {
  display: block;
}

@media (max-width: 768px) {
  .hero { padding-block: 64px 56px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid__visual { order: -1; }
  .hero__stats { gap: 24px; }
  .hero__search { max-width: 100%; }
}

/* ── Hero Popular Chips ────────────────────────────────── */
.hero__popular {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}
.hero__popular-label {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
  flex-shrink: 0;
}
.hero__chip {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 100px;
  padding: 5px 13px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  line-height: 1;
}
.hero__chip:hover {
  color: var(--accent);
  border-color: var(--accent-mid);
  background: var(--accent-light);
}

/* ── Category Grid ─────────────────────────────────────── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.category-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  cursor: pointer;
}
.category-card__cover-link {
  color: inherit;
  text-decoration: none;
}
.category-card__cover-link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  z-index: 0;
}
.category-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
}
.category-card__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-primary);
  margin: 0;
}
.category-card__count {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 3px;
}
.category-card__links {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.category-card__link {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
  position: relative;
  z-index: 1;
}
.category-card__link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--border-2);
  flex-shrink: 0;
  transition: background var(--transition);
}
.category-card__link:hover {
  color: var(--accent);
}
.category-card__link:hover::before {
  background: var(--accent);
}
.category-card__cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  position: relative;
  z-index: 1;
}
.category-card:hover .category-card__cta {
  gap: 8px;
}

/* ── Why Grid ──────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.why-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid var(--accent-mid);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.why-card__title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text-primary);
  margin: 0;
}
.why-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ── SEO Text ──────────────────────────────────────────── */
.seo-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}
.seo-text:last-child { margin-bottom: 0; }
.seo-text a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-mid);
}
.seo-text a:hover { text-decoration-color: var(--accent); }

/* ── Nav CTA as button ─────────────────────────────────── */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .category-grid { grid-template-columns: 1fr; }
  .hero__popular { gap: 6px; }
}

/* ── Category Page Hero ────────────────────────────────── */
.cat-hero {
  padding-block: 72px 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.cat-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}
.cat-hero__breadcrumb a {
  color: var(--text-tertiary);
  transition: color var(--transition);
}
.cat-hero__breadcrumb a:hover { color: var(--text-primary); }
.cat-hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.025em;
  color: var(--text-primary);
  margin-bottom: 18px;
  max-width: 680px;
}
.cat-hero__subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: none;
  line-height: 1.6;
}

/* ── Category SEO Text ─────────────────────────────────── */
.cat-seo { max-width: none; }
.cat-seo h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 400;
  letter-spacing: -.02em;
  color: var(--text-primary);
  margin-top: 44px;
  margin-bottom: 12px;
  line-height: 1.25;
}
.cat-seo p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 14px;
}
.cat-seo p:last-child { margin-bottom: 0; }
.cat-seo a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--accent-mid);
}
.cat-seo a:hover { text-decoration-color: var(--accent); }

@media (max-width: 768px) {
  .cat-hero { padding-block: 48px 40px; }
  .cat-seo h2 { margin-top: 32px; }
}

/* ── FAQ ───────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
  gap: 16px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--text-tertiary);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 20px 18px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
