/* ==========================================================================
   GJaitoolshub — Global Design System
   Sections:
   1. Tokens (light / dark)      8. Tool cards, tabs, chips
   2. Reset & base               9. Features, steps, stats
   3. Layout helpers             10. Prose (SEO content) & FAQ
   4. Buttons & badges           11. CTA band & ad slots
   5. Header & navigation        12. Footer & social icons
   6. Search box                 13. Toast, back-to-top, breadcrumb
   7. Hero                       14. Animations & reduced motion
   ========================================================================== */

/* 1. TOKENS ================================================================ */
:root {
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(3.5rem, 8vw, 6rem);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --t: .25s var(--ease);

  --brand-1: #7c3aed;
  --brand-2: #2563eb;
  --brand-3: #06b6d4;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  --gradient-wide: linear-gradient(90deg, #7c3aed, #2563eb, #06b6d4, #7c3aed);
}

:root,
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f3f5fa;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --border: #e2e7f0;
  --primary: #6d28d9;
  --primary-hover: #5b21b6;
  --primary-soft: rgba(109, 40, 217, .10);
  --on-primary: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .07);
  --shadow: 0 12px 32px -14px rgba(15, 23, 42, .20);
  --shadow-lg: 0 28px 60px -24px rgba(15, 23, 42, .32);
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .75);
  --header-bg: rgba(246, 247, 251, .80);
  --blob-opacity: .50;
  --grid-dot: rgba(15, 23, 42, .07);

  --c-finance: #059669;
  --c-health: #e11d48;
  --c-productivity: #d97706;
  --c-utility: #2563eb;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0f1e;
  --bg-alt: #0e1528;
  --surface: #121a2f;
  --surface-2: #19233b;
  --text: #e8ecf6;
  --text-muted: #a8b3c8;
  --text-soft: #8a96ae;
  --border: #243050;
  --primary: #a78bfa;
  --primary-hover: #c4b5fd;
  --primary-soft: rgba(167, 139, 250, .14);
  --on-primary: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -24px rgba(0, 0, 0, .75);
  --glass: rgba(18, 26, 47, .72);
  --glass-border: rgba(255, 255, 255, .08);
  --header-bg: rgba(10, 15, 30, .78);
  --blob-opacity: .32;
  --grid-dot: rgba(255, 255, 255, .06);

  --c-finance: #34d399;
  --c-health: #fb7185;
  --c-productivity: #fbbf24;
  --c-utility: #60a5fa;
}

/* 2. RESET & BASE ========================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 .6em;
  color: var(--text);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--primary-hover); }
img, svg { display: block; max-width: 100%; }
ul { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: .6rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top var(--t);
}
.skip-link:focus { top: 12px; color: #fff; }

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

/* 3. LAYOUT HELPERS ======================================================== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.section-head p { color: var(--text-muted); font-size: 1.075rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .9rem;
  margin-bottom: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-pill);
}

.grad-text {
  background: var(--gradient-wide);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 8s linear infinite;
}

.muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* 4. BUTTONS & BADGES ====================================================== */
.btn {
  --btn-bg: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--text);
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient);
  color: var(--on-primary);
  box-shadow: 0 12px 28px -10px rgba(109, 40, 217, .55);
}
.btn-primary:hover { color: #fff; box-shadow: 0 18px 34px -12px rgba(109, 40, 217, .7); }

.btn-outline {
  background: var(--glass);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

.btn-light { background: #fff; color: #4c1d95; }
.btn-light:hover { color: #4c1d95; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }

.btn-sm { min-height: 40px; padding: .55rem 1.1rem; font-size: .9rem; }
.btn .icon { transition: transform var(--t); }
.btn:hover .icon-arrow { transform: translateX(4px); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .85rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
}
.badge .icon { color: var(--primary); width: 1.05em; height: 1.05em; }

/* 5. HEADER & NAVIGATION =================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
}
.site-header.is-scrolled,
.site-header.menu-open {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  position: relative; /* mega menu is centred on the header, not on the Tools button */
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  margin-right: auto;
}
.brand:hover { color: var(--text); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px -8px rgba(109, 40, 217, .6);
  transition: transform .4s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.brand-name b { color: var(--primary); font-weight: 700; }

.main-nav { display: flex; }
.nav-list {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list > li { position: relative; }

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  padding: .5rem .95rem;
  font-weight: 500;
  font-size: .975rem;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-radius: var(--radius-pill);
  transition: color var(--t), background var(--t);
}
.nav-link:hover,
.nav-link[aria-expanded="true"] { color: var(--text); background: var(--primary-soft); }
.nav-link.is-active { color: var(--primary); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 18px;
  height: 3px;
  margin-left: -9px;
  border-radius: 3px;
  background: var(--gradient);
}
.nav-link .chev { width: 16px; height: 16px; transition: transform var(--t); }
.nav-link[aria-expanded="true"] .chev { transform: rotate(180deg); }

/* Mega menu */
.mega {
  position: absolute;
  top: calc(100% - 4px);
  left: 50%;
  width: min(900px, calc(100vw - 32px));
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.mega::before { /* hover bridge */
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: -14px;
  height: 14px;
}
.has-mega.open .mega {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.mega-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; }
.mega-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .5rem;
  padding: 0 .6rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.mega-title::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cat, var(--primary));
}
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem .6rem;
  border-radius: var(--radius-sm);
  font-size: .925rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--t), color var(--t), transform var(--t);
}
.mega-link .icon { color: var(--cat, var(--primary)); width: 18px; height: 18px; }
.mega-link:hover { background: var(--surface-2); color: var(--text); transform: translateX(3px); }
.mega-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
  padding: .9rem 1rem;
  background: var(--surface-2);
  border-radius: var(--radius);
  font-size: .9rem;
  color: var(--text-muted);
}
.mega-foot a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }

