/* =============================================================
   NexTools — styles.css
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg: #060714;
  --bg-elev: #0b0d21;
  --bg-elev-2: #11142c;
  --surface: rgba(255,255,255,0.045);
  --surface-strong: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.09);
  --border-strong: rgba(255,255,255,0.16);
  --text: #eef0ff;
  --text-dim: #a7acd6;
  --text-faint: #6b7099;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --accent-3: #34e0a1;
  --danger: #fb7185;
  --warn: #fbbf24;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-soft: linear-gradient(120deg, rgba(34,211,238,0.16), rgba(168,85,247,0.16));
  --shadow-glow: 0 0 0 1px rgba(34,211,238,0.15), 0 20px 60px -20px rgba(34,211,238,0.25);
  --shadow-card: 0 10px 40px -14px rgba(0,0,0,0.55);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--sans);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

[data-theme="light"] {
  --bg: #f5f6fc;
  --bg-elev: #ffffff;
  --bg-elev-2: #eef0fb;
  --surface: rgba(10,12,40,0.035);
  --surface-strong: rgba(10,12,40,0.06);
  --border: rgba(10,12,40,0.09);
  --border-strong: rgba(10,12,40,0.16);
  --text: #12142c;
  --text-dim: #4a4f78;
  --text-faint: #82869e;
  --shadow-glow: 0 0 0 1px rgba(34,211,238,0.25), 0 20px 60px -24px rgba(34,211,238,0.35);
  --shadow-card: 0 10px 30px -16px rgba(20,20,50,0.18);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f5f6fc;
    --bg-elev: #ffffff;
    --bg-elev-2: #eef0fb;
    --surface: rgba(10,12,40,0.035);
    --surface-strong: rgba(10,12,40,0.06);
    --border: rgba(10,12,40,0.09);
    --border-strong: rgba(10,12,40,0.16);
    --text: #12142c;
    --text-dim: #4a4f78;
    --text-faint: #82869e;
    --shadow-glow: 0 0 0 1px rgba(34,211,238,0.25), 0 20px 60px -24px rgba(34,211,238,0.35);
    --shadow-card: 0 10px 30px -16px rgba(20,20,50,0.18);
  }
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; tab-size: 2; overflow-x: clip; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); font-weight: 600; }
ul, ol { padding: 0; list-style: none; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #04121a; }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .7rem 1.1rem; background: var(--accent); color: #04121a;
  border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.section-head { max-width: 640px; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--surface); border: 1px solid var(--border);
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--accent); }
.text-dim { color: var(--text-dim); }
.text-center { text-align: center; margin-inline: auto; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { height: 1px; background: var(--border); border: 0; margin-block: 0; }

/* background grid + glow, used behind hero/sections */
.bg-grid {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 85%);
  opacity: .55;
}
.bg-glow {
  position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  filter: blur(90px); opacity: .55;
}

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.lede { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--text-dim); max-width: 62ch; }

.seo-copy h2 { margin-top: 2.4rem; margin-bottom: .9rem; }
.seo-copy h3 { margin-top: 1.6rem; margin-bottom: .6rem; color: var(--text); }
.seo-copy p { color: var(--text-dim); margin-bottom: 1rem; max-width: 74ch; }
.seo-copy ul, .seo-copy ol { color: var(--text-dim); margin-bottom: 1rem; padding-left: 1.3rem; }
.seo-copy li { list-style: disc; margin-bottom: .4rem; }
.seo-copy ol li { list-style: decimal; }
.seo-copy strong { color: var(--text); }

/* =============================================================
   5. Components
   ============================================================= */

