/* ═══════════════════════════════════════════════════════════════
   TECHNOVIBES — TOOL DESIGN SYSTEM  ·  tool-template.css
   The single source of visual truth for every TechnoVibes tool page.
   Link this file, drop in nav.js + footer.js, fill the sections.
   Tokens, base, ads, hero, form, results, sidebar, related, FAQ.
   (Nav + footer styles are injected by nav.js / footer.js.)
═══════════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   DESIGN TOKENS — identical to homepage
═══════════════════════════════════════════ */

:root, html[data-theme="light"] {
  --bg:           oklch(0.985 0.004 262);
  --surface:      oklch(1.000 0.000 262);
  --surface-2:    oklch(0.955 0.007 262);
  --surface-3:    oklch(0.925 0.009 262);
  --nav-bg:       oklch(1.000 0.000 262 / 0.88);
  --text:         oklch(0.150 0.025 262);
  --muted:        oklch(0.460 0.020 262);
  --subtle:       oklch(0.640 0.014 262);
  --border:       oklch(0.875 0.010 262);
  --border-2:     oklch(0.820 0.012 262);
  --blue:         oklch(0.50 0.22 252);
  --blue-a10:     oklch(0.50 0.22 252 / 0.10);
  --blue-a15:     oklch(0.50 0.22 252 / 0.15);
  --blue-a20:     oklch(0.50 0.22 252 / 0.20);
  --blue-a35:     oklch(0.50 0.22 252 / 0.35);
  --blue-a50:     oklch(0.50 0.22 252 / 0.50);
  --violet:       oklch(0.50 0.22 292);
  --violet-a10:   oklch(0.50 0.22 292 / 0.10);
  --violet-a15:   oklch(0.50 0.22 292 / 0.15);
  --violet-a20:   oklch(0.50 0.22 292 / 0.20);
  --violet-a35:   oklch(0.50 0.22 292 / 0.35);
  --violet-a50:   oklch(0.50 0.22 292 / 0.50);
  --green:        oklch(0.45 0.18 150);
  --green-bg:     oklch(0.95 0.07 150);
  --green-border: oklch(0.80 0.10 150 / 0.60);
  --gold:         oklch(0.60 0.16 75);
  --shadow-sm:    0 1px 3px oklch(0.15 0.025 262 / 0.07), 0 4px 12px oklch(0.15 0.025 262 / 0.04);
  --shadow-md:    0 4px 16px oklch(0.15 0.025 262 / 0.10), 0 12px 40px oklch(0.15 0.025 262 / 0.06);
  --shadow-lg:    0 8px 32px oklch(0.15 0.025 262 / 0.14), 0 24px 60px oklch(0.15 0.025 262 / 0.08);
  --ad-stripe-1:  oklch(0.960 0.005 262);
  --ad-stripe-2:  oklch(0.942 0.007 262);
  --ad-border:    oklch(0.820 0.010 262);
  --ad-text:      oklch(0.650 0.012 262);
  --dot:          oklch(0.780 0.010 262 / 0.70);
  --blob-op:      0.055;
}

html[data-theme="dark"] {
  --bg:           oklch(0.110 0.018 262);
  --surface:      oklch(0.155 0.018 262);
  --surface-2:    oklch(0.200 0.020 262);
  --surface-3:    oklch(0.245 0.022 262);
  --nav-bg:       oklch(0.110 0.018 262 / 0.88);
  --text:         oklch(0.970 0.006 262);
  --muted:        oklch(0.600 0.018 262);
  --subtle:       oklch(0.440 0.016 262);
  --border:       oklch(0.280 0.022 262 / 0.55);
  --border-2:     oklch(0.350 0.022 262 / 0.40);
  --blue:         oklch(0.64 0.20 252);
  --blue-a10:     oklch(0.64 0.20 252 / 0.10);
  --blue-a15:     oklch(0.64 0.20 252 / 0.15);
  --blue-a20:     oklch(0.64 0.20 252 / 0.20);
  --blue-a35:     oklch(0.64 0.20 252 / 0.35);
  --blue-a50:     oklch(0.64 0.20 252 / 0.50);
  --violet:       oklch(0.64 0.20 292);
  --violet-a10:   oklch(0.64 0.20 292 / 0.10);
  --violet-a15:   oklch(0.64 0.20 292 / 0.15);
  --violet-a20:   oklch(0.64 0.20 292 / 0.20);
  --violet-a35:   oklch(0.64 0.20 292 / 0.35);
  --violet-a50:   oklch(0.64 0.20 292 / 0.50);
  --green:        oklch(0.72 0.18 150);
  --green-bg:     oklch(0.55 0.18 150 / 0.15);
  --green-border: oklch(0.55 0.16 150 / 0.30);
  --gold:         oklch(0.80 0.15 82);
  --shadow-sm:    none;
  --shadow-md:    none;
  --shadow-lg:    0 8px 32px oklch(0 0 0 / 0.40);
  --ad-stripe-1:  oklch(0.155 0.018 262);
  --ad-stripe-2:  oklch(0.180 0.015 262);
  --ad-border:    oklch(0.280 0.020 262);
  --ad-text:      oklch(0.380 0.020 262);
  --dot:          oklch(0.500 0.020 262 / 0.25);
  --blob-op:      1;
}