/* Header actions */
.nav-actions { display: flex; align-items: center; gap: .5rem; }

.theme-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  overflow: hidden;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.theme-toggle:hover { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.theme-toggle svg {
  position: absolute;
  width: 20px;
  height: 20px;
  transition: transform .5s var(--ease), opacity .3s ease;
}
.theme-toggle .i-sun { color: #f59e0b; transform: rotate(-90deg) scale(0); opacity: 0; }
.theme-toggle .i-moon { color: #6d28d9; }
[data-theme="dark"] .theme-toggle .i-sun { transform: rotate(0) scale(1); opacity: 1; }
[data-theme="dark"] .theme-toggle .i-moon { transform: rotate(90deg) scale(0); opacity: 0; }

.hamburger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.hamburger span {
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform .3s var(--ease), opacity .2s ease, top .3s var(--ease);
}
.hamburger span:nth-child(1) { top: 15px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 27px; }
.hamburger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: translateX(-8px); }
.hamburger[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 98;
  background: rgba(2, 6, 23, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t), visibility var(--t);
}
.nav-overlay.show { opacity: 1; visibility: visible; }

@media (min-width: 992px) {
  .nav-list > li.has-mega { position: static; }
}

/* Desktop hover opening */
@media (min-width: 992px) and (hover: hover) {
  .has-mega:hover .mega,
  .has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* Mobile navigation */
@media (max-width: 991.98px) {
  .hamburger { display: block; }
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 99;
    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;
    padding: calc(var(--header-h) + 8px) 1rem 2rem;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(105%);
    visibility: hidden;
    transition: transform .35s var(--ease), visibility .35s;
  }
  .main-nav.open { transform: translateX(0); visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav-link { width: 100%; justify-content: space-between; border-radius: var(--radius-sm); font-size: 1.05rem; }
  .nav-link.is-active::after { left: 0; bottom: 50%; margin: 0 0 -9px; width: 3px; height: 18px; }
  .mega {
    position: static;
    width: 100%;
    padding: .25rem 0 .5rem;
    background: none;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
  }
  .mega::before { display: none; }
  .has-mega.open .mega { display: block; transform: none; }
  .mega-grid { grid-template-columns: 1fr; gap: .5rem; }
  .mega-title { margin-top: .5rem; }
  .mega-foot { display: none; }
  .nav-actions { position: relative; z-index: 101; }
  .brand { position: relative; z-index: 101; }
}
@media (max-width: 575.98px) {
  .nav-cta { display: none; }
  .brand-name { font-size: 1.05rem; }
}

/* 6. SEARCH BOX ============================================================ */
.search-box { position: relative; width: 100%; max-width: 560px; }
.search-field {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .35rem .35rem .35rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  transition: border-color var(--t), box-shadow var(--t);
}
.search-field:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow); }
.search-field > .icon { color: var(--text-soft); }
.search-field input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1rem;
}
.search-field input::placeholder { color: var(--text-soft); }
.search-field .btn { min-height: 44px; padding-inline: 1.2rem; }

