/* ─────────────────────────────────────────────────────────────
   DigiPass — Marketing Site Design System
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand teal (deep / cool / institutional) */
  --teal-950: oklch(0.13 0.040 165);
  --teal-900: oklch(0.18 0.042 165);
  --teal-800: oklch(0.28 0.048 165);
  --teal-700: oklch(0.36 0.055 165);
  --teal-600: oklch(0.44 0.058 165);
  --teal-500: oklch(0.54 0.052 165);
  --teal-400: oklch(0.68 0.042 165);
  --teal-300: oklch(0.80 0.030 165);
  --teal-200: oklch(0.88 0.022 165);
  --teal-100: oklch(0.96 0.010 165);
  --teal-50:  oklch(0.985 0.005 165);

  /* Ink (neutral text + surfaces) */
  --ink-950: #0b0e14;
  --ink-900: #0f1117;
  --ink-800: #1e2433;
  --ink-700: #2d3548;
  --ink-600: #4a5568;
  --ink-500: #718096;
  --ink-400: #a0aec0;
  --ink-300: #cbd5e0;
  --ink-200: #e2e8f0;
  --ink-100: #f0f4f8;
  --ink-50:  #f8fafc;

  --accent-amber: #f59e0b;
  --accent-green: #22c55e;
  --accent-red: #ef4444;
  --accent-blue: #3b82f6;

  --surface: #ffffff;
  --border: #e8edf3;
  --border-strong: #cfd8e3;

  --shadow-sm: 0 1px 2px rgba(15, 17, 23, 0.04), 0 1px 1px rgba(15, 17, 23, 0.03);
  --shadow-md: 0 4px 16px rgba(15, 17, 23, 0.06), 0 2px 4px rgba(15, 17, 23, 0.04);
  --shadow-lg: 0 12px 40px rgba(15, 17, 23, 0.08), 0 4px 12px rgba(15, 17, 23, 0.04);
  --shadow-glow: 0 0 0 1px oklch(0.54 0.052 165 / 0.2), 0 12px 40px oklch(0.18 0.042 165 / 0.35);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --container: 1240px;
  --container-narrow: 960px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
*::selection { background: var(--teal-200); color: var(--teal-900); }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  color: var(--ink-800);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }

/* ── Typography ──────────────────────────────────────────── */
.font-display { font-family: 'Sora', sans-serif; letter-spacing: -0.03em; }
.font-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

h1, h2, h3, h4 {
  font-family: 'Sora', sans-serif;
  color: var(--ink-950);
  letter-spacing: -0.025em;
  line-height: 1.1;
  font-weight: 700;
}

h1 { font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem); letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(2rem, 3vw + 0.5rem, 3.25rem); letter-spacing: -0.035em; }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }
h4 { font-size: 1.125rem; letter-spacing: -0.01em; }

.eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-600);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 3px oklch(0.54 0.052 165 / 0.15);
}

.eyebrow.on-dark { color: var(--teal-400); }
.eyebrow.on-dark::before { background: var(--teal-400); box-shadow: 0 0 0 3px oklch(0.68 0.042 165 / 0.2); }

.lead {
  font-size: 1.25rem;
  color: var(--ink-600);
  line-height: 1.55;
  max-width: 64ch;
  font-weight: 400;
}

.lead.on-dark { color: var(--teal-300); }

p { color: var(--ink-600); line-height: 1.65; }
p.on-dark { color: var(--teal-300); }

.text-mono { font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; }

