/* ============================================================
   Groove.cm — Global Stylesheet
   Powered by design.md — "Professional Entrepreneurial"
   SaaS authority with high-impact direct-response intensity.
   ============================================================ */

/* ---------- Tokens (Light, default) ---------- */
:root {
  /* Brand colors */
  --primary: #111827;
  --secondary: #8961FF;
  --tertiary: #FF3563;

  /* Surfaces */
  --background: #fcf8fa;
  --surface: #f8f9fa;
  --surface-dim: #d9dadb;
  --surface-bright: #f8f9fa;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f4f5;
  --surface-container: #eff0f1;
  --surface-container-high: #e9eaeb;
  --surface-container-highest: #e2e3e4;

  /* Type on surfaces */
  --on-background: #1b1b1d;
  --on-surface: #1b1b1c;
  --on-surface-variant: #444749;
  --on-primary: #ffffff;
  --on-secondary: #ffffff;
  --on-tertiary: #ffffff;

  /* Lines */
  --outline: #75777a;
  --outline-variant: #c5c6c9;

  /* States */
  --error: #ba1a1a;

  /* Glassy/overlay */
  --overlay-light: rgba(255, 255, 255, 0.72);
  --overlay-dark: rgba(17, 24, 39, 0.04);

  /* Type scale (desktop) */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xl: 60px;       --lh-xl: 72px;     --ls-xl: -0.02em;
  --fs-lg: 48px;       --lh-lg: 56px;     --ls-lg: -0.01em;
  --fs-md: 36px;       --lh-md: 44px;
  --fs-sm: 24px;       --lh-sm: 32px;
  --fs-body-lg: 18px;  --lh-body-lg: 28px;
  --fs-body: 16px;     --lh-body: 24px;
  --fs-label-lg: 14px; --lh-label-lg: 20px; --ls-label-lg: 0.05em;
  --fs-label: 12px;    --lh-label: 16px;

  /* Mobile type scale */
  --fs-xl-mobile: 40px; --lh-xl-mobile: 48px;
  --fs-lg-mobile: 32px; --lh-lg-mobile: 40px;

  /* Radius */
  --r-sm: 0.125rem;
  --r: 0.25rem;
  --r-md: 0.375rem;
  --r-lg: 0.5rem;
  --r-xl: 0.75rem;
  --r-full: 9999px;

  /* Spacing */
  --container-max: 1200px;
  --gutter: 1.5rem;
  --margin-mobile: 1rem;
  --margin-desktop: 2.5rem;
  --section-gap: 8rem;
  --stack-gap: 1.5rem;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 1px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 12px rgba(17, 24, 39, 0.08), 0 2px 4px rgba(17, 24, 39, 0.04);
  --shadow-lg: 0 16px 40px rgba(17, 24, 39, 0.12), 0 4px 12px rgba(17, 24, 39, 0.06);
  --shadow-violet: 0 12px 30px rgba(137, 97, 255, 0.32);
}

/* ---------- Tokens (Dark) ---------- */
:root[data-theme="dark"] {
  --background: #0a0a0d;
  --surface: #111114;
  --surface-dim: #08080a;
  --surface-bright: #1a1a1f;
  --surface-container-lowest: #050507;
  --surface-container-low: #131317;
  --surface-container: #17171c;
  --surface-container-high: #1e1e23;
  --surface-container-highest: #25252b;

  --on-background: #f3f0f1;
  --on-surface: #f3f0f1;
  --on-surface-variant: #c5c6c9;
  --on-primary: #ffffff;

  --outline: #4a4c4f;
  --outline-variant: #2a2c2f;

  --overlay-light: rgba(15, 15, 20, 0.72);
  --overlay-dark: rgba(255, 255, 255, 0.04);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-violet: 0 12px 30px rgba(137, 97, 255, 0.45);
}

