/* Grab GTM — monochrome editorial design for the GA4 closed-loop lab.
   Warm near-black on warm paper, Fraunces for display, Inter for UI.
   Depth comes from hairlines, inverted sections, and type — no shadows,
   no gradients, no color. */

:root {
  --ink: #161513;
  --paper: #faf9f6;
  --surface: #fffefc;
  --line: #e8e5df;
  --line-strong: #d8d4cc;
  --muted: #5c5955;
  --faint: #98938b;

  --dark-bg: #161513;
  --dark-text: #f4f2ee;
  --dark-muted: #a8a29a;
  --dark-line: #2e2c28;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --grid: rgba(22, 21, 19, 0.045);
  --max: 1100px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- navigation ---------- */

.nav {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
  background: var(--paper);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 18px; letter-spacing: -0.01em;
}
.brand-mark {
  width: 11px; height: 11px; background: var(--ink); flex: none;
}
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--muted); transition: color 120ms; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-block;
  background: var(--ink); color: var(--dark-text);
  border: 1px solid var(--ink);
  padding: 16px 32px;
  font-size: 15px; font-weight: 500; line-height: 1;
  letter-spacing: 0.01em;
  cursor: pointer;
  font-family: inherit;
  transition: background 120ms;
}
.btn:hover { background: #322f2b; }
.btn-small { padding: 11px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--dark-text); }

.link-arrow {
  font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: border-color 120ms;
}
.link-arrow:hover { border-bottom-color: var(--ink); }
.link-arrow::after { content: " \2192"; }

/* ---------- type ---------- */

h1, .page-head h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 5.2vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.sub {
  margin-top: 26px; font-size: 20px; color: var(--muted);
  max-width: 46ch; line-height: 1.6;
}
.overline {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--faint); font-weight: 500;
}

/* ---------- hero ---------- */

.hero {
  padding: 104px 0 120px;
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 44px 44px;
}
.hero-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: 80px; align-items: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line-strong); background: var(--surface);
  padding: 7px 14px; margin-bottom: 30px;
  font-size: 12.5px; letter-spacing: 0.03em; color: var(--muted);
}
.chip::before { content: ""; width: 6px; height: 6px; background: var(--ink); }
.hero-actions { margin-top: 42px; display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }

/* ---------- dashboard panel (CSS/SVG product shot) ---------- */

.dash-stack { position: relative; }
.dash-stack::before {
  content: ""; position: absolute;
  top: 16px; left: 16px; right: -16px; bottom: -16px;
  border: 1px solid var(--line); background: var(--surface);
}
.dash {
  position: relative;
  background: var(--surface); border: 1px solid var(--line-strong);
  padding: 28px 30px 26px;
}
.dash-top {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--faint);
}
.dash-big {
  display: flex; align-items: baseline; gap: 14px;
  margin: 14px 0 4px;
}
.dash-number {
  font-family: var(--serif); font-weight: 500;
  font-size: 40px; letter-spacing: -0.01em; line-height: 1;
}
.dash-delta { font-size: 13px; color: var(--muted); }
.dash-spark { width: 100%; height: 64px; margin: 10px 0 6px; display: block; }
.dash-rows { border-top: 1px solid var(--line); padding-top: 8px; }
.dash-row {
  display: grid; grid-template-columns: 108px 1fr 80px;
  gap: 14px; align-items: center;
  padding: 9px 0; font-size: 13px;
}
.dash-row > span:first-child { color: var(--muted); }
.dash-bar { height: 7px; background: #efece6; }
.dash-bar i { display: block; height: 100%; background: var(--ink); }
.dash-val { text-align: right; font-variant-numeric: tabular-nums; }
.dash-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 18px; margin-top: 10px;
}
.dash-foot b {
  display: block; font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.dash-foot span { font-size: 12px; color: var(--faint); }

/* ---------- sections ---------- */

.section { padding: 120px 0; }
.section-line { border-top: 1px solid var(--line); }

.statement {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.22; letter-spacing: -0.01em;
  max-width: 30ch;
}
.statement .quiet { color: var(--faint); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 44px; }
.step { border-top: 1px solid var(--ink); padding-top: 26px; }
.step-num {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  color: var(--faint); font-variant-numeric: tabular-nums;
}
.step h3 { margin: 14px 0 10px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.step p { font-size: 16px; color: var(--muted); }

/* dark inverted band */
.cta-band {
  background: var(--dark-bg); color: var(--dark-text);
  padding: 104px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.cta-inner h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.01em;
}
.cta-inner .btn {
  background: var(--dark-text); color: var(--ink); border-color: var(--dark-text);
}
.cta-inner .btn:hover { background: #fff; }

/* ---------- interior page headers ---------- */

.page-head { padding: 96px 0 76px; }
.page-head .sub { margin-top: 20px; font-size: 19px; }

/* ---------- product page ---------- */

.features { border-top: 1px solid var(--line); }
.feature {
  display: grid; grid-template-columns: 210px 1fr;
  gap: 40px; padding: 64px 0;
  border-bottom: 1px solid var(--line);
  max-width: 920px;
}
.feature h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 32px; letter-spacing: -0.01em; margin-bottom: 16px;
}
.feature p { color: var(--muted); max-width: 58ch; }
.integrations { padding: 44px 0 96px; font-size: 15px; color: var(--muted); }
.integrations b { color: var(--ink); font-weight: 600; }

/* ---------- pricing ---------- */

.tiers {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong); background: var(--surface);
}
.tier { padding: 48px 38px 52px; }
.tier + .tier { border-left: 1px solid var(--line); }
.tier-flag {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--faint); display: block; min-height: 18px;
}
.tier h2 { font-size: 17px; font-weight: 600; margin: 10px 0 22px; letter-spacing: 0.01em; }
.tier-price {
  font-family: var(--serif); font-weight: 500;
  font-size: 46px; letter-spacing: -0.015em; line-height: 1;
}
.tier-per { color: var(--faint); font-size: 14px; margin-top: 10px; }
.tier ul { list-style: none; margin: 32px 0 36px; }
.tier li {
  font-size: 15px; color: var(--muted);
  padding: 12px 0; border-top: 1px solid var(--line);
}
.tier .btn { width: 100%; text-align: center; }