/* --- buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-sm); font-weight: 600; font-size: .96rem;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .25s var(--ease-out), opacity .2s;
  white-space: nowrap;
}
.btn svg { width: 1.05em; height: 1.05em; flex: none; }
.btn-primary { background: var(--grad); color: #04121a; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-strong); border-color: var(--border-strong); }
.btn-sm { padding: .55rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border);
  transition: background .2s, border-color .2s;
}
.btn-icon:hover { background: var(--surface-strong); border-color: var(--border-strong); }

/* --- card --- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
}
@supports not (backdrop-filter: blur(1px)) { .card { background: var(--bg-elev); } }

/* --- header/nav --- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: .85rem;
}
.brand { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #04121a; box-shadow: var(--shadow-glow); flex: none;
}
.brand-mark svg { width: 19px; height: 19px; }
.nav-links { display: none; gap: .3rem; align-items: center; }
.nav-links a {
  padding: .55rem .85rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 500; color: var(--text-dim);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-toggle { display: inline-flex; }
@media (min-width: 960px) { .nav-links { display: flex; } .nav-toggle-mobile { display: none; } }

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="dark"]) .theme-toggle .icon-moon { display: none; }
}

/* mobile menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 200; background: color-mix(in srgb, var(--bg) 96%, transparent);
  padding: 1.25rem;
}
.mobile-menu.is-open { display: block; }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.mobile-menu a { display: block; padding: 1rem 0; font-size: 1.3rem; font-family: var(--display); border-bottom: 1px solid var(--border); }

/* --- tool nav pills (used on hub) --- */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, 1fr); } }
.tool-card-link {
  display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.tool-card-link::before {
  content: ""; position: absolute; inset: 0; opacity: 0; background: var(--grad-soft);
  transition: opacity .3s var(--ease-out);
}
.tool-card-link:hover::before { opacity: 1; }
.tool-card-link:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.tool-card-link { transition: transform .3s var(--ease-out), border-color .3s var(--ease-out); }
.tool-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm); background: var(--grad-soft);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent); position: relative; z-index: 1;
}
.tool-icon svg { width: 26px; height: 26px; }
.tool-card-link h3 { position: relative; z-index: 1; }
.tool-card-link p { position: relative; z-index: 1; color: var(--text-dim); font-size: .92rem; }
.tool-card-link .go { position: relative; z-index: 1; margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }

.qr-grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 860px) { .qr-grid { grid-template-columns: 1.15fr .85fr; align-items: start; } }

/* --- tool card (the interactive machine) --- */
.tool-card {
  padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: var(--radius-lg); position: relative;
}
.tool-card-top { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.tool-tabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.tool-tab {
  padding: .55rem 1rem; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--text-dim);
  background: var(--surface); border: 1px solid var(--border); transition: all .2s;
}
.tool-tab[aria-selected="true"] { color: #04121a; background: var(--grad); border-color: transparent; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .85rem;
  text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; border-radius: var(--radius);
  border: 1.5px dashed var(--border-strong); background: var(--surface); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-dragover { border-color: var(--accent); background: var(--grad-soft); }
.dropzone-icon {
  width: 58px; height: 58px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--accent);
}
.dropzone-icon svg { width: 28px; height: 28px; }
.dropzone strong { font-size: 1.05rem; }
.dropzone .hint { color: var(--text-faint); font-size: .84rem; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* file rows (batch) */
.file-list { display: flex; flex-direction: column; gap: .6rem; margin-top: 1.25rem; }
.file-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .9rem;
  padding: .8rem 1rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border);
}
.file-row .thumb { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; background: var(--bg-elev-2); flex: none; }
.file-row .meta { min-width: 0; }
.file-row .meta .name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-row .meta .sub { font-size: .78rem; color: var(--text-faint); }
.file-row .progress-track { height: 4px; border-radius: 999px; background: var(--border); margin-top: .4rem; overflow: hidden; }
.file-row .progress-fill { height: 100%; background: var(--grad); width: 0%; transition: width .25s var(--ease-out); }
.file-row .status { font-size: .78rem; font-weight: 600; color: var(--text-faint); text-align: right; white-space: nowrap; }
.file-row.is-done .status { color: var(--accent-3); }
.file-row.is-error .status { color: var(--danger); }
.file-row .row-actions { display: flex; gap: .4rem; }

/* generic progress bar (engine loading, ffmpeg, etc) */
.progress-block { margin-top: 1.25rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .82rem; color: var(--text-dim); margin-bottom: .45rem; }
.progress-track { height: 8px; border-radius: 999px; background: var(--surface-strong); overflow: hidden; border: 1px solid var(--border); }
.progress-fill { height: 100%; background: var(--grad); width: 0%; transition: width .3s var(--ease-out); border-radius: inherit; }
.progress-fill.is-indeterminate { width: 40% !important; animation: indet 1.3s var(--ease-soft) infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(340%); } }

