/* ==========================================================================
   Capvizo — Genuine Executive Cobalt-Sapphire Design System
   - Bright Mode (Default): Neutral white canvas + Crisp Carbon Ink (#0f172a)
     paired with Authoritative Cobalt Blue (#2563eb) & Sky (#0284c7).
   - Dark Mode ([data-theme="dark"]): Obsidian #070b14 + Electric Blue (#3b82f6).
   - Unified All-in-One Cobalt Viewfinder-C brand mark across tabs, search, & UI.
   ========================================================================== */

:root,
[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --surface: #ffffff;
  --surface-hover: #f8fafc;
  --nav-bg: rgba(255, 255, 255, 0.94);
  --ink: #0f172a;
  --ink-2: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;

  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-deep: #1e40af;
  --brand-soft: #eff6ff;
  --brand-rgb: 37, 99, 235;

  --sky: #0284c7;
  --sky-soft: #e0f2fe;
  --sky-rgb: 2, 132, 199;

  --emerald: #059669;
  --emerald-soft: #ecfdf5;
  --indigo: #1d4ed8;
  --indigo-soft: #eff6ff;
  --slate-soft: #f1f5f9;

  --accent-grad: linear-gradient(135deg, #1e40af 0%, #2563eb 52%, #0284c7 100%);
  --btn-grad: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  --btn-grad-hover: linear-gradient(180deg, #1d4ed8 0%, #1e40af 100%);
  --btn-ink: #ffffff;
  --hero-bg:
    radial-gradient(ellipse 68% 54% at 78% 12%, rgba(37, 99, 235, 0.085), transparent 65%),
    radial-gradient(ellipse 50% 45% at 14% 12%, rgba(14, 165, 233, 0.045), transparent 60%),
    #ffffff;
  --discuss-bg: linear-gradient(135deg, #eff6ff 0%, #f8fafc 50%, #ffffff 100%);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 14px -4px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 16px 36px -12px rgba(37, 99, 235, 0.12), 0 0 0 1px rgba(37, 99, 235, 0.08);
  --shadow-lg: 0 28px 64px -16px rgba(37, 99, 235, 0.18), 0 10px 28px -10px rgba(15, 23, 42, 0.12);

  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shell: 1220px;
  --gutter: clamp(1.1rem, 4vw, 2rem);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

[data-theme="dark"] {
  --bg: #070b14;
  --bg-subtle: #0c1322;
  --bg-muted: #111b2e;
  --surface: #0f172a;
  --surface-hover: #17233b;
  --nav-bg: rgba(7, 11, 20, 0.9);
  --ink: #f8fafc;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.3);

  --brand: #3b82f6;
  --brand-hover: #60a5fa;
  --brand-deep: #2563eb;
  --brand-soft: rgba(59, 130, 246, 0.16);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  --emerald: #34d399;
  --emerald-soft: rgba(16, 185, 129, 0.15);
  --indigo: #60a5fa;
  --indigo-soft: rgba(59, 130, 246, 0.16);
  --slate-soft: rgba(148, 163, 184, 0.12);

  --accent-grad: linear-gradient(135deg, #93c5fd 0%, #3b82f6 52%, #38bdf8 100%);
  --btn-grad: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  --btn-grad-hover: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  --btn-ink: #ffffff;
  --hero-bg:
    radial-gradient(ellipse 68% 54% at 78% 12%, rgba(59, 130, 246, 0.18), transparent 65%),
    radial-gradient(ellipse 50% 45% at 14% 12%, rgba(14, 165, 233, 0.09), transparent 60%),
    #070b14;
  --discuss-bg: linear-gradient(135deg, rgba(37, 99, 235, 0.18) 0%, #0f172a 100%);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 4px 16px -4px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(148, 163, 184, 0.12);
  --shadow-md: 0 18px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(59, 130, 246, 0.22);
  --shadow-lg: 0 28px 70px -16px rgba(37, 99, 235, 0.32), 0 10px 28px -10px rgba(0, 0, 0, 0.55);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

::selection {
  background: var(--brand-soft);
  color: var(--brand-hover);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ── Subtle Cobalt & Sky Cursor Glow + Star Sparkles ──────────────────────── */
#cursor-aura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 980;
  background: radial-gradient(
    460px circle at var(--mx, -500px) var(--my, -500px),
    rgba(37, 99, 235, 0.08),
    rgba(14, 165, 233, 0.035) 44%,
    transparent 72%
  );
}

#cursor-stars {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 981;
}

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: var(--gutter);
  z-index: 2000;
  background: var(--brand);
  color: #ffffff;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

.ico {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.ico-fill {
  fill: currentColor;
  stroke: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ── Navigation, Corner Light/Dark Button & Zero-Gap Product Dropdown ─────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-in {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0.72rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.58rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.025em;
  color: var(--ink);
  flex-shrink: 0;
}

/* Permanent Unified All-in-One Capvizo Brand Mark (matches favicon.svg & PNG favicons 1:1) */
.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 55%, #0284c7 100%);
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28);
}

.brand-mark .ico {
  width: 22px;
  height: 22px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-links > a:not(.btn),
.nav-dd-btn {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0;
  transition: color 0.15s ease;
}

.nav-links > a:not(.btn):hover,
.nav-links > a:not(.btn)[aria-current="page"],
.nav-dd-btn:hover,
.nav-dd.is-open .nav-dd-btn,
.nav-dd.is-hover .nav-dd-btn {
  color: var(--brand-hover);
}

.nav-links > a.mobile-only {
  display: none;
}

/* Zero-Gap Hover Bridge Dropdown Panel */
.nav-dd {
  position: relative;
}

.nav-dd-menu {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  left: -16px;
  width: min(620px, calc(100vw - 2rem));
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem;
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.42rem;
  z-index: 950;
}

.nav-dd-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 18px;
}

.nav-dd.is-open .nav-dd-menu,
.nav-dd.is-hover .nav-dd-menu {
  display: grid;
}

@media (min-width: 761px) {
  .nav-dd:hover .nav-dd-menu,
  .nav-dd:focus-within .nav-dd-menu {
    display: grid;
  }
}

.dd-item {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  padding: 0.62rem 0.78rem;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.14s ease, border-color 0.14s ease, transform 0.14s ease;
}

.dd-item:hover,
.dd-item:focus-visible {
  background: var(--brand-soft);
  border-color: rgba(var(--brand-rgb), 0.24);
  transform: translateY(-1px);
  outline: none;
}

.dd-item:hover .dd-title {
  color: var(--brand-hover);
}

.dd-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
}

.dd-sub {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.dd-tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  font-weight: 600;
  flex-shrink: 0;
}

.dd-tag.live {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.dd-foot {
  grid-column: span 2;
  border-top: 1px solid var(--border);
  margin-top: 0.4rem;
  padding: 0.7rem 0.5rem 0.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.dd-foot a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.dd-foot a:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-links .dd-foot a.dd-demo-cta,
.dd-foot a.dd-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.46rem 0.95rem;
  border-radius: 9px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 2px 10px -2px rgba(var(--brand-rgb), 0.45);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.nav-links .dd-foot a.dd-demo-cta:hover,
.dd-foot a.dd-demo-cta:hover {
  background: var(--brand-hover);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Clean Corner Light / Dark Mode Button */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover {
  background: var(--bg-muted);
  color: var(--ink);
  border-color: var(--border-strong);
}

.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; color: #60a5fa; }

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}

/* ── Buttons (Genuine Cobalt-Sapphire Authority) ──────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.72rem 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-grad);
  color: var(--btn-ink);
  border-color: #1d4ed8;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 18px -4px rgba(37, 99, 235, 0.36);
}

.btn-primary:hover {
  background: var(--btn-grad-hover);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 10px 24px -4px rgba(37, 99, 235, 0.45);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.btn-soft {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border-color: rgba(37, 99, 235, 0.22);
}

.btn-soft:hover {
  filter: brightness(0.96);
  transform: translateY(-1px);
}

.btn-sm {
  font-size: 0.84rem;
  padding: 0.54rem 0.95rem;
  border-radius: 8px;
}

.btn-lg {
  font-size: 0.95rem;
  padding: 0.88rem 1.4rem;
  border-radius: 11px;
}

.mobile-only {
  display: none;
}

/* ── Split Hero (Auto-Looping HD Showcase Above the Fold) ─────────────────── */
.hero {
  padding: clamp(2.4rem, 5vw, 4.2rem) 0 clamp(2.8rem, 5vw, 4.2rem);
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.06fr;
  gap: clamp(1.8rem, 4vw, 3.2rem);
  align-items: center;
}

.hero-split > *,
.metrics-grid > *,
.bento > *,
.suite-grid > *,
.demo-vault > *,
.pain-grid > *,
.highlight-strip > *,
.foot-top > *,
.blog-shell > * {
  min-width: 0;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--brand-hover);
  margin-bottom: 0.85rem;
}

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 3.65vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: 1rem;
}

.hero-h1 .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.02rem;
  color: var(--ink-2);
  margin-bottom: 1.55rem;
  line-height: 1.65;
  max-width: 54ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
}

.hero-trust {
  display: grid;
  gap: 0.48rem;
  font-size: 0.88rem;
  color: var(--ink-2);
  font-weight: 500;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-trust .ico {
  color: var(--emerald);
}

/* Right Side Auto-Looping Showcase Window */
.hero-stage {
  perspective: 1400px;
}

.browser-frame {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.hero-video-frame {
  background: #0b1120;
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 28px 72px -18px rgba(37, 99, 235, 0.24), 0 12px 30px -10px rgba(15, 23, 42, 0.24);
}

.browser-frame:hover {
  transform: translateY(-3px);
}

.browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.62rem 0.95rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
}

.hero-video-frame .browser-bar {
  background: #111827;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.browser-dots {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
}

.browser-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.browser-dots i:nth-child(1) { background: #fca5a5; }
.browser-dots i:nth-child(2) { background: #cbd5e1; }
.browser-dots i:nth-child(3) { background: #6ee7b7; }

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.16rem 0.7rem;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-video-frame .browser-url {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
}

.hero-loop-wrap {
  position: relative;
  background: #0b1120;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-loop-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #0b1120;
}

.hero-vid-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.22rem 0.62rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hero-vid-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.hero-loop-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.62rem 0.95rem;
  background: #0f172a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.77rem;
  color: #cbd5e1;
}

.hero-loop-link {
  color: #60a5fa;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.hero-loop-link:hover {
  color: #93c5fd;
  text-decoration: underline;
}

/* ── Lite YouTube Embed Player ────────────────────────────────────────────── */
.yt-lite {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  cursor: pointer;
  display: block;
  border: 0;
  padding: 0;
  font-family: inherit;
}

.yt-lite img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.35s ease;
}

.yt-lite:hover img {
  transform: scale(1.015);
}

.yt-lite::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, rgba(15, 23, 42, 0.38) 100%);
  pointer-events: none;
}

.yt-lite[data-loaded="1"]::after {
  display: none;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 74px;
  height: 52px;
  border-radius: 15px;
  background: var(--btn-grad);
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
  transition: background 0.18s ease, transform 0.18s ease;
}

.yt-lite:hover .yt-play-btn {
  background: #dc2626;
  transform: translate(-50%, -50%) scale(1.07);
}

.yt-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.34rem 0.75rem;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  pointer-events: none;
}

.yt-lite iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── Guarantee Band ───────────────────────────────────────────────────────── */
.metrics-band {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 2.15rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
}

.metric-card,
.card,
.product-card,
.blog-card {
  position: relative;
  overflow: hidden;
}

.metric-card::before,
.card::before,
.product-card::before,
.blog-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--cx, -300px) var(--cy, -300px),
    rgba(var(--brand-rgb), 0.075),
    transparent 65%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.metric-card:hover::before,
.card:hover::before,
.product-card:hover::before,
.blog-card:hover::before {
  opacity: 1;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.3rem;
  box-shadow: var(--shadow-xs);
}

.metric-val {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 0.22rem;
}

.metric-val.brand { color: var(--brand); }
.metric-val.emerald { color: var(--emerald); }
.metric-val.indigo { color: var(--sky); }

.metric-label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.metric-desc {
  font-size: 0.81rem;
  color: var(--ink-2);
  line-height: 1.45;
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section {
  padding: clamp(3.4rem, 6vw, 4.8rem) 0;
}

.section-muted {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(2rem, 3.8vw, 2.8rem);
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Bento Feature Grid ───────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.card {
  grid-column: span 6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.65rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.card-wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 2rem;
  align-items: center;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.15rem;
}

.ic-amber { background: var(--brand-soft); color: var(--brand-hover); }
.ic-emerald { background: var(--emerald-soft); color: var(--emerald); }
.ic-indigo { background: var(--sky-soft); color: var(--sky); }
.ic-slate { background: var(--slate-soft); color: var(--ink); }

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.card-copy {
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.62;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.73rem;
  font-weight: 500;
  padding: 0.24rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--ink-2);
}

.card-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  box-shadow: var(--shadow-xs);
}

.card-media img {
  width: 100%;
  height: auto;
}

/* ── Product Suite Grid ───────────────────────────────────────────────────── */
.suite-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.product-card {
  position: relative;
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.1rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.product-card a.card-stretch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.22rem 0.58rem;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-ready {
  background: var(--brand-soft);
  color: var(--brand-hover);
  border: 1px solid rgba(37, 99, 235, 0.22);
}

.status-live {
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid rgba(5, 150, 105, 0.24);
}

.product-desc {
  color: var(--ink-2);
  font-size: 0.93rem;
  line-height: 1.62;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.product-card.product-discuss {
  background: var(--discuss-bg);
  border-color: rgba(37, 99, 235, 0.28);
}

/* ── Private Demo Access & Official LinkedIn Section ──────────────────────── */
.demo-vault {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
}

.vault-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.vault-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.55rem;
}

.vault-card p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.linkedin-official-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.15rem;
}

.linkedin-official-url {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brand-hover);
  word-break: break-all;
  display: block;
  margin-top: 0.35rem;
}

.vault-slot {
  border: 1px dashed var(--border-strong);
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.2rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* ── Compact Single Contact Strip (Homepage) ──────────────────────────────── */
.contact-band {
  padding-top: 0;
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.contact-compact {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}

.contact-compact-copy {
  max-width: 48ch;
}

.contact-compact-copy h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}

.contact-compact-copy p {
  color: var(--ink-2);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-compact-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.7rem;
}

.contact-compact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-linkedin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.contact-linkedin-link .ico {
  width: 14px;
  height: 14px;
  color: var(--brand);
  flex-shrink: 0;
}

.contact-linkedin-link:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

@media (max-width: 760px) {
  .hero {
    padding: 1.75rem 0 2.25rem;
  }
  .contact-compact-actions {
    align-items: flex-start;
    width: 100%;
  }
  .contact-linkedin-link {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

.meeting-builder {
  display: grid;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.meeting-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.meeting-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.3rem;
}

.meeting-field input,
.meeting-field select,
.meeting-field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.88rem;
}

.meeting-field textarea {
  min-height: 82px;
  resize: vertical;
}

.calendly-embed-frame {
  width: 100%;
  min-height: 640px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
}

@media (max-width: 640px) {
  .meeting-row {
    grid-template-columns: 1fr;
  }
}

/* ── Dedicated Product Detail Page ────────────────────────────────────────── */
.prod-hero {
  padding: clamp(2.6rem, 5vw, 4.2rem) 0;
  background: var(--hero-bg);
  border-bottom: 1px solid var(--border);
}

.prod-hero-in {
  max-width: 840px;
}

.prod-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}

.prod-hero p {
  font-size: 1.08rem;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 1.6rem;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.pain-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-xs);
}

.pain-box h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 0.5rem;
}