/* ---------- Resets ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--on-background);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--secondary); text-decoration: none; transition: color 0.15s ease; }
@media (hover: hover) and (pointer: fine) {
  a:hover { color: color-mix(in srgb, var(--secondary) 75%, black); }
}
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 3px; border-radius: var(--r); }

/* ---------- Typography utilities ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  color: var(--on-background);
  margin: 0;
  font-feature-settings: "ss01";
}
.h-xl  { font-size: var(--fs-xl);  line-height: var(--lh-xl);  letter-spacing: var(--ls-xl);  font-weight: 800; }
.h-lg  { font-size: var(--fs-lg);  line-height: var(--lh-lg);  letter-spacing: var(--ls-lg);  font-weight: 800; }
.h-md  { font-size: var(--fs-md);  line-height: var(--lh-md);  font-weight: 700; }
.h-sm  { font-size: var(--fs-sm);  line-height: var(--lh-sm);  font-weight: 700; }
.body-lg { font-size: var(--fs-body-lg); line-height: var(--lh-body-lg); color: var(--on-surface-variant); }
.eyebrow {
  font-size: var(--fs-label-lg);
  line-height: var(--lh-label-lg);
  letter-spacing: var(--ls-label-lg);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--secondary);
}
.label { font-size: var(--fs-label); line-height: var(--lh-label); font-weight: 500; color: var(--on-surface-variant); text-transform: uppercase; letter-spacing: 0.04em; }
.accent { color: var(--tertiary); }
.accent-violet { color: var(--secondary); }

@media (max-width: 768px) {
  .h-xl { font-size: var(--fs-xl-mobile); line-height: var(--lh-xl-mobile); }
  .h-lg { font-size: var(--fs-lg-mobile); line-height: var(--lh-lg-mobile); }
  .h-md { font-size: 28px; line-height: 36px; }
  .h-sm { font-size: 20px; line-height: 28px; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
}
@media (max-width: 768px) {
  .container { padding-inline: var(--margin-mobile); }
}
section { padding-block: clamp(4rem, 8vw, var(--section-gap)); }
section.tight { padding-block: clamp(3rem, 5vw, 5rem); }
.stack { display: flex; flex-direction: column; gap: var(--stack-gap); }
.row { display: flex; gap: 1rem; flex-wrap: wrap; }
.center { text-align: center; }
.lead { max-width: 56ch; }

/* Surface bands */
.band-light { background: var(--background); color: var(--on-background); }
.band-surface { background: var(--surface); color: var(--on-surface); }
.band-dark {
  background: var(--primary);
  color: #ffffff;
  --on-background: #ffffff;
  --on-surface: #ffffff;
  --on-surface-variant: #c0c6db;
}
.band-dark .body-lg,
.band-dark p { color: rgba(255,255,255,0.78); }
.band-dark .eyebrow { color: #cdbdff; }
.band-dark h1, .band-dark h2, .band-dark h3, .band-dark h4 { color: #ffffff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.5rem;
  font-family: var(--font-sans);
  font-size: var(--fs-label-lg);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--r-xl);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.15s ease, color 0.15s ease;
  touch-action: manipulation;
}
.btn-primary {
  background: var(--secondary);
  color: var(--on-secondary);
  box-shadow: var(--shadow-violet);
}
.btn-secondary {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.band-dark .btn-secondary { background: #ffffff; color: var(--primary); border-color: #ffffff; }
.btn-ghost {
  background: transparent;
  color: var(--on-background);
  border-color: var(--outline-variant);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--secondary) 86%, white); color: var(--on-secondary); }
  .btn-secondary:hover { background: transparent; color: var(--on-background); border-color: var(--on-background); }
  .band-dark .btn-secondary:hover { background: transparent; color: #ffffff; }
  .btn-ghost:hover { background: var(--surface-container); color: var(--on-background); }
}
.btn-lg { padding: 1.1rem 1.9rem; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--overlay-light);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--outline-variant);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--margin-desktop);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--on-background);
}
.brand:hover { color: var(--on-background); }
.brand-logo {
  display: block;
  width: 120px;
  height: 26px;
  /* Pink (Groove brand color) on light themes. */
  background-color: var(--tertiary);
  -webkit-mask: url(/assets/brand/groove-logo-white.webp) center / contain no-repeat;
          mask: url(/assets/brand/groove-logo-white.webp) center / contain no-repeat;
  transition: background-color 0.2s ease;
}
/* Dark theme nav — render in white for clear contrast. */
[data-theme="dark"] .nav .brand-logo { background-color: #ffffff; }
/* Footer is always on dark — keep the logo white regardless of theme. */
.footer-brand .brand-logo { background-color: #ffffff; }
/* Legacy mark — kept in case any page still references it. */
.brand-mark {
  width: 28px; height: 28px;
  border-radius: var(--r-md);
  background:
    radial-gradient(circle at 30% 30%, #cdbdff 0%, transparent 50%),
    linear-gradient(135deg, var(--secondary) 0%, var(--tertiary) 100%);
  box-shadow: var(--shadow-sm);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
  padding: 0; margin: 0;
}
/* Suppress list markers on the inner <ul style="display:contents"> + its <li>s.
   display:contents makes the ul disappear from layout but doesn't strip list-style
   from the li children — leading to visible bullets next to every nav item. */
.nav-links ul, .nav-links li { list-style: none; padding: 0; margin: 0; }
.nav-links li::marker { content: ""; }
.nav-links a {
  color: var(--on-background);
  font-size: var(--fs-label-lg);
  font-weight: 600;
  letter-spacing: 0;
  position: relative;
  padding-block: 0.25rem;
  touch-action: manipulation;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--secondary); }
}
/* Active-page indicator uses ::before so the mega-menu chevron (::after)
   doesn't collide with it on mega-menu links like Products/Solutions. */
.nav-links a[aria-current="page"]::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--secondary); border-radius: 2px;
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.theme-toggle {
  background: transparent;
  border: 0;
  width: 28px; height: 28px;
  padding: 0;
  border-radius: var(--r-full);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--on-surface-variant);
  opacity: 0.7;
  transition: opacity 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { opacity: 1; color: var(--on-background); }
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .sun { display: none; }
.theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--outline-variant);
  width: 40px; height: 40px;
  border-radius: var(--r);
  align-items: center; justify-content: center;
  color: var(--on-background);
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-actions .btn-login { display: none; }
  .nav-toggle { display: inline-flex; }
}
.mobile-menu {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: var(--background);
  z-index: 49;
  padding: 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px;
  font-weight: 700;
  color: var(--on-background);
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--outline-variant);
}
.mobile-menu .btn { margin-top: 1rem; }