.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: .4rem;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 340px;
  overflow-y: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest li a,
.search-suggest .empty {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.search-suggest .empty { color: var(--text-muted); font-size: .925rem; }
.search-suggest li a .icon { color: var(--cat, var(--primary)); }
.search-suggest li a small { display: block; color: var(--text-soft); font-size: .8rem; line-height: 1.3; }
.search-suggest li a:hover,
.search-suggest li a.is-active { background: var(--surface-2); }
.search-suggest mark { background: var(--primary-soft); color: var(--primary); border-radius: 3px; padding: 0 1px; }

/* 7. HERO ================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(2.5rem, 7vw, 5rem)) 0 clamp(3.5rem, 8vw, 6rem);
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::after { /* dotted grid */
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-dot) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: var(--blob-opacity);
  animation: blobMove 20s ease-in-out infinite alternate;
  will-change: transform;
}
.blob-1 { width: 520px; height: 520px; top: -160px; left: -140px; background: #8b5cf6; }
.blob-2 { width: 460px; height: 460px; top: 10%; right: -160px; background: #3b82f6; animation-delay: -6s; animation-duration: 24s; }
.blob-3 { width: 380px; height: 380px; bottom: -180px; left: 35%; background: #22d3ee; animation-delay: -12s; animation-duration: 26s; }

.particle {
  position: absolute;
  bottom: -10px;
  width: var(--s, 6px);
  height: var(--s, 6px);
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  animation: rise var(--d, 14s) linear infinite;
  animation-delay: var(--delay, 0s);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy h1 { margin-bottom: .4em; }
.hero-copy h1 .grad-text { display: inline; }
.typed-line {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: var(--text);
}
.typed-line .prompt { color: var(--primary); }
.typed-text { color: var(--text); }
.caret {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  margin-left: 2px;
  border-radius: 2px;
  background: var(--primary);
  animation: blink 1s steps(1) infinite;
}
.hero-sub { max-width: 560px; font-size: clamp(1rem, 1.6vw, 1.15rem); color: var(--text-muted); margin-bottom: 1.6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0; }
.trust-badges { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }

/* Hero visual (floating cards) */
.hero-visual { position: relative; min-height: 460px; }
.v-card {
  position: absolute;
  padding: 1rem 1.15rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  animation: float 7s ease-in-out infinite;
}
.v-card .v-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.v-card .v-label .icon { width: 16px; height: 16px; }
.v-card .v-value { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--text); line-height: 1.2; }
.v-card .v-value small { font-size: .8rem; font-weight: 500; color: var(--text-soft); }

.vc-emi { top: 4%; left: 0; width: 64%; }
.vc-emi .v-label { color: var(--c-finance); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: .75rem; }
.mini-bars span {
  flex: 1;
  border-radius: 6px 6px 3px 3px;
  background: linear-gradient(180deg, #8b5cf6, #3b82f6);
  transform-origin: bottom;
  animation: barGrow 2.8s var(--ease) infinite alternate;
}
.mini-bars span:nth-child(1) { height: 40%; animation-delay: .0s; }
.mini-bars span:nth-child(2) { height: 65%; animation-delay: .2s; }
.mini-bars span:nth-child(3) { height: 50%; animation-delay: .4s; }
.mini-bars span:nth-child(4) { height: 85%; animation-delay: .6s; }
.mini-bars span:nth-child(5) { height: 70%; animation-delay: .8s; }
.mini-bars span:nth-child(6) { height: 100%; animation-delay: 1s; }

.vc-water .v-value { white-space: nowrap; font-size: 1.35rem; }
.vc-water { top: 30%; right: 0; width: 50%; display: flex; align-items: center; gap: .9rem; animation-delay: -2s; }
.vc-water .v-label { color: var(--c-utility); }
.ring { width: 72px; height: 72px; flex-shrink: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring .ring-bg { stroke: var(--border); }
.ring .ring-fg {
  stroke: #06b6d4;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  animation: ringFill 3.5s var(--ease) infinite alternate;
}

.vc-habit { bottom: 6%; left: 8%; width: 58%; animation-delay: -4s; }
.vc-habit .v-label { color: var(--c-productivity); }
.habit-dots { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: .65rem; }
.habit-dots span { aspect-ratio: 1; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); }
.habit-dots span.on { background: linear-gradient(135deg, #f59e0b, #f97316); border-color: transparent; animation: pop 3s ease-in-out infinite; }
.habit-dots span.on:nth-child(2n) { animation-delay: .3s; }
.habit-dots span.on:nth-child(3n) { animation-delay: .6s; }

.orbit-chip {
  position: absolute;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--cat, var(--primary));
  animation: float 6s ease-in-out infinite;
}
.orbit-chip .icon { width: 24px; height: 24px; }
.oc-1 { top: 0; right: 10%; animation-delay: -1s; }
.oc-2 { top: 58%; right: 6%; animation-delay: -3s; }
.oc-3 { bottom: 0; right: 28%; animation-delay: -2s; }
.oc-4 { top: 38%; left: -4%; animation-delay: -4s; }

@media (max-width: 991.98px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .hero-sub, .hero-copy .search-box { margin-inline: auto; }
  .typed-line, .hero-cta, .trust-badges { justify-content: center; }
  .hero-visual { max-width: 520px; width: 100%; margin-inline: auto; min-height: 400px; }
}
@media (max-width: 575.98px) {
  .hero-visual { display: none; }
  .search-field .btn span { display: none; }
  .search-field .btn { padding-inline: .9rem; }
}

/* Inner page hero */
.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2rem, 5vw, 3.5rem);
  isolation: isolate;
  text-align: center;
}
.page-hero .blob-1 { width: 380px; height: 380px; top: -200px; }
.page-hero .blob-2 { width: 340px; height: 340px; top: -120px; }
.page-hero p.lead { max-width: 680px; margin: 0 auto; color: var(--text-muted); font-size: 1.1rem; }

/* 8. TOOL CARDS, TABS, CHIPS ============================================== */
.cat-finance { --cat: var(--c-finance); }
.cat-health { --cat: var(--c-health); }
.cat-productivity { --cat: var(--c-productivity); }
.cat-utility { --cat: var(--c-utility); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .9rem;
  height: 100%;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  overflow: hidden;
}
.tool-card::before { /* top glow line */
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--cat, var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.tool-card:hover {
  color: var(--text);
  transform: translateY(-6px);
  border-color: var(--cat, var(--primary));
  border-color: color-mix(in srgb, var(--cat, var(--primary)) 55%, var(--border));
  box-shadow: 0 22px 40px -20px var(--cat, var(--primary));
}
.tool-card:hover::before { transform: scaleX(1); }

.tool-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--cat, var(--primary));
  background: var(--primary-soft);
  background: color-mix(in srgb, var(--cat, var(--primary)) 14%, transparent);
  transition: transform .4s var(--ease);
}
.tool-icon .icon { width: 26px; height: 26px; }
.tool-card:hover .tool-icon { transform: scale(1.08) rotate(-6deg); }
.tool-card h3 { margin: 0 0 .3rem; font-size: 1.1rem; }
.tool-card p { margin: 0; color: var(--text-muted); font-size: .935rem; line-height: 1.55; }
.tool-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .25rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--cat, var(--primary));
}
.tool-meta .icon { width: 18px; height: 18px; transition: transform var(--t); }
.tool-card:hover .tool-meta .icon { transform: translateX(4px); }
.tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: .2rem .6rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #9a3412;
  background: #ffedd5;
  border-radius: var(--radius-pill);
}
[data-theme="dark"] .tool-badge { color: #fed7aa; background: rgba(251, 146, 60, .18); }

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 2rem;
}
.tab,
.chip {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .5rem 1.1rem;
  font-weight: 600;
  font-size: .925rem;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: all var(--t);
}
.tab:hover,
.chip:hover { color: var(--text); border-color: var(--primary); }
.tab[aria-selected="true"],
.chip[aria-pressed="true"] {
  color: #fff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 10px 22px -10px rgba(109, 40, 217, .6);
}
.tab .count,
.chip .count {
  min-width: 22px;
  padding: 0 .35rem;
  font-size: .75rem;
  line-height: 22px;
  text-align: center;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--text-soft);
}
.tab[aria-selected="true"] .count,
.chip[aria-pressed="true"] .count { background: rgba(255, 255, 255, .22); color: #fff; }

.tools-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tools-toolbar .search-box { max-width: 420px; }
.tools-toolbar .search-field { box-shadow: var(--shadow-sm); padding-right: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.results-count { margin: 0 0 1.25rem; font-size: .925rem; color: var(--text-soft); }
.no-results {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.cat-block + .cat-block { margin-top: 3rem; }
.cat-block-head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.cat-block-head h2 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.cat-block-head .tool-icon { width: 44px; height: 44px; }
.cat-block-head p { margin: 0; color: var(--text-muted); font-size: .95rem; }

/* 9. FEATURES, STEPS, STATS =============================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}
.feature {
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .f-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(109, 40, 217, .6);
}
.feature .f-icon .icon { width: 24px; height: 24px; }
.feature h3 { margin-bottom: .4rem; }
.feature p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  padding: 2rem 1.6rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 1rem;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  border: 2px dashed var(--primary);
}
.step p { margin: 0; color: var(--text-muted); font-size: .95rem; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--gradient);
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.stats::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  right: -80px; top: -120px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.stat { text-align: center; position: relative; z-index: 1; }
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
}
.stat span { font-size: .925rem; opacity: .9; }
@media (max-width: 767.98px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; } }

/* 10. PROSE (SEO content) & FAQ =========================================== */
.prose { max-width: 820px; margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6rem; }
.prose p, .prose li { color: var(--text-muted); font-size: 1.035rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--text); }
.prose .callout {
  margin: 1.5rem 0;
  padding: 1.1rem 1.25rem;
  border-left: 4px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose .callout p { margin: 0; color: var(--text); }

.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .75rem; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--t), box-shadow var(--t);
}
.faq details[open] { border-color: var(--primary); box-shadow: var(--shadow); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-muted); }
.faq .faq-body p:last-child { margin: 0; }
.faq details[open] .faq-body { animation: fadeDown .35s var(--ease); }

