/* ==========================================================================
   ImageEdit — global stylesheet
   Contents:
     1. Design tokens (light + dark themes)
     2. Reset & base
     3. Layout helpers, typography, buttons
     4. Header, navigation, mega menu, mobile drawer, search
     5. Hero (home)
     6. Home sections: tool cards, steps, features, use cases, FAQ, CTA
     7. Footer
     8. Toasts, utilities, scroll reveal
     9. Reduced motion
   ========================================================================== */

/* 1. DESIGN TOKENS ------------------------------------------------------- */
:root {
  color-scheme: light;

  --font-head: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Brand */
  --primary: #5b3df5;          /* text + accents on light bg (6.1:1 on white) */
  --primary-strong: #5b3df5;   /* filled buttons (white text) */
  --primary-hover: #4a2ee0;
  --primary-soft: #efebff;
  --primary-soft-2: #e2daff;
  --accent: #ff5d73;
  --accent-text: #d42a4a;      /* accent used as text (AA on white) */
  --grad: linear-gradient(135deg, #5b3df5 0%, #a442ff 55%, #ff5d73 100%);
  --grad-text: linear-gradient(100deg, #5b3df5 0%, #a12ee8 50%, #e2365c 100%);

  /* Surfaces */
  --bg: #f8f7fc;
  --surface: #ffffff;
  --surface-2: #f3f1fa;
  --surface-3: #e9e5f6;
  --header-glass: rgba(248, 247, 252, 0.78);
  --overlay: rgba(14, 11, 32, 0.45);

  /* Text */
  --text: #15122b;
  --text-muted: #55516e;       /* 7.4:1 on white */
  --text-soft: #6b6785;        /* 5.2:1 on white */
  --on-primary: #ffffff;

  /* Lines */
  --border: #e5e1f0;
  --border-strong: #cfc8e6;

  /* Status */
  --success: #0b8a5b;
  --success-soft: #e3f7ee;
  --warning: #9a6200;
  --warning-soft: #fff4dc;
  --danger: #d0263f;
  --danger-soft: #ffe8ec;

  /* Category colours (RGB triplets for alpha use) */
  --cat-compress: 91 61 245;
  --cat-convert: 32 120 230;
  --cat-edit: 226 54 120;
  --cat-create: 222 128 0;
  --cat-privacy: 11 150 100;
  --cat-design: 8 145 178;

  /* Shape & depth */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(22, 16, 60, 0.06), 0 1px 3px rgba(22, 16, 60, 0.05);
  --shadow: 0 6px 20px -6px rgba(22, 16, 60, 0.14), 0 2px 6px rgba(22, 16, 60, 0.05);
  --shadow-lg: 0 24px 60px -18px rgba(40, 24, 120, 0.28), 0 8px 20px -8px rgba(22, 16, 60, 0.12);
  --focus: #5b3df5;

  /* Layout */
  --header-h: 68px;
  --container: 1200px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;

  --primary: #a597ff;          /* 7.6:1 on --bg */
  --primary-strong: #6a4dff;   /* white text 5.6:1 */
  --primary-hover: #7b61ff;
  --primary-soft: #221c48;
  --primary-soft-2: #2d2560;
  --accent: #ff7a8c;
  --accent-text: #ff8fa0;
  --grad-text: linear-gradient(100deg, #a597ff 0%, #d38bff 50%, #ff8fa0 100%);

  --bg: #0d0b1c;
  --surface: #151229;
  --surface-2: #1c1836;
  --surface-3: #262046;
  --header-glass: rgba(13, 11, 28, 0.74);
  --overlay: rgba(0, 0, 0, 0.6);

  --text: #efedfb;
  --text-muted: #b4afd1;       /* 9:1 */
  --text-soft: #9a94bd;        /* 6.6:1 */

  --border: #2a2549;
  --border-strong: #3b3466;

  --success: #3ddc97;
  --success-soft: #0f2b22;
  --warning: #ffc861;
  --warning-soft: #2e2410;
  --danger: #ff6b81;
  --danger-soft: #34141c;

  --cat-compress: 150 130 255;
  --cat-convert: 96 165 250;
  --cat-edit: 244 114 182;
  --cat-create: 251 176 64;
  --cat-privacy: 52 211 153;
  --cat-design: 34 211 238;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 28px 70px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.03);
  --focus: #b7abff;
}

/* Smooth colour change only while the theme is being switched (added by JS) */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, fill .25s ease, stroke .25s ease, box-shadow .25s ease !important;
}

/* 2. RESET & BASE -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); overflow-x: clip; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.no-scroll { overflow: hidden; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
p, ul, ol { margin: 0 0 1em; }
ul[class], ol[class] { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--text);
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 1.3rem + 3.6vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.7vw, 2.5rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
::selection { background: var(--primary-soft-2); color: var(--text); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2rem 0; }
kbd {
  font-family: var(--font-mono); font-size: .75em;
  padding: .1em .45em; border-radius: 6px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-muted);
}
code { font-family: var(--font-mono); font-size: .9em; background: var(--surface-2); padding: .1em .35em; border-radius: 6px; }

/* Icons from the sprite inherit currentColor */
.ico { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 3. LAYOUT, TYPOGRAPHY, BUTTONS ----------------------------------------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
@media (min-width: 768px) { :root { --gutter: 24px; } }
@media (min-width: 1440px) { :root { --container: 1240px; } }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--primary-strong); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; 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(56px, 4rem + 3vw, 104px); }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto clamp(28px, 4vw, 48px); text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.075rem; margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--text-muted); }
.text-gradient { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-muted); }

