/* SnapAct site design system — atmospheric, premium, partner-grade. No yellow. */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #fbfdfd;
  --surface: #f3f7f8;
  --surface-2: #eaf2f3;
  --ink: #08111c;
  --ink-soft: #1f2c3d;
  --muted: #5b6779;
  --muted-soft: #8893a4;

  /* Brand palette — teal range, no yellow */
  --brand: #08b89d;
  --brand-bright: #18d3b1;
  --brand-dark: #047967;
  --brand-deep: #043d34;
  --brand-tint: #d8f5ee;
  --brand-wash: #ecfbf6;
  --accent: #5eead4;
  --accent-cool: #2dd4bf;

  /* Lines & shadows */
  --line: rgba(8, 17, 28, 0.08);
  --line-soft: rgba(8, 17, 28, 0.05);
  --line-strong: rgba(8, 17, 28, 0.14);
  --shadow-card:
    0 1px 1px rgba(8, 17, 28, 0.04),
    0 4px 12px rgba(8, 17, 28, 0.06),
    0 24px 56px -16px rgba(8, 17, 28, 0.10);
  --shadow-lift:
    0 1px 1px rgba(8, 17, 28, 0.05),
    0 18px 36px -12px rgba(8, 17, 28, 0.18),
    0 40px 80px -20px rgba(8, 17, 28, 0.22);
  --shadow-glow:
    0 0 0 1px rgba(8, 184, 157, 0.18),
    0 18px 36px -12px rgba(8, 184, 157, 0.25),
    0 40px 80px -20px rgba(8, 184, 157, 0.18);

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 72px;
  --space-9: 96px;
  --space-10: 128px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Atmospheric base layer — soft teal/cyan washes (no yellow) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 8% -4%, rgba(24, 211, 177, 0.18), transparent 60%),
    radial-gradient(800px 600px at 100% 8%, rgba(94, 234, 212, 0.16), transparent 55%),
    radial-gradient(900px 800px at 50% 110%, rgba(8, 184, 157, 0.10), transparent 55%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(8, 17, 28, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(8, 17, 28, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,0,0,0.7), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,0,0,0.7), transparent 80%);
  opacity: 0.6;
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--brand); color: #ffffff; }

/* Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
}
h1 {
  font-size: clamp(2.75rem, 6.4vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}
h2 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
}
h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.32;
}
p { margin: 0; color: var(--ink-soft); }

.gradient-text {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand-dark) 40%, var(--brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-wash);
  border: 1px solid var(--line-soft);
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 184, 157, 0.18);
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 56ch;
}
.muted { color: var(--muted); }

/* Layout ─────────────────────────────────────────────── */
.wrap {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: var(--space-9) 0; }
.section + .section { padding-top: 0; }
.section-alt {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0)),
    var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-dark {
  background:
    radial-gradient(1000px 700px at 80% 0%, rgba(24, 211, 177, 0.18), transparent 60%),
    radial-gradient(1000px 700px at 0% 100%, rgba(94, 234, 212, 0.10), transparent 60%),
    linear-gradient(180deg, #06111c 0%, #050b14 100%);
  color: rgba(255,255,255,0.85);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.7), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.7), transparent 80%);
  pointer-events: none;
}
.section-dark > * { position: relative; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255,255,255,0.72); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: end;
  margin-bottom: var(--space-7);
}
.section-head p { max-width: 52ch; }

@media (max-width: 760px) {
  .section { padding: var(--space-8) 0; }
  .section-head { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* Nav ────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 253, 253, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: 1.0625rem;
  color: var(--ink);
}
.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 18px -8px rgba(8, 184, 157, 0.55);
}
.brand-mark img { width: 100%; height: 100%; display: block; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-radius: 10px;
  transition: color 0.18s ease, background-color 0.18s ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(8, 184, 157, 0.08); }

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: linear-gradient(180deg, var(--ink) 0%, #0c1727 100%);
  color: #fff !important;
  border-radius: 999px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 6px 14px -6px rgba(8, 17, 28, 0.5);
}
.nav-cta:hover { transform: translateY(-1px); }