/* 11. CTA BAND & AD SLOTS ================================================== */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #4c1d95, #1e40af 60%, #0e7490);
  color: #fff;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 600px; margin: 0 auto 1.6rem; color: rgba(255, 255, 255, .85); font-size: 1.075rem; }
.cta-band::before,
.cta-band::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  animation: float 9s ease-in-out infinite;
}
.cta-band::before { width: 260px; height: 260px; left: -80px; bottom: -120px; }
.cta-band::after { width: 180px; height: 180px; right: -40px; top: -60px; animation-delay: -3s; }
.cta-band > * { position: relative; z-index: 1; }

/* Ad placeholders: collapse while empty so they never leave gaps before AdSense is added */
.ad-slot { margin: 2rem auto; text-align: center; overflow: hidden; }
.ad-slot:empty { display: none; }

/* 12. FOOTER & SOCIAL ICONS =============================================== */
.site-footer {
  position: relative;
  margin-top: var(--section-y);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-wide);
  background-size: 300% 100%;
  animation: gradShift 8s linear infinite;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.footer-about p { color: var(--text-muted); font-size: .95rem; margin: 1rem 0 1.25rem; max-width: 340px; }
.footer-col h3 {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 28px;
  color: var(--text-muted);
  font-size: .95rem;
  transition: color var(--t), transform var(--t);
}
.footer-col a:hover { color: var(--primary); transform: translateX(4px); }