.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-border: var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  font-family: var(--font-head); font-weight: 700; font-size: .975rem; line-height: 1.2;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-border); border-radius: 12px;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s, border-color .18s, color .18s;
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn:active { transform: translateY(1px); }
.btn .ico { width: 18px; height: 18px; }
.btn-primary {
  --btn-bg: var(--primary-strong); --btn-fg: var(--on-primary); --btn-border: transparent;
  background-image: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,0));
  box-shadow: 0 8px 22px -8px rgba(91, 61, 245, .65);
}
.btn-primary:hover { background-color: var(--primary-hover); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(91, 61, 245, .7); }
.btn-gradient { --btn-fg: #fff; --btn-border: transparent; background: var(--grad); box-shadow: 0 10px 26px -10px rgba(164, 66, 255, .7); }
.btn-gradient:hover { color: #fff; border-color: transparent; transform: translateY(-2px); filter: saturate(1.15); }
.btn-ghost { --btn-bg: transparent; --btn-border: transparent; }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1.05rem; border-radius: 14px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; border-radius: 10px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  color: var(--text); border: 1px solid var(--border); background: var(--surface);
  transition: background-color .18s, border-color .18s, color .18s, transform .18s;
}
.icon-btn:hover { border-color: var(--primary); color: var(--primary); }
.icon-btn .ico { width: 20px; height: 20px; }

/* 4. HEADER & NAVIGATION ------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
/* Glass layer lives on a pseudo-element so backdrop-filter does not become
   the containing block for the fixed-position mobile drawer. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bg);
  transition: background-color .25s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px -14px rgba(22, 16, 60, .25); }
.site-header.is-scrolled::before {
  background: var(--header-glass);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand img { width: 36px; height: 36px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; }
.brand-name span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Theme toggle: animated sun / moon */
.theme-toggle { position: relative; overflow: hidden; }
.theme-toggle svg { position: absolute; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--ease), opacity .3s; }
.theme-toggle .sun { transform: rotate(0) scale(1); opacity: 1; }
.theme-toggle .moon { transform: rotate(-90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-toggle .sun { transform: rotate(90deg) scale(.4); opacity: 0; }
[data-theme="dark"] .theme-toggle .moon { transform: rotate(0) scale(1); opacity: 1; }

.burger { display: none; }

/* Desktop navigation */
.site-nav { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.drawer-head { display: none; }
.nav-list { display: flex; align-items: center; gap: 2px; margin-inline: auto !important; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  color: var(--text-muted); text-decoration: none;
  transition: color .18s, background-color .18s;
}
.nav-link:hover, .has-mega.is-open > .nav-link { color: var(--text); background: var(--surface-2); }
.nav-link[aria-current="page"] { color: var(--primary); background: var(--primary-soft); }
.nav-link .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.has-mega.is-open > .nav-link .ico { transform: rotate(180deg); }

/* Tool search (header, drawer, home, 404) */
.search { position: relative; width: 100%; }
.search-field {
  display: flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s;
}
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.search-field .ico { width: 18px; height: 18px; color: var(--text-soft); }
.search-field input {
  flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none;
  font-size: .95rem; color: var(--text);
}
.search-field input::placeholder { color: var(--text-soft); opacity: 1; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-field kbd { flex: none; }
.site-nav .search { max-width: 250px; }
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 120;
  max-height: min(420px, 60vh); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px; margin: 0; list-style: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg);
}
.search-results li { margin: 0; }
.search-results a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text);
}
.search-results a small { display: block; color: var(--text-soft); font-size: .78rem; line-height: 1.3; }
.search-results a span { min-width: 0; line-height: 1.35; font-weight: 600; font-size: .92rem; }
.search-results [aria-selected="true"] a, .search-results a:hover { background: var(--primary-soft); }
.search-results .search-empty { padding: 12px; color: var(--text-muted); font-size: .9rem; }
.search-results .tile { width: 32px; height: 32px; border-radius: 9px; }
.search-results .tile .ico { width: 17px; height: 17px; }
.search-lg .search-field { height: 58px; padding: 0 18px; border-radius: 16px; box-shadow: var(--shadow); }
.search-lg .search-field .ico { width: 22px; height: 22px; }
.search-lg .search-field input { font-size: 1.05rem; }