@media (max-width: 760px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.22s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.16), transparent 50%);
  pointer-events: none;
}
.btn-primary {
  background: linear-gradient(180deg, #0c1727 0%, var(--ink) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.08) inset,
    0 8px 18px -6px rgba(8, 17, 28, 0.5),
    0 22px 40px -16px rgba(8, 17, 28, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-brand {
  background: linear-gradient(180deg, var(--brand-bright) 0%, var(--brand) 60%, var(--brand-dark) 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.16) inset,
    0 10px 22px -6px rgba(8, 184, 157, 0.55),
    0 24px 48px -16px rgba(8, 184, 157, 0.4);
}
.btn-brand:hover { transform: translateY(-2px); }

.btn-soft {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(8, 17, 28, 0.04);
}
.btn-soft:hover { border-color: var(--brand); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--brand-wash); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-5); }

/* Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: var(--space-9) 0 var(--space-8);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: var(--space-8);
  align-items: center;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 50%, var(--accent-cool) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-6);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink-soft);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(8, 184, 157, 0.18);
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero { padding: var(--space-8) 0 var(--space-7); }
  .hero h1 .accent { white-space: normal; }
}

/* Marketplace preview card ─────────────────────────── */
.preview {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(-0.4deg);
}
.preview::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(140deg, rgba(24, 211, 177, 0.6), rgba(255,255,255,0) 40%, rgba(8,184,157,0.3) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
.preview-cover {
  padding: 30px 30px 26px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(24, 211, 177, 0.18), transparent 60%),
    linear-gradient(180deg, var(--brand-wash), #ffffff);
}
.preview-cover .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.preview-cover .pill::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 184, 157, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.preview-cover h2 {
  margin-top: 14px;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.preview-body { padding: 8px 18px; }
.preview-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.preview-row:last-child { border-bottom: 0; }
.preview-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-wash) 0%, #fff 100%);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.preview-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.preview-row h3 { font-size: 0.9375rem; margin: 0; }
.preview-row p { font-size: 0.8125rem; color: var(--muted); margin-top: 3px; }
.preview-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-wash);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}
.preview-dock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.5), var(--surface));
}
.preview-dock div {
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
  font-size: 0.8125rem;
  color: var(--muted);
}
.preview-dock div:last-child { border-right: 0; }
.preview-dock strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  margin-bottom: 3px;
  font-weight: 700;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(8, 184, 157, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(8, 184, 157, 0.05); }
}