/* ── Layout primitives ───────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container.narrow { max-width: var(--container-narrow); }

section { padding: 7rem 0; }
section.tight { padding: 4.5rem 0; }
section.dark { background: var(--ink-950); color: white; }
section.dark h1, section.dark h2, section.dark h3, section.dark h4 { color: white; }
section.tinted { background: var(--ink-50); }
section.deep {
  background: linear-gradient(180deg, var(--teal-950) 0%, var(--ink-950) 100%);
  color: white;
}
section.deep h1, section.deep h2, section.deep h3 { color: white; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--ink-950);
  color: white;
}
.btn-primary:hover { background: var(--teal-800); transform: translateY(-1px); }

.btn-primary-light {
  background: white;
  color: var(--ink-950);
}
.btn-primary-light:hover { background: var(--teal-100); transform: translateY(-1px); }

.btn-ghost {
  color: var(--ink-700);
  background: transparent;
}
.btn-ghost:hover { color: var(--ink-950); background: var(--ink-100); }

.btn-ghost-dark {
  color: var(--teal-200);
  background: transparent;
  border-color: oklch(0.54 0.052 165 / 0.25);
}
.btn-ghost-dark:hover { background: oklch(0.54 0.052 165 / 0.15); }

.btn-outline {
  color: var(--ink-900);
  background: white;
  border-color: var(--border-strong);
}
.btn-outline:hover { border-color: var(--ink-700); }

.btn-sm { padding: 0.5rem 0.85rem; font-size: 0.82rem; border-radius: 8px; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1rem; border-radius: 12px; }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--border);
}
.nav.dark {
  background: rgba(11, 14, 20, 0.72);
  border-bottom: 1px solid oklch(0.30 0.042 165);
  color: white;
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink-950);
}
.nav.dark .nav-brand { color: white; }
.nav-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(140deg, var(--teal-700) 0%, var(--teal-950) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 oklch(0.68 0.042 165 / 0.4);
}
.nav-brand-mark::before {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 4px;
  border: 1.5px solid oklch(0.68 0.042 165 / 0.7);
  border-right: none;
  border-bottom: none;
}
.nav-brand-mark::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--teal-300);
  bottom: 6px;
  right: 6px;
  border-radius: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 1rem;
}
.nav-links a, .nav-links button {
  font-size: 0.92rem;
  color: var(--ink-700);
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  font-weight: 500;
  font-family: inherit;
  white-space: nowrap;
}
.nav.dark .nav-links a, .nav.dark .nav-links button { color: var(--teal-200); }
.nav-links a:hover, .nav-links button:hover {
  background: var(--ink-100);
  color: var(--ink-950);
}
.nav.dark .nav-links a:hover, .nav.dark .nav-links button:hover {
  background: oklch(0.54 0.052 165 / 0.15);
  color: white;
}
.nav-links .has-caret::after {
  content: '';
  display: inline-block;
  margin-left: 0.35rem;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}
.nav-spacer { flex: 1; }
.nav-cta { display: flex; align-items: center; gap: 0.5rem; }

/* ── Footer ──────────────────────────────────────────────── */
footer.site-footer {
  background: var(--ink-950);
  color: var(--ink-400);
  padding: 5rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(5, 1fr);
  gap: 2.5rem;
  margin-bottom: 4rem;
}
.footer-col h5 {
  font-size: 0.72rem;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col li { padding: 0.3rem 0; }
.footer-col a {
  color: var(--ink-400);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: white; }
.footer-brand-line {
  font-family: 'Sora', sans-serif;
  font-weight: 700;
  color: white;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-tagline { font-size: 0.875rem; color: var(--ink-500); max-width: 24ch; line-height: 1.55; margin-bottom: 1.5rem; }
.footer-bottom {
  border-top: 1px solid var(--ink-800);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--ink-500);
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* ── Pills, chips, badges ────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}
.pill-teal { background: var(--teal-100); color: var(--teal-800); }
.pill-ink { background: var(--ink-100); color: var(--ink-700); }
.pill-amber { background: #fef3c7; color: #92400e; }
.pill-green { background: #dcfce7; color: #166534; }
.pill-red { background: #fee2e2; color: #991b1b; }
.pill-purple { background: #ede9fe; color: #5b21b6; }
.pill-blue { background: #dbeafe; color: #1e40af; }

.pill.outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink-700);
}
.pill.on-dark {
  background: oklch(0.54 0.052 165 / 0.18);
  color: var(--teal-200);
  border: 1px solid oklch(0.54 0.052 165 / 0.3);
}
.pill.live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 3px oklch(0.79 0.18 145 / 0.25);
  animation: livePulse 2.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px oklch(0.79 0.18 145 / 0.25); }
  50% { box-shadow: 0 0 0 6px oklch(0.79 0.18 145 / 0.05); }
}

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card.hover:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-dark {
  background: oklch(0.16 0.040 165);
  border: 1px solid oklch(0.30 0.042 165);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  color: var(--teal-200);
}
.card-dark h3, .card-dark h4 { color: white; }

/* ── Grids ───────────────────────────────────────────────── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* ── Section header ──────────────────────────────────────── */
.section-head {
  max-width: 760px;
  margin-bottom: 3.5rem;
}
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 + p { margin-top: 1rem; }

/* ── Track-product modal ─────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: oklch(0.13 0.040 165 / 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  z-index: 1000;
  padding: 8vh 1rem 2rem;
}
.modal-backdrop.open { display: flex; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal {
  background: white;
  border-radius: var(--radius-lg);
  width: min(640px, 100%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-head {
  padding: 1.5rem 1.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.modal-head p { font-size: 0.875rem; }
.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--ink-500);
}
.modal-close:hover { background: var(--ink-100); color: var(--ink-900); }

.modal-body { padding: 1.5rem; }

.track-input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  transition: border-color 0.15s ease;
  background: white;
}
.track-input:focus-within { border-color: var(--teal-700); box-shadow: 0 0 0 4px oklch(0.36 0.055 165 / 0.1); }
.track-input input {
  flex: 1;
  border: none;
  outline: none;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: var(--ink-900);
  background: transparent;
}
.track-input .scan {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--ink-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700);
}

.track-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--ink-100);
  padding: 0.25rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}
.track-tab {
  flex: 1;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 7px;
  color: var(--ink-600);
  text-align: center;
}
.track-tab.active { background: white; color: var(--ink-950); box-shadow: var(--shadow-sm); }

.track-recents { margin-top: 1.25rem; }
.track-recents-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-500);
  margin-bottom: 0.5rem;
}
.track-recent {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  transition: background 0.15s ease;
  cursor: pointer;
}
.track-recent:hover { background: var(--ink-50); }
.track-recent-thumb {
  width: 36px;
  height: 36px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-200));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--teal-800);
}
.track-recent-meta { flex: 1; }
.track-recent-name { font-size: 0.875rem; font-weight: 500; color: var(--ink-900); }
.track-recent-id { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: var(--ink-500); }

/* ── Code blocks ─────────────────────────────────────────── */
.code-block {
  background: var(--ink-950);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--ink-200);
  box-shadow: var(--shadow-lg);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: oklch(0.16 0.04 165);
  border-bottom: 1px solid oklch(0.28 0.048 165);
  font-size: 0.72rem;
  color: var(--ink-400);
}
.code-bar .dots { display: flex; gap: 0.35rem; margin-right: 0.5rem; }
.code-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: oklch(0.30 0.04 165); }
.code-body { padding: 1.25rem 1.5rem; line-height: 1.7; overflow-x: auto; }
.code-body .k { color: var(--teal-400); }
.code-body .s { color: #f9c87b; }
.code-body .c { color: var(--ink-500); }
.code-body .n { color: #c4b5fd; }

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; } .mt-5 { margin-top: 2.5rem; } .mt-6 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; } .gap-4 { gap: 2rem; }
.flex { display: flex; } .flex-col { flex-direction: column; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; }