html {
  --accent:         var(--blue);
  --accent-a10:     var(--blue-a10);
  --accent-a15:     var(--blue-a15);
  --accent-a20:     var(--blue-a20);
  --accent-a35:     var(--blue-a35);
  --accent-a50:     var(--blue-a50);
  --accent-alt:     var(--violet);
  --accent-alt-a10: var(--violet-a10);
  --accent-alt-a20: var(--violet-a20);
  --r:              12px;
}
html[data-accent="violet"] {
  --accent:         var(--violet);
  --accent-a10:     var(--violet-a10);
  --accent-a15:     var(--violet-a15);
  --accent-a20:     var(--violet-a20);
  --accent-a35:     var(--violet-a35);
  --accent-a50:     var(--violet-a50);
  --accent-alt:     var(--blue);
  --accent-alt-a10: var(--blue-a10);
  --accent-alt-a20: var(--blue-a20);
}

/* ═══════════════════════════════════════════
   BASE
═══════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: 'Plus Jakarta Sans', sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 28px 28px;
}
* { position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 99px; }

@keyframes fadeUp { from { opacity:0; transform:translateY(14px); } to { opacity:1; transform:none; } }
@keyframes shimmer { 0%{background-position:-200% center} 100%{background-position:200% center} }
@keyframes pulse  { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
@keyframes spin   { to { transform: rotate(360deg); } }

.fade-up   { animation: fadeUp .45s ease both; }
.fade-up-1 { animation-delay: .06s; }
.fade-up-2 { animation-delay: .12s; }

/* ═══════════════════════════════════════════
   AD LEADERBOARD
═══════════════════════════════════════════ */
.ad-board {
  padding: 14px clamp(16px,4vw,56px);
  display: flex; justify-content: center;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.ad-board__slot {
  width: 100%; max-width: 728px; height: 90px; border-radius: 8px;
  background: repeating-linear-gradient(45deg,
    var(--ad-stripe-1), var(--ad-stripe-1) 12px,
    var(--ad-stripe-2) 12px, var(--ad-stripe-2) 24px);
  border: 1px dashed var(--ad-border);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  position: relative;
}
.ad-board__text { font-family: 'DM Mono',monospace; font-size: 10px; color: var(--ad-text); letter-spacing: .12em; text-transform: uppercase; }
.ad-board__tag  { position: absolute; top: 5px; right: 8px; font-family: 'DM Mono',monospace; font-size: 9px; color: var(--subtle); letter-spacing: .1em; }

/* ═══════════════════════════════════════════
   PAGE HEADER
═══════════════════════════════════════════ */
.page-header {
  padding: clamp(40px,6vw,72px) clamp(16px,4vw,56px) 0;
  max-width: 1200px; margin: 0 auto;
}
.page-header__breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--subtle); margin-bottom: 20px;
  font-family: 'DM Mono',monospace; letter-spacing: .02em;
}
.page-header__breadcrumb a { color: var(--accent); transition: opacity .15s; }
.page-header__breadcrumb a:hover { opacity: .75; }
.page-header__breadcrumb span { color: var(--border-2); }

.page-header__top { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: 12px; }
.page-header__badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-a10); border: 1px solid var(--accent-a20);
  border-radius: 99px; padding: 4px 12px;
  font-size: 11px; font-weight: 700; color: var(--accent);
  font-family: 'DM Mono',monospace; letter-spacing: .06em; margin-bottom: 14px;
}
.page-header__badge-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); animation: pulse 2s ease infinite; }

.page-header h1 {
  font-size: clamp(28px,5vw,52px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px;
}
.page-header h1 span {
  background: linear-gradient(95deg, var(--accent) 0%, var(--accent-alt) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}
.page-header__desc { font-size: clamp(14px,2vw,17px); color: var(--muted); line-height: 1.75; max-width: 600px; margin-bottom: 28px; }
.page-header__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 40px; }
.page-header__meta-item { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--subtle); font-family: 'DM Mono',monospace; }
.page-header__meta-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-2); }