/* ---------- Hero ---------- */
.hero {
  padding-block: clamp(4rem, 9vw, 9rem) clamp(3rem, 6vw, 6rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero-headline {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 900;
  color: var(--on-background);
}
.hero-headline .accent { color: var(--tertiary); }
.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.55;
  color: var(--on-surface-variant);
  max-width: 56ch;
  margin-top: 1.25rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
  font-size: var(--fs-label-lg);
  color: var(--on-surface-variant);
}
.hero-trust strong { color: var(--on-background); font-weight: 800; }

.hero-visual {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
  background: var(--surface-container);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* Landscape modifier — for product UI screenshots (legacy CDN images are wide).
   Uses contain + padding + subtle background so the screenshot reads cleanly
   without being cropped. */
.hero-visual.is-landscape {
  aspect-ratio: 16 / 11;
  background: linear-gradient(155deg, #f3f4f5 0%, #e9eaeb 100%);
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
}
:root[data-theme="dark"] .hero-visual.is-landscape {
  background: linear-gradient(155deg, #1a1a1f 0%, #111114 100%);
}
.hero-visual.is-landscape img {
  object-fit: contain;
  border-radius: var(--r-md);
}

/* Product lockup — standardized icon + wordmark composite used in all product page heroes.
   Replaces per-product hero imagery so every product page reads as one family. */
.hero-visual.is-lockup {
  aspect-ratio: 16 / 11;
  background: linear-gradient(155deg, #f3f4f5 0%, #e9eaeb 100%);
  display: grid;
  place-items: center;
  padding: clamp(1.25rem, 4vw, 2.75rem);
}
:root[data-theme="dark"] .hero-visual.is-lockup {
  background: linear-gradient(155deg, #1a1a1f 0%, #111114 100%);
}
.product-lockup {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.5vw, 1.6rem);
  max-width: 100%;
}
.hero-visual.is-lockup .product-lockup-icon {
  width: clamp(48px, 7vw, 80px);
  height: clamp(48px, 7vw, 80px);
  object-fit: contain;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
}
.product-lockup-wordmark {
  font-family: var(--font-display, var(--font-sans, inherit));
  font-size: clamp(1.75rem, 4.5vw, 3.25rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--on-background);
  white-space: nowrap;
}
.product-lockup-wordmark strong { font-weight: 800; }

.hero-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  padding: 1rem 1.1rem;
  background: var(--overlay-light);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.6);
  font-size: var(--fs-label-lg);
  color: var(--on-background);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------- Card primitives ---------- */
.card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) {
  .card:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: var(--shadow-md); }
}
.card-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}
.card h3 { font-size: 22px; line-height: 28px; margin-bottom: 0.5rem; font-weight: 800; }
.card p { color: var(--on-surface-variant); margin: 0; }

/* Product flagship cards */
.flagship {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) { .flagship { grid-template-columns: 1fr; } }
.flagship .card { padding: 2rem; }
.flagship h3 { font-size: 28px; line-height: 34px; }
.flagship .price-hook {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--outline-variant);
  font-size: var(--fs-label-lg);
  color: var(--on-background);
  font-weight: 700;
}
.flagship .price-hook .accent { color: var(--tertiary); }

