/* =============================================================
   Viraliza — 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: #06040f;
  --bg-elev: #0b0818;
  --bg-elev-2: #130f24;
  --surface: rgba(255,255,255,0.05);
  --surface-strong: rgba(255,255,255,0.085);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.20);
  --text: #f5f3ff;
  --text-dim: #b4aed8;
  --text-faint: #726c99;
  --accent: #ff3ec8;
  --accent-2: #7c5cff;
  --accent-3: #22e5c8;
  --gold: #ffcf5c;
  --danger: #fb7185;
  --grad: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);
  --grad-soft: linear-gradient(120deg, rgba(255,62,200,0.16), rgba(124,92,255,0.16) 55%, rgba(34,229,200,0.16));
  --shadow-glow: 0 0 0 1px rgba(255,62,200,0.18), 0 24px 70px -22px rgba(124,92,255,0.45);
  --shadow-card: 0 10px 40px -16px rgba(0,0,0,0.6);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --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: "Unbounded", var(--sans);
  --mono: "Space Mono", ui-monospace, SFMono-Regular, monospace;
}

[data-theme="light"] {
  --bg: #f6f5fc;
  --bg-elev: #ffffff;
  --bg-elev-2: #efedfb;
  --surface: rgba(20,10,50,0.035);
  --surface-strong: rgba(20,10,50,0.065);
  --border: rgba(20,10,50,0.10);
  --border-strong: rgba(20,10,50,0.18);
  --text: #14102b;
  --text-dim: #4d4776;
  --text-faint: #857fa8;
  --shadow-glow: 0 0 0 1px rgba(255,62,200,0.22), 0 24px 60px -26px rgba(124,92,255,0.4);
  --shadow-card: 0 10px 32px -18px rgba(20,10,50,0.2);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f5fc;
    --bg-elev: #ffffff;
    --bg-elev-2: #efedfb;
    --surface: rgba(20,10,50,0.035);
    --surface-strong: rgba(20,10,50,0.065);
    --border: rgba(20,10,50,0.10);
    --border-strong: rgba(20,10,50,0.18);
    --text: #14102b;
    --text-dim: #4d4776;
    --text-faint: #857fa8;
    --shadow-glow: 0 0 0 1px rgba(255,62,200,0.22), 0 24px 60px -26px rgba(124,92,255,0.4);
    --shadow-card: 0 10px 32px -18px rgba(20,10,50,0.2);
  }
}

/* =============================================================
   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;
  position: relative;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out);
}
/* grano cinematográfico sutil, sensación premium */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
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.01em; 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: #1a0512; }

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

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

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1200px; 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: .76rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-3); background: var(--surface); border: 1px solid var(--border);
  padding: .35rem .8rem; 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; }

.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: .5;
}
.bg-glow { position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(95px); opacity: .55; }
.bg-glow.animated { animation: float 16s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-20px, 24px); } }

/* =============================================================
   4. Typography
   ============================================================= */
h1 { font-size: clamp(2.1rem, 5.8vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
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); font-family: var(--sans); font-weight: 700; }
.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: .9rem 1.6rem; border-radius: var(--radius-sm); font-weight: 700; font-size: .97rem;
  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: #10041a; 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 (glass + halo de borde) --- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-card); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%);
  position: relative;
}
@supports not (backdrop-filter: blur(1px)) { .card { background: var(--bg-elev); } }
.card-glow { position: relative; }
.card-glow::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1;
  background: conic-gradient(from 0deg, var(--accent), var(--accent-2), var(--accent-3), var(--accent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .55; animation: spin 10s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .card-glow::before { animation: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- 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.1rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--grad);
  display: grid; place-items: center; color: #10041a; 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; }
@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 { 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); }

/* --- hub / tool grid --- */
.tool-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width: 720px) { .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool-card-link { display: flex; flex-direction: column; gap: .9rem; padding: 1.6rem; border-radius: var(--radius-lg); position: relative; overflow: hidden; transition: transform .3s var(--ease-out), border-color .3s var(--ease-out); }
.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-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, .tool-card-link p, .tool-card-link .go { position: relative; z-index: 1; }
.tool-card-link p { color: var(--text-dim); font-size: .92rem; }
.tool-card-link .go { margin-top: auto; font-size: .85rem; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; }

/* --- tool layout (generador) --- */
.tool-layout { display: grid; gap: 1.75rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .tool-layout { grid-template-columns: 1.05fr .95fr; } }
.tool-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--radius-lg); }
.tool-card-top { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.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: #10041a; background: var(--grad); border-color: transparent; }

.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="number"], .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: 80px; }
.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, minmax(0, 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: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: none; padding: 0; }
.color-input span { font-family: var(--mono); font-size: .78rem; 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: #10041a; background: var(--grad); border-color: transparent; }
.chip:hover { border-color: var(--border-strong); }

/* --- selector visual de plantillas --- */
.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
@media (min-width: 480px) { .swatch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.swatch {
  aspect-ratio: 4/3; border-radius: var(--radius-sm); border: 2px solid var(--border);
  position: relative; overflow: hidden; transition: transform .2s var(--ease-out), border-color .2s;
  display: flex; align-items: flex-end; padding: .4rem .5rem;
}
.swatch:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.swatch[aria-pressed="true"] { border-color: var(--accent-3); box-shadow: 0 0 0 3px rgba(34,229,200,0.18); }
.swatch span { position: relative; z-index: 1; font-size: .68rem; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,0.7); line-height: 1.15; }
.swatch::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.15); }

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

