/* ============================================================================
 * COSGROVE — LANDING DESIGN SYSTEM · Caret identity v1.1
 * Source of truth: cosgrove-brand.vercel.app/BRAND.md (+ /assets/cosgrove.css)
 *  • Serif speaks (Newsreader), sans operates (Inter), mono reports (Plex Mono).
 *  • Flat ink on paper: hairlines and space create hierarchy. No shadows.
 *  • One green: Cosgrove green #07A488 is both the brand accent and the
 *    healthy/verified/live color. Bright #6BFFDC only as CTA fill / on ink.
 *  • Legacy token names (--mint, --ok, --brand-pink) are kept as aliases so
 *    the page's bespoke styles resolve to brand values.
 * ========================================================================== */

@font-face { font-family: 'Newsreader'; src: url('fonts/newsreader-400-600-latin.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/inter-400-600-latin.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/plexmono-400-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('fonts/plexmono-500-latin.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* ── Surfaces ── */
  --bg: #FFFFFF;                       /* paper */
  --bg-soft: #FAF9F6;                  /* cream — banded sections */
  --surface-card: #FFFFFF;
  --surface-input: #FFFFFF;
  --hair: #EDEDED;                     /* hairline — 1px only, never heavier */
  --hair-strong: rgba(20,21,22,0.16);  /* inputs, emphasized edges */

  /* ── Text ramp ── */
  --ink-1: #141516;
  --ink-2: #434343;
  --ink-3: #8A8A8A;

  /* ── Cosgrove green — brand accent AND healthy/verified/live/offered ── */
  --green: #07A488;                    /* on light: marks + large text only (3.15:1) */
  --green-bright: #6BFFDC;             /* on ink + CTA fill; never text/lines on light */
  --green-wash: rgba(7,164,136,.08);
  --green-chip: rgba(7,164,136,.14);
  --green-line: rgba(7,164,136,.30);

  /* ── Status (dots + large labels only; running text stays ink) ── */
  --watch: #E5A800;
  --watch-chip: rgba(229,168,0,.14);
  --watch-line: rgba(229,168,0,.40);
  --warn: #D6433B;
  --warn-soft: rgba(214,67,59,.08);
  --warn-line: rgba(214,67,59,.30);

  /* ── Legacy aliases (bespoke page styles reference these names) ── */
  --brand-pink: var(--green-bright);
  --brand-pink-hover: #57F2CD;
  --color-brand-green: var(--green-bright);
  --color-brand-green-hover: #57F2CD;
  --mint: var(--green);
  --mint-ink: var(--ink-1);
  --mint-soft: var(--green-wash);
  --mint-line: var(--green-line);
  --ok: var(--green);
  --ok-soft: var(--green-chip);
  --ok-line: var(--green-line);

  /* ── Type: serif speaks, sans operates, mono reports ── */
  --font-serif: 'Newsreader', Georgia, serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* ── Scale (BRAND.md §3; brand steps only) ── */
  --text-display: clamp(40px, 4.6vw, 48px); /* Newsreader 600 · 48/1.1, 40 min */
  --text-h2: 30px;                          /* Newsreader 600 · section headlines */
  --text-h3: 21px;                          /* Newsreader 600 · card titles */
  --text-h4: 21px;
  --text-stat: clamp(34px, 3.8vw, 48px);    /* Plex Mono · tabular */
  --text-lead: 21px;                        /* Newsreader 400 · narrative leads */
  --text-body: 14px;                        /* Inter 400 */
  --text-control: 14px;
  --text-sm: 12px;
  --text-eyebrow: 11px;                     /* Plex Mono 500 caps */

  /* ── Layout ── */
  --page-max: 1312px;                       /* marketing content max */
  --section-pad: 116px;
  --section-pad-tight: 96px;

  /* ── Shape (5 chips · 9 buttons/inputs · 12 cards · 999 pills) ── */
  --radius-chip: 5px;
  --radius-button: 9px;
  --radius-input: 9px;
  --radius-card: 12px;
  --radius-card-sm: 12px;
  --radius-pill: 9999px;

  /* ── Elevation: none. Flat ink on paper; one soft shadow for overlays only ── */
  --shadow-cta: none;
  --shadow-card: none;
  --shadow-overlay: 0 20px 60px -20px rgba(20,21,22,0.18);

  /* ── Motion: the caret reads, catches, settles ── */
  --ease-cosgrove: cubic-bezier(.45, 0, .55, 1);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-1);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea { font: inherit; color: inherit; }

.section--dark { background: var(--bg-soft); color: var(--ink-1); position: relative; }

/* ── Containers ── */
.wrap { max-width: var(--page-max); margin: 0 auto; padding: 0 28px; }
.wrap--narrow { max-width: 920px; }
section { position: relative; }

/* ── Typography ── */
h1, h2, h3, h4 { margin: 0; font-weight: var(--weight-semibold); letter-spacing: -0.01em; }

.t-display, .display {
  font-family: var(--font-serif);
  font-size: var(--text-display); line-height: 1.1; letter-spacing: -0.015em;
  font-weight: var(--weight-semibold); text-wrap: balance;
  color: var(--ink-1); -webkit-text-fill-color: currentColor;
}
.t-h2, .h2 {
  font-family: var(--font-serif);
  font-size: var(--text-h2); line-height: 1.15; letter-spacing: -0.01em;
  font-weight: var(--weight-semibold); text-wrap: balance;
  color: var(--ink-1); -webkit-text-fill-color: currentColor;
}
.t-h3 { font-family: var(--font-serif); font-size: var(--text-h3); line-height: 1.25; letter-spacing: -0.005em; font-weight: var(--weight-semibold); }
.t-h4 { font-family: var(--font-serif); font-size: var(--text-h4); line-height: 1.25; letter-spacing: -0.005em; font-weight: var(--weight-semibold); }
.t-lead, .lead { font-family: var(--font-serif); font-size: var(--text-lead); line-height: 1.45; font-weight: var(--weight-regular); color: var(--ink-2); }
.t-body, .sub { font-size: var(--text-body); line-height: 1.6; color: var(--ink-2); }
.t-body-sm { font-size: var(--text-sm); line-height: 1.5; color: var(--ink-2); }
.t-stat { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: var(--text-stat); line-height: 1; letter-spacing: -0.02em; font-weight: var(--weight-medium); color: var(--ink-1); }

.t-eyebrow, .eyebrow {
  font-family: var(--font-mono); font-size: var(--text-eyebrow);
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  font-weight: var(--weight-medium);
}
.mono {
  font-family: var(--font-mono); font-size: var(--text-eyebrow);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.mint { color: var(--green); }

/* Product name in running copy: ink, emphasized. Green is never a text color in prose. */
.cosgrove { font-weight: var(--weight-semibold); color: var(--ink-1); letter-spacing: -0.005em; }

/* ── Verified stamp (canonical anatomy, BRAND.md §6) ── */
.cg-verified {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .05em;
  color: var(--green); background: var(--green-wash);
  border: 1px solid var(--green-line); border-radius: var(--radius-chip);
  padding: 2.5px 7px; text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid var(--hair);
}
.nav__row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand__logo, .brand img { height: 26px; width: auto; display: block; }
.brand__by { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); font-weight: var(--weight-medium); letter-spacing: 0; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: var(--text-control); transition: color .16s var(--ease-cosgrove); }
.nav__links a:hover { color: var(--ink-1); }
.nav__links a.btn--mint, .nav__links a.btn--mint:hover { color: var(--ink-1); }

@media (max-width: 860px) { .nav__links a:not(.btn) { display: none; } }
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
}