/* Mega menu (desktop) */
.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  padding-top: 8px;
  visibility: hidden; opacity: 0; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.has-mega.is-open .mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.mega-inner {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px;
}
.mega-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 22px; }
@media (min-width: 1200px) { .mega-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.mega-cat {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-soft); padding: 4px 0 10px; text-align: left; cursor: default;
}
.mega-cat .mega-chev { display: none; }
.mega-list li + li { margin-top: 2px; }
.mega-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px; margin-inline: -8px; border-radius: 10px;
  font-size: .9rem; font-weight: 500; line-height: 1.3; color: var(--text); text-decoration: none;
  transition: background-color .15s, color .15s;
}
.mega-list a .ico { width: 18px; height: 18px; color: rgb(var(--cat)); }
.mega-list a:hover { background: var(--surface-2); color: var(--primary); }
.mega-list a[aria-current="page"] { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.mega-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border);
  font-size: .875rem; color: var(--text-muted);
}
.mega-foot p { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.mega-foot p .ico { width: 18px; height: 18px; color: rgb(var(--cat-privacy)); }
.mega-foot a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.mega-foot a .ico { width: 16px; height: 16px; }

/* Category colour hooks */
.cat-compress { --cat: var(--cat-compress); }
.cat-convert { --cat: var(--cat-convert); }
.cat-edit { --cat: var(--cat-edit); }
.cat-create { --cat: var(--cat-create); }
.cat-privacy { --cat: var(--cat-privacy); }
.cat-design { --cat: var(--cat-design); }
/* Icon tile: colour comes from the nearest .cat-* ancestor (or itself) */
.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 12px;
  color: rgb(var(--cat, var(--cat-compress)));
  background: rgb(var(--cat, var(--cat-compress)) / .12);
}

.nav-backdrop {
  position: fixed; inset: 0; z-index: 140; background: var(--overlay);
  opacity: 0; transition: opacity .3s;
}
.nav-backdrop.is-visible { opacity: 1; }