.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem 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-3); }
.switch:has(input:checked) { background: rgba(34,229,200,0.18); }

/* --- dropzone (subir foto) --- */
.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem;
  text-align: center; padding: clamp(1.5rem, 5vw, 2.25rem) 1.25rem; 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-3); background: var(--grad-soft); }
.dropzone-icon { width: 50px; height: 50px; border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border); display: grid; place-items: center; color: var(--accent-3); }
.dropzone-icon svg { width: 24px; height: 24px; }
.dropzone strong { font-size: 1rem; }
.dropzone .hint { color: var(--text-faint); font-size: .82rem; }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

/* --- canvas preview --- */
.canvas-wrap {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background-image: linear-gradient(45deg, #26223a 25%, transparent 25%), linear-gradient(-45deg, #26223a 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #26223a 75%), linear-gradient(-45deg, transparent 75%, #26223a 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; background-color: #17132a;
  display: flex; align-items: center; justify-content: center;
}
.canvas-wrap canvas { width: 100%; height: auto; max-height: 62vh; object-fit: contain; }

.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(34,229,200,0.08); border: 1px solid rgba(34,229,200,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; }
.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-3); }

/* --- 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--incontent { min-height: 120px; }
.ad-slot--modal { min-height: 220px; }

/* --- pop-up de descarga (dialog nativo) --- */
dialog#adInterstitial { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 0; background: var(--bg-elev); color: var(--text); max-width: min(92vw, 420px); box-shadow: var(--shadow-glow); }
dialog#adInterstitial::backdrop { background: rgba(6,4,15,0.75); backdrop-filter: blur(4px); }
.modal-inner { padding: 1.5rem; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-head strong { font-family: var(--display); }
.modal-close { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: grid; place-items: center; }
.modal-close svg { width: 16px; height: 16px; }
.modal-foot { margin-top: 1.1rem; display: flex; justify-content: flex-end; }

/* --- notificación de esquina --- */
.corner-toast {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 500; max-width: 280px;
  padding: .95rem 1.1rem; border-radius: var(--radius); background: var(--bg-elev); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-card); display: flex; gap: .7rem; align-items: flex-start;
  transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .4s var(--ease-out), opacity .4s var(--ease-out);
}
.corner-toast.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.corner-toast .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--grad-soft); display: grid; place-items: center; color: var(--accent-3); flex: none; }
.corner-toast .ic svg { width: 16px; height: 16px; }
.corner-toast p { font-size: .82rem; color: var(--text-dim); }
.corner-toast .close-toast { position: absolute; top: .5rem; right: .5rem; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; }
.corner-toast .close-toast svg { width: 11px; height: 11px; }

/* --- steps --- */
.steps { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(3, minmax(0, 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-3); 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, minmax(0, 1fr)); }
@media (min-width: 720px) { .usecase-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .usecase-grid { grid-template-columns: repeat(4, minmax(0, 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-3); 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, minmax(0, 1fr)); }
@media (min-width: 720px) { .more-tools { grid-template-columns: repeat(3, minmax(0, 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, minmax(0, 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-3); }
.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(1.75rem, 5vw, 3rem); position: relative; overflow: hidden; }
.hero-head { max-width: 820px; }
.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; } }
.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); }
  body::before { display: none; }
}