/* Ecosystem grid (smaller product tiles) */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.tile {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.tile-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--surface-container);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 0.4rem;
  color: var(--secondary);
}
.tile-icon svg { width: 20px; height: 20px; }
.tile h4 { font-size: 16px; line-height: 22px; font-weight: 800; color: var(--on-surface); }
.tile p { font-size: 14px; line-height: 20px; color: var(--on-surface-variant); margin: 0; }

/* Stats band */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 768px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat-num {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #ffffff;
}
.stat-num .accent { color: var(--tertiary); }
.stat-label {
  margin-top: 0.5rem;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  overflow: hidden;
  font-size: 15px;
}
.compare-table th, .compare-table td {
  padding: 1rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--outline-variant);
}
.compare-table thead th {
  background: var(--surface-container);
  font-size: var(--fs-label-lg);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 800;
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table tbody th {
  font-weight: 700;
  color: var(--on-background);
  background: var(--surface-container-low);
}
.compare-col-groove {
  background: rgba(137, 97, 255, 0.06);
  border-left: 2px solid var(--secondary);
  border-right: 2px solid var(--secondary);
}
.compare-table thead .compare-col-groove {
  background: var(--secondary);
  color: #ffffff;
  border-left-color: var(--secondary);
  border-right-color: var(--secondary);
}
.compare-table .check { color: #16a34a; font-weight: 700; }
.compare-table .x { color: var(--outline); font-weight: 700; }
.compare-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table tr.compare-section-head th {
  background: var(--surface-container);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--on-surface-variant);
  padding: 0.65rem 1.1rem;
  border-top: 1px solid var(--outline-variant);
}
.compare-table tfoot td, .compare-table tfoot th {
  border-bottom: 1px solid var(--outline-variant);
  font-weight: 700;
}
.compare-table tfoot tr.price-row td { font-variant-numeric: tabular-nums; }
.compare-table tfoot tr.savings-row th { font-weight: 900; }
.compare-table tfoot tr.savings-row td {
  color: var(--tertiary);
  font-weight: 900;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.compare-table tfoot tr.savings-row td.compare-col-groove {
  color: var(--secondary);
}

/* Pricing pillars */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pillar-name {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--secondary);
}
.pillar h3 { font-size: 28px; line-height: 34px; font-weight: 800; }
.pillar .pillar-fee {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--outline-variant);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.pillar-fee .fee-num { font-size: 36px; font-weight: 900; line-height: 1; color: var(--on-background); }
.pillar-fee .fee-cap { font-size: 14px; color: var(--on-surface-variant); }
.pillar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.pillar ul li { padding-left: 1.5rem; position: relative; color: var(--on-surface-variant); }
.pillar ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5rem;
  width: 14px; height: 14px;
  border-radius: var(--r-full);
  background: var(--secondary);
  box-shadow: 0 0 0 4px rgba(137, 97, 255, 0.16);
}

/* Founder strip */
.founder {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 960px) { .founder { grid-template-columns: 1fr; } }
.founder-photo {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-quote-mark {
  font-size: 96px;
  line-height: 0.8;
  color: var(--tertiary);
  margin-bottom: 1rem;
}
.founder blockquote {
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}
.founder cite {
  display: block;
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-surface-variant);
  font-weight: 700;
}
.founder cite strong { color: var(--on-background); }

/* Final CTA band */
.cta-band {
  text-align: center;
  padding-block: clamp(5rem, 9vw, 8rem);
}
.cta-band h2 {
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.025em;
}
.cta-band p { max-width: 56ch; margin: 1.25rem auto 2rem; font-size: 18px; }
.cta-band .btn-primary { font-size: 16px; padding: 1.15rem 2rem; }

/* FAQ */
.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 880px;
  margin-inline: auto;
}
.faq details {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
}
.faq details[open] { border-color: var(--secondary); }
.faq summary {
  list-style: none;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 600;
  color: var(--secondary);
  transition: transform 0.15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0.85rem 0 0; color: var(--on-surface-variant); line-height: 1.6; }

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 14px; font-weight: 700; letter-spacing: 0.02em; }
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 16px;
  color: var(--on-background);
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(137, 97, 255, 0.18);
}
.field textarea { min-height: 160px; resize: vertical; }

/* Three doors (contact / affiliates highlights) */
.doors {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 960px) { .doors { grid-template-columns: 1fr; } }

/* Timeline (about) */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.timeline li {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1.25rem;
  align-items: baseline;
}
@media (max-width: 600px) { .timeline li { grid-template-columns: 1fr; } }
.timeline .year { font-weight: 900; font-size: 22px; color: var(--secondary); letter-spacing: -0.01em; }
.timeline h4 { font-size: 18px; font-weight: 800; }
.timeline p { color: var(--on-surface-variant); margin: 0.35rem 0 0; }

