/* ══════════════════════════════════════════════════════════════
   UPNIXTOOLS — UNIFIED SITE STYLESHEET  (site.css v13)
   Single stylesheet for the whole site. LIGHT-ONLY clean theme
   (MasterKit-style): pure white bg, slate text, deepened brand
   accents. No dark mode, no orbs / halo / orbit / beam effects.
   ══════════════════════════════════════════════════════════════ */

/* ── 1. DESIGN TOKENS ─────────────────────────────── */
/* ── 1. DESIGN TOKENS ─────────────────────────────── */
/* LIGHT ONLY (v9) — MasterKit-clean: white bg, slate text,
   deepened brand accents for contrast on light. */
:root {
  color-scheme: light;
  /* surfaces */
  --bg:            #ffffff;
  --bg-soft:       #f8fafc;
  --surface:       #ffffff;
  --surface-2:     #f1f5f9;
  --surface-3:     #e2e8f0;
  --glass:         rgba(255, 255, 255, .92);

  /* text */
  --ink:           #0f172b;
  --ink-soft:      #1e293b;
  --muted:         #62748e;
  --faint:         #94a3b8;

  /* lines & borders */
  --line:          #e2e8f0;
  --line-soft:    #f1f5f9;

  /* brand accents — deepened for contrast on light backgrounds */
  --cyan:          #0899c9;
  --violet:        #6f4fe8;
  --pink:          #d63d83;
  --green:         #0ab56f;
  --amber:         #b97a10;
  --red:           #e05252;

  /* semantic accent mapping */
  --accent:        var(--cyan);
  --accent-2:      var(--violet);
  --accent-dim:    rgba(8, 153, 201, .10);
  --accent-glow:   rgba(8, 153, 201, .16);
  --success:       var(--green);
  --warning:       var(--amber);
  --danger:        var(--red);

  --spectrum: linear-gradient(112deg, var(--cyan) 0%, var(--violet) 34%, var(--pink) 68%, var(--amber) 100%);

  /* type — DM Sans for everything (700/800 headings), IBM Plex Mono for mono */
  --font-head: 'DM Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;

  /* shape */
  --r-sm: 8px;  --r-md: 12px;  --r-lg: 16px;  --r-xl: 20px;
  --r-pill: 100px;

  /* motion */
  --tr: .22s cubic-bezier(.4, 0, .2, 1);
  --tr-slow: .35s cubic-bezier(.4, 0, .2, 1);
  --shadow: 0 10px 30px rgba(15, 23, 43, .10);
  --glow-alpha: .08;

  /* layout */
  --nav-h: 76px;
  --wrap: 1220px;
  --wrap-tool: 1080px;

  /* chrome surfaces */
  --nav-bg:       rgba(255, 255, 255, .85);
  --nav-bg-solid: #ffffff;
  --menu-bg:      #ffffff;
  --overlay-bg:   rgba(255, 255, 255, .96);
  --drawer-bg:    #ffffff;
  --tile-1:       #ffffff;
  --tile-2:       #f8fafc;
  --tile-1h:      #ffffff;
  --tile-2h:      #f1f5f9;
  --rel-1:        #ffffff;
  --rel-2:        #f8fafc;
}

/* ── 2. BASE ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-top: var(--nav-h); /* fixed navbar offset */
}
body.has-announce { padding-top: calc(var(--nav-h) + 36px); }
img { max-width: 100%; }
a { color: var(--accent); }
::selection { background: rgba(8, 153, 201, .18); color: var(--ink); }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.035em; margin: 0 0 .6em; line-height: 1.2; }
p { margin: 0 0 1em; }

/* v9: ambient orbs removed (light-only, no load-heavy effects) */

/* ── 3. REDUCED MOTION ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ── 4. UTILITIES ─────────────────────────────────── */
.container { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; position: relative; z-index: 2; }
.text-gradient { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: .73rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--spectrum); border-radius: 2px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* entrance micro-motion — tasteful, staggered (reduced-motion safe via global rule) */
@keyframes rise-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.rise { animation: rise-in .7s cubic-bezier(.22,.8,.3,1) both; }
.rise.d1 { animation-delay: .08s; }
.rise.d2 { animation-delay: .16s; }
.rise.d3 { animation-delay: .24s; }
.rise.d4 { animation-delay: .34s; }

/* keyboard focus — visible neon ring */
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* ── 5. BUTTONS ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  padding: 12px 26px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr), background var(--tr), color var(--tr);
}
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #57ffb4 0%, var(--green) 55%, #0ed989 100%);
  border: none; color: #04120c;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 55%, transparent),
              0 4px 14px rgba(15, 23, 43, .10),
              0 8px 22px color-mix(in srgb, var(--green) 22%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); color: #04120c; filter: brightness(1.05);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--green) 70%, transparent),
              0 6px 18px rgba(15, 23, 43, .12),
              0 10px 28px color-mix(in srgb, var(--green) 30%, transparent); }
.btn-primary:active { transform: translateY(0); filter: none; }
.btn-neon {
  background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent);
}
.btn-neon:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent);
  box-shadow: 0 4px 14px rgba(15, 23, 43, .10); }
.btn-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.btn-secondary:hover { transform: translateY(-2px); color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: 0 4px 14px rgba(15, 23, 43, .10); }
.btn-ghost { background: transparent; }
.btn-lg { padding: 14px 30px; font-size: .98rem; }
.btn-sm { padding: 8px 16px; font-size: .8rem; }
.btn-block { width: 100%; }