.pain-box p,
.pain-box li {
  font-size: 0.94rem;
  color: var(--ink-2);
  line-height: 1.62;
}

.pain-box ul {
  padding-left: 1.2rem;
  margin-top: 0.6rem;
  display: grid;
  gap: 0.48rem;
}

.highlight-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.2rem;
}

.highlight-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.96rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.highlight-box span {
  font-size: 0.84rem;
  color: var(--ink-2);
  line-height: 1.5;
}

/* ── Docs-Style Multi-Page Blog Sidebar Layout ────────────────────────────── */
.blog-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1320px;
  margin: 0 auto;
  min-height: calc(100vh - 150px);
}

.blog-shell.sb-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.blog-shell.sb-hidden .blog-aside {
  display: none;
}

.blog-aside {
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  padding: 1.5rem 1rem 2.5rem;
  border-right: 1px solid var(--border);
  background: var(--bg-subtle);
}

.blog-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
  padding: 0 0.4rem;
}

.blog-aside-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.sb-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 7px;
  cursor: pointer;
}

.sb-btn:hover {
  color: var(--ink);
  border-color: var(--border-strong);
}

.blog-search {
  width: 100%;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  outline: none;
}

.blog-search:focus {
  border-color: var(--brand);
}

.blog-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-radius: 9px;
  text-decoration: none;
  margin-bottom: 0.3rem;
  border: 1px solid transparent;
  transition: background-color 0.14s ease, border-color 0.14s ease;
}