/* Trust strip ────────────────────────────────────────── */
.trust {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.7), var(--surface));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: var(--space-6) 0;
}
.trust-item {
  padding: 0 var(--space-5);
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-item strong {
  display: block;
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 6px;
  background: linear-gradient(180deg, var(--ink) 0%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-item span { font-size: 0.875rem; color: var(--muted); line-height: 1.5; }

@media (max-width: 760px) {
  .trust-row { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); padding: var(--space-5) 0; }
  .trust-item { padding: var(--space-3) var(--space-4); border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* Cards (3-up) ───────────────────────────────────────── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }

.card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 240px at 100% 0%, rgba(8, 184, 157, 0.07), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.card:hover {
  border-color: rgba(8, 184, 157, 0.4);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}
.card:hover::before { opacity: 1; }
.card > * { position: relative; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-wash) 0%, #fff 100%);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

/* Feature row (split panel) ─────────────────────────── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  align-items: center;
}
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; gap: var(--space-6); } }

.data-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfa 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.data-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(400px 240px at 100% 0%, rgba(8, 184, 157, 0.08), transparent 60%);
  pointer-events: none;
}
.data-panel > * { position: relative; }
.data-panel h3 {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.signal-list { display: grid; gap: 10px; }
.signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  font-size: 0.9375rem;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.signal:hover { border-color: rgba(8, 184, 157, 0.4); background: #fff; }
.signal span { color: var(--ink-soft); font-weight: 500; }
.signal strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-wash);
  padding: 5px 10px;
  border-radius: 999px;
}

/* Partner tiles ──────────────────────────────────────── */
.partner-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 960px) { .partner-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .partner-strip { grid-template-columns: 1fr; } }
.partner-tile {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfa 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  display: grid;
  gap: 10px;
  transition: border-color 0.18s ease, transform 0.2s ease, box-shadow 0.22s ease;
}
.partner-tile:hover {
  border-color: rgba(8, 184, 157, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.partner-tile span {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
}
.partner-tile strong {
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.012em;
  line-height: 1.45;
}

/* Reminder cards ─────────────────────────────────────── */
.reminder-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-7);
}
@media (max-width: 960px) { .reminder-grid { grid-template-columns: 1fr; } }
.reminder-card {
  position: relative;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.18s ease, transform 0.2s ease;
}
.reminder-card:hover { border-color: rgba(8, 184, 157, 0.45); transform: translateY(-2px); }
.reminder-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-wash), #fff);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.reminder-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.reminder-card h3 { margin-bottom: 8px; }
.reminder-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

/* CTA banner ─────────────────────────────────────────── */
.cta {
  position: relative;
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(24, 211, 177, 0.32), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(94, 234, 212, 0.16), transparent 60%),
    linear-gradient(180deg, #06111c 0%, #050b14 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 30px 60px -20px rgba(8, 17, 28, 0.45),
    0 60px 120px -40px rgba(8, 184, 157, 0.25);
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.7), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.7), transparent 80%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .eyebrow {
  background: rgba(8, 184, 157, 0.16);
  border-color: rgba(8, 184, 157, 0.32);
  color: var(--accent);
}
.cta .eyebrow::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.22); }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.72); }
.cta .actions { justify-content: flex-end; margin: 0; }
.cta .btn-soft {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cta .btn-soft:hover { border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.cta .btn-primary {
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f5 100%);
  color: var(--ink);
}

@media (max-width: 760px) {
  .cta { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
}

/* Footer ─────────────────────────────────────────────── */
.site-footer {
  margin-top: var(--space-9);
  background:
    radial-gradient(800px 400px at 50% 0%, rgba(8, 184, 157, 0.1), transparent 60%),
    linear-gradient(180deg, #04090f 0%, #02060a 100%);
  color: rgba(255, 255, 255, 0.72);
  padding: var(--space-8) 0 var(--space-6);
  border-top: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-7);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-brand { display: grid; grid-template-columns: 42px 1fr; gap: 14px; }
.footer-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 8px 18px -8px rgba(8, 184, 157, 0.4);
}
.footer-brand .brand-mark img { width: 100%; height: 100%; display: block; }
.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.0625rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  margin-bottom: 6px;
}
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.875rem; line-height: 1.65; }
.footer-col { display: grid; gap: 10px; align-content: start; }
.footer-col strong {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.18s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: var(--space-5);
}
.footer-bottom small { color: rgba(255, 255, 255, 0.5); font-size: 0.8125rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-brand { grid-template-columns: 1fr; }
}

/* Reveal animation ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .preview-cover .pill::before { animation: none; }
}

/* Doc-style content (privacy / terms) ─────────────────── */
.doc-hero {
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 400px at 90% 0%, rgba(24, 211, 177, 0.16), transparent 60%),
    linear-gradient(180deg, var(--brand-wash) 0%, #fff 100%);
}
.doc-hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.25rem); }
.doc-hero p { margin-top: 14px; max-width: 64ch; }
.doc-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 20px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.doc-body {
  padding: var(--space-8) 0 var(--space-9);
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-8);
}
@media (max-width: 960px) { .doc-body { grid-template-columns: 1fr; gap: var(--space-5); } }