/* result zone */
.result-block { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px dashed var(--border); display: none; }
[data-state="done"] .result-block { display: block; }
.result-summary { display: flex; align-items: center; gap: .85rem; margin-bottom: 1rem; flex-wrap: wrap; }
.result-badge {
  width: 44px; height: 44px; border-radius: 50%; background: rgba(52,224,161,0.15); color: var(--accent-3);
  display: grid; place-items: center; flex: none;
}
.result-badge svg { width: 22px; height: 22px; }
.result-stat { font-family: var(--mono); font-size: .85rem; color: var(--text-dim); }
.result-stat strong { color: var(--accent-3); }
.reset-link { display: inline-block; margin-top: 1rem; font-size: .87rem; color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }
.reset-link:hover { color: var(--accent); }

/* error zone */
.error-block { display: none; margin-top: 1.25rem; padding: 1rem 1.15rem; border-radius: var(--radius-sm); background: rgba(251,113,133,0.1); border: 1px solid rgba(251,113,133,0.35); color: #ffd0d8; font-size: .9rem; }
[data-state="error"] .error-block { display: flex; gap: .6rem; align-items: flex-start; }

/* states visibility */
.tool-card [data-only] { display: none; }
.tool-card[data-state="idle"] [data-only~="idle"] { display: block; }
.tool-card[data-state="ready"] [data-only~="ready"] { display: block; }
.tool-card[data-state="loading-engine"] [data-only~="loading-engine"] { display: block; }
.tool-card[data-state="working"] [data-only~="working"] { display: block; }
.tool-card[data-state="done"] [data-only~="done"] { display: block; }
.tool-card[data-state="error"] [data-only~="error"] { display: block; }

/* form controls (QR, options rows) */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field label { font-size: .83rem; font-weight: 600; color: var(--text-dim); }
.field input[type="text"], .field input[type="url"], .field input[type="number"], .field input[type="password"], .field select, .field textarea {
  padding: .75rem .9rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); color: var(--text);
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 90px; font-family: var(--mono); font-size: .85rem; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); background: var(--surface-strong); }
.field-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row.cols-2 { grid-template-columns: 1fr 1fr; } .field-row.cols-3 { grid-template-columns: repeat(3,1fr); } }
.color-input { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.color-input input[type="color"] { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: none; padding: 0; }
.color-input span { font-family: var(--mono); font-size: .8rem; color: var(--text-dim); }

.chip-group { display: flex; gap: .5rem; flex-wrap: wrap; }
.chip { padding: .5rem .95rem; border-radius: 999px; font-size: .84rem; font-weight: 600; background: var(--surface); border: 1px solid var(--border); color: var(--text-dim); }
.chip[aria-pressed="true"] { color: #04121a; background: var(--grad); border-color: transparent; }
.chip:hover { border-color: var(--border-strong); }

.range-row { display: flex; align-items: center; gap: 1rem; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-val { font-family: var(--mono); font-size: .85rem; min-width: 3.2ch; text-align: right; color: var(--accent); }

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--surface-strong); border: 1px solid var(--border); flex: none; transition: background .2s; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch .knob { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-dim); transition: transform .2s var(--ease-out), background .2s; }
.switch input:checked ~ .knob { transform: translateX(18px); background: var(--accent); }
.switch input:checked ~ .knob, .switch:has(input:checked) { background: rgba(34,211,238,0.18); }

/* --- badges / privacy / limits --- */
.privacy-badge {
  display: flex; align-items: flex-start; gap: .7rem; margin-top: 1.5rem; padding: .9rem 1.05rem;
  border-radius: var(--radius-sm); background: rgba(52,224,161,0.08); border: 1px solid rgba(52,224,161,0.25); font-size: .87rem;
}
.privacy-badge svg { width: 20px; height: 20px; color: var(--accent-3); flex: none; margin-top: .1rem; }
.limits-note { margin-top: .6rem; font-size: .82rem; color: var(--text-faint); padding-left: 1.9rem; }

/* --- ad slots --- */
.ad-slot {
  display: flex; align-items: center; justify-content: center; min-height: 90px;
  border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); color: var(--text-faint);
  font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; font-family: var(--mono);
  background: var(--surface); margin-block: 1.75rem;
}
.ad-slot--leaderboard { min-height: 100px; }
.ad-slot--sidebar { min-height: 250px; }
.ad-slot--incontent { min-height: 120px; }