.blog-nav-link:hover {
  background: var(--surface);
  border-color: var(--border);
}

.blog-nav-link.active {
  background: var(--surface);
  border-color: var(--brand);
  box-shadow: var(--shadow-xs);
}

.blog-nav-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--brand-hover);
}

.blog-nav-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.35;
}

.blog-main {
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4.5vw, 3.25rem);
  max-width: 900px;
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.9rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}

.blog-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brand-hover);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.35;
  color: var(--ink);
}

.blog-card p {
  font-size: 0.9rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.blog-read {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-hover);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.docs-strip {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.docs-strip h2 {
  font-family: var(--font-display);
  font-size: 1.48rem;
  margin-bottom: 0.35rem;
}

.docs-strip p {
  color: var(--ink-2);
  max-width: 58ch;
  font-size: 0.95rem;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */
.foot {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.foot-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.foot-about p {
  margin-top: 0.85rem;
  color: var(--muted);
  max-width: 34ch;
  line-height: 1.6;
}

.foot-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.foot-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.foot-social a:hover {
  color: var(--brand-hover);
  border-color: var(--brand);
}

.foot-col h2 {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.9rem;
}

.foot-col a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  padding: 0.28rem 0;
  transition: color 0.15s ease;
}

.foot-col a:hover {
  color: var(--brand-hover);
}

.foot-bot {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.foot-bot nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.foot-bot nav a {
  text-decoration: none;
}

.foot-bot nav a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

/* ── Prose / Legal / Blog Article Pages ───────────────────────────────────── */
.doc-page {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(2.8rem, 6vw, 4.5rem) var(--gutter);
}

.doc-page.doc-page-wide {
  max-width: 1080px;
}

.cal-embed-container {
  width: 100%;
  min-height: 520px;
  overflow: visible;
}

.vault-slot-calendar {
  padding: clamp(0.75rem, 2vw, 1.25rem);
  border-style: solid;
  border-color: var(--border);
  background: var(--surface);
}

.doc-head {
  padding-bottom: 1.5rem;
  margin-bottom: 2.25rem;
  border-bottom: 1px solid var(--border);
}

.doc-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.doc-head p {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.65rem;
}

.doc-page section,
.blog-main section {
  margin-bottom: 2rem;
}

.doc-page h2,
.blog-main h2 {
  font-family: var(--font-display);
  font-size: 1.24rem;
  color: var(--ink);
  margin-bottom: 0.65rem;
}

.doc-page p,
.doc-page li,
.blog-main p,
.blog-main li {
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

.doc-page ul,
.doc-page ol,
.blog-main ul,
.blog-main ol {
  padding-left: 1.35rem;
  margin-bottom: 1rem;
}

.doc-page a:not(.btn):not(.blog-card),
.blog-main a:not(.btn):not(.blog-card) {
  color: var(--brand-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-nav {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.topic-banner {
  background: var(--brand-soft);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.75rem;
  color: var(--ink);
  font-size: 0.94rem;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 1020px) {
  .hero-split,
  .demo-vault {
    grid-template-columns: 1fr;
  }
  .metrics-grid,
  .highlight-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-wide,
  .suite-grid,
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .foot-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .blog-shell {
    grid-template-columns: 1fr;
  }
  .blog-aside {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 1rem var(--gutter) 1.25rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    box-shadow: var(--shadow-md);
    max-height: 82vh;
    overflow-y: auto;
  }
  .nav.is-open .nav-links {
    display: flex;
  }
  .nav-dd {
    width: 100%;
  }
  .nav-dd-menu {
    position: static;
    width: 100%;
    grid-template-columns: 1fr;
    box-shadow: none;
    border-color: var(--border);
    margin-top: 0.4rem;
  }
  .nav-dd-menu::before {
    display: none;
  }
  .dd-foot {
    grid-column: span 1;
    justify-content: space-between;
  }
  .vault-slot-calendar {
    padding: 0.55rem;
  }
  .nav-actions .nav-cta {
    display: none;
  }
  .nav-links > a.mobile-only {
    display: inline-flex;
    color: var(--btn-ink);
  }
  .nav-toggle {
    display: grid;
  }
  .card {
    grid-column: span 12;
  }
  .metrics-grid,
  .highlight-strip {
    grid-template-columns: 1fr;
  }
  .foot-top {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

.hero-stage {
  position: relative;
}

/* ── Unified Homepage PDF Quick-Drop Studio Card ───────────────────────────── */
.home-pdf-card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
}
.home-pdf-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}
.home-pdf-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}
.home-pdf-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-hover);
  border: 1px solid rgba(37, 99, 235, 0.18);
}
.home-tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.95rem;
}
.home-tool-pill {
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.15s ease;
}
.home-tool-pill:hover {
  border-color: var(--brand);
  color: var(--brand-hover);
}
.home-tool-pill.active {
  background: var(--btn-grad);
  color: var(--btn-ink);
  border-color: var(--brand-hover);
  box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.35);
}
.home-drop-area {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}
.home-drop-area.dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
  transform: scale(1.005);
}
.home-drop-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid rgba(37, 99, 235, 0.2);
  display: grid;
  place-items: center;
  margin: 0 auto 0.75rem;
}
.home-drop-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
}
.home-drop-sub {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1rem;
}
.home-drop-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.home-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.9rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  flex-wrap: wrap;
}
.home-card-foot a {
  color: var(--brand-hover);
  font-weight: 600;
  text-decoration: none;
}
.home-card-foot a:hover {
  text-decoration: underline;
}
.product-card-featured {
  border-color: rgba(37, 99, 235, 0.36);
  background: linear-gradient(135deg, var(--brand-soft) 0%, var(--surface) 58%);
  box-shadow: var(--shadow-md);
}