/* ═══════════════════════════════════════════
   MAIN LAYOUT
═══════════════════════════════════════════ */
.tool-layout {
  max-width: 1200px; margin: 0 auto;
  padding: 32px clamp(16px,4vw,56px) 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-sidebar { order: -1; }
}

/* ═══════════════════════════════════════════
   FORM CARD
═══════════════════════════════════════════ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card__head {
  padding: 20px 24px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
}
.card__head-icon {
  width: 36px; height: 36px; border-radius: 9px;
  background: var(--accent-a10); display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.card__head-title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.card__head-sub   { font-size: 12px; color: var(--muted); margin-top: 2px; }
.card__body { padding: 24px; }

/* ── Form fields ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid--full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field__label {
  font-size: 13px; font-weight: 600; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.field__hint   { font-size: 11.5px; font-weight: 400; color: var(--subtle); font-family: 'DM Mono',monospace; line-height: 1.5; }
.field__counter {
  font-size: 11px; font-weight: 600; color: var(--subtle);
  font-family: 'DM Mono',monospace; letter-spacing: .02em;
  padding: 2px 8px; border-radius: 99px;
  background: var(--surface-2); border: 1px solid var(--border);
  transition: color .2s, background .2s, border-color .2s;
  white-space: nowrap;
}
.field__counter.good {
  color: var(--green);
  background: var(--green-bg);
  border-color: var(--green-border);
}
.field__counter.warn {
  color: var(--gold);
  background: oklch(0.95 0.06 75 / 0.5);
  border-color: oklch(0.78 0.10 75 / 0.45);
}
html[data-theme="dark"] .field__counter.warn {
  background: oklch(0.55 0.16 75 / 0.18);
  border-color: oklch(0.65 0.14 75 / 0.30);
}
.field__counter.over {
  color: oklch(0.55 0.20 25);
  background: oklch(0.95 0.07 25 / 0.55);
  border-color: oklch(0.78 0.12 25 / 0.40);
}
html[data-theme="dark"] .field__counter.over {
  color: oklch(0.72 0.20 25);
  background: oklch(0.55 0.18 25 / 0.18);
  border-color: oklch(0.65 0.16 25 / 0.30);
}

/* Counter progress bar under labelled fields */
.field__bar {
  position: relative;
  height: 3px;
  background: var(--surface-3);
  border-radius: 99px;
  overflow: hidden;
  margin-top: -2px;
}
.field__bar-fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 0%;
  background: var(--subtle);
  border-radius: 99px;
  transition: width .25s ease, background .2s;
}
.field__bar-fill.good { background: var(--green); }
.field__bar-fill.warn { background: var(--gold); }
.field__bar-fill.over { background: oklch(0.60 0.20 25); }

.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text);
  font-size: 14px; font-family: 'Plus Jakarta Sans',sans-serif;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
  outline: none; resize: vertical;
}
.field input:hover, .field textarea:hover, .field select:hover {
  border-color: var(--border-2);
  background: var(--surface);
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-a15), 0 1px 2px var(--accent-a10);
  background: var(--surface);
}
.field input::placeholder, .field textarea::placeholder { color: var(--subtle); opacity: .85; }
.field textarea { min-height: 88px; line-height: 1.6; }

/* Auto-fill indicator on OG fields */
.field--linked input::placeholder,
.field--linked textarea::placeholder {
  font-style: italic;
  color: var(--accent);
  opacity: .55;
}

/* Open Graph / Twitter toggle tabs */
.tab-strip {
  display: flex; gap: 4px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 4px; margin-bottom: 20px;
}
.tab-btn {
  flex: 1; padding: 8px 12px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  transition: all .15s; text-align: center;
}
.tab-btn.active {
  background: var(--surface); color: var(--accent);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Checkbox rows */
.check-group { display: flex; flex-direction: column; gap: 10px; }
.check-item  { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.check-item input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.check-item__label { font-size: 13.5px; color: var(--muted); }
.check-item__label strong { color: var(--text); }

/* Generate button — primary CTA */
.btn-generate-wrap {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px dashed var(--border);
}
.btn-generate {
  width: 100%; padding: 17px 22px; border-radius: 14px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-alt) 100%);
  background-size: 200% 100%;
  color: #fff;
  box-shadow:
    0 6px 24px var(--accent-a35),
    inset 0 1px 0 oklch(1 0 0 / 0.18);
  transition: transform .2s ease, box-shadow .2s ease, background-position .4s ease;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
  overflow: hidden;
}
.btn-generate::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg,
    transparent 30%, oklch(1 0 0 / 0.20) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform .7s ease;
}
.btn-generate:hover {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 12px 32px var(--accent-a50), inset 0 1px 0 oklch(1 0 0 / 0.22);
}
.btn-generate:hover::before { transform: translateX(100%); }
.btn-generate:active { transform: translateY(0); }
.btn-generate.loading .btn-icon { animation: spin .8s linear infinite; }
.btn-generate__kbd {
  margin-left: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10.5px; font-weight: 600;
  padding: 3px 8px; border-radius: 6px;
  background: oklch(1 0 0 / 0.18);
  color: oklch(1 0 0 / 0.92);
  letter-spacing: .04em;
}