/* Mobile drawer (< 900px) */
@media (max-width: 899.98px) {
  .burger { display: inline-grid; }
  .site-nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 150;
    width: min(88vw, 380px);
    flex-direction: column; align-items: stretch; gap: 14px;
    padding: 14px 16px 32px;
    background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow-y: auto; overscroll-behavior: contain;
    transform: translateX(100%); visibility: hidden;
    transition: transform .32s var(--ease), visibility 0s linear .32s;
  }
  .site-nav.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .drawer-head { display: flex; align-items: center; justify-content: space-between; }
  .drawer-title { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; }
  .site-nav .search { max-width: none; order: -1; }
  .drawer-head { order: -2; }
  .site-nav .search kbd { display: none; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 4px; margin: 0 !important; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 14px; font-size: 1rem; color: var(--text); }
  .mega { position: static; padding: 4px 0 0; visibility: visible; opacity: 1; transform: none; display: none; transition: none; }
  .has-mega.is-open .mega { display: block; }
  .mega > .container { width: 100%; }
  .mega-inner { padding: 4px; border: 0; box-shadow: none; background: transparent; }
  .mega-grid { grid-template-columns: 1fr; gap: 4px; }
  .mega-col { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
  .mega-cat { padding: 12px 14px; cursor: pointer; color: var(--text); font-size: .82rem; }
  .mega-cat .mega-chev { display: block; margin-left: auto; width: 18px; height: 18px; transition: transform .25s var(--ease); }
  .mega-cat .tile { width: 30px; height: 30px; border-radius: 8px; }
  .mega-cat .tile .ico { width: 16px; height: 16px; }
  .mega-cat[aria-expanded="true"] .mega-chev { transform: rotate(180deg); }
  .mega-list { display: none; padding: 0 14px 10px !important; }
  .mega-col.is-open .mega-list { display: block; }
  .mega-list a { margin: 0; padding: 10px 8px; }
  .mega-foot { flex-direction: column; align-items: flex-start; margin-top: 10px; padding-top: 12px; }
}
@media (min-width: 900px) {
  .nav-backdrop { display: none !important; }
  .mega-cat .tile { display: none; }
}

/* 5. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(40px, 6vw, 88px) 0 clamp(48px, 7vw, 96px);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { /* subtle grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  opacity: .55;
}
.blob { position: absolute; border-radius: 50%; opacity: .55; will-change: transform; }
.blob-1 { width: 520px; height: 520px; top: -160px; left: -120px; background: radial-gradient(circle, rgba(91,61,245,.55), transparent 65%); animation: blob-a 18s ease-in-out infinite alternate; }
.blob-2 { width: 460px; height: 460px; top: -80px; right: -120px; background: radial-gradient(circle, rgba(255,93,115,.45), transparent 65%); animation: blob-b 22s ease-in-out infinite alternate; }
.blob-3 { width: 420px; height: 420px; bottom: -200px; left: 35%; background: radial-gradient(circle, rgba(164,66,255,.4), transparent 65%); animation: blob-c 20s ease-in-out infinite alternate; }
[data-theme="dark"] .blob { opacity: .7; }
@keyframes blob-a { to { transform: translate(120px, 80px) scale(1.15); } }
@keyframes blob-b { to { transform: translate(-100px, 120px) scale(.9); } }
@keyframes blob-c { to { transform: translate(-140px, -60px) scale(1.1); } }

/* floating decorative chips */
.floaty {
  position: absolute; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 12px;
  font-family: var(--font-head); font-weight: 700; font-size: .78rem; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  animation: float 7s ease-in-out infinite;
}
.floaty .ico { width: 16px; height: 16px; color: var(--primary); }
.floaty-1 { top: 10%; left: 49%; animation-delay: -1s; }
.floaty-2 { bottom: 14%; left: 47%; animation-delay: -3s; }
.floaty-3 { top: 6%; right: 3%; animation-delay: -5s; }
.floaty-4 { bottom: 5%; right: 20%; animation-delay: -2s; }
.crop-mark { position: absolute; width: 34px; height: 34px; border: 2.5px solid rgb(var(--cat-compress) / .35); animation: float 9s ease-in-out infinite; }
.crop-mark.cm-1 { top: 30%; left: 44%; border-right: 0; border-bottom: 0; border-radius: 6px 0 0 0; }
.crop-mark.cm-2 { bottom: 18%; left: 8%; border-left: 0; border-top: 0; border-radius: 0 0 6px 0; animation-delay: -4s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(2deg); } }
@media (max-width: 1099.98px) { .floaty, .crop-mark { display: none; } }