/* Quote callout */
.callout {
  background: linear-gradient(135deg, rgba(137,97,255,0.08), rgba(255,53,99,0.04));
  border: 1px solid rgba(137,97,255,0.2);
  border-radius: var(--r-xl);
  padding: clamp(2rem, 4vw, 3rem);
}
.callout h3 { font-size: clamp(24px, 3vw, 36px); line-height: 1.2; font-weight: 800; }
.callout p { margin-top: 0.75rem; color: var(--on-surface-variant); font-size: 17px; line-height: 1.6; }

/* Logo / integration strip */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0.7;
}
.logo-strip span {
  font-weight: 800;
  font-size: 18px;
  color: var(--on-surface-variant);
  letter-spacing: -0.01em;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.78);
  padding-block: 4rem 2rem;
  margin-top: 4rem;
}
.footer a { color: rgba(255,255,255,0.78); }
.footer a:hover { color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
}
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 1rem;
  font-weight: 800;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; font-size: 15px; }
.footer-brand .brand { color: #ffffff; }
.footer-brand p { margin-top: 1rem; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.62); max-width: 28ch; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}
.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .footer-legal a:hover { color: #fff; }
}

/* ---------- Misc ---------- */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(137,97,255,0.10);
  color: var(--secondary);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.eyebrow-pill .dot {
  width: 6px; height: 6px; border-radius: var(--r-full); background: var(--tertiary);
}
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 {
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.section-head p { margin-top: 1rem; font-size: 19px; color: var(--on-surface-variant); }

/* Pricing teaser / inline strip */
.inline-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
}
@media (max-width: 768px) {
  .inline-strip { grid-template-columns: 1fr; }
}
.inline-strip h3 { font-size: clamp(22px, 2.5vw, 30px); line-height: 1.2; font-weight: 800; }
.inline-strip p { margin-top: 0.5rem; color: var(--on-surface-variant); }

/* Three-column "where each wins" panel */
.versus-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 960px) { .versus-cols { grid-template-columns: 1fr; } }
.versus-cols .card h3 { font-size: 22px; }
.versus-cols .pros, .versus-cols .cons {
  list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; font-size: 15px;
}
.versus-cols .pros li::before { content: "+ "; color: #16a34a; font-weight: 800; }
.versus-cols .cons li::before { content: "− "; color: var(--tertiary); font-weight: 800; }

/* Anchor scroll offset */
:target { scroll-margin-top: 100px; }

/* ============================================================
   Mega menu (Products + For)
   ============================================================ */
.nav-links li.has-mega {
  position: relative;
  /* Extend the hover zone downward so moving from the link to the
     mega menu doesn't drop the :hover state mid-transit. */
  padding-bottom: 18px;
  margin-bottom: -18px;
}
.nav-links li.has-mega > a::after {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-left: 0.4rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  opacity: 0.6;
}
.mega {
  /* Fixed-position so the mega sits in the same place regardless of
     which nav item opened it. Avoids viewport overflow on either side. */
  position: fixed;
  top: 76px;
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  width: min(92vw, 920px);
  max-width: calc(100vw - 2rem);
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 100;
}
/* Invisible bridge — covers the gap between the nav and the mega
   so :hover doesn't drop during mouse transit downward. */
.mega::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 20px;
}
.mega.wide { width: min(92vw, 1040px); }
.nav-links li.has-mega:hover > .mega,
.nav-links li.has-mega:focus-within > .mega,
.nav-links li.has-mega.open > .mega {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem 2rem;
}
.mega.wide .mega-grid { grid-template-columns: repeat(4, 1fr); }
.mega-col h4 {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 0.85rem;
}
.mega-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.mega-col a {
  display: block;
  color: var(--on-background) !important;
  font-weight: 600;
  font-size: 14px;
  padding: 0.35rem 0.4rem;
  border-radius: var(--r-md);
  transition: background 0.12s ease, color 0.12s ease;
}
@media (hover: hover) and (pointer: fine) {
  .mega-col a:hover { background: var(--surface-container); color: var(--secondary) !important; }
}
.mega-col a small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--on-surface-variant);
  margin-top: 2px;
  line-height: 1.3;
}
.mega-foot {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--outline-variant);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--on-surface-variant);
}
.mega-foot a { color: var(--secondary); font-weight: 700; }