/* ── 6. GENERIC CARD ──────────────────────────────── */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(8px);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.card-lift:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 12px 32px rgba(15, 23, 43, .12);
}

/* ═══════════════════════════════════════════════════
   7. LOGO — pure CSS mark (approved: 4 neon squares
   diamond + plain white "Upnix Tools" text)
   ═══════════════════════════════════════════════════ */
.logo-mark {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px;
  transform: rotate(45deg);
}
.logo-mark i { display: block; border-radius: 4px; }
.logo-mark i:nth-child(1) { background: var(--cyan);   box-shadow: 0 0 14px color-mix(in srgb, var(--cyan) 64%, transparent); }
.logo-mark i:nth-child(2) { background: var(--violet); box-shadow: 0 0 14px color-mix(in srgb, var(--violet) 64%, transparent); }
.logo-mark i:nth-child(3) { background: var(--green);  box-shadow: 0 0 14px color-mix(in srgb, var(--green) 64%, transparent); }
.logo-mark i:nth-child(4) { background: var(--pink);   box-shadow: 0 0 14px color-mix(in srgb, var(--pink) 64%, transparent); }
.logo-text {
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.35rem; letter-spacing: -.03em; color: var(--ink); line-height: 1;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════
   8. NAVBAR  (migrated from header.php inline CSS;
   gold accents → neon)
   ═══════════════════════════════════════════════════ */
.navbar *, .navbar *::before, .navbar *::after { box-sizing: border-box; }
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.navbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--cyan) 45%, transparent),
    color-mix(in srgb, var(--violet) 45%, transparent),
    color-mix(in srgb, var(--pink) 45%, transparent), transparent);
  opacity: 0; transition: opacity var(--tr-slow); pointer-events: none;
}
.navbar.scrolled {
  background: var(--nav-bg-solid);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 43, .10);
}
.navbar.scrolled::after { opacity: 1; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); max-width: var(--wrap); margin: 0 auto;
  padding: 0 32px; gap: 28px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }

/* desktop links — clean text links with animated gradient underline */
.nav-links { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-links > a, .nav-dropdown > a {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 1rem; font-weight: 600;
  color: var(--muted); text-decoration: none;
  padding: 10px 15px; white-space: nowrap;
  transition: color var(--tr);
}
.nav-links > a::after, .nav-dropdown > a::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 5px;
  height: 2px; border-radius: 2px; background: var(--spectrum);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--tr); opacity: .95;
}
.nav-links > a:hover, .nav-dropdown:hover > a, .nav-dropdown:focus-within > a { color: var(--ink); }
.nav-links > a:hover::after, .nav-dropdown:hover > a::after, .nav-dropdown:focus-within > a::after { transform: scaleX(1); }
.nav-links > a.active { color: var(--ink); }
.nav-links > a.active::after { transform: scaleX(1); }

/* dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a { gap: 6px; }
.nav-dropdown > a .nav-chevron { font-size: .65rem; transition: transform var(--tr); opacity: .6; }
.nav-dropdown:hover > a .nav-chevron,
.nav-dropdown:focus-within > a .nav-chevron { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute; top: 100%; left: 50%; width: 252px;
  padding-top: 14px; opacity: 0; pointer-events: none;
  transform: translateX(-50%) translateY(-10px);
  transition: opacity var(--tr), transform var(--tr); z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu-inner {
  background: var(--menu-bg); border: 1px solid var(--line);
  border-radius: 16px; padding: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 43, .14);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.nav-dropdown-menu a {
  display: flex !important; align-items: center !important; gap: 11px !important;
  padding: 10px 12px !important; border-radius: 10px !important;
  font-size: .88rem !important; font-weight: 500 !important; color: var(--muted) !important;
  border: none !important; background: transparent !important; width: 100%;
  transition: color var(--tr), background var(--tr) !important;
}
.nav-dropdown-menu a::after { display: none !important; }
.nav-dropdown-menu a:hover { color: var(--ink) !important; background: var(--accent-dim) !important; }
.nav-dm-icon {
  width: 28px; height: 28px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}

/* right actions */
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; background: transparent;
  border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); font-size: .95rem; cursor: pointer;
  transition: color var(--tr), border-color var(--tr), background var(--tr), transform var(--tr);
}
.nav-search-btn:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background: var(--accent-dim); transform: scale(1.05); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  color: #fff !important; background: var(--spectrum);
  padding: 11px 22px; border-radius: var(--r-md); border: none !important;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--tr), box-shadow var(--tr), filter var(--tr) !important;
  box-shadow: 0 4px 14px rgba(15, 23, 43, .12);
}
.nav-cta:hover { transform: translateY(-2px); color: #fff !important; filter: brightness(1.08);
  box-shadow: 0 8px 22px rgba(15, 23, 43, .16); }