/* ── Responsive ──────────────────────────────────────────── */
/* ── Hamburger nav ───────────────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  color: var(--ink-700);
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--ink-100); }
.nav-hamburger span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 1rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu > a {
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-800);
  border-radius: 8px;
  transition: background 0.12s;
}
.nav-mobile-menu > a:hover { background: var(--ink-50); }
.nav-mobile-menu > a[aria-current="page"] { color: var(--teal-700); background: var(--teal-50); }
.nav-mobile-menu .nav-mobile-cta {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.nav-mobile-menu .nav-mobile-cta .btn {
  justify-content: center;
  padding: 0.75rem 1rem;
}
.nav-mobile-menu .nav-mobile-cta .btn-ghost { color: var(--ink-800); }
.nav-mobile-menu .nav-mobile-cta .btn-primary { color: white; }

@media (min-width: 981px) and (max-width: 1220px) {
  .nav-inner { gap: 1.1rem; }
  .nav-links { margin-left: 0.25rem; gap: 0.1rem; }
  .nav-links a, .nav-links button { font-size: 0.86rem; padding: 0.45rem 0.6rem; }
  .nav-cta { gap: 0.4rem; }
  .nav-cta .btn { padding-left: 0.75rem; padding-right: 0.75rem; }
}
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand-col { grid-column: 1 / -1; }
  .grid-3, .grid-4, .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-cta .btn { padding-left: 0.7rem; padding-right: 0.7rem; }
  .nav-cta .btn:nth-child(1) { display: none; } /* hide Track product on tablet */
}
@media (max-width: 720px) {
  .nav-cta .btn { display: none; } /* hide all nav CTAs on phone — hamburger has them */
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 0.65rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  h1 { font-size: clamp(2rem, 8vw, 3rem) !important; }
  h2 { font-size: clamp(1.5rem, 6vw, 2.25rem) !important; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4, .grid-6 { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
  .container { padding: 0 1rem; }
  .nav-inner { padding: 0.6rem 1rem; }
}

/* ── Mobile safety net: collapse inline multi-column grids ──────────────────
   Many page heroes/content blocks set grid-template-columns inline (e.g.
   `style="grid-template-columns: 1.4fr 1fr"`), which a class-based media query
   can't override. Below 760px, force any such grid to a single column and tame
   the large desktop gaps so nothing is pushed off-screen. */
@media (max-width: 760px) {
  [style*="grid-template-columns"] { grid-template-columns: 1fr !important; }
  [style*="gap: 4rem"], [style*="gap: 5rem"] { gap: 2rem !important; }
}


/* ═══════════════════════════════════════════════════════════
   Premium polish layer — micro-interactions, depth, reveal
═════════════════════════════════════════════════════════════ */
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
::selection { background: oklch(0.36 0.055 165 / 0.22); }
:focus-visible { outline: 2px solid var(--teal-500); outline-offset: 2px; }

@media (pointer: fine) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: var(--ink-200); border-radius: 8px; border: 3px solid white; }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }
}