/* Form section header — visual hierarchy between groups */
.form-section-head {
  display: flex; align-items: center; gap: 10px;
  margin: 28px 0 16px;
}
.form-section-head__icon {
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-a10); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.form-section-head__title {
  font-weight: 700; font-size: 14px; letter-spacing: -.01em;
  flex: 1;
}
.form-section-head__hint {
  font-family: 'DM Mono', monospace; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--subtle);
}

/* ═══════════════════════════════════════════
   OUTPUT SECTION
═══════════════════════════════════════════ */
.output-card { margin-top: 20px; }
.output-card.hidden { display: none; }
.output-card:not(.hidden) {
  animation: outputSlideUp .5s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes outputSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* Inline ad between form and output */
.ad-inline {
  margin-top: 20px;
  animation: fadeUp .45s ease both;
}
.ad-inline__slot {
  width: 100%;
  min-height: 90px;
  padding: 16px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg,
    var(--ad-stripe-1), var(--ad-stripe-1) 12px,
    var(--ad-stripe-2) 12px, var(--ad-stripe-2) 24px);
  border: 1px dashed var(--ad-border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
}
.ad-inline__text {
  font-family: 'DM Mono', monospace; font-size: 11px;
  color: var(--ad-text); letter-spacing: .12em; text-transform: uppercase;
}
.ad-inline__tag {
  position: absolute; top: 6px; right: 10px;
  font-family: 'DM Mono', monospace; font-size: 9px;
  color: var(--subtle); letter-spacing: .1em;
}

.output-tabs { display: flex; gap: 4px; padding: 18px 24px 0; }
.out-tab {
  padding: 9px 16px; border-radius: 8px 8px 0 0;
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: all .2s ease; border: 1px solid transparent;
  border-bottom: none; background: transparent;
  display: inline-flex; align-items: center; gap: 6px;
}
.out-tab:hover { color: var(--text); }
.out-tab.active {
  background: var(--surface); color: var(--accent);
  border-color: var(--border); border-bottom-color: var(--surface);
  margin-bottom: -1px;
}

.output-body { padding: 20px 24px 24px; border-top: 1px solid var(--border); }

/* ── Google Search Preview — feature card ── */
.serp-feature {
  margin: 20px 24px 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  animation: fadeUp .5s ease both;
  animation-delay: .1s;
}
.serp-feature__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; gap: 10px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  border-bottom: 1px solid var(--border);
}
.serp-feature__head-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.serp-feature__icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
.serp-feature__eyebrow {
  font-size: 12.5px; font-weight: 700; color: var(--text);
  letter-spacing: -.01em;
}
.serp-feature__sub {
  font-size: 11px; color: var(--subtle);
  font-family: 'DM Mono', monospace; margin-top: 1px;
}
.serp-feature__badge {
  font-family: 'DM Mono', monospace; font-size: 10px; font-weight: 700;
  letter-spacing: .12em; color: var(--green);
  background: var(--green-bg); border: 1px solid var(--green-border);
  padding: 3px 8px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 5px;
  flex-shrink: 0;
}
.serp-feature__badge::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--green); animation: pulse 2s ease infinite;
}
.serp-feature__body { padding: 18px 20px; background: var(--surface); }
.serp-feature__site {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.serp-feature__favicon {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px var(--accent-a35);
}
.serp-feature__crumbs {
  display: flex; align-items: center; gap: 5px;
  font-size: 12.5px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text);
  flex-wrap: wrap;
}
.serp-feature__domain { font-weight: 500; }
.serp-feature__crumb-sep { color: var(--subtle); }
.serp-feature__path { color: var(--muted); }
.serp-feature__title {
  font-size: 20px; line-height: 1.3;
  color: oklch(0.40 0.20 252);
  font-weight: 400;
  margin-bottom: 4px;
  letter-spacing: -.005em;
  cursor: pointer;
}
html[data-theme="dark"] .serp-feature__title { color: oklch(0.75 0.18 252); }
.serp-feature__title:hover { text-decoration: underline; }
.serp-feature__desc {
  font-size: 13.5px; color: var(--muted); line-height: 1.6;
}