/* --- layout: tool + sidebar --- */
.tool-layout { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1080px) { .tool-layout { grid-template-columns: minmax(0,1fr) 300px; } }
.tool-layout aside { display: flex; flex-direction: column; gap: 1.25rem; }
@media (max-width: 1079px) { .tool-layout aside .ad-slot--sidebar { min-height: 100px; } }

/* --- steps --- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 1.5rem; border-radius: var(--radius); position: relative; }
.step-num {
  width: 40px; height: 40px; border-radius: 12px; background: var(--grad-soft); border: 1px solid var(--border);
  display: grid; place-items: center; font-family: var(--display); font-weight: 700; color: var(--accent); margin-bottom: 1rem;
}
.step h3 { margin-bottom: .4rem; }
.step p { color: var(--text-dim); font-size: .92rem; }

/* --- use cases --- */
.usecase-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .usecase-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .usecase-grid { grid-template-columns: repeat(4, 1fr); } }
.usecase-card { padding: 1.25rem; border-radius: var(--radius); display: flex; flex-direction: column; gap: .6rem; }
.usecase-card .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad-soft); display: grid; place-items: center; color: var(--accent); }
.usecase-card .ic svg { width: 20px; height: 20px; }
.usecase-card p { font-size: .87rem; color: var(--text-dim); }

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: .7rem; }
.faq-item { border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary {
  padding: 1.05rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-strong); display: grid; place-items: center; position: relative; }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-item summary .plus::before { width: 10px; height: 2px; }
.faq-item summary .plus::after { width: 2px; height: 10px; transition: transform .2s var(--ease-out); }
.faq-item[open] summary .plus::after { transform: rotate(90deg); }
.faq-item .faq-a { padding: 0 1.2rem 1.1rem; color: var(--text-dim); font-size: .92rem; }

/* --- more tools cross-link --- */
.more-tools { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 720px) { .more-tools { grid-template-columns: repeat(4,1fr); } }

/* --- footer --- */
.site-footer { border-top: 1px solid var(--border); padding-block: 3rem 2rem; margin-top: 2rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; margin-bottom: 2rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); } }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: .9rem; font-family: var(--sans); font-weight: 700; }
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: var(--text-dim); font-size: .9rem; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; padding-top: 1.75rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-faint); }
.footer-brand { color: var(--text-dim); font-size: .9rem; max-width: 40ch; }

/* --- legal page --- */
.legal-copy h2 { margin-top: 2rem; margin-bottom: .75rem; }
.legal-copy p, .legal-copy li { color: var(--text-dim); margin-bottom: .85rem; }
.legal-copy li { list-style: disc; margin-left: 1.3rem; }

/* =============================================================
   6. Sections
   ============================================================= */
.hero { padding-top: clamp(2.5rem, 6vw, 4rem); padding-bottom: clamp(2rem, 5vw, 3rem); position: relative; }
.hero-head { max-width: 780px; }
.hero-head .lede { margin-top: 1rem; }
.hero-badges { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); padding: .4rem .75rem; border-radius: 999px; }
.hero-badge svg { width: 14px; height: 14px; color: var(--accent-3); }

/* =============================================================
   7. Effects
   ============================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.pulse-dot { animation: pulseDot 2.4s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: 1; } 50% { opacity: .4; } }

@media (prefers-reduced-motion: reduce) {
  .bg-glow { animation: none !important; }
}
.bg-glow.animated { animation: float 14s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-18px, 22px); } }

/* copy feedback */
.copied-flash { color: var(--accent-3) !important; }

/* =============================================================
   8. Responsive breakpoints reference (mobile-first)
   540 / 720 / 960 / 1280 / 1600
   ============================================================= */

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .bg-glow { filter: blur(90px); }
}