/* Nav: subtle elevation once the page scrolls */
.nav { transition: box-shadow 0.25s ease, background 0.25s ease; }
.nav.nav-scrolled { background: rgba(255, 255, 255, 0.94); box-shadow: 0 10px 34px -16px oklch(0.2 0.04 165 / 0.25); }
.nav.dark.nav-scrolled { background: rgba(11, 14, 20, 0.9); box-shadow: 0 10px 34px -16px rgba(0, 0, 0, 0.5); }
.nav-links a[aria-current="page"] { color: var(--teal-800); background: var(--teal-50); font-weight: 600; }
.nav.dark .nav-links a[aria-current="page"] { color: white; background: oklch(0.54 0.052 165 / 0.18); }

/* Buttons: weightier press + primary glow */
.btn { transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease; }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary:hover { box-shadow: 0 12px 28px -12px oklch(0.36 0.055 165 / 0.6); }
.btn-primary-light:hover { box-shadow: 0 12px 28px -12px oklch(0.36 0.055 165 / 0.45); }

/* Cards: gentle lift on hover (surfaces without their own transform) */
.card, .price-card, .hood-card, .std-card, .quote-card, .rec-card, .verify-step,
.res-card, .cap-card, .pain-card, .flow-step {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover, .price-card:hover, .hood-card:hover, .std-card:hover, .quote-card:hover,
.rec-card:hover, .verify-step:hover, .pain-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px -20px oklch(0.2 0.04 165 / 0.3);
  border-color: var(--teal-200);
}
.price-card.featured:hover { transform: translateY(-11px); }

/* Footer: hairline gradient divider */
footer.site-footer { position: relative; }
footer.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, oklch(0.54 0.052 165 / 0.55), transparent 95%);
}

/* Scroll-reveal (activated by chrome.js; no-JS users see everything) */
html.rv-on .rv { opacity: 0; transform: translateY(16px); }
html.rv-on .rv.rv-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.65s cubic-bezier(0.2, 0.65, 0.3, 1), transform 0.65s cubic-bezier(0.2, 0.65, 0.3, 1);
  transition-delay: var(--rvd, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.rv-on .rv { opacity: 1; transform: none; }
  .btn, .card, .price-card { transition: none; }
}