.hero-grid { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 1.08fr .92fr; } }
.hero-copy { position: relative; }
.hero-copy .eyebrow { animation: fade-up .6s var(--ease) both; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .line { display: block; }
.hl-word { display: inline-block; animation: fade-up .7s var(--ease) both; }
.hl-word:nth-child(1) { animation-delay: .05s; }
.hl-word:nth-child(2) { animation-delay: .12s; }
.hl-word:nth-child(3) { animation-delay: .19s; }
.hl-word:nth-child(4) { animation-delay: .26s; }
.hl-word:nth-child(5) { animation-delay: .33s; }
.hl-word:nth-child(6) { animation-delay: .40s; }
.rotator-wrap { display: inline-block; animation: fade-up .7s var(--ease) .45s both; }
.rotator {
  display: inline-block;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.rotator.is-out { animation: word-out .35s var(--ease) forwards; }
.rotator.is-in { animation: word-in .45s var(--ease) both; }
@keyframes word-out { to { opacity: 0; transform: translateY(-40%); filter: blur(4px); } }
@keyframes word-in { from { opacity: 0; transform: translateY(40%); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero .lead { max-width: 580px; margin-bottom: 28px; animation: fade-up .7s var(--ease) .5s both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; animation: fade-up .7s var(--ease) .6s both; }
@media (max-width: 479.98px) { .hero-ctas .btn { flex: 1 1 100%; } }

.trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px !important; animation: fade-up .7s var(--ease) .7s both; }
.trust li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 9px; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.trust .ico { width: 18px; height: 18px; color: var(--success); }

/* Hero mock-up of a tool */
.hero-visual { position: relative; animation: fade-up .9s var(--ease) .35s both; }
@media (max-width: 599.98px) { .hero-visual { display: none; } }
.mock {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.mock-bar i:nth-child(1) { background: #ff6b6b; } .mock-bar i:nth-child(2) { background: #ffc24b; } .mock-bar i:nth-child(3) { background: #3ccf7e; }
.mock-bar span { margin-left: 10px; font-size: .75rem; color: var(--text-soft); font-family: var(--font-mono); }
.mock-body { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; padding: 16px; }
.mock-img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 5; }
.mock-img svg { width: 100%; height: 100%; }
.mock-img::after { /* scanning line */
  content: ""; position: absolute; left: 0; right: 0; height: 36%;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.35), transparent);
  animation: scan 3.2s ease-in-out infinite;
}
@keyframes scan { 0% { top: -40%; } 100% { top: 110%; } }
.mock-side { display: flex; flex-direction: column; gap: 10px; font-size: .78rem; }
.mock-label { font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .06em; font-size: .68rem; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mock-chips span { padding: 5px 9px; border-radius: 8px; border: 1px solid var(--border); font-weight: 700; color: var(--text-muted); }
.mock-chips .on { background: var(--primary-strong); border-color: transparent; color: #fff; }
.mock-range { position: relative; height: 6px; border-radius: 99px; background: var(--surface-3); }
.mock-range i { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: inherit; background: var(--grad); animation: range 4s ease-in-out infinite alternate; }
.mock-range i::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #fff; border: 3px solid var(--primary-strong); }
@keyframes range { from { width: 78%; } to { width: 42%; } }
.mock-stat { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 11px; border-radius: 10px; background: var(--surface-2); }
.mock-stat span { color: var(--text-muted); }
.mock-stat b { font-family: var(--font-head); font-size: .95rem; }
.mock-stat.ok { background: var(--success-soft); }
.mock-stat.ok b { color: var(--success); }
.mock-btn { margin-top: auto; text-align: center; padding: 10px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 700; }
.hero-badge {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  font-size: .8rem; line-height: 1.3; animation: float 6s ease-in-out infinite;
}
.hero-badge b { display: block; font-family: var(--font-head); font-size: .95rem; }
.hero-badge span { color: var(--text-muted); }
.hero-badge .tile { width: 36px; height: 36px; border-radius: 10px; }
.hero-badge-1 { left: -22px; bottom: 16%; }
.hero-badge-2 { right: -14px; top: -26px; animation-delay: -3s; }
@media (max-width: 1099.98px) { .hero-badge-1 { left: 8px; } .hero-badge-2 { right: 8px; } }
@media (max-width: 1023.98px) { .hero-visual { max-width: 560px; margin: 26px auto 0; width: 100%; } }

/* 6. HOME SECTIONS ------------------------------------------------------- */
.search-band { margin-top: -8px; }
.search-band .search { max-width: 720px; margin-inline: auto; }
.search-hint { text-align: center; margin: 12px 0 0; font-size: .875rem; color: var(--text-soft); }

/* Tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.tool-card {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 20px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.tool-card::after { /* glow */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at 0% 0%, rgb(var(--cat) / .14), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.tool-card:hover, .tool-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgb(var(--cat) / .5);
  box-shadow: 0 18px 40px -18px rgb(var(--cat) / .55), var(--shadow-sm);
}
.tool-card:hover::after, .tool-card:focus-visible::after { opacity: 1; }
.tool-card-name { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.tool-card-desc { color: var(--text-muted); font-size: .92rem; line-height: 1.5; }
.tool-card .go {
  position: absolute; top: 20px; right: 18px; width: 18px; height: 18px; color: rgb(var(--cat));
  opacity: 0; transform: translateX(-6px); transition: opacity .25s, transform .25s var(--ease);
}
.tool-card:hover .go, .tool-card:focus-visible .go { opacity: 1; transform: none; }
.tool-card .badge { position: absolute; top: 18px; right: 18px; }
.tool-card:hover .badge { opacity: 0; }
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .02em;
  color: var(--accent-text); background: rgb(255 93 115 / .12);
}

.popular-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.popular-grid .tool-card { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.popular-grid .tool-card .go { top: 50%; margin-top: -9px; }
.popular-grid .tool-card-desc { font-size: .85rem; }

.cat-block + .cat-block { margin-top: clamp(36px, 5vw, 56px); }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cat-head h3 { margin: 0; }
.cat-head p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.cat-head .tile { width: 40px; height: 40px; }
.no-results { text-align: center; padding: 32px; color: var(--text-muted); border: 1px dashed var(--border-strong); border-radius: var(--radius-lg); }

/* How it works */
.steps { display: grid; gap: 20px; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  position: relative; padding: 28px 24px 24px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.step-num {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  border-radius: 16px; background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(164,66,255,.8);
}
.step-num .ico { width: 24px; height: 24px; }
.step::before {
  counter-increment: step; content: "0" counter(step);
  position: absolute; top: 18px; right: 22px;
  font-family: var(--font-head); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--surface-3);
}
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; color: var(--text-muted); }

/* Features */
.features { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.feature h3 { margin-bottom: 4px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* Use cases */
.usecases { display: grid; gap: 18px; }
@media (min-width: 768px) { .usecases { grid-template-columns: repeat(2, 1fr); } }
.usecase {
  position: relative; overflow: hidden; padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
}
.usecase::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: rgb(var(--cat)); opacity: .85; }
.usecase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.usecase-head h3 { margin: 0; }
.usecase p { color: var(--text-muted); }
.usecase-links { display: flex; flex-wrap: wrap; gap: 8px; }
.usecase-links a {
  padding: 6px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; text-decoration: none;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  transition: border-color .18s, color .18s;
}
.usecase-links a:hover { border-color: rgb(var(--cat)); color: rgb(var(--cat)); }

/* FAQ accordion (shared with tool pages) */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq-item.is-open { border-color: var(--border-strong); box-shadow: var(--shadow); }
.faq-item h3 { margin: 0; font-size: 1.02rem; }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%;
  padding: 18px 20px; text-align: left; font-family: var(--font-head); font-weight: 700; color: var(--text);
  border-radius: var(--radius);
}
.faq-q .pm { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px;
  border-radius: 2px; background: var(--primary); transition: transform .3s var(--ease);
}
.faq-q .pm::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .pm::after { transform: rotate(0); }
.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease); }
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 20px 18px; color: var(--text-muted); }
.js .faq-item:not(.is-open) .faq-a > div { visibility: hidden; transition: visibility 0s .3s; }

