/* ============================================================
   Website layer. Sits on the design system's tokens (ds-tokens.css)
   but has its own voice: large regular-weight type on white paper,
   so the product previews (grey chrome, dense UI) read as objects
   placed on the page, not as part of it.
   ============================================================ */

:root {
  --site-bg:   var(--warm-0);
  --site-ink:  var(--text-hi);
  --site-dim:  color-mix(in srgb, var(--site-ink) 46%, var(--site-bg));
  --site-rule: var(--border-default);

  --gutter:  clamp(16px, 2.2vw, 32px);
  --page-max: 1440px;
  --block-gap: clamp(112px, 14vw, 208px);

  /* type scale for the site (the product UI keeps the DS scale) */
  --fs-wordmark: clamp(52px, 7.2vw, 112px);
  --fs-lead:     clamp(34px, 4.4vw, 64px);
  --fs-title:    clamp(22px, 2.3vw, 32px);
  --fs-meta:     13px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font: var(--fw-regular) 16px/1.4 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" 0;
}
img, svg { display: block; }
h1, h2, h3, p { margin: 0; font-weight: var(--fw-regular); }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--site-ink); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--slate-100); }

.page { max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }

/* --- mono label: the small technical voice (DS eyebrow) --- */
.mono {
  font: var(--fw-regular) 11px/1 var(--font-mono);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--site-dim);
}

/* --- header --- */
.site-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  padding-top: clamp(20px, 2vw, 28px);
}
.wordmark {
  display: inline-block;
  font-size: var(--fs-wordmark);
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-decoration: none;
  margin-left: -0.04em; /* optical: align the S with the gutter */
}
.wordmark:hover { text-decoration: none; }
.site-head__meta {
  margin-top: 14px;
  font-size: var(--fs-meta);
  line-height: 1.45;
}

/* menu: the main page, then one page per audience (VGF-style plain list, right column) */
.site-nav { padding-top: 6px; min-width: 150px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; font-size: 15px; line-height: 1.5; }
.site-nav a { text-decoration: none; color: var(--site-dim); transition: color var(--dur-fast) var(--ease-out); }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--site-ink); }
.site-nav a[aria-current] { text-decoration: underline; }

/* --- lead: the page's h1. A display size between the wordmark and the
   block titles, so it reads as the page's headline, not as a first block --- */
.lead {
  margin-top: clamp(72px, 10vw, 152px);
  max-width: 21em;
  font-size: var(--fs-lead);
  line-height: 1.04;
  letter-spacing: -0.032em;
  text-wrap: pretty;
}
.lead .dim { color: var(--site-dim); }

/* audience pages: a mono eyebrow above the lead */
.eyebrow { display: block; margin-top: clamp(72px, 10vw, 152px); }
.eyebrow + .lead { margin-top: 18px; }