/* search overlay */
.nav-search-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: var(--overlay-bg); backdrop-filter: blur(12px);
  display: flex; flex-direction: column; align-items: center;
  padding-top: 120px; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity var(--tr), visibility 0s linear var(--tr);
}
.nav-search-overlay.open { opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity var(--tr); }
.nav-search-inner { width: 100%; max-width: 640px; padding: 0 24px; }
.nav-search-input-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 12px;
  transition: border-color var(--tr);
}
.nav-search-input-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.nav-search-icon { font-size: 1.1rem; color: var(--muted); flex-shrink: 0; }
.nav-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: 1.05rem; color: var(--ink);
}
.nav-search-input::placeholder { color: var(--faint); }
.nav-search-close {
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--muted); border-radius: var(--r-sm); width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: .8rem; flex-shrink: 0;
  transition: color var(--tr), border-color var(--tr);
}
.nav-search-close:hover { color: var(--ink); }
.nav-search-hint { font-size: .76rem; color: var(--faint); text-align: center; margin-top: 8px; }
.nav-search-results {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 8px; max-height: 380px;
  overflow-y: auto; display: none;
}
.nav-search-results.visible { display: block; }
.nav-sr-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none;
  transition: background var(--tr), color var(--tr);
}
.nav-sr-item:hover { background: rgba(15, 23, 43, .05); color: var(--accent); }
.nav-sr-icon {
  width: 34px; height: 34px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; flex-shrink: 0;
}
.nav-sr-cat { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.nav-sr-empty { text-align: center; padding: 24px; color: var(--muted); font-size: .88rem; }

/* hamburger + mobile drawer */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; background: var(--surface-2);
  border: 1px solid var(--line); border-radius: 10px; cursor: pointer;
  transition: background var(--tr), border-color var(--tr); flex-shrink: 0;
}
.nav-hamburger:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.nav-hamburger .bar {
  width: 18px; height: 2px; background: var(--muted); border-radius: 2px;
  transition: transform var(--tr), opacity var(--tr), background var(--tr); transform-origin: center;
}
.nav-hamburger.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--accent); }
.nav-hamburger.open .bar:nth-child(2) { opacity: 0; }
.nav-hamburger.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--accent); }
.nav-mobile {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: var(--drawer-bg); border-bottom: 1px solid var(--line);
  padding: 16px 24px 28px; transform: translateY(-110%); visibility: hidden;
  transition: transform .3s cubic-bezier(.4,0,.2,1), visibility 0s linear .3s;
  backdrop-filter: blur(20px); max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.nav-mobile.open { transform: translateY(0); visibility: visible;
  transition: transform .3s cubic-bezier(.4,0,.2,1); }
.nav-mobile-search {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 11px 14px; margin-bottom: 20px;
}
.nav-mobile-search input {
  flex: 1; background: transparent; border: none; outline: none;
  font-family: var(--font-body); font-size: .9rem; color: var(--ink);
}
.nav-mobile-search input::placeholder { color: var(--faint); }
.nav-mobile-group { margin-bottom: 16px; }
.nav-mobile-group-label {
  font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--faint); padding: 0 4px; margin-bottom: 6px; display: block;
}
.nav-mobile a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 500;
  color: var(--muted); text-decoration: none;
  transition: color var(--tr), background var(--tr);
}
.nav-mobile a:hover { color: var(--ink); background: rgba(15, 23, 43, .05); }
.nav-mobile a .mob-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm);
  background: var(--surface-2); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; flex-shrink: 0;
}
.nav-mobile-cta {
  display: flex; align-items: center; justify-content: center;
  margin-top: 16px; padding: 13px; background: var(--spectrum); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  border-radius: var(--r-md); text-decoration: none;
}
.nav-mobile-cta:hover { color: #fff; }

/* announcement bar */
.nav-announce {
  background: linear-gradient(90deg, var(--accent-dim), transparent, var(--accent-dim));
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  text-align: center; padding: 8px 16px;
  font-size: .75rem; font-weight: 600; color: var(--accent);
  position: fixed; top: 0; left: 0; right: 0; z-index: 1001;
}
.nav-announce a { color: var(--accent); }
body.has-announce .navbar { top: 36px; }

/* page-load progress bar */
.nav-progress {
  position: fixed; top: 0; left: 0; z-index: 9999;
  height: 2px; width: 100%; background: var(--spectrum);
  transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s ease, opacity .4s ease; border-radius: 0 2px 2px 0;
}

@media (max-width: 900px) {
  .nav-links, .nav-actions .nav-search-btn { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .nav-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero { padding: 68px 0 40px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
  .hero-visual { order: 2; }
}
@media (max-width: 480px) { .nav-inner { padding: 0 16px; } }

/* ═══════════════════════════════════════════════════
   9. TOOL PAGE LAYOUT  (unified — replaces every
   page's .xx-wrap / .xx-card / .xx-field … classes)
   ═══════════════════════════════════════════════════ */
.tool-wrap {
  max-width: var(--wrap-tool); margin: 0 auto;
  padding: 48px 20px 80px; color: var(--ink);
  position: relative; z-index: 2;
}
.tool-crumbs { font-size: 13px; color: var(--faint); margin-bottom: 28px; }
.tool-crumbs a { color: var(--accent); text-decoration: none; }
.tool-crumbs a:hover { text-decoration: underline; }
.tool-crumbs .sep { margin: 0 8px; color: var(--faint); }

.tool-head h1 {
  font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15;
  margin: 0 0 14px; letter-spacing: -.02em;
}
.tool-head h1 .text-gradient { /* optional accent word */ }
.tool-sub { color: var(--muted); font-size: 16.5px; line-height: 1.8; margin: 0 0 36px; max-width: 760px; }
.tool-reviewed { font-size: 13px; color: var(--faint); margin: -24px 0 34px; }

.tool-grid { display: grid; grid-template-columns: 380px 1fr; gap: 22px; align-items: start; }
.tool-grid.single { grid-template-columns: 1fr; max-width: 720px; margin: 0 auto; }

/* panels */
.tool-card {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.tool-card:hover { border-color: color-mix(in srgb, var(--green) 30%, var(--line));
  box-shadow: 0 8px 24px rgba(15, 23, 43, .10); }
.tool-card > h2, .tool-card > h3 {
  font-size: 17px; margin: 0 0 18px; letter-spacing: -.01em;
  color: var(--ink);
}

/* form fields */
.field { margin-bottom: 16px; }
.field > label {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13.5px; color: var(--muted); margin-bottom: 8px; font-weight: 600;
}
.field > label output { color: var(--ink); font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.input, .select, .textarea {
  width: 100%; background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink); font-size: 15px; font-family: var(--font-body);
  padding: 11px 14px; outline: none; box-sizing: border-box;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
/* inside tools: green focus ring to match the brand buttons */
.tool-wrap .input:focus, .tool-wrap .select:focus, .tool-wrap .textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}
.tool-wrap input[type="range"].slider,
.tool-wrap input[type="checkbox"].check,
.tool-wrap input[type="radio"].radio { accent-color: var(--green); }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2362748e' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.hint { font-size: 12px; color: var(--faint); margin-top: 6px; line-height: 1.5; }
input[type="range"].slider { width: 100%; accent-color: var(--accent); cursor: pointer; }
input[type="checkbox"].check, input[type="radio"].radio { accent-color: var(--accent); width: 17px; height: 17px; }

/* result hero */
.result-top { text-align: center; padding: 8px 0 20px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; }
.result-top .lbl { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px; }
.result-top .val {
  font-family: var(--font-head);
  font-size: clamp(38px, 5vw, 54px); font-weight: 800;
  background: linear-gradient(135deg, var(--green) 10%, var(--cyan) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em; line-height: 1;
}
.result-top .per { font-size: 13px; color: var(--faint); margin-top: 8px; }

/* key/value breakdown rows */
.kv { display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--line-soft); font-size: 14.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.kv .v { font-weight: 700; color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.stat { background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 14px; text-align: center;
  transition: border-color var(--tr), transform var(--tr); }
.stat:hover { border-color: color-mix(in srgb, var(--accent) 35%, transparent); transform: translateY(-2px); }
.stat .k { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.stat .v { font-size: 17px; font-weight: 700; color: var(--ink); }
.stat .v.cyan { color: var(--cyan); } .stat .v.violet { color: var(--violet); }
.stat .v.green { color: var(--green); } .stat .v.pink { color: var(--pink); }

/* tables */
.tbl-wrap { margin-top: 8px; overflow: auto; max-height: 420px; border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line-soft); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl th { color: var(--accent); font-size: 12px; text-transform: uppercase; letter-spacing: 1px;
  background: var(--bg-soft); position: sticky; top: 0; }
.tbl td { color: var(--ink-soft); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(15, 23, 43, .04); }

/* content sections */
.tool-section { margin-top: 64px; }
.tool-section h2 { font-size: 26px; margin: 0 0 16px; letter-spacing: -.01em; }
.tool-section h2::before {
  content: ""; display: block; width: 44px; height: 3px;
  background: linear-gradient(90deg, var(--green), var(--cyan)); border-radius: 2px; margin-bottom: 14px;
}
.tool-section p, .tool-section li { line-height: 1.85; color: var(--ink-soft); font-size: 16px; }
.tool-section p { margin: 0 0 16px; }
.tool-section ul, .tool-section ol { margin: 0 0 16px; padding-left: 22px; }
.formula {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 22px; font-family: var(--font-mono); font-size: 14.5px;
  color: var(--accent); margin: 18px 0; overflow-x: auto; white-space: nowrap;
}
.callout {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0;
  padding: 18px 22px; margin: 18px 0;
}
.callout.violet { border-left-color: var(--violet); }
.callout.pink { border-left-color: var(--pink); }
.callout.green { border-left-color: var(--green); }
.callout h3 { margin: 0 0 8px; font-size: 17px; color: var(--accent); }
.callout p { margin: 0; font-size: 15px; color: var(--ink-soft); }

/* FAQ accordions */
.faq { margin-top: 12px; }
.faq details {
  background: var(--glass); border: 1px solid var(--line);
  border-radius: 10px; margin-bottom: 12px; overflow: hidden;
  transition: border-color var(--tr);
}
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.faq summary {
  padding: 16px 20px; cursor: pointer; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.3rem; font-weight: 400; flex-shrink: 0;
  transition: transform var(--tr); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { padding: 0 20px 18px; color: var(--muted); font-size: 15px; line-height: 1.75; }

/* ad slot — hidden until a real ad fills it (revealed by JS in footer) */
.ad-slot {
  margin: 40px auto; text-align: center;
  min-height: 100px; align-items: center; justify-content: center;
  border: 1px dashed var(--line); border-radius: var(--r-md);
  color: var(--faint); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  background: var(--bg-soft);
  display: none;
}
.ad-slot.ad-live { display: flex; }
.ad-slot.leaderboard { max-width: 970px; min-height: 110px; }

/* related tools */
.related { margin-top: 64px; }
.related h2 { font-size: 22px; margin-bottom: 20px; }
.rel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.rel-card {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, var(--rel-1) 0%, var(--rel-2) 100%);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--r-md); padding: 14px 16px;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem;
  box-shadow: 0 1px 3px rgba(15, 23, 43, .06), 0 6px 18px rgba(15, 23, 43, .06);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.rel-card:hover { transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 10px 28px rgba(15, 23, 43, .12); }
.rel-card .rel-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center; font-size: 1.05rem; color: #fff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .45);
}

/* dropzone (upload tools) */
.dropzone {
  border: 2px dashed color-mix(in srgb, var(--green) 42%, transparent);
  border-radius: var(--r-lg); padding: 44px 24px; text-align: center;
  background: color-mix(in srgb, var(--green) 4%, transparent);
  cursor: pointer; transition: border-color var(--tr), background var(--tr), box-shadow var(--tr), transform var(--tr);
}
.dropzone:hover, .dropzone.drag {
  border-color: var(--green); background: color-mix(in srgb, var(--green) 8%, transparent);
  box-shadow: 0 8px 24px rgba(15, 23, 43, .10);
  transform: translateY(-2px);
}
.dropzone .dz-icon { font-size: 2.6rem; margin-bottom: 12px; display: block; }
.dropzone .dz-title { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin-bottom: 6px; }
.dropzone .dz-sub { color: var(--muted); font-size: .88rem; }

/* file list rows */
.file-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-soft); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; font-size: .9rem;
}
.file-row .f-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .f-size { color: var(--muted); font-size: .8rem; }
.file-row .f-remove { background: none; border: none; color: var(--danger); cursor: pointer; font-size: 1rem; }

/* progress */
.progress { height: 8px; background: var(--surface-3); border-radius: 100px; overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0%; background: var(--spectrum);
  border-radius: 100px; transition: width .3s ease; }

/* ═══════════════════════════════════════════════════
   10. HOMEPAGE SECTIONS
   ═══════════════════════════════════════════════════ */
.hero { padding: clamp(70px, 10vw, 124px) 0 60px; position: relative; z-index: 2; overflow: clip; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(310px, .84fr);
  align-items: center; gap: clamp(40px, 7vw, 88px);
}
.hero h1 {
  font-size: clamp(2.9rem, 6.4vw, 5.4rem); font-weight: 700;
  line-height: .95; letter-spacing: -.075em;
  margin: 17px 0 20px; max-width: 12ch;
}
.hero p.lead {
  color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.7; max-width: 590px; margin: 0 0 30px;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats .hs { text-align: left; }
.hero-stats .hs b { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800;
  background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats .hs span { font-size: .8rem; color: var(--muted); }

/* hero visual — glowing showcase card (demo's visual-card, elevated) */
.hero-visual { display: grid; place-items: center; position: relative; }

/* v9: rotating ring effect removed (light-only, no load-heavy effects) */
.hv-card {
  position: relative; width: min(100%, 340px); padding: 26px;
  border-radius: 24px;
  border: 1px solid color-mix(in srgb, var(--violet) 32%, var(--line));
  background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(15, 23, 43, .06), 0 16px 40px rgba(15, 23, 43, .10);
  transition: transform var(--tr-slow), box-shadow var(--tr-slow);
}
.hv-card:hover { transform: translateY(-6px) rotate(-.5deg);
  box-shadow: 0 2px 6px rgba(15, 23, 43, .06), 0 20px 48px rgba(15, 23, 43, .14); }
.hv-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.hv-dots { display: flex; gap: 6px; }
.hv-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.hv-dots i:nth-child(1) { background: var(--pink); }
.hv-dots i:nth-child(2) { background: var(--amber); }
.hv-dots i:nth-child(3) { background: var(--green); }
.hv-live { display: inline-flex; align-items: center; gap: 7px; color: var(--muted);
  font-family: var(--font-mono); font-size: .68rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; }
.hv-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); }
/* hero carousel — auto-rotating major-tool slides (pure CSS/JS, no libs) */
.hv-slides { display: grid; }
.hv-slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease, visibility 0s linear .55s;
  pointer-events: none;
}
.hv-slide.active {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .55s ease, transform .55s ease;
}
.hv-slide .hv-icon { width: 68px; height: 68px; display: grid; place-items: center; font-size: 2.6rem;
  border-radius: 18px; margin-bottom: 20px; }
.hv-slide[data-accent="pink"] .hv-icon {
  background: linear-gradient(135deg, #f472b6, #e11d48);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--pink) 45%, transparent); }
.hv-slide[data-accent="violet"] .hv-icon {
  background: linear-gradient(135deg, #a78bfa, #7c3aed);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--violet) 45%, transparent); }
.hv-slide[data-accent="green"] .hv-icon {
  background: linear-gradient(135deg, #34d399, #059669);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--green) 45%, transparent); }
.hv-slide[data-accent="amber"] .hv-icon {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--amber) 45%, transparent); }
.hv-slide h2 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -.035em; }
.hv-slide p { margin: 0; color: var(--muted); font-size: .93rem; line-height: 1.55; min-height: 2.9em; }
.hv-mock { height: 46px; margin-top: 22px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface-2); position: relative; overflow: hidden;
  display: flex; align-items: center; padding: 0 14px; }
.hv-mock::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 62%;
  background: color-mix(in srgb, var(--green) 11%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--green) 35%, transparent); }
.hv-mock span { position: relative; z-index: 1; font-size: .8rem; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-mono); }
.hv-cta { display: block; text-align: center; margin-top: 18px; }
.hv-dots-nav { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.hv-dot {
  width: 32px; height: 28px; border: none; padding: 0; background: transparent;
  cursor: pointer; position: relative;
}
.hv-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 7px; height: 7px; border-radius: 100px; background: var(--line);
  transition: width var(--tr), background var(--tr);
}
.hv-dot:hover::before { background: var(--muted); }
.hv-dot.active::before { width: 28px; background: var(--spectrum); }
@media (prefers-reduced-motion: reduce) {
  .hv-slide { transition: none; }
}

.cat-section { padding: 44px 0; position: relative; z-index: 2; }
.cat-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; gap: 16px; }
.cat-head h2 { font-size: 1.5rem; margin: 0; display: flex; align-items: center; gap: 10px; }
.cat-head h2 .cat-ico {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 4px 12px rgba(37, 99, 235, .4);
  transition: box-shadow var(--tr), transform var(--tr);
}
.cat-head:hover h2 .cat-ico { box-shadow: 0 4px 12px rgba(15, 23, 43, .10);
  transform: translateY(-2px); }
.cat-head a.more { font-size: .85rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent);
  text-underline-offset: 3px; }
