/* ============================================================
   Snow Labs — shared design system  ·  "Vivid & Playful"
   Soft rounded shapes, gradient accents, a color per product,
   friendly type. Used by index.html + products.html.
   Page-specific styles stay inline per page.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* surfaces */
  --bg:        #FFFCF7;   /* warm cream */
  --bg-2:      #FFF6EE;
  --surface:   #FFFFFF;

  /* ink */
  --ink:       #211B2E;   /* warm plum-black */
  --ink-2:     #6B6479;
  --ink-3:     #A8A2B4;
  --line:      rgba(33,27,46,0.10);
  --line-2:    rgba(33,27,46,0.16);

  /* default accent = Doctor Notes coral (brand). Themes override. */
  --accent:     #FB5E3B;
  --accent-2:   #FF9F45;
  --accent-ink: #C2410C;
  --accent-bg:  #FFF1EB;
  --accent-rgb: 251, 94, 59;

  --serif:  'Bricolage Grotesque', 'Fraunces', Georgia, serif;
  --sans:   'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:   'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --max:    1180px;
  --pad:    26px;
  --r-lg:   30px;
  --r-md:   20px;
  --r-sm:   14px;
}

/* ── per-product color themes (set on a wrapper / card) ── */
.t-coral  { --accent:#FB5E3B; --accent-2:#FF9F45; --accent-ink:#C2410C; --accent-bg:#FFF1EB; --accent-rgb:251,94,59; }
.t-violet { --accent:#8B5CF6; --accent-2:#EC4899; --accent-ink:#6D28D9; --accent-bg:#F6F1FF; --accent-rgb:139,92,246; }
.t-rose   { --accent:#F43F7A; --accent-2:#FB7185; --accent-ink:#BE185D; --accent-bg:#FFF0F5; --accent-rgb:244,63,122; }
.t-blue   { --accent:#3B82F6; --accent-2:#06B6D4; --accent-ink:#1D4ED8; --accent-bg:#EDF4FF; --accent-rgb:59,130,246; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* floating gradient blobs — the playful backdrop */
.blobs { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.42;
}
.blob-1 { width: 520px; height: 520px; top: -180px; right: -120px; background: radial-gradient(circle at 30% 30%, #FF9F45, #FB5E3B); }
.blob-2 { width: 460px; height: 460px; top: 380px; left: -200px;  background: radial-gradient(circle at 30% 30%, #C4B5FD, #8B5CF6); opacity: 0.28; }
.blob-3 { width: 420px; height: 420px; bottom: -160px; right: -100px; background: radial-gradient(circle at 30% 30%, #67E8F9, #3B82F6); opacity: 0.24; }

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); position: relative; z-index: 2; }

/* ───── TYPE ───── */
.h-display {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 1.0;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.h-section {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h-card {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* gradient highlight word */
.h-display em, .h-section em, .grad {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-bg);
  padding: 7px 14px;
  border-radius: 999px;
}

.lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 56ch;
}

.link-underline {
  color: var(--accent-ink);
  font-weight: 600;
  border-bottom: 2px solid rgba(var(--accent-rgb), 0.35);
  transition: border-color 0.18s;
}
.link-underline:hover { border-color: var(--accent); }

/* ───── NAV (floating pill) ───── */
nav { position: sticky; top: 16px; z-index: 50; margin-top: 16px; }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 9px 12px 9px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(33,27,46,0.22);
}
@media (min-width: 1232px) { .nav-inner { margin: 0 auto; } }

.logo {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--serif); font-weight: 800; font-size: 22px;
  letter-spacing: -0.03em; color: var(--ink);
}
.logo-mono {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink);
  background: var(--accent-bg); padding: 3px 8px; border-radius: 999px;
  transform: translateY(-2px);
}

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  padding: 9px 14px; border-radius: 999px; transition: background 0.18s, color 0.18s;
}
.nav-links a:hover { color: var(--ink); background: rgba(33,27,46,0.05); }
.nav-links a.active { color: var(--accent-ink); background: var(--accent-bg); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px !important; color: #fff !important;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: 0 10px 22px -8px rgba(var(--accent-rgb), 0.55);
  transition: transform 0.18s, box-shadow 0.18s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -8px rgba(var(--accent-rgb), 0.7); background: linear-gradient(120deg, var(--accent), var(--accent-2)); }

/* ───── BUTTONS ───── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 700; white-space: nowrap;
  border: 2px solid transparent;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s, color 0.18s;
}
.btn-accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(var(--accent-rgb), 0.6);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(var(--accent-rgb), 0.75); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(33,27,46,0.5); }

.btn-soft {
  background: var(--surface); color: var(--ink);
  border-color: var(--line-2);
  box-shadow: 0 6px 16px -10px rgba(33,27,46,0.3);
}
.btn-soft:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent-ink); }

.btn .arr { transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(3px); }

/* ───── CHIPS + BADGES ───── */
.chip {
  font-family: var(--mono); font-size: 12px; font-weight: 400;
  color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-bg);
  border-radius: 999px; padding: 7px 14px; width: fit-content;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* status pills (catalog legend / rows) */
.status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2);
  width: fit-content;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot-live     { background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,0.18); animation: livepulse 2.4s ease-in-out infinite; }
.dot-alpha    { background: #8B5CF6; box-shadow: 0 0 0 4px rgba(139,92,246,0.18); }
.dot-research { background: #F43F7A; box-shadow: 0 0 0 4px rgba(244,63,122,0.18); }
.dot-design   { background: #3B82F6; box-shadow: 0 0 0 4px rgba(59,130,246,0.18); }

@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,0.20); }
  50%      { box-shadow: 0 0 0 8px rgba(16,185,129,0.05); }
}

/* ───── SECTION HEAD ───── */
.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--ink-2); font-size: 18px; }

/* ───── FOOTER ───── */
footer { position: relative; z-index: 2; padding: 28px var(--pad) 40px; }
.footer-inner {
  max-width: var(--max); margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  padding: 56px 48px 36px;
  color: #EDE9F2;
  position: relative;
  overflow: hidden;
}
.footer-inner::before {
  content: ''; position: absolute; width: 340px; height: 340px;
  top: -140px; right: -80px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,159,69,0.5), rgba(251,94,59,0));
  pointer-events: none;
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 44px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  position: relative; z-index: 1;
}
.footer-brand .logo { color: #fff; }
.footer-brand .logo-mono { background: rgba(255,255,255,0.14); color: #fff; }
.footer-brand p { margin-top: 16px; font-size: 14px; color: #B9B3C6; max-width: 34ch; line-height: 1.6; }
.footer-col h4 {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: #8B8499; margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 14px; color: #C9C4D4; padding: 5px 0; transition: color 0.18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  position: relative; z-index: 1;
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: #8B8499;
}
.footer-bottom a { color: #C9C4D4; }
.footer-bottom a:hover { color: #fff; }

/* ───── REVEAL ───── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-live { animation: none; }
  .blob { display: none; }
}

/* ───── RESPONSIVE (shared chrome) ───── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-inner { padding: 44px 30px 30px; border-radius: 28px; }
}
@media (max-width: 580px) {
  :root { --pad: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 6px; }
}