/* --- a content block: rule row, title + dim subtitle, then a visual --- */
.block { margin-top: var(--block-gap); }
.block--first { margin-top: clamp(80px, 9vw, 136px); }
.block__rule {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.block__rule::after { content: ""; flex: 1; height: 1px; background: var(--site-rule); }
.block__title {
  font-size: var(--fs-title);
  line-height: 1.18;
  letter-spacing: -0.015em;
  max-width: 30em;
  text-wrap: balance;
}
.block__title .dim { color: var(--site-dim); }
.block__visual { margin-top: clamp(28px, 3vw, 44px); }
/* blocks below the fold skip rendering until they're near the viewport */
.block:not(.block--first) { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.block__note { margin-top: 14px; font-size: var(--fs-meta); color: var(--site-dim); }

/* --- facts: three short statements in columns; numbers, not rules, set them apart --- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(20px, 3vw, 48px); margin-top: clamp(28px, 3vw, 44px); }
.fact { font-size: 19px; line-height: 1.32; letter-spacing: -0.01em; text-wrap: pretty; }
.fact .mono { display: block; margin-bottom: 18px; }
.fact .dim { color: var(--site-dim); }

/* --- ink panel: the one inverted surface on the page, for the block that
   must not be missed (free + pricing). Flat, no shadow, same radius as the previews --- */
.ink {
  --site-dim: color-mix(in srgb, var(--site-bg) 56%, var(--site-ink));
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--site-ink);
  color: var(--site-bg);
}
/* the panel is compact, so the full block gap after it reads as a hole */
.block--facts + .block { margin-top: clamp(72px, 8vw, 120px); }
.ink :focus-visible { outline-color: var(--site-bg); }
.ink ::selection { background: var(--warm-800); }
.ink__link {
  display: inline-flex; gap: 10px; margin-top: clamp(32px, 4vw, 52px);
  font-size: 17px; text-decoration: none;
}
.ink__link::after { content: "→"; transition: transform var(--dur-base) var(--ease-out); }
.ink__link:hover::after { transform: translateX(4px); }

/* --- plans (pricing page): two columns on paper, set apart by spacing, not rules --- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px clamp(24px, 4vw, 64px); }
.plan .mono { display: block; margin-bottom: 18px; }
.plan__price { font-size: var(--fs-lead); line-height: 1; letter-spacing: -0.032em; }
.plan__price .dim { color: var(--site-dim); }
.plan__price small { font-size: var(--fs-meta); letter-spacing: 0; color: var(--site-dim); margin-left: 8px; }
.plan__for { margin-top: 14px; font-size: var(--fs-title); line-height: 1.18; letter-spacing: -0.015em; }
.plan ul { list-style: none; margin: clamp(24px, 3vw, 36px) 0 0; padding: 0; font-size: 17px; line-height: 1.35; }
.plan li + li { margin-top: 10px; }
.plans + .block__note { margin-top: clamp(40px, 5vw, 64px); }

/* --- audiences: big rows with hairlines, linking to each page.
   The block's rule row is the top line, so the list adds none of its own --- */
.audiences { list-style: none; margin: 0; padding: 0; }
.audiences li { border-bottom: 1px solid var(--site-rule); }
.audiences a {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr) auto; gap: 8px 24px; align-items: baseline;
  padding: 18px 0 16px; text-decoration: none;
  font-size: var(--fs-title); line-height: 1.18; letter-spacing: -0.015em;
}
.audiences a::after { content: "→"; color: var(--site-dim); transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out); }
.audiences a:hover::after { transform: translateX(4px); color: var(--site-ink); }
.audiences .dim { color: var(--site-dim); font-size: 17px; line-height: 1.35; letter-spacing: 0; }
.audiences a[aria-current] { pointer-events: none; }
.audiences a[aria-current] > span:first-child::after { content: "You’re here"; margin-left: 12px; font: var(--fw-regular) 11px/1 var(--font-mono); letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--site-dim); vertical-align: middle; }
.audiences a[aria-current]::after { visibility: hidden; }

/* --- waitlist: a link to the sign-up form on Tally, styled as a button --- */
.waitlist__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  background: var(--site-ink);
  color: var(--site-bg);
  font: var(--fw-medium) 15px/1 var(--font-sans);
  text-decoration: none;
  transition: var(--transition-control);
}
.waitlist__btn::after { content: "↗"; transition: transform var(--dur-base) var(--ease-out); }
.waitlist__btn:hover { background: color-mix(in srgb, var(--site-ink) 86%, var(--site-bg)); }
.waitlist__btn:hover::after { transform: translate(2px, -2px); }
.waitlist__btn:active { transform: scale(0.985) translateY(0.5px); }

/* --- footer --- */
.site-foot {
  margin-top: var(--block-gap);
  padding: 20px 0 28px;
  border-top: 1px solid var(--site-rule);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@media (max-width: 640px) {
  .site-head { grid-template-columns: 1fr; gap: 0; }
  .site-nav { margin-top: 22px; padding-top: 0; }
  .site-nav ul { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .facts { grid-template-columns: 1fr; }
  .fact { font-size: 18px; }
  .plans { grid-template-columns: 1fr; }
  .fact .mono { margin-bottom: 10px; }
  .audiences a { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 0 12px; }
  .audiences .dim { grid-row: 2; grid-column: 1; font-size: 15px; }
  .waitlist__btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