.newsletter {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: 1.5rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.newsletter h3 { margin: 0 0 .25rem; font-size: 1.1rem; }
.newsletter p { margin: 0; color: var(--text-muted); font-size: .925rem; }
.newsletter form { display: flex; gap: .5rem; min-width: min(420px, 100%); }
.newsletter input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t);
}
.newsletter input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }

.socials { display: flex; flex-wrap: wrap; gap: .65rem; list-style: none; margin: 0; padding: 0; }
.social {
  --brand: #333;
  --brand-fill: var(--brand);
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--surface-2);
  border: 1px solid var(--border);
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), color .3s ease, border-color .3s ease;
}
.social::before { /* brand fill that grows on hover */
  content: '';
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 50%;
  background: var(--brand-fill);
  transform: scale(0);
  transition: transform .35s var(--ease);
}
.social::after { /* tooltip */
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  padding: .3rem .6rem;
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
  background: #0f172a;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 6px);
  transition: opacity .25s ease, transform .25s ease;
}
.social svg { width: 20px; height: 20px; transition: transform .6s var(--ease); }
.social:hover,
.social:focus-visible {
  color: #fff;
  border-color: transparent;
  transform: translateY(-6px) scale(1.08);
  box-shadow: 0 12px 24px -8px var(--brand);
}
.social:hover::before,
.social:focus-visible::before { transform: scale(1); }
.social:hover::after,
.social:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.social:hover svg,
.social:focus-visible svg { transform: rotate(360deg); }

