/* ============================================================
   Paddie Health — Marketing site design system
   Built on the product brand: forest #1a472a + teal #0d9488,
   Inter for UI/body, Newsreader for editorial display,
   plus a warm clay accent for human warmth.
   ============================================================ */

:root {
  /* Brand */
  --forest: #1a472a;
  --forest-deep: #0f2a1b;
  --forest-line: rgba(255, 255, 255, 0.10);
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --teal-tint: #e9f7f4;

  /* Warm accent (oklch ~0.62 0.11 55 — same family as teal, different hue) */
  --clay: #bd6a3a;
  --clay-dark: #9c5328;
  --clay-soft: #f4e7dc;

  /* Ink + neutrals */
  --ink: #13251b;          /* near-black green — display headings */
  --text: #2c3a33;         /* body text */
  --muted: #62726a;        /* secondary text */
  --faint: #8c9a92;
  --line: #e4e8e6;
  --line-strong: #d3dad6;

  /* Surfaces */
  --bg: #fbfcfb;
  --surface: #ffffff;
  --cream: #f6f3ec;        /* warm section bg */
  --mist: #eef4f1;         /* cool green-tinted section bg */

  /* Status (from product tokens) */
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;

  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(19, 37, 27, 0.05), 0 1px 3px rgba(19, 37, 27, 0.04);
  --sh-md: 0 4px 12px rgba(19, 37, 27, 0.06), 0 2px 4px rgba(19, 37, 27, 0.04);
  --sh-lg: 0 18px 40px rgba(19, 37, 27, 0.10), 0 6px 14px rgba(19, 37, 27, 0.06);
  --sh-xl: 0 40px 80px rgba(15, 42, 27, 0.18), 0 12px 28px rgba(15, 42, 27, 0.10);

  --container: 1200px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  font-feature-settings: 'rlig' 1, 'calt' 1;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-tight { max-width: 920px; margin: 0 auto; padding: 0 28px; }
section { position: relative; }
.section-pad { padding: 104px 0; }
.section-pad-sm { padding: 72px 0; }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.04;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1.display { font-size: clamp(40px, 5.6vw, 70px); }
h2.display { font-size: clamp(32px, 4.2vw, 50px); }
h3.display { font-size: clamp(24px, 3vw, 34px); }
.lead {
  font-size: clamp(18px, 1.5vw, 21px);
  color: var(--muted);
  line-height: 1.55;
  text-wrap: pretty;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-dark);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--teal);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--teal-light); }
.eyebrow.on-dark::before { background: var(--teal-light); }
.eyebrow.no-rule::before { display: none; }
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  font-weight: 500;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r-md);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, color .18s ease, border-color .18s ease;
  white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.04); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-dark { background: var(--forest); color: #f4f8f5; }
.btn-dark:hover { background: var(--forest-deep); transform: translateY(-1px); box-shadow: var(--sh-md); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--forest); background: #fff; transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--forest); }
.btn-light:hover { background: var(--teal-light); transform: translateY(-1px); }
.btn-clear-dark { background: transparent; color: #eaf2ed; border-color: rgba(255,255,255,.28); }
.btn-clear-dark:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn-lg { padding: 16px 30px; font-size: 16.5px; }
.btn-text { color: var(--teal-dark); font-weight: 600; display: inline-flex; align-items: center; gap: 7px; }
.btn-text svg { width: 17px; height: 17px; transition: transform .2s ease; }
.btn-text:hover svg { transform: translateX(3px); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 252, 251, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--teal);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px rgba(13,148,136,.35);
}
.brand-mark svg { width: 20px; height: 20px; color: #fff; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--text);
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--mist); color: var(--ink); }
.nav-links a.active { color: var(--teal-dark); }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 9px; place-items: center; color: var(--ink); }
.nav-toggle svg { width: 24px; height: 24px; }
.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 28px 22px;
}
.mobile-panel a {
  display: block; padding: 13px 8px; font-size: 17px; font-weight: 500;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-panel .btn { width: 100%; margin-top: 16px; }
body.menu-open .mobile-panel { display: block; }

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; letter-spacing: -0.01em;
}
.pill-teal { background: var(--teal-tint); color: var(--teal-dark); }
.pill-clay { background: var(--clay-soft); color: var(--clay-dark); }
.pill-line { border: 1px solid var(--line-strong); color: var(--muted); background: #fff; }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-lg); border-color: var(--line-strong); }
.feature-ic {
  width: 50px; height: 50px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal-dark);
  margin-bottom: 20px;
}
.feature-ic svg { width: 24px; height: 24px; }
.feature-ic.clay { background: var(--clay-soft); color: var(--clay-dark); }
.card h3 { font-size: 19px; font-weight: 650; color: var(--ink); letter-spacing: -0.02em; margin-bottom: 9px; }
.card h3.display { font-weight: 500; }
.card p { font-size: 15.5px; color: var(--muted); line-height: 1.6; }

/* ---------- Sections on dark ---------- */
.on-forest { background: var(--forest); color: #d9e6dd; }
.on-forest-deep { background: var(--forest-deep); color: #cfe0d4; }
.on-forest .display, .on-forest-deep .display { color: #fbfdfc; }
.on-forest .lead, .on-forest-deep .lead { color: #aec6b6; }

/* texture for dark sections */
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 4px 4px;
}

/* ---------- Photo placeholder frame ---------- */
.photo {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  background:
    linear-gradient(135deg, rgba(13,148,136,.16), rgba(26,71,42,.30)),
    repeating-linear-gradient(135deg, #1c3a2c 0 14px, #1a3528 14px 28px);
  display: grid; place-items: center; min-height: 240px;
}
.photo .photo-tag {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
  color: rgba(255,255,255,.7); text-transform: uppercase;
  border: 1px dashed rgba(255,255,255,.34); padding: 8px 14px; border-radius: 8px;
  background: rgba(0,0,0,.18);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Footer ---------- */
.footer { background: var(--forest-deep); color: #a9c0af; padding: 76px 0 36px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; border-bottom: 1px solid var(--forest-line); }
.footer .brand-name { color: #fff; }
.footer-col h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #6f8a78; font-weight: 600; margin-bottom: 18px; font-family: var(--font-mono); }
.footer-col a { display: block; padding: 6px 0; font-size: 15px; color: #b9cfbf; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-blurb { font-size: 15px; color: #91a998; max-width: 300px; margin-top: 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 28px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13.5px; color: #7d9685; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { font-size: 13.5px; color: #7d9685; }
.footer-legal a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.6,.2,1), transform .7s cubic-bezier(.2,.6,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* ---------- Grid helpers ---------- */
.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Stat ---------- */
.stat-num { font-family: var(--font-display); font-size: clamp(38px, 4vw, 52px); color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.stat-num.on-dark { color: #fff; }
.stat-label { font-size: 14.5px; color: var(--muted); margin-top: 10px; }
.stat-label.on-dark { color: #aec6b6; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-right .btn:not(.nav-toggle) { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section-pad { padding: 72px 0; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .container, .container-tight { padding: 0 20px; }
}