.doc-toc {
  position: sticky;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255,255,255,0.85), var(--surface));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.doc-toc strong {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  padding: 6px 10px 10px;
}
.doc-toc a {
  font-size: 0.875rem;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink-soft);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.doc-toc a:hover { background: #fff; color: var(--ink); }
@media (max-width: 960px) { .doc-toc { position: static; } }

.doc-content h2 {
  font-size: 1.625rem;
  margin: var(--space-7) 0 var(--space-3);
  padding-top: var(--space-4);
  scroll-margin-top: 96px;
}
.doc-content h2:first-child { margin-top: 0; padding-top: 0; }
.doc-content h3 { font-size: 1.125rem; margin: var(--space-5) 0 8px; }
.doc-content p, .doc-content ul, .doc-content ol {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.75;
}
.doc-content ul, .doc-content ol { padding-left: 22px; }
.doc-content li { margin-bottom: 8px; }
.doc-content a { color: var(--brand-dark); border-bottom: 1px solid var(--brand); }
.doc-content a:hover { color: var(--brand); }
.doc-content code {
  background: var(--brand-wash);
  border: 1px solid var(--line-soft);
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.875em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--brand-dark);
}

/* Live activity card (hero floater) ─────────────────── */
.live-card {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  margin-top: var(--space-6);
  padding: 12px 16px 12px 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-card);
  max-width: 100%;
}
.live-dot {
  position: relative;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 184, 157, 0.2);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.6; }
  80% { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
.live-card-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.live-card-text strong {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.005em;
}
.live-card-text span {
  font-size: 0.75rem;
  color: var(--muted);
}
.live-tag {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-wash);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

/* How it works — 4-step flow ─────────────────────────── */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
  position: relative;
}
.flow::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 2px;
  background:
    repeating-linear-gradient(to right,
      rgba(8, 184, 157, 0.5) 0,
      rgba(8, 184, 157, 0.5) 6px,
      transparent 6px,
      transparent 12px);
  z-index: 0;
}
.flow-step {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.18s ease, transform 0.2s ease, box-shadow 0.22s ease;
  z-index: 1;
}
.flow-step:hover {
  border-color: rgba(8, 184, 157, 0.45);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--brand-bright), var(--brand) 60%, var(--brand-dark));
  color: #fff;
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -6px rgba(8, 184, 157, 0.5);
  border: 2px solid #fff;
}
.flow-step h3 { margin-bottom: 8px; font-size: 1.0625rem; }
.flow-step p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .flow::before { display: none; }
}
@media (max-width: 520px) {
  .flow { grid-template-columns: 1fr; }
}

/* Bento grid — Why SnapAct ───────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: var(--space-4);
}
.bento-cell {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.22s ease;
}
.bento-cell:hover {
  border-color: rgba(8, 184, 157, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.bento-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 240px at 100% 0%, rgba(8, 184, 157, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bento-cell:hover::before { opacity: 1; }
.bento-cell > * { position: relative; }
.bento-cell h3 {
  font-size: 1.25rem;
  letter-spacing: -0.018em;
  line-height: 1.25;
}
.bento-cell p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.bento-cell .bento-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-wash) 0%, #fff 100%);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bento-cell .bento-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }

.bento-cell.span-3 { grid-column: span 3; }
.bento-cell.span-2 { grid-column: span 2; }
.bento-cell.span-4 { grid-column: span 4; }
.bento-cell.row-2  { grid-row: span 2; }

/* Hero bento cell variant — bigger with stat */
.bento-cell.hero-cell {
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(24, 211, 177, 0.18), transparent 60%),
    linear-gradient(180deg, #06111c 0%, #050b14 100%);
  color: #fff;
  border-color: rgba(255,255,255,0.06);
}
.bento-cell.hero-cell::before {
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.6), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(0,0,0,0.6), transparent 80%);
  opacity: 0.6;
}
.bento-cell.hero-cell h3 { color: #fff; font-size: 1.625rem; }
.bento-cell.hero-cell p { color: rgba(255,255,255,0.7); }
.bento-cell.hero-cell .bento-icon {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: var(--accent);
}
.bento-cell.hero-cell .stat {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.bento-cell.hero-cell .stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, var(--accent) 0%, var(--brand-bright) 60%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.bento-cell.hero-cell .stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
}

@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-cell.span-3, .bento-cell.span-2, .bento-cell.span-4 { grid-column: span 2; }
  .bento-cell.row-2 { grid-row: span 1; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; }
  .bento-cell.span-3, .bento-cell.span-2, .bento-cell.span-4 { grid-column: span 1; }
}