/* Mobile: mega becomes accordion inside mobile-menu */
@media (max-width: 960px) {
  .nav-links li.has-mega .mega { display: none; }
  .mobile-mega-section { display: grid; gap: 0.25rem; }
  .mobile-mega-section summary {
    list-style: none;
    cursor: pointer;
    font-size: 22px;
    font-weight: 700;
    color: var(--on-background);
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--outline-variant);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-mega-section summary::-webkit-details-marker { display: none; }
  .mobile-mega-section summary::after {
    content: "+";
    font-size: 26px;
    font-weight: 600;
    color: var(--secondary);
  }
  .mobile-mega-section[open] summary::after { content: "−"; }
  .mobile-mega-section ul {
    list-style: none; padding: 0.75rem 0 0.5rem 0.5rem; margin: 0; display: grid; gap: 0.4rem;
  }
  .mobile-mega-section ul a {
    font-size: 16px;
    font-weight: 600;
    padding-block: 0.35rem;
    border-bottom: 0;
  }
  .mobile-mega-section ul h5 {
    font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--secondary); margin: 0.5rem 0 0.25rem;
  }
}

/* ============================================================
   Template gallery (lifted from legacy groove-pages page) —
   mock-browser-chrome card with hover lift + image scale.
   ============================================================ */
.template-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.tpl-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .tpl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px -16px rgba(17, 24, 39, 0.22), 0 8px 20px -8px rgba(137, 97, 255, 0.18);
    border-color: var(--secondary);
  }
  .tpl-card:hover .tpl-thumb-img { transform: scale(1.04); }
  .tpl-card:hover .tpl-cta { background: var(--secondary); color: #fff; }
}
.tpl-browser {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface-container);
  border-bottom: 1px solid var(--outline-variant);
}
.tpl-dots { display: flex; gap: 6px; }
.tpl-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
  display: block;
}
.tpl-dots span:nth-child(1) { background: #ff5f57; }
.tpl-dots span:nth-child(2) { background: #febc2e; }
.tpl-dots span:nth-child(3) { background: #28c840; }
.tpl-url {
  flex: 1;
  background: var(--surface-container-lowest);
  border-radius: var(--r-full);
  padding: 0.25rem 0.85rem;
  font-size: 11.5px;
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
  text-align: center;
  font-weight: 500;
}
.tpl-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-container);
}
.tpl-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform 0.4s ease;
}
.tpl-meta {
  padding: 1rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}
.tpl-meta h4 {
  font-size: 15.5px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--on-background);
  margin: 0;
  letter-spacing: -0.01em;
}
.tpl-cta {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.6rem 1.1rem;
  background: var(--surface-container);
  color: var(--on-background);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  border: 1px solid var(--outline-variant);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* ============================================================
   Hero video wrap (used on pages with a YouTube hero video)
   ============================================================ */
.video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface-container-high);
  margin-top: 2rem;
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ============================================================
   Press-logo strip ("AS SEEN ON")
   ============================================================ */
.press-logo-strip {
  background: var(--primary);
  padding-block: clamp(2rem, 3.5vw, 3rem);
  text-align: center;
}
.press-logo-strip .press-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 700;
  margin-bottom: 1.5rem;
}
.press-logo-strip .press-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(15px, 1.8vw, 20px);
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.7);
}
.press-logo-strip .press-logos span {
  white-space: nowrap;
}

/* ============================================================
   Matrix grids (Products hub + For hub)
   ============================================================ */
.product-matrix, .audience-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.matrix-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .matrix-card:hover { border-color: var(--secondary); transform: translateY(-2px); box-shadow: var(--shadow-md); color: inherit; }
}
.matrix-card .matrix-flag {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--secondary);
}
.matrix-card h3 { font-size: 18px; line-height: 24px; font-weight: 800; margin-top: 0.25rem; }
.matrix-card p { color: var(--on-surface-variant); font-size: 14px; margin: 0.4rem 0 0; line-height: 1.5; }
.matrix-card .matrix-arrow { color: var(--secondary); font-weight: 700; margin-top: 0.75rem; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }

/* ============================================================
   "Works with" sister-product strip
   ============================================================ */
.works-with {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}
.works-with a {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  color: inherit !important;
  transition: border-color 0.15s ease, background 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .works-with a:hover { border-color: var(--secondary); background: var(--surface-container); }
}
.works-with strong { font-weight: 800; font-size: 14px; }
.works-with small { font-size: 12px; color: var(--on-surface-variant); }