/* Code box — improved readability */
.code-box {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: box-shadow .2s;
}
.code-box:hover { box-shadow: var(--shadow-sm); }
.code-box__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--surface-3); gap: 12px; flex-wrap: wrap;
}
.code-box__lang-group { display: flex; align-items: center; gap: 12px; }
.code-box__dots { display: inline-flex; gap: 5px; }
.code-box__dots i {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--border-2); display: block;
}
.code-box__dots i:nth-child(1) { background: oklch(0.72 0.16 25); }
.code-box__dots i:nth-child(2) { background: oklch(0.78 0.14 85); }
.code-box__dots i:nth-child(3) { background: oklch(0.70 0.16 145); }
html[data-theme="dark"] .code-box__dots i:nth-child(1) { background: oklch(0.60 0.18 25); }
html[data-theme="dark"] .code-box__dots i:nth-child(2) { background: oklch(0.68 0.16 85); }
html[data-theme="dark"] .code-box__dots i:nth-child(3) { background: oklch(0.62 0.18 145); }
.code-box__lang {
  font-family: 'DM Mono',monospace; font-size: 11px;
  color: var(--muted); letter-spacing: .04em;
}
.code-box__actions { display: flex; gap: 8px; }
.btn-copy, .btn-download {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--border); color: var(--muted);
  background: var(--surface); transition: all .2s ease;
}
.btn-copy:hover, .btn-download:hover {
  border-color: var(--accent-a35); color: var(--accent);
  background: var(--accent-a10); transform: translateY(-1px);
}
.btn-copy.copied {
  border-color: var(--green-border); color: var(--green);
  background: var(--green-bg); transform: none;
}
.code-box__pre {
  padding: 22px 24px; overflow-x: auto;
  font-family: 'DM Mono',monospace; font-size: 13px;
  line-height: 2; color: var(--text); white-space: pre-wrap; word-break: break-all;
  max-height: 420px; overflow-y: auto;
  tab-size: 2;
}
.code-box__pre .tag-name  { color: var(--blue); font-weight: 500; }
.code-box__pre .attr-name { color: var(--violet); }
.code-box__pre .attr-val  { color: var(--green); }