/* CTA band */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(36px, 6vw, 64px); border-radius: var(--radius-xl);
  background: var(--grad); color: #fff; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(600px circle at 15% 0%, rgba(255,255,255,.25), transparent 50%), radial-gradient(500px circle at 100% 100%, rgba(13,11,28,.35), transparent 55%);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 620px; margin: 0 auto 26px; font-size: 1.08rem; }
.cta-band .btn { --btn-bg: #fff; --btn-fg: #3a1fd0; --btn-border: transparent; }
.cta-band .btn:hover { color: #3a1fd0; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(0,0,0,.4); }
.cta-band .btn-outline { --btn-bg: transparent; --btn-fg: #fff; --btn-border: rgba(255,255,255,.6); }
.cta-band .btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.12); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Generic content page (about, legal) */
.page-hero { padding: clamp(40px, 6vw, 72px) 0 clamp(24px, 4vw, 40px); text-align: center; }
.page-hero p { color: var(--text-muted); max-width: 680px; margin-inline: auto; font-size: 1.08rem; }
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.35rem, 1.2rem + .7vw, 1.75rem); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose strong { color: var(--text); }
.prose h2[id] { scroll-margin-top: calc(var(--header-h) + 20px); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: .92rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--text-muted); }
.prose th { color: var(--text); font-family: var(--font-head); background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.page-hero .breadcrumb ol { justify-content: center; margin-bottom: 16px; }
.updated { display: inline-block; margin-top: 4px; font-size: .9rem; color: var(--text-soft); }

/* Content page building blocks (about, contact, legal, 404) */
.page-section { padding-bottom: clamp(40px, 6vw, 72px); }
.toc { max-width: 760px; margin: 0 auto 32px; padding: 18px 22px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.toc h2 { font-size: 1rem; margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 3px 0; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.callout { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--success-soft); border: 1px solid rgb(var(--cat-privacy) / .25); margin: 0 0 1.5em; }
.callout p { margin: 0; color: var(--text) !important; }
.value-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 1.5em 0; }
.value-grid > div { padding: 18px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.value-grid h3 { margin: 10px 0 4px !important; font-size: 1rem; }
.value-grid p { margin: 0; font-size: .92rem; }
.contact-grid { display: grid; gap: 24px; max-width: 1040px; margin-inline: auto; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; } }
.contact-card { padding: clamp(18px, 3vw, 28px); border-radius: var(--radius-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.25rem; }
.contact-form { display: grid; gap: 16px; }
.contact-side { display: grid; gap: 16px; }
.contact-side .contact-card { box-shadow: none; }
.contact-side ul { padding-left: 1.1em; margin: 0; color: var(--text-muted); }
.contact-side li + li { margin-top: 6px; }
.error-hero { text-align: center; padding: clamp(48px, 8vw, 96px) 0 24px; }
.error-code { font-family: var(--font-head); font-weight: 800; font-size: clamp(5rem, 3rem + 10vw, 9rem); line-height: 1; letter-spacing: -0.05em; margin: 0 0 8px; }

/* 7. FOOTER -------------------------------------------------------------- */
.site-footer { margin-top: clamp(56px, 8vw, 96px); background: var(--surface); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 32px 24px; padding-block: clamp(40px, 6vw, 64px); }
@media (min-width: 480px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.5fr repeat(4, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--text-muted); font-size: .95rem; max-width: 340px; margin: 14px 0 0; }
.footer-promise {
  display: inline-flex !important; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: 12px; background: var(--success-soft); color: var(--success) !important;
  font-weight: 600; font-size: .875rem !important;
}
.footer-promise .ico { width: 18px; height: 18px; }
.footer-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-soft); margin: 0 0 12px; font-weight: 700; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul + .footer-title { margin-top: 24px; }
.footer-col li + li { margin-top: 6px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: .925rem; transition: color .15s; }
.footer-col a:hover { color: var(--primary); text-decoration: underline; }
.footer-col a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.footer-bottom { border-top: 1px solid var(--border); }
.footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 18px; font-size: .875rem; color: var(--text-muted); }
.footer-bottom p { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom .heart { width: 16px; height: 16px; color: var(--accent); fill: currentColor; }
.back-to-top { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); }
.back-to-top:hover { border-color: var(--primary); color: var(--primary); }
.back-to-top .ico { width: 16px; height: 16px; }

/* 8. TOASTS, UTILITIES, REVEAL ------------------------------------------- */
.toast-region {
  position: fixed; left: 50%; bottom: 20px; z-index: 1000; transform: translateX(-50%);
  display: grid; gap: 10px; width: min(92vw, 420px); pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow-lg);
  font-size: .925rem; font-weight: 500; pointer-events: auto;
  animation: toast-in .3s var(--ease) both;
}
.toast .ico { width: 20px; height: 20px; margin-top: 1px; }
.toast-success .ico { color: #3ddc97; }
.toast-error { background: var(--danger); color: #fff; }
.toast-warn .ico { color: #ffc861; }
.toast.is-leaving { animation: toast-out .25s ease forwards; }
[data-theme="dark"] .toast-success .ico { color: var(--success); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 60ms); }

/* 9. REDUCED MOTION ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .blob, .floaty, .crop-mark, .hero-badge, .mock-img::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