/* ===== Email template gallery (GrooveMail) — inbox-theater aesthetic ===== */
.email-gallery-wrap {
  position: relative;
  margin-top: 2.5rem;
  padding: 2rem 1.5rem 2.5rem;
  border-radius: var(--r-xl);
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(137,97,255,0.10) 0%, transparent 55%),
    radial-gradient(60% 80% at 100% 100%, rgba(255,53,99,0.08) 0%, transparent 60%),
    var(--surface-container);
  border: 1px solid var(--surface-container-high);
  overflow: hidden;
}
.email-gallery-wrap::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.18;
  pointer-events: none;
  mix-blend-mode: overlay;
}
[data-theme="dark"] .email-gallery-wrap::before { opacity: 0.06; }
.email-gallery {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.1rem;
}
.email-card {
  background: var(--surface-container-lowest);
  border: 1px solid var(--surface-container-high);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1),
              box-shadow 0.35s ease,
              border-color 0.25s ease;
  will-change: transform;
}
.email-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(137,97,255,0.18), 0 6px 14px rgba(0,0,0,0.08);
  border-color: rgba(137,97,255,0.42);
}
.email-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--surface-container-high);
  background: var(--surface-container);
}
.email-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  font-weight: 800; font-size: 13px;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.email-av-1 { background: linear-gradient(135deg, #8961FF 0%, #FF3563 100%); }
.email-av-2 { background: linear-gradient(135deg, #11C4B8 0%, #2563EB 100%); }
.email-av-3 { background: linear-gradient(135deg, #FF8A3D 0%, #FF3563 100%); }
.email-av-4 { background: linear-gradient(135deg, #34D399 0%, #059669 100%); }
.email-av-5 { background: linear-gradient(135deg, #F472B6 0%, #8961FF 100%); }
.email-av-6 { background: linear-gradient(135deg, #FBBF24 0%, #FF8A3D 100%); }
.email-meta { flex: 1; min-width: 0; line-height: 1.2; }
.email-sender {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 13px; font-weight: 700;
  color: var(--on-background);
}
.email-sender::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: #28c840;
  flex-shrink: 0;
  margin-left: 2px;
}
.email-subject {
  margin-top: 2px;
  font-size: 12px;
  color: var(--on-surface-variant);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.email-time {
  font-size: 11px;
  color: var(--on-surface-variant);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.email-thumb {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface-container-lowest) 0%, var(--surface-container) 100%);
}
.email-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  display: block;
  transition: transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.email-card:hover .email-thumb img { transform: scale(1.045); }
.email-overlay {
  position: absolute; inset: auto 0 0 0;
  padding: 0.95rem 0.95rem 0.85rem;
  background: linear-gradient(0deg, rgba(10,10,13,0.92) 0%, rgba(10,10,13,0.55) 60%, transparent 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: space-between;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.email-card:hover .email-overlay { opacity: 1; transform: translateY(0); }
.email-overlay-label {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.email-overlay-arrow {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.3);
  display: grid; place-items: center;
  font-size: 14px; line-height: 1;
}
.email-gallery-foot {
  position: relative;
  margin-top: 1.5rem;
  text-align: center;
  font-size: 13px;
  color: var(--on-surface-variant);
}
.email-gallery-foot strong { color: var(--on-background); font-weight: 800; }
@media (max-width: 640px) {
  .email-gallery-wrap { padding: 1.25rem 0.85rem 1.5rem; }
  .email-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .email-head { padding: 0.55rem 0.65rem; gap: 0.5rem; }
  .email-avatar { width: 28px; height: 28px; font-size: 11px; }
  .email-sender { font-size: 12px; }
  .email-subject { font-size: 11px; }
}

/* ===== Replace-the-stack band (home) — "Save $14,304/yr" ===== */
.replace-stack {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .replace-stack { grid-template-columns: 1fr; } }
.replace-stack-icons {
  position: relative;
  aspect-ratio: 1 / 0.9;
  display: grid;
  place-items: center;
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 60% at 30% 30%, rgba(137,97,255,0.18) 0%, transparent 60%),
    radial-gradient(60% 60% at 70% 70%, rgba(255,53,99,0.16) 0%, transparent 60%),
    var(--surface-container);
  border: 1px solid var(--surface-container-high);
  overflow: hidden;
}
.replace-stack-icons::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: 0.6;
}
[data-theme="dark"] .replace-stack-icons::before {
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
}
.icon-float {
  position: absolute;
  width: clamp(72px, 12vw, 132px);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0,0,0,0.15));
  animation: icon-bob 6s ease-in-out infinite;
}
.icon-float-1 { top: 14%; left: 16%; animation-delay: 0s; }
.icon-float-2 { top: 38%; right: 12%; animation-delay: -2s; }
.icon-float-3 { bottom: 14%; left: 32%; animation-delay: -4s; }
@keyframes icon-bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50%      { transform: translateY(-10px) rotate(2deg); }
}
.replace-stack-headline {
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 900;
}
.replace-stack-sub {
  margin-top: 1rem;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--on-surface-variant);
  max-width: 50ch;
}
.cost-stack {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.6rem;
  border-top: 1px solid var(--outline-variant);
  padding-top: 1.5rem;
}
.cost-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: 15px;
}
.cost-row del {
  color: var(--on-surface-variant);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.cost-row strong { font-weight: 700; }
.cost-row-total {
  margin-top: 0.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--outline-variant);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: -0.01em;
}
.cost-row-total .save-amount {
  color: var(--tertiary);
  font-variant-numeric: tabular-nums;
}
.replace-stack-cta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== TinyEmail partnership band (GrooveMail) ===== */
.tinyemail-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-top: 2rem;
}
.tinyemail-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 2rem;
  border-radius: var(--r-xl);
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  box-shadow: var(--shadow-md);
}
.tinyemail-logo {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0 0.25rem;
}
.tinyemail-logo img {
  width: clamp(100px, 18vw, 140px);
  height: auto;
  object-fit: contain;
}
@media (max-width: 860px) {
  .tinyemail-band { grid-template-columns: 1fr; }
}

/* ===== Compare-page "this is what $0 buys you" visual band ===== */
.compare-visual {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .compare-visual { grid-template-columns: 1fr; } }
.compare-visual-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  box-shadow: 0 30px 70px rgba(0,0,0,0.12), 0 8px 20px rgba(137,97,255,0.10);
  aspect-ratio: 16/10;
}
.compare-visual-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.compare-visual-frame::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10,10,13,0.06) 0%, transparent 30%);
  pointer-events: none;
}