/* FAQ — accordion ────────────────────────────────────── */
.faq {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}
.faq-item {
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.22s ease;
}
.faq-item[open] {
  border-color: rgba(8, 184, 157, 0.4);
  box-shadow: var(--shadow-card);
}
.faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.012em;
  color: var(--ink);
  transition: color 0.18s ease;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
  content: "";
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-wash);
  border: 1px solid var(--line);
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23047967' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.25s ease;
}
.faq-item[open] .faq-summary::after { transform: rotate(180deg); }
.faq-item[open] .faq-summary { color: var(--brand-dark); }
.faq-body {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-body p { color: inherit; }
.faq-body p + p { margin-top: 10px; }

/* Section divider — subtle decorative line ────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right,
    transparent 0%,
    var(--line) 30%,
    var(--brand-wash) 50%,
    var(--line) 70%,
    transparent 100%);
  margin: 0 auto;
  max-width: 800px;
}

/* Code blocks (developer page) ───────────────────────── */
.code-block {
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(8, 184, 157, 0.14), transparent 60%),
    linear-gradient(180deg, #06111c 0%, #050b14 100%);
  color: #cfd5e3;
  border-radius: var(--r-md);
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 14px 30px -10px rgba(8,17,28,0.3);
  white-space: pre;
  word-wrap: normal;
}
.code-block .tok-key { color: #87e3cd; }
.code-block .tok-str { color: #c2e8d6; }
.code-block .tok-num { color: #b6c7ff; }
.code-block .tok-cmt { color: #5a6478; font-style: italic; }
.code-block .tok-fn  { color: #5eead4; }

/* Developer hero — terminal preview ─────────────────── */
.hero-note {
  display: grid;
  gap: 10px;
  margin-top: var(--space-6);
}
.note-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 12px 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 0.875rem;
  color: var(--ink-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.note-pill strong {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  white-space: nowrap;
}

.terminal {
  background:
    radial-gradient(700px 360px at 100% 0%, rgba(8, 184, 157, 0.18), transparent 60%),
    linear-gradient(180deg, #06111c 0%, #050b14 100%);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05) inset,
    0 18px 36px -12px rgba(8, 17, 28, 0.4),
    0 40px 80px -20px rgba(8, 184, 157, 0.18);
  position: relative;
}
.terminal::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, rgba(0,0,0,0.7), transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 70% 30%, rgba(0,0,0,0.7), transparent 80%);
  pointer-events: none;
}
.terminal > * { position: relative; }
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
}
.terminal-head .status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(8, 184, 157, 0.16);
  border: 1px solid rgba(8, 184, 157, 0.32);
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.terminal-head .status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}
.terminal pre {
  margin: 0;
  padding: 22px 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, "JetBrains Mono", monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #cfd5e3;
  overflow-x: auto;
  white-space: pre;
}
.terminal pre .muted { color: var(--brand); font-weight: 700; }

.terminal-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.mini-stat {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px 18px;
  border-right: 1px solid rgba(255,255,255,0.06);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.3;
}
.mini-stat:last-child { border-right: 0; }
.mini-stat strong {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 1px;
}
.stat-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.stat-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) {
  .terminal-metrics { grid-template-columns: 1fr; }
  .mini-stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .mini-stat:last-child { border-bottom: 0; }
}

/* Doc cards & doc grid ──────────────────────────────── */
.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-5);
}
@media (max-width: 960px) { .doc-grid { grid-template-columns: 1fr; } }

.doc-card {
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: grid;
  gap: 16px;
}
.doc-card.featured { padding: 32px; }
.doc-card h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.doc-card p { color: var(--muted); font-size: 0.9375rem; line-height: 1.65; }

.notice {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--brand-wash);
  border-radius: 10px;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* Tables ─────────────────────────────────────────────── */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
}
.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table-wrap th, .table-wrap td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.table-wrap th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-wash);
  border-bottom: 1px solid var(--line);
}
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8125rem;
  color: var(--brand-dark);
  font-weight: 600;
  white-space: nowrap;
}
.table-wrap td:not(:first-child) { color: var(--ink-soft); }
@media (max-width: 760px) {
  .table-wrap { overflow-x: auto; }
  .table-wrap table { min-width: 600px; }
}