/* How-to steps */
.howto {
  margin-top: 22px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
}
.howto__head {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.howto__icon {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-a10); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.howto__title {
  font-weight: 700; font-size: 14.5px; letter-spacing: -.01em;
}
.howto__steps {
  list-style: none; counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .howto__steps { grid-template-columns: 1fr; } }
.howto__step {
  display: flex; gap: 12px;
  padding: 14px 14px 14px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.howto__step:hover {
  border-color: var(--accent-a20);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.howto__num {
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-alt));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
  font-family: 'DM Mono', monospace;
  box-shadow: 0 2px 8px var(--accent-a35);
}
.howto__body { flex: 1; min-width: 0; }
.howto__step-title {
  font-weight: 700; font-size: 13px; letter-spacing: -.01em;
  margin-bottom: 4px;
}
.howto__step-desc {
  font-size: 12px; color: var(--muted); line-height: 1.55;
}
.howto__step-desc code,
.howto__step-desc kbd {
  font-family: 'DM Mono', monospace; font-size: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 1px 5px; border-radius: 4px; color: var(--accent);
}
.howto__step-desc kbd { color: var(--text); font-weight: 600; }

/* Toast (copy success) */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 24px);
  z-index: 300;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px;
  background: var(--surface);
  border: 1px solid var(--green-border);
  border-radius: 99px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,.8,.2,1);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast__icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  animation: toastTick .4s ease both;
}
@keyframes toastTick {
  0%   { transform: scale(.4); }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.toast__title { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.toast__sub   { font-size: 11.5px; color: var(--muted); font-family: 'DM Mono', monospace; margin-top: 1px; }

/* Preview panel (social share card) */
.preview-panel { display: flex; flex-direction: column; gap: 14px; }
.preview-block {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
}
.preview-block__label {
  padding: 10px 14px; background: var(--surface-3);
  border-bottom: 1px solid var(--border);
  font-family: 'DM Mono',monospace; font-size: 10.5px;
  color: var(--subtle); letter-spacing: .1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
/* Social card preview */
.social-card {
  background: var(--surface-2); border-radius: 0 0 10px 10px;
  overflow: hidden;
}
.social-card__img {
  height: 130px; background: repeating-linear-gradient(135deg,
    var(--ad-stripe-1), var(--ad-stripe-1) 12px, var(--ad-stripe-2) 12px, var(--ad-stripe-2) 24px);
  display: flex; align-items: center; justify-content: center;
  font-family: 'DM Mono',monospace; font-size: 10px; color: var(--subtle);
}
.social-card__body { padding: 14px 16px; background: var(--surface); border-top: 1px solid var(--border); }
.social-card__domain { font-size: 11px; color: var(--subtle); text-transform: uppercase; font-family: 'DM Mono',monospace; margin-bottom: 4px; }
.social-card__title  { font-size: 15px; font-weight: 700; margin-bottom: 4px; line-height: 1.35; }
.social-card__desc   { font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* Score widget */
.score-strip {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 16px;
}
.score-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 9px; padding: 12px 14px; text-align: center;
}
.score-item__num { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.score-item__num.good { color: var(--green); }
.score-item__num.warn { color: var(--gold); }
.score-item__num.bad  { color: oklch(0.55 0.20 25); }
.score-item__label { font-size: 11px; color: var(--subtle); margin-top: 3px; font-family: 'DM Mono',monospace; }

/* ═══════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════ */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden;
}
.sidebar-card__head {
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 13px; letter-spacing: -.01em;
  display: flex; align-items: center; gap: 8px;
}
.sidebar-card__body { padding: 16px 18px; }

/* Tips list */
.tips-list { display: flex; flex-direction: column; gap: 12px; }
.tip-item  { display: flex; align-items: flex-start; gap: 10px; }
.tip-item__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0; margin-top: 6px;
}
.tip-item__text { font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.tip-item__text strong { color: var(--text); }

/* Sidebar — Try Related Tools list */
.tools-list { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.tools-list__item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  transition: background .2s ease, transform .2s ease;
  position: relative;
}
.tools-list__item:hover {
  background: var(--accent-a10);
  transform: translateX(2px);
}
.tools-list__item-icon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
  transition: background .2s, border-color .2s, transform .2s;
}
.tools-list__item:hover .tools-list__item-icon {
  background: var(--surface);
  border-color: var(--accent-a35);
  transform: rotate(-4deg);
}
.tools-list__item--violet .tools-list__item-icon { color: var(--violet); }
.tools-list__item-body { flex: 1; min-width: 0; }
.tools-list__item-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: -.01em; line-height: 1.3;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.tools-list__item-desc {
  font-size: 11.5px; color: var(--subtle);
  margin-top: 2px; line-height: 1.35;
}
.tools-list__arrow {
  color: var(--subtle);
  flex-shrink: 0;
  transition: transform .2s, color .2s, opacity .2s;
  opacity: .5;
}
.tools-list__item:hover .tools-list__arrow {
  transform: translateX(3px);
  color: var(--accent);
  opacity: 1;
}
.tools-list__chip {
  font-family: 'DM Mono', monospace;
  font-size: 9px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 99px;
}
.tools-list__chip--new  { color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border); }
.tools-list__chip--hot  { color: oklch(0.55 0.20 25); background: oklch(0.95 0.07 25 / 0.55); border: 1px solid oklch(0.78 0.12 25 / 0.40); }
html[data-theme="dark"] .tools-list__chip--hot { color: oklch(0.72 0.20 25); background: oklch(0.55 0.18 25 / 0.18); border-color: oklch(0.65 0.16 25 / 0.30); }

.sidebar-card__foot {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.sidebar-card__foot-link {
  font-size: 12px; font-weight: 600; color: var(--accent);
  display: flex; align-items: center; justify-content: space-between;
  gap: 6px; transition: opacity .2s;
}
.sidebar-card__foot-link:hover { opacity: .75; }

/* Middle ad in sidebar */
.sidebar-ad {
  border: 1px dashed var(--ad-border); border-radius: var(--r);
  overflow: hidden; background: var(--surface);
}
.sidebar-ad__slot {
  height: 260px;
  background: repeating-linear-gradient(45deg,
    var(--ad-stripe-1), var(--ad-stripe-1) 10px,
    var(--ad-stripe-2) 10px, var(--ad-stripe-2) 20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.sidebar-ad__text { font-family: 'DM Mono',monospace; font-size: 10px; color: var(--ad-text); letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.8; }
.sidebar-ad__label { font-family: 'DM Mono',monospace; font-size: 9px; color: var(--subtle); padding: 6px 10px; text-align: center; border-top: 1px solid var(--ad-border); }

/* ═══════════════════════════════════════════
   RELATED TOOLS — modern SaaS cards
═══════════════════════════════════════════ */
.related { padding: 64px clamp(16px,4vw,56px); background: var(--surface-2); border-top: 1px solid var(--border); position: relative; }
.related__inner { max-width: 1200px; margin: 0 auto; }
.related__header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.related__eyebrow {
  font-family: 'DM Mono',monospace; font-size: 10.5px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  margin-bottom: 8px;
}
.related__eyebrow::before {
  content: ''; width: 18px; height: 1px; background: var(--accent);
}
.related__title { font-size: clamp(22px,3vw,32px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.related__sub { font-size: 14px; color: var(--muted); margin-top: 6px; max-width: 480px; line-height: 1.55; }
.related__link {
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 16px; border-radius: 99px;
  border: 1px solid var(--accent-a20); background: var(--accent-a10);
  transition: all .2s ease;
}
.related__link:hover { background: var(--accent-a20); border-color: var(--accent-a35); transform: translateY(-1px); }
.related__link svg { transition: transform .2s; }
.related__link:hover svg { transform: translateX(3px); }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
.related-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
  isolation: isolate;
}
.related-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 100% 0%, var(--accent-a10), transparent 55%);
  opacity: 0;
  transition: opacity .3s ease;
  z-index: -1;
  pointer-events: none;
}
.related-card:hover {
  border-color: var(--accent-a35);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.related-card:hover::before { opacity: 1; }
.related-card--violet:hover { border-color: var(--violet-a35); }
.related-card--violet::before {
  background: radial-gradient(120% 80% at 100% 0%, var(--violet-a10), transparent 55%);
}

.related-card__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; margin-bottom: 16px;
}
.related-card__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-a10) 0%, var(--accent-a20) 100%);
  border: 1px solid var(--accent-a20);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform .3s ease, border-color .3s ease;
  box-shadow: 0 4px 12px var(--accent-a10);
}
.related-card:hover .related-card__icon {
  transform: rotate(-6deg) scale(1.05);
  border-color: var(--accent-a35);
}
.related-card--violet .related-card__icon {
  background: linear-gradient(135deg, var(--violet-a10) 0%, var(--violet-a20) 100%);
  border-color: var(--violet-a20);
  color: var(--violet);
  box-shadow: 0 4px 12px var(--violet-a10);
}
.related-card--violet:hover .related-card__icon { border-color: var(--violet-a35); }