/* ── Buttons: primary = bright-green fill + ink text; secondary = 1px ink border ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: var(--radius-button);
  font-family: var(--font-sans); font-weight: var(--weight-semibold); font-size: var(--text-control); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .16s var(--ease-cosgrove), border-color .16s var(--ease-cosgrove);
}
.btn--lg { height: 54px; padding: 0 28px; font-size: 15px; }

.btn--mint { background: var(--green-bright); color: var(--ink-1); }
.btn--mint:hover { background: var(--brand-pink-hover); color: var(--ink-1); }

.btn--ghost { background: transparent; color: var(--ink-1); border-color: var(--ink-1); }
.btn--ghost:hover { background: var(--bg-soft); color: var(--ink-1); border-color: var(--ink-1); }
.btn > * { position: relative; z-index: 1; }
.btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ── Surfaces: presence from hairline + space, never shadow ── */
.glass {
  background: var(--surface-card);
  border: 1px solid var(--hair); border-radius: var(--radius-card);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--radius-pill); font-family: var(--font-mono);
  font-size: var(--text-eyebrow); font-weight: var(--weight-medium);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pill--accent { color: var(--green); background: var(--green-wash); border: 1px solid var(--green-line); }

/* ── Motion (BRAND.md §7): reads, catches, settles ── */
.anim-bob { animation: bob 2s ease-in-out infinite; transform-origin: center; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }

.anim-scan { animation: scan 1.4s var(--ease-cosgrove) infinite alternate; }
@keyframes scan { from { transform: translateX(0); } to { transform: translateX(142px); } }

.hover-parent:hover .nod { animation: nod .55s var(--ease-cosgrove); }
@keyframes nod { 0% { transform: translateY(0); } 35% { transform: translateY(-4px); } 70% { transform: translateY(1.5px); } 100% { transform: translateY(0); } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