/* Generic 3-up grid (alias for .grid-3) ─────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
@media (max-width: 960px) { .grid { grid-template-columns: 1fr; } }

/* API endpoint list (verified-inventory) ─────────────── */
.surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: var(--space-5);
  align-items: start;
}
@media (max-width: 960px) { .surface { grid-template-columns: 1fr; } }

.endpoint-stack {
  display: grid;
  gap: 12px;
}
.endpoint {
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  transition: border-color 0.18s ease, box-shadow 0.22s ease, transform 0.18s ease;
}
.endpoint:hover {
  border-color: rgba(8, 184, 157, 0.45);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}
.endpoint-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.endpoint-top .method {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(160deg, var(--brand-bright), var(--brand) 60%, var(--brand-dark));
  padding: 5px 10px;
  border-radius: 999px;
  min-width: 52px;
  justify-content: center;
  box-shadow: 0 4px 10px -4px rgba(8, 184, 157, 0.55);
}
.endpoint-top code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 600;
  background: var(--surface);
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.endpoint p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Metric strip (4 tiles for inventory page) ─────────── */
.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
@media (max-width: 960px) { .metric-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .metric-strip { grid-template-columns: 1fr; } }

.metric-tile {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
  display: grid;
  gap: 10px;
  transition: border-color 0.18s ease, transform 0.2s ease, box-shadow 0.22s ease;
  overflow: hidden;
}
.metric-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px 200px at 100% 0%, rgba(8, 184, 157, 0.08), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.metric-tile:hover {
  border-color: rgba(8, 184, 157, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.metric-tile:hover::before { opacity: 1; }
.metric-tile > * { position: relative; }
.metric-tile strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.012em;
  color: var(--ink);
}
.metric-tile span {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Verified inventory dashboard preview ─────────────── */
.inv-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(-0.4deg);
}
.inv-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(140deg, rgba(24, 211, 177, 0.6), rgba(255,255,255,0) 40%, rgba(8,184,157,0.3) 100%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.7;
}
.inv-cover {
  padding: 30px 30px 24px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(24, 211, 177, 0.18), transparent 60%),
    linear-gradient(180deg, var(--brand-wash), #ffffff);
}
.inv-cover .pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.inv-cover .pill::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(8, 184, 157, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
.inv-cover h2 {
  margin-top: 14px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.inv-body { padding: 8px 18px; }
.inv-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line-soft);
}
.inv-row:last-child { border-bottom: 0; }
.inv-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--brand-wash), #fff);
  border: 1px solid var(--line);
  color: var(--brand-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.inv-icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.inv-row strong { display: block; font-size: 0.9375rem; color: var(--ink); font-weight: 700; }
.inv-row span { font-size: 0.8125rem; color: var(--muted); margin-top: 2px; }
.inv-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-dark);
  background: var(--brand-wash);
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
}

/* Freshness gauge panel ─────────────────────────────── */
.gauge-panel {
  margin-top: 14px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff, #f8fbfa);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
}
.gauge-panel h3 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.gauge-bar {
  position: relative;
  height: 10px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}
.gauge-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-bright), var(--brand) 60%, var(--brand-dark));
  border-radius: 999px;
  position: relative;
  box-shadow: 0 0 10px rgba(8, 184, 157, 0.4);
}
.gauge-bar > span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
  animation: shimmer 2.6s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.gauge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.gauge-stat strong {
  display: block;
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 2px;
}
.gauge-stat span {
  font-size: 0.75rem;
  color: var(--muted);
}