.related-card__badge {
  font-family: 'DM Mono', monospace;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 4px;
  flex-shrink: 0;
}
.related-card__badge--popular {
  color: oklch(0.55 0.20 25);
  background: oklch(0.95 0.07 25 / 0.55);
  border: 1px solid oklch(0.78 0.12 25 / 0.40);
}
html[data-theme="dark"] .related-card__badge--popular {
  color: oklch(0.72 0.20 25); background: oklch(0.55 0.18 25 / 0.18);
  border-color: oklch(0.65 0.16 25 / 0.30);
}
.related-card__badge--new {
  color: var(--green); background: var(--green-bg); border: 1px solid var(--green-border);
}
.related-card__badge--updated {
  color: var(--gold);
  background: oklch(0.95 0.06 75 / 0.5);
  border: 1px solid oklch(0.78 0.10 75 / 0.45);
}
html[data-theme="dark"] .related-card__badge--updated {
  background: oklch(0.55 0.16 75 / 0.18);
  border-color: oklch(0.65 0.14 75 / 0.30);
}
.related-card__badge--free {
  color: var(--accent);
  background: var(--accent-a10);
  border: 1px solid var(--accent-a20);
}
.related-card__badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
  animation: pulse 2s ease infinite;
}

.related-card__name {
  font-weight: 700; font-size: 15.5px; letter-spacing: -.015em;
  line-height: 1.25; margin-bottom: 6px;
}
.related-card__desc {
  font-size: 12.5px; color: var(--muted); line-height: 1.55;
  flex: 1; margin-bottom: 14px;
}
.related-card__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: border-color .2s;
}
.related-card:hover .related-card__foot { border-color: var(--accent-a20); }
.related-card--violet:hover .related-card__foot { border-color: var(--violet-a20); }
.related-card__meta {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px; color: var(--subtle);
  letter-spacing: .04em;
}
.related-card__cta {
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap .2s, color .2s;
}
.related-card--violet .related-card__cta { color: var(--violet); }
.related-card:hover .related-card__cta { gap: 7px; }

/* ═══════════════════════════════════════════
   H1 SUB / INFO SECTION / RESPONSIVE AD
═══════════════════════════════════════════ */
.page-header__h1-sub {
  display: inline-block;
  font-size: 0.55em;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  background: none;
  vertical-align: middle;
  margin-left: 4px;
}