.cat-head a.more:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* v9: animated beam hover removed — replaced with a simple border + soft shadow */

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.tool-tile {
  --tile-accent: var(--cyan);
  --tile-chip: linear-gradient(135deg, #22d3ee, #2563eb);
  position: relative; overflow: hidden; display: block;
  min-height: 220px;
  background: linear-gradient(180deg, var(--tile-1) 0%, var(--tile-2) 100%);
  border: 1px solid color-mix(in srgb, var(--tile-accent) 24%, var(--line));
  border-radius: 18px; padding: 22px; text-decoration: none; color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 43, .06), 0 6px 20px rgba(15, 23, 43, .06);
  transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.tool-tile::before {
  content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px; border-radius: 2px;
  background: var(--spectrum); opacity: 0; transition: opacity var(--tr);
}
.tool-tile:hover::before { opacity: 1; }
.tool-tile:hover { transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--tile-accent) 45%, var(--line));
  box-shadow: 0 12px 32px rgba(15, 23, 43, .12); }
/* QR glyph icon (replaces the black-square emoji) — scales with parent font-size */
.qr-glyph { width: 1em; height: 1em; display: block; flex: none; }
.tool-tile .tile-icon {
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; font-size: 1.25rem; color: #fff;
  background: var(--tile-chip);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--tile-accent) 45%, transparent);
  margin-bottom: 40px;
}
.tool-tile h3 { margin: 0 0 7px; font-size: 1.12rem; font-family: var(--font-head); }
.tool-tile p { margin: 0; color: var(--muted); font-size: .89rem; line-height: 1.5; }
.tool-tile .tile-go {
  position: absolute; right: 20px; top: 20px; color: var(--faint); font-size: 1.1rem;
  transition: color var(--tr), transform var(--tr);
}
.tool-tile:hover .tile-go { color: var(--tile-accent); transform: translateX(4px); }
/* per-category tile accents (multicolor, subtle) */
.cat-text  .tool-tile { --tile-accent: var(--cyan); --tile-chip: linear-gradient(135deg, #22d3ee, #2563eb); }
.cat-image .tool-tile { --tile-accent: var(--violet); --tile-chip: linear-gradient(135deg, #a78bfa, #7c3aed); }
.cat-pdf   .tool-tile { --tile-accent: var(--pink); --tile-chip: linear-gradient(135deg, #f472b6, #e11d48); }
.cat-qr    .tool-tile { --tile-accent: var(--green); --tile-chip: linear-gradient(135deg, #34d399, #059669); }
.cat-calc  .tool-tile { --tile-accent: var(--amber); --tile-chip: linear-gradient(135deg, #fbbf24, #ea580c); }
.cat-text  .cat-ico { background: linear-gradient(135deg, #22d3ee, #2563eb); color: #fff; }
.cat-image .cat-ico { background: linear-gradient(135deg, #a78bfa, #7c3aed); color: #fff; }
.cat-pdf   .cat-ico { background: linear-gradient(135deg, #f472b6, #e11d48); color: #fff; }
.cat-qr    .cat-ico { background: linear-gradient(135deg, #34d399, #059669); color: #fff; }
.cat-calc  .cat-ico { background: linear-gradient(135deg, #fbbf24, #ea580c); color: #fff; }

/* value props strip */
.props { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding: 40px 0; }
.prop { text-align: center; padding: 28px 20px; }
.prop .p-ico { font-size: 2rem; margin-bottom: 12px; display: block; }
.prop h3 { font-size: 1.02rem; margin: 0 0 8px; }
.prop p { color: var(--muted); font-size: .88rem; margin: 0; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   11. FOOTER — modern, clean
   ═══════════════════════════════════════════════════ */
.site-footer {
  position: relative; background: var(--bg);
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-body); overflow: hidden; z-index: 2;
}
.site-footer::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent,
    color-mix(in srgb, var(--cyan) 40%, transparent),
    color-mix(in srgb, var(--pink) 40%, transparent), transparent);
  pointer-events: none;
}
/* v9: footer glow orbs removed (light-only, clean) */
.ft-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* top — brand + socials in one clean row */
.ft-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  padding: 60px 0 44px; border-bottom: 1px solid var(--line-soft);
}
.ft-brand-block { max-width: 480px; }
.ft-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-bottom: 16px; }
.ft-tagline { color: var(--muted); font-size: .93rem; line-height: 1.75; margin: 0; }
.ft-social { display: flex; gap: 10px; }
.ft-social a {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--muted); text-decoration: none;
  transition: color var(--tr), border-color var(--tr), transform var(--tr), box-shadow var(--tr), background var(--tr);
}
.ft-social a:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-dim); transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(15, 23, 43, .10); }
.ft-social svg { width: 17px; height: 17px; }

/* link columns */
.ft-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 32px; padding: 52px 0 56px; }
.ft-col h4 { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 18px; }
.ft-links { display: flex; flex-direction: column; gap: 2px; }
.ft-links a {
  color: var(--muted); text-decoration: none; font-size: .88rem; padding: 6px 0;
  width: fit-content; transition: color var(--tr), transform var(--tr);
}
.ft-links a:hover { color: var(--ink); transform: translateX(4px); }
.ft-links a.hl { color: var(--ink-soft); font-weight: 600; }

/* bottom bar */
.ft-bottom { border-top: 1px solid var(--line-soft); padding: 24px 0 30px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.ft-copy { color: var(--faint); font-size: .82rem; }
.ft-copy a { color: var(--muted); text-decoration: none; transition: color var(--tr); }
.ft-copy a:hover { color: var(--accent); }
.ft-made { color: var(--faint); font-size: .82rem; }
.ft-heart { color: var(--pink); }
.ft-legal { display: flex; gap: 22px; }
.ft-legal a { color: var(--faint); font-size: .82rem; text-decoration: none; transition: color var(--tr); }
.ft-legal a:hover { color: var(--accent); }


/* ═══════════════════════════════════════════════════
   12. STATIC PAGES (about / contact / legal)
   ═══════════════════════════════════════════════════ */
.page-wrap { max-width: 860px; margin: 0 auto; padding: 56px 20px 90px; position: relative; z-index: 2; }
.page-wrap h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.page-wrap .lede { color: var(--muted); font-size: 1.08rem; line-height: 1.8; margin-bottom: 40px; }
.page-wrap h2 { font-size: 1.4rem; margin: 44px 0 14px; }
.page-wrap h2::before { content: ""; display: block; width: 40px; height: 3px;
  background: var(--spectrum); border-radius: 2px; margin-bottom: 12px; }
.page-wrap p, .page-wrap li { color: var(--ink-soft); line-height: 1.85; font-size: 1rem; }
.page-wrap ul { padding-left: 22px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; margin-top: 36px; }
.form-note { font-size: .82rem; color: var(--faint); margin-top: 14px; line-height: 1.6; }

/* ═══════════════════════════════════════════════════
   13. PAGE-SPECIFIC (namespaced) — QR generator
   ═══════════════════════════════════════════════════ */
.qr-preview-box {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.qr-canvas-wrap {
  background: #fff; border-radius: var(--r-md); padding: 18px;
  box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(15, 23, 43, .10);
}
.qr-canvas-wrap canvas { display: block; width: 220px; height: 220px; image-rendering: pixelated; }
.swatch-row { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 34px; height: 34px; border-radius: 10px; cursor: pointer;
  border: 2px solid transparent; transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr);
}
.swatch:hover { transform: scale(1.12); }
.swatch.sel { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* ═══════════════════════════════════════════════════
   14. RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .tool-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .container { padding: 0 18px; }
  .tool-wrap { padding: 36px 16px 64px; }
  .ft-top { flex-direction: column; align-items: flex-start; gap: 28px; padding: 48px 0 40px; }
  .ft-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 40px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .tile-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .tile-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .ft-bottom { flex-direction: column; text-align: center; }
}

/* v9: light-only — theme toggle removed; light is the only theme */

/* ═══════════════════════════════════════════════════
   21. MOBILE POLISH (fix4) — ≤640px hero & homepage
   Mobile par headline ka awkward word-per-line stacking,
   CTA buttons ka clipping aur stats ka squeeze fix.
   ═══════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .hero { padding: 52px 0 36px; }
  .hero-grid { gap: 34px; }
  .hero h1 {
    font-size: clamp(2.3rem, 10.5vw, 3.1rem);
    line-height: 1.04;
    letter-spacing: -.04em;
    max-width: 100%; /* natural wrap — 18ch font-size ke hisab se viewport se bara par jata tha */
    margin: 14px 0 16px;
  }
  .hero p.lead { font-size: 1rem; line-height: 1.65; margin-bottom: 24px; }
  .hero-cta { flex-direction: column; align-items: stretch; margin-bottom: 30px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 14px; margin: 0;
  }
  .hero-stats .hs { min-width: 0; }
  .hero-stats .hs b { font-size: 1.3rem; }
  .hero-stats .hs span { font-size: .72rem; line-height: 1.45; display: block; }
  .hv-card { margin-inline: auto; }
  .eyebrow { font-size: .68rem; letter-spacing: .14em; }
  .cat-section { padding: 34px 0; }
  .cat-head h2 { font-size: 1.22rem; }
}
@media (max-width: 380px) {
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero-stats .hs:last-child { grid-column: 1 / -1; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 2.6rem); }
}

/* ═══════════════════════════════════════════════════
   22. MOBILE GRID FIX (fix5) — ≤900px hero stacking
   Wajah: @media (max-width:900px) wala block file ke beech mein tha,
   jabke desktop .hero rules uske BAAD likhe thay — CSS mein baad wala
   rule jeet-ta hai, is liye mobile par bhi 2-column grid lag raha tha
   (text squeeze + card overlap). Ye end-of-file overrides usay theek
   karte hain: mobile par text oper, carousel neeche, phir baqi content.
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 40px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 4rem); }
}


/* ═══════════════════════════════════════════════════
   22. ARTICLES — light-only remap (.ut-article)
   Article pages hardcode old colors in their inline CSS;
   remap them for the light-only site. Covers all current +
   future articles (2026-11-03 fix, v9: no theme qualifier).
   ═══════════════════════════════════════════════════ */
.ut-article{color:var(--ink)}
.ut-article h1,
.ut-article h2{color:var(--ink)}
.ut-article h3{color:var(--amber)}
.ut-article p,
.ut-article ul,
.ut-article ol,
.ut-article td,
.ut-article .ut-faq .a{color:var(--ink-soft)}
.ut-article strong{color:var(--ink)}
.ut-article a{color:var(--cyan)}
.ut-meta,
.ut-crumbs{color:var(--muted)}
.ut-crumbs a{color:var(--cyan)}
.ut-crumbs span{color:var(--faint)}
.ut-disclaimer{background:var(--surface-2);color:var(--muted);border-left-color:var(--amber)}
.ut-disclaimer strong{color:var(--ink)}
.ut-article th,
.ut-article td{border-color:var(--line)}
.ut-article th{background:var(--surface-2);color:var(--amber)}
.ut-article blockquote{background:var(--surface-2);border-left-color:var(--cyan);color:var(--ink-soft)}
.ut-cta{background:var(--surface);border-color:var(--line)}
.ut-cta .t{color:var(--ink)}
.ut-cta .s{color:var(--muted)}
.ut-faq details{background:var(--surface);border-color:var(--line)}
.ut-faq summary{color:var(--ink)}
.ut-faq summary::after{color:var(--amber)}
.ut-related{border-top-color:var(--line)}
.ut-related h2{color:var(--ink)}
.ut-rel-grid a{background:var(--surface);border-color:var(--line);color:var(--ink)!important}
.ut-rel-grid a:hover{border-color:var(--cyan)}
.ut-rel-grid a span{color:var(--muted)}

/* ═══════════════════════════════════════════════════
   23. CONTACT PAGE — light-only remap (.b3d-contact)
   migrate-batch3.css hardcodes old tokens in the
   .b3d-contact scope; remap them for the light-only site (v9).
   ═══════════════════════════════════════════════════ */
.b3d-scope.b3d-contact{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f1f5f9; --surface-3:#e2e8f0;
  --border:#e2e8f0; --border-2:#cbd5e1;
  --accent:#b97a10; --accent-2:#b97a10;
  --accent-dim:rgba(185,122,16,.12); --accent-glow:rgba(185,122,16,.25);
  --blue:#0899c9; --blue-dim:rgba(8,153,201,.12);
  --green:#0ab56f; --green-dim:rgba(10,181,111,.12);
  --red:#e05252;
  --text:#0f172b; --text-2:#1e293b; --text-3:#62748e;
}

/* ═══════════════════════════════════════════════════
   24. TERMS + PRIVACY — light-only remap
   ═══════════════════════════════════════════════════ */
.b3d-scope.b3d-terms{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f1f5f9; --surface-3:#e2e8f0;
  --border:#e2e8f0; --border-2:#cbd5e1;
  --accent:#b97a10;
  --accent-dim:rgba(185,122,16,.12); --accent-glow:rgba(185,122,16,.25);
  --text:#0f172b; --text-2:#1e293b; --text-3:#62748e;
}
.b3d-scope.b3d-privacy{ --pp-accent:var(--amber); }

/* ═══════════════════════════════════════════════════
   25. UNIT CONVERTER + WEEKS CALC — light-only remap
   ═══════════════════════════════════════════════════ */
.b3d-scope.b3d-uc{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f1f5f9; --surface-3:#e2e8f0;
  --border:#e2e8f0; --border-2:#cbd5e1;
  --accent:#b97a10; --accent-2:#b97a10;
  --accent-dim:rgba(185,122,16,.12); --accent-glow:rgba(185,122,16,.25);
  --green:#0ab56f; --green-dim:rgba(10,181,111,.12);
  --text:#0f172b; --text-2:#1e293b; --text-3:#62748e;
}
body .b3d-scope.b3d-weeks{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f1f5f9;
  --border:#e2e8f0;
  --accent:#b97a10;
  --text:#0f172b; --text-muted:#62748e;
}

/* ═══════════════════════════════════════════════════
   FEATURED: SOCIAL VIDEO DOWNLOADERS (.dl-feature)
   Styles were missing from the live stylesheet (v8/v9) so the
   Facebook/Instagram cards rendered as plain blue links.
   Added in v10 — light, clean, MasterKit-like. No blur orbs.
   ═══════════════════════════════════════════════════ */
.dl-feature { padding: 6px 0 44px; position: relative; z-index: 2; }
.dl-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.dl-card {
  --dl-accent: #f5c518;
  position: relative; display: block; overflow: hidden;
  border-radius: 20px; padding: 28px 26px; text-decoration: none; color: var(--ink);
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--dl-accent) 40%, var(--line));
  box-shadow: 0 4px 16px rgba(15,23,43,.08);
  transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.dl-card:hover { transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--dl-accent) 60%, var(--line));
  box-shadow: 0 12px 32px rgba(15,23,43,.12); }
.dl-fb { --dl-accent: #1877F2; }
.dl-ig { --dl-accent: #E1306C; }
.dl-badge {
  position: absolute; top: 16px; right: 16px;
  font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(180deg, #ffd83d, #f5c518); color: #231a02;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 4px 14px rgba(245,197,24,.4);
}
.dl-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.dl-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.dl-card p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; max-width: 42ch; }
.dl-cta { display: inline-block; font-weight: 800; color: var(--dl-accent); }
.dl-card:hover .dl-cta { text-decoration: underline; }
@media (max-width: 640px) { .dl-feature-grid { grid-template-columns: 1fr; } }

/* ── WHITE ICONS (v12) ──
   Emoji glyphs ignore CSS `color`, so a tiny script wraps each icon in
   <span class="ico-w"> and this filter turns it into a clean white
   silhouette on the bright chip — MasterKit-like. SVGs are skipped
   (already white via currentColor). */
.ico-w { filter: brightness(0) invert(1); display: inline-block; }