.tier-featured {
  background: var(--dark-bg); color: var(--dark-text);
  margin: -1px; position: relative;
}
.tier-featured .tier-flag { color: var(--dark-muted); }
.tier-featured .tier-per { color: var(--dark-muted); }
.tier-featured li { color: var(--dark-muted); border-color: var(--dark-line); }
.tier-featured .btn {
  background: var(--dark-text); color: var(--ink); border-color: var(--dark-text);
}
.tier-featured .btn:hover { background: #fff; }

.pricing-note { margin-top: 30px; font-size: 14px; color: var(--faint); }

/* ---------- blog ---------- */

.post-list { border-top: 1px solid var(--line); margin-bottom: 96px; }
.post-item {
  display: grid; grid-template-columns: 150px 1fr; gap: 36px;
  padding: 46px 0; border-bottom: 1px solid var(--line);
}
.post-date { font-size: 14px; color: var(--faint); padding-top: 8px; }
.post-item h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 30px; letter-spacing: -0.01em; line-height: 1.25;
}
.post-item h2 a { transition: color 120ms; }
.post-item h2 a:hover { color: var(--muted); }
.post-dek { margin-top: 12px; color: var(--muted); font-size: 16.5px; max-width: 60ch; }

.article { max-width: calc(65ch + 48px); margin: 0 auto; padding: 88px 24px 112px; }
.article-meta { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 24px; }
.article h1 {
  font-size: clamp(34px, 4.2vw, 48px);
  margin-bottom: 40px; line-height: 1.12;
}
.article h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 27px; margin: 52px 0 18px; letter-spacing: -0.01em;
}
.article p { margin-bottom: 26px; }
.article-cta { margin-top: 68px; padding-top: 36px; border-top: 1px solid var(--line); }

/* ---------- forms ---------- */

.form-wrap { max-width: 480px; padding-bottom: 128px; }
.field { margin-bottom: 26px; }
.field label {
  display: block; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted);
  margin-bottom: 9px;
}
.field input, .field select {
  width: 100%; padding: 14px 15px;
  font-size: 16px; font-family: inherit; color: var(--ink);
  border: 1px solid var(--line-strong); border-radius: 0; background: var(--surface);
  transition: border-color 120ms;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--ink); }
.form-wrap .btn { width: 100%; }
.form-note { font-size: 14px; color: var(--faint); margin-top: 20px; }

/* ---------- thank-you / privacy ---------- */

.narrow { max-width: 640px; padding-bottom: 128px; }
.narrow h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: 25px; margin: 48px 0 14px; letter-spacing: -0.01em;
}
.narrow p { color: var(--muted); margin-bottom: 18px; }
.ref-line { margin-top: 30px; font-size: 15px; color: var(--muted); }
.ref-line code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px; background: var(--surface);
  border: 1px solid var(--line); padding: 4px 9px;
}

/* ---------- footer ---------- */

.footer {
  background: var(--dark-bg); color: var(--dark-muted);
  border-top: 1px solid var(--dark-line);
  padding: 64px 0 72px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand-small {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px; color: var(--dark-text);
}
.brand-small::before { content: ""; width: 10px; height: 10px; background: var(--dark-text); }
.footer-note { margin-top: 12px; font-size: 13px; color: var(--dark-muted); }
.footer-links { display: flex; gap: 30px; font-size: 14px; }
.footer-links a { color: var(--dark-muted); transition: color 120ms; }
.footer-links a:hover { color: var(--dark-text); }

/* ---------- consent banner ---------- */

.consent {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
  background: var(--surface); border-top: 1px solid var(--line-strong);
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.consent p {
  font-size: 14px; color: var(--muted); max-width: 62ch; margin: 0;
}
.consent p a { border-bottom: 1px solid var(--line-strong); }
.consent p a:hover { border-bottom-color: var(--ink); }
.consent-actions { display: flex; align-items: center; gap: 20px; flex: none; }
.consent-link {
  background: none; border: none; padding: 0;
  font-family: inherit; font-size: 14px; color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
  cursor: pointer;
}
.consent-link:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero { padding: 64px 0 88px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .dash-stack::before { display: none; }
  .section { padding: 84px 0; }
  .cta-band { padding: 80px 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .tiers { grid-template-columns: 1fr; }
  .tier + .tier { border-left: none; border-top: 1px solid var(--line); }
  .feature { grid-template-columns: 1fr; gap: 12px; padding: 48px 0; }
  .post-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 620px) {
  .nav-links { gap: 18px; font-size: 14px; }
  .nav-links a:not(.btn) { display: none; }
  .page-head { padding: 64px 0 48px; }
  .article { padding-top: 64px; }
  .dash { padding: 22px; }
  .dash-number { font-size: 32px; }
}