.info-section {
  padding: 0 clamp(16px,4vw,56px);
  max-width: 1200px;
  margin: 0 auto;
}
.info-section__inner { width: 100%; }

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: fadeUp .45s ease both;
  animation-delay: .15s;
}
.info-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.info-card__icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-a10);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-card__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--subtle);
  margin-bottom: 3px;
}
.info-card__title {
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.info-card__body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.info-card__body p {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 78ch;
}
.info-card__body p strong { color: var(--text); font-weight: 600; }
.info-card__body code {
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--accent);
}

.ad-responsive {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 0 clamp(16px,4vw,56px);
}
.ad-responsive__slot {
  width: 100%;
  min-height: 100px;
  padding: 18px 16px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg,
    var(--ad-stripe-1), var(--ad-stripe-1) 12px,
    var(--ad-stripe-2) 12px, var(--ad-stripe-2) 24px);
  border: 1px dashed var(--ad-border);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative;
}
.ad-responsive__text {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ad-text);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ad-responsive__tag {
  position: absolute;
  top: 6px; right: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  color: var(--subtle);
  letter-spacing: .1em;
}
@media (min-width: 768px) {
  .ad-responsive__slot { min-height: 120px; }
}

/* ═══════════════════════════════════════════
   FAQ
═══════════════════════════════════════════ */
.faq {
  padding: 72px clamp(16px,4vw,56px) 64px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.faq__inner {
  max-width: 820px;
  margin: 0 auto;
}
.faq__header {
  text-align: center;
  margin-bottom: 40px;
}
.faq__eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 99px;
  background: var(--accent-a10);
  border: 1px solid var(--accent-a20);
  margin-bottom: 16px;
}
.faq__title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}
.faq__sub {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.faq-item:hover {
  border-color: var(--accent-a20);
}
.faq-item[open] {
  border-color: var(--accent-a35);
  box-shadow: var(--shadow-md);
}

/* Remove native disclosure marker across browsers */
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary { list-style: none; }

.faq-item__q {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  cursor: pointer;
  user-select: none;
  outline: none;
  transition: background .2s ease;
}
.faq-item__q:hover { background: var(--surface-2); }
.faq-item__q:focus-visible {
  background: var(--accent-a10);
  box-shadow: inset 0 0 0 2px var(--accent-a35);
}

.faq-item__num {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em;
  color: var(--subtle);
  padding: 4px 9px; border-radius: 7px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
  transition: color .25s, background .25s, border-color .25s;
}
.faq-item[open] .faq-item__num {
  color: var(--accent);
  background: var(--accent-a10);
  border-color: var(--accent-a20);
}

.faq-item__q-text {
  flex: 1;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--text);
  line-height: 1.4;
}

.faq-item__chevron {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s, color .25s, border-color .25s;
}
.faq-item:hover .faq-item__chevron {
  background: var(--surface);
  color: var(--text);
}
.faq-item[open] .faq-item__chevron {
  transform: rotate(180deg);
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Answer wrap — smooth grid-rows animation */
.faq-item__a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1);
}
.faq-item[open] .faq-item__a-wrap {
  grid-template-rows: 1fr;
}
.faq-item__a {
  overflow: hidden;
  min-height: 0;
}
.faq-item__a > p {
  padding: 0 22px 22px;
  padding-left: 70px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 70ch;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .3s ease .05s, transform .35s cubic-bezier(.2,.8,.2,1) .05s;
}
.faq-item[open] .faq-item__a > p {
  opacity: 1;
  transform: none;
}
.faq-item__a p code {
  font-family: 'DM Mono', monospace;
  font-size: 12.5px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 5px;
  color: var(--accent);
}
.faq-item__a p strong { color: var(--text); font-weight: 600; }

@media (max-width: 600px) {
  .faq { padding: 56px clamp(16px,4vw,24px) 48px; }
  .faq__header { margin-bottom: 28px; }
  .faq-item__q { padding: 16px 16px; gap: 12px; }
  .faq-item__q-text { font-size: 14.5px; }
  .faq-item__num { display: none; }
  .faq-item__a > p { padding: 0 16px 18px; font-size: 14px; }
}

/* Foot CTA */
.faq__foot {
  margin-top: 32px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 99px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  font-size: 13.5px;
  color: var(--muted);
}
.faq__foot-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-a10); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.faq__foot-link {
  color: var(--accent);
  font-weight: 700;
  transition: opacity .2s;
}
.faq__foot-link:hover { opacity: .75; }
@media (max-width: 500px) {
  .faq__foot { border-radius: 14px; flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.section-divider { height: 1px; background: var(--border); }
.mt-4  { margin-top: 4px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.hidden { display: none !important; }