/* ===== Product-page feature composite band ===== */
.feature-composite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
@media (max-width: 880px) { .feature-composite { grid-template-columns: 1fr; } }
.feature-composite-img {
  width: 100%;
  height: auto;
  border-radius: var(--r-lg);
  display: block;
  filter: drop-shadow(0 22px 40px rgba(0,0,0,0.10));
}

/* ============================================================
   Mobile polish (≤ 768px) — tap targets, spacing, touch ergonomics
   Layer at the end so it wins specificity ties with earlier rules.
   ============================================================ */
@media (max-width: 768px) {
  /* Theme toggle — give it a real 44x44 hit area without resizing the icon */
  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  /* Brand logo link — pad to 44px hit area */
  .brand {
    padding-block: 0.6rem;
    padding-inline: 0.15rem;
  }

  /* Nav toggle — bump to 44x44 */
  .nav-toggle {
    width: 44px;
    height: 44px;
  }

  /* Mobile menu links already have generous padding via .mobile-menu a (0.85rem block + 22px font) — keep */

  /* Footer link rows — bump tap target to ~44px */
  .footer ul li a {
    display: inline-block;
    padding-block: 0.55rem;
    line-height: 1.3;
  }
  .footer-legal a { padding-block: 0.5rem; padding-inline: 0.25rem; }
  .footer-legal { gap: 0.35rem 1rem; }

  /* FAQ summary — bump padding so the whole row is ~44px+ tall */
  .faq details { padding: 1.1rem 1.25rem; }
  .faq summary {
    padding-block: 0.5rem;
    min-height: 36px;
  }

  /* CTA buttons — stack near-full-width inside hero/CTA bands on phones for thumb reach */
  .hero-ctas .btn,
  .cta-band .btn,
  .replace-stack-cta .btn {
    flex: 1 1 100%;
  }

  /* Inline strip CTA — center its CTA when stacking */
  .inline-strip { gap: 1.25rem; }

  /* Press logo strip — tighten gap on phones (looked too sparse) */
  .press-logo-strip .press-logos { gap: 1rem 1.5rem; }

  /* Pricing pillars — slightly tighter padding so cards don't dominate */
  .pillar { padding: 1.5rem; }

  /* Hero badge — pull in from edges */
  .hero-badge { left: 0.85rem; right: 0.85rem; bottom: 0.85rem; padding: 0.85rem 0.95rem; }

  /* Container — guarantee a hair of breathing room on the smallest phones */
  .container { padding-inline: clamp(0.9rem, 4vw, var(--margin-mobile)); }

  /* Sticky nav uses 72px height — reflect that in :target scroll offset */
  :target { scroll-margin-top: 80px; }
}

/* Iframe responsive guard — any unsized embed (signup widget, video) shouldn't overflow */
iframe { max-width: 100%; }

/* Long-string break guard — prevent stray URLs / unbroken tokens from forcing horizontal scroll on phones */
@media (max-width: 480px) {
  p, li, dd, .body-lg, .hero-sub, .section-head p { overflow-wrap: anywhere; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