.social--facebook { --brand: #1877F2; }
.social--instagram { --brand: #DD2A7B; --brand-fill: linear-gradient(45deg, #F58529, #DD2A7B 45%, #8134AF 75%, #515BD4); }
.social--x { --brand: #000000; }
.social--youtube { --brand: #FF0000; }
.social--linkedin { --brand: #0A66C2; }
.social--whatsapp { --brand: #25D366; }
.social--pinterest { --brand: #E60023; }
.social--telegram { --brand: #26A5E4; }
[data-theme="dark"] .social--x { --brand: #ffffff; }
[data-theme="dark"] .social--x:hover,
[data-theme="dark"] .social--x:focus-visible { color: #000; }
[data-theme="dark"] .social::after { background: #f1f5f9; color: #0f172a; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding: 1.4rem 64px 1.4rem 0; /* right space keeps text clear of the back-to-top button */
  border-top: 1px solid var(--border);
  font-size: .9rem;
  color: var(--text-soft);
}
.footer-bottom p { margin: 0; }
.footer-bottom .made { display: inline-flex; align-items: center; gap: .35rem; }
.footer-bottom .made .icon { width: 16px; height: 16px; color: #e11d48; }

@media (max-width: 991.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .newsletter { grid-template-columns: 1fr; }
}
@media (max-width: 479.98px) {
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter form { flex-direction: column; }
}

/* 13. TOAST, BACK-TO-TOP, BREADCRUMB ====================================== */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(109, 40, 217, .7);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }

.toast-wrap {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 1000;
  display: grid;
  gap: .5rem;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100vw - 32px);
}
.toast {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .8rem 1.1rem;
  font-size: .95rem;
  font-weight: 500;
  color: #fff;
  background: #0f172a;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  animation: toastIn .35s var(--ease);
}
.toast.success { background: #047857; }
.toast.error { background: #b91c1c; }
.toast.hide { animation: toastOut .3s ease forwards; }

.breadcrumb { margin-bottom: 1.25rem; }
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .9rem;
  color: var(--text-soft);
}
.breadcrumb li + li::before { content: '/'; margin-right: .35rem; opacity: .6; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

/* 14. ANIMATIONS & REDUCED MOTION ========================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes gradShift { to { background-position: 300% 0; } }
@keyframes blobMove {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(60px, 40px) scale(1.12); }
  100% { transform: translate(-40px, 70px) scale(.95); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}
@keyframes rise {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  15%  { opacity: .45; }
  85%  { opacity: .3; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes barGrow { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes ringFill { from { stroke-dashoffset: 188.5; } to { stroke-dashoffset: 52; } }
@keyframes pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(14px); } }

/* 15. TOOL PAGES & FORMS ================================================== */
.tool-hero { padding-bottom: clamp(1.25rem, 3vw, 2rem); }
.tool-hero .lead { margin-bottom: 1rem; }
.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--c-finance);
  background: rgba(16, 185, 129, .12);
  border-radius: var(--radius-pill);
}
.privacy-pill .icon { width: 16px; height: 16px; }

.tool-section { position: relative; z-index: 1; padding-bottom: clamp(2rem, 5vw, 3rem); }
.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 1.5rem;
  align-items: start;
}
.tool-main { min-width: 0; }
.tool-aside { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 1.25rem; }
@media (max-width: 1099.98px) {
  .tool-layout { grid-template-columns: minmax(0, 1fr); }
  .tool-aside { position: static; }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.1rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.panel + .panel { margin-top: 1.25rem; }
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 1.1rem;
}
.panel-title h2, .panel-title h3 { font-size: 1.2rem; margin: 0; }
.panel h3.sub { font-size: 1rem; margin: 1.25rem 0 .75rem; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.25rem;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field > label, .field > .label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text);
}
.field .hint { font-size: .8rem; color: var(--text-soft); }
.field .error { font-size: .8rem; color: #dc2626; min-height: 0; }
[data-theme="dark"] .field .error { color: #f87171; }

.input, .select, .textarea {
  width: 100%;
  min-height: 46px;
  padding: .6rem .85rem;
  font-size: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--primary-soft);
}
.input.is-invalid { border-color: #dc2626; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.input[type="color"] { padding: 4px; height: 46px; cursor: pointer; }
.input-group { display: flex; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); min-width: 0; }
.input-group .addon {
  display: grid;
  place-items: center;
  padding: 0 .85rem;
  font-size: .875rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  white-space: nowrap;
}
.range { width: 100%; margin: .2rem 0 0; accent-color: var(--primary); }
.check { display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; cursor: pointer; font-weight: 500; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }

.btn-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.btn-ghost { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { color: #fff; background: #b91c1c; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .9rem; }
.result {
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.result span { display: block; font-size: .82rem; font-weight: 500; color: var(--text-soft); }
.result strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.3;
  color: var(--text);
  overflow-wrap: anywhere;
}
.result small { color: var(--text-soft); font-size: .8rem; }
.result.highlight { background: var(--gradient); border-color: transparent; box-shadow: 0 14px 30px -14px rgba(109, 40, 217, .6); }
.result.highlight span, .result.highlight strong, .result.highlight small { color: #fff; }

.chart-box { position: relative; height: 300px; margin-top: 1.25rem; }
.chart-box.sm { height: 240px; }
.chart-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

.table-wrap {
  overflow: auto;
  max-height: 440px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td {
  padding: .65rem .85rem;
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table td.left, .data-table th.left { text-align: left; }
.data-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); font-weight: 600; }
.data-table tbody tr:hover { background: var(--surface-2); }

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}
.seg button {
  min-height: 38px;
  padding: .4rem 1rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: none;
  font-weight: 600;
  font-size: .9rem;
  color: var(--text-muted);
  transition: all var(--t);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] {
  background: var(--surface);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .85rem 1rem;
  font-size: .925rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text);
}
.alert .icon { margin-top: .15em; }
.alert-info { background: var(--primary-soft); }
.alert-warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .35); }
.alert-danger { background: rgba(220, 38, 38, .10); border-color: rgba(220, 38, 38, .35); }
.alert-success { background: rgba(16, 185, 129, .12); border-color: rgba(16, 185, 129, .35); }
.alert + .alert, .panel .alert { margin-top: 1rem; }

.empty-state { padding: 2rem 1rem; text-align: center; color: var(--text-muted); }
.empty-state .icon { width: 40px; height: 40px; margin: 0 auto .75rem; color: var(--text-soft); }

.item-list { display: grid; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.item .grow { flex: 1; min-width: 0; }
.item .grow strong { display: block; overflow-wrap: anywhere; }
.item small { display: block; color: var(--text-soft); font-size: .82rem; }
.item.done strong { text-decoration: line-through; opacity: .6; }
.tag {
  display: inline-block;
  padding: .15rem .55rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.tag.red { color: #dc2626; background: rgba(220, 38, 38, .12); }
.tag.green { color: #059669; background: rgba(16, 185, 129, .14); }
.tag.amber { color: #b45309; background: rgba(245, 158, 11, .16); }
[data-theme="dark"] .tag.red { color: #fca5a5; }
[data-theme="dark"] .tag.green { color: #6ee7b7; }
[data-theme="dark"] .tag.amber { color: #fcd34d; }

.dropzone {
  display: grid;
  place-items: center;
  gap: .5rem;
  padding: 2.5rem 1rem;
  text-align: center;
  cursor: pointer;
  background: var(--surface-2);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--t), background var(--t);
}
.dropzone:hover, .dropzone.drag, .dropzone:focus-within { border-color: var(--primary); background: var(--primary-soft); }
.dropzone .icon { width: 44px; height: 44px; color: var(--primary); }
.dropzone strong { font-family: var(--font-head); font-size: 1.1rem; }
.dropzone p { margin: 0; color: var(--text-muted); font-size: .9rem; }

.progress { height: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: var(--gradient); border-radius: 999px; transition: width .6s var(--ease); }
.progress.over > span { background: linear-gradient(90deg, #f97316, #dc2626); }

.aside-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.aside-card h2 { font-size: 1rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.aside-card h2 .icon { color: var(--c-finance); }
.aside-card p, .aside-card li { font-size: .9rem; color: var(--text-muted); }
.aside-card ul { margin: 0; padding-left: 1.1em; }
.aside-links { list-style: none !important; padding: 0 !important; display: grid; gap: .25rem; }
.aside-links a { display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem; border-radius: var(--radius-sm); color: var(--text); font-size: .9rem; font-weight: 500; }
.aside-links a:hover { background: var(--surface-2); }
.aside-links .icon { color: var(--cat, var(--primary)); width: 18px; height: 18px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.kbd-hint { font-size: .8rem; color: var(--text-soft); }
.hidden { display: none !important; }

/* 16. ACCOUNT PAGES (sign up, log in, dashboard) ========================== */
.auth-wrap { max-width: 480px; margin-inline: auto; }
.auth-wrap .panel + .panel { margin-top: 1.25rem; }

.pw-wrap { position: relative; display: block; }
.pw-wrap .input { padding-right: 76px; }
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 34px;
  padding: .35rem .7rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--primary);
  font-size: .85rem;
  font-weight: 600;
}
.pw-toggle:hover { background: var(--primary-soft); }

.auth-switch { margin: 1.25rem 0 0; text-align: center; color: var(--text-muted); font-size: .95rem; }
.auth-switch a { font-weight: 600; }
.auth-legal { margin: 1rem 0 0; text-align: center; font-size: .85rem; color: var(--text-soft); }

/* Account control in the header */
.nav-account {
  display: none;              /* shown by JS once the login state is known */
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  padding: .4rem .9rem .4rem .5rem;
  font-family: var(--font-head);
  font-size: .925rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  transition: border-color var(--t), color var(--t), box-shadow var(--t);
  max-width: 190px;
}
.nav-account.show { display: inline-flex; }
.nav-account:hover { color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.nav-account .avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
}
.nav-account .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-account.is-guest { padding-left: .95rem; }
@media (max-width: 575.98px) {
  .nav-account .who { display: none; }
  .nav-account { padding: .4rem; max-width: none; }
  .nav-account.is-guest { padding-inline: .9rem; }
  .nav-account.is-guest .who { display: inline; }
}

/* 17. PRICING ============================================================= */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
  max-width: 860px;
  margin-inline: auto;
  align-items: start;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: 0 24px 50px -24px rgba(109, 40, 217, .55);
}
.price-card h2 { font-size: 1.25rem; margin-bottom: .5rem; }
.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: .3rem 1rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--gradient);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.price-tag {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 .5rem;
  color: var(--text);
}
.price-tag span { font-size: .95rem; font-weight: 500; color: var(--text-soft); }
.price-card > .muted { font-size: .95rem; }
.price-list { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: grid; gap: .6rem; }
.price-list li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .95rem;
  color: var(--text-muted);
}
.price-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--primary-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d28d9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / .72rem no-repeat;
}
.price-card .btn { margin-top: auto; }

.pay-status { margin: .9rem 0 0; font-size: .9rem; text-align: center; color: var(--text-muted); min-height: 1.2em; }
.pay-status.good { color: #047857; font-weight: 600; }
.pay-status.bad { color: #b91c1c; font-weight: 600; }
[data-theme="dark"] .pay-status.good { color: #34d399; }
[data-theme="dark"] .pay-status.bad { color: #f87171; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 950;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: toastIn .4s var(--ease);
}
.cookie-banner p { flex: 1 1 320px; margin: 0; font-size: .925rem; color: var(--text-muted); }
.cookie-banner .btn-row { margin: 0; }

/* Legal / info pages */
.legal-meta { color: var(--text-soft); font-size: .95rem; }
.prose .toc { padding: 1.1rem 1.4rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.prose .toc ol { margin: .25rem 0 0; }
.prose .toc li { margin-bottom: .2rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.info-card { padding: 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.info-card .f-icon { width: 44px; height: 44px; margin-bottom: .75rem; }
.info-card h3 { margin-bottom: .35rem; font-size: 1.05rem; }
.info-card p { margin: 0; font-size: .95rem; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .back-to-top, .ad-slot, .no-print, .page-hero, .tool-aside, .toast-wrap, .nav-overlay, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .panel { box-shadow: none; border: 0; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .particle { display: none; }
  .ring .ring-fg { stroke-dashoffset: 52; }
}
