/* Hallmark · macrostructure: Workbench (framed product hero, kept from the user's approved layout)
 * genre: editorial · theme: studied-DNA (source: zeroco2.eco) · nav: floating pill · footer: statement
 * motion: one load sequence · figure reveals · sticky head · ticker
 * tokens: every colour and family below is a token; nothing is inlined mid-render
 */

/* ---------- tokens ---------- */
:root {
  /* paper and ink */
  --paper: oklch(98.4% 0.002 85);
  --paper-2: oklch(95.6% 0.003 85);
  --paper-3: oklch(92.6% 0.004 85);
  --ink: oklch(17.5% 0.004 270);
  --ink-2: oklch(44% 0.008 265);
  --muted: oklch(56% 0.006 265);
  --forest: oklch(33% 0.062 158);
  --forest-deep: oklch(24% 0.052 158);
  --mint: oklch(91% 0.055 155);
  --mint-ink: oklch(28% 0.05 158);
  --line: oklch(91.4% 0.004 85);
  --line-2: oklch(86% 0.005 85);
  --line-dark: oklch(100% 0 0 / 0.16);
  --cream-ink: oklch(97% 0.012 85);
  --cream-muted: oklch(94% 0.014 85 / 0.66);
  --ghost-wash: oklch(100% 0 0 / 0.08);
  --live-ok: oklch(58% 0.15 152);
  --live-ok-ring: oklch(58% 0.15 152 / 0.16);
  --live-down: oklch(62% 0.14 60);

  /* type */
  --font-display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Switzer", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-md: 1.125rem;
  --text-lg: 1.375rem;
  --text-xl: 1.75rem;
  --text-2xl: 2.25rem;
  --display: clamp(2.4rem, 3.6vw, 4.05rem);

  /* space — 4pt, named by role */
  --space-3xs: 0.125rem;
  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;
  --gutter: clamp(20px, 2.4vw, 40px);

  /* motion */
  --dur-micro: 120ms;
  --dur-short: 220ms;
  --dur-long: 420ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* depth and stacking */
  --shadow-whisper: 0 1px 2px oklch(20% 0.01 85 / 0.05);
  --shadow-lift: 0 18px 40px oklch(20% 0.02 156 / 0.14);
  --z-base: 1;
  --z-sticky: 200;
  --z-nav: 300;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, p, ol, li, figure { margin: 0; }
ol { padding: 0; list-style: none; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
}
h1 { font-size: var(--display); color: var(--cream-ink); }
h2 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -0.03em; }

p { max-width: 62ch; }
::selection { background: var(--mint); color: var(--mint-ink); }

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: var(--space-md); z-index: var(--z-nav);
  background: var(--forest); color: var(--cream-ink);
  padding: var(--space-xs) var(--space-md); border-radius: 999px;
}
.skip:focus { left: var(--gutter); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  padding: 0.7rem 1.15rem; border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-body); font-size: var(--text-base); font-weight: 500;
  letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out),
              color var(--dur-short) var(--ease-out),
              transform var(--dur-micro) var(--ease-out);
}
.btn-lg { padding: 0.85rem 1.4rem; font-size: var(--text-md); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: var(--text-sm); }
.btn .arrow { font-size: 0.85em; opacity: 0.8; transition: transform var(--dur-short) var(--ease-out); }
.btn:hover .arrow { transform: translate(2px, -2px); }
.btn:active { transform: translateY(1px); }

.btn-solid { background: var(--forest); color: var(--cream-ink); }
.btn-solid:hover { background: var(--forest-deep); }
.btn-mint { background: var(--mint); color: var(--mint-ink); }
.btn-mint:hover { background: var(--paper); }
.btn-ghost { border-color: var(--line-dark); color: var(--cream-ink); }
.btn-ghost:hover { background: var(--ghost-wash); border-color: var(--cream-ink); }

/* ---------- reading progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px;
  z-index: var(--z-nav); pointer-events: none;
}
.progress i {
  display: block; height: 100%;
  background: var(--forest);
  transform: scaleX(0); transform-origin: 0 50%;
}

/* ---------- floating pill nav ---------- */
.pill {
  position: fixed; top: var(--space-md); left: var(--gutter); right: var(--gutter);
  z-index: var(--z-nav);
  display: flex; align-items: center; gap: var(--space-lg);
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: color-mix(in oklch, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  transition: background-color var(--dur-short) var(--ease-out),
              border-color var(--dur-short) var(--ease-out);
}
.pill.is-stuck { background: color-mix(in oklch, var(--paper) 97%, transparent); border-color: var(--line-2); }

.brand { display: inline-flex; align-items: center; gap: var(--space-xs); flex: none; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--forest); color: var(--mint);
}
.brand-mark svg { width: 17px; height: 17px; }
.brand-logo {
  width: 26px; height: 26px; border-radius: 7px; flex: none;
  object-fit: contain;
}
/* the family mark is blue: on the forest block it needs a light plate, on the pill it does not */
.brand-light .brand-logo { background: var(--paper); padding: 3px; width: 30px; height: 30px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md);
  letter-spacing: -0.03em;
}

.pill-links { display: flex; gap: var(--space-2xs); }
.pill-links a {
  padding: 0.4rem 0.7rem; border-radius: 999px;
  font-size: var(--text-sm); color: var(--ink-2); white-space: nowrap;
  transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.pill-links a:hover { background: var(--paper-3); color: var(--ink); }

.pill-right { margin-left: auto; display: flex; align-items: center; gap: var(--space-sm); }
.pill-signin {
  padding: 0.4rem 0.5rem;
  font-size: var(--text-sm);
  color: var(--ink-2);
  white-space: nowrap;
}
.pill-signin:hover { color: var(--forest); }
.live {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em;
  color: var(--muted); white-space: nowrap;
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.live.ok i { background: var(--live-ok); box-shadow: 0 0 0 3px var(--live-ok-ring); }
.live.down i { background: var(--live-down); }

/* ---------- hero ---------- */
main { padding-top: 6.5rem; }

.hero { padding-inline: var(--gutter); }
.hero-block {
  position: relative;
  padding: clamp(28px, 3.2vw, 52px) clamp(22px, 3.2vw, 52px) 0;
  border-radius: 26px;
  background: var(--forest);
  color: var(--cream-ink);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-bottom: clamp(28px, 3vw, 46px);
}
.eyebrow {
  display: inline-block;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cream-muted); margin-bottom: var(--space-md);
}
.hero-copy h1 { margin-bottom: var(--space-lg); max-width: 15ch; }
.hero-line {
  font-size: var(--text-md); line-height: 1.6; color: var(--cream-muted);
  max-width: 44ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero-note {
  margin-top: var(--space-lg);
  font-size: 12px; color: var(--cream-muted);
}

/* the product, framed, tilted off the axis */
.shot-hero {
  transform: rotate(-1.4deg);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  border-color: var(--line-dark);
}
.shot-hero img { width: 100%; }
.frame-bar {
  display: flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 11px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line);
}
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.frame-bar i:first-child { background: oklch(72% 0.08 25); }
.frame-bar i:nth-child(2) { background: oklch(82% 0.09 85); }
.frame-bar i:nth-child(3) { background: oklch(78% 0.07 150); }
.frame-bar span {
  margin-left: 6px; font-family: var(--font-mono); font-size: 10px;
  color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* the four numbers, sitting on the block's floor */
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 calc(clamp(22px, 3.2vw, 52px) * -1);
  padding: clamp(18px, 1.8vw, 24px) clamp(22px, 3.2vw, 52px) clamp(20px, 2vw, 28px);
  border-top: 1px solid var(--line-dark);
}
.hero-stats > div { padding-right: var(--space-lg); }
.hero-stats > div + div {
  border-left: 1px solid var(--line-dark);
  padding-left: var(--space-lg);
}
.hero-stats dt {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cream-muted);
}
.hero-stats dd {
  margin: 4px 0 2px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 2.2vw, 2.1rem); letter-spacing: -0.03em; line-height: 1.05;
  color: var(--cream-ink); font-variant-numeric: tabular-nums;
}
.hero-stats dd .unit { display: inline; font-size: 0.6em; margin-left: 2px; color: var(--cream-muted); }
.hero-stats > div > span { display: block; font-size: 11.5px; line-height: 1.4; color: var(--cream-muted); }
.hero-stats dd .unit { display: inline; }

/* ---------- figures ---------- */
.shot {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-whisper);
}
.shot img { width: 100%; }
.shot figcaption {
  padding: var(--space-sm) var(--space-md);
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: var(--text-sm);
  color: var(--muted);
}

/* ---------- ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  overflow: hidden;
}
.ticker-track {
  display: flex; width: max-content;
  padding: clamp(14px, 1.4vw, 20px) 0;
  animation: ticker 46s linear infinite;
}
.ticker:hover .ticker-track,
.ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track span {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--text-md); letter-spacing: -0.01em; color: var(--ink-2);
  white-space: nowrap;
}
.ticker-track span::after {
  content: "\00B7"; margin: 0 var(--space-xl); color: var(--line-2);
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- screens (workbench) ---------- */
.screens {
  padding-inline: var(--gutter);
  padding-top: clamp(72px, 6vw, 104px);
  padding-bottom: clamp(64px, 6vw, 96px);
}
.screens h2 { max-width: 22ch; margin-bottom: clamp(28px, 3.4vw, 48px); }

/* three rows: one sentence on the left, one screen on the right */
.tour { display: grid; gap: clamp(36px, 4vw, 64px); }
.tour li {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.tour-copy h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.25rem, 1.9vw, 1.8rem);
  letter-spacing: -0.02em; line-height: 1.16;
  max-width: 24ch; text-wrap: balance;
}

/* ---------- the line ---------- */
.line {
  display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(64px, 7vw, 104px) var(--gutter);
  background: var(--paper-2);
  border-top: 0;
  border-bottom: 1px solid var(--line);
}
.line-head { position: sticky; top: 7.5rem; align-self: start; }
.line-head h2 { font-size: var(--text-2xl); max-width: 16ch; }
.line-head p { margin-top: var(--space-md); color: var(--muted); font-size: var(--text-sm); max-width: 34ch; }

.rules { display: grid; }
.rules li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: var(--space-md);
  align-items: baseline;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line-2);
}
.rules li:first-child { border-top: 0; padding-top: 0; }
.rules span {
  font-size: 12px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.rules p { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: var(--text-lg); line-height: 1.25; max-width: 34ch; }

/* ---------- dates ---------- */
.dates {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(64px, 7vw, 104px) var(--gutter);
}
.date b {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.75rem); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.date p { margin-top: var(--space-sm); color: var(--muted); font-size: var(--text-sm); max-width: 30ch; }

/* the pill floats: an anchor jump should not put the heading underneath it */
#screens, #line, #dates, #pricing { scroll-margin-top: 5.5rem; }

/* ---------- pricing ---------- */
.plans {
  padding: clamp(56px, 6vw, 88px) var(--gutter) clamp(48px, 5vw, 72px);
  border-top: 1px solid var(--line);
}
.plans-head { max-width: 62ch; }
/* .eyebrow is mixed for the dark hero (cream-muted); on paper it has to be the brand colour */
.plans-head .eyebrow { color: var(--forest); }
.plans-head h2 { font-size: var(--text-2xl); margin-top: var(--space-sm); }
.plans-head p { margin-top: var(--space-md); color: var(--muted); font-size: var(--text-sm); max-width: 56ch; }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(14px, 1.4vw, 20px);
  margin-top: clamp(28px, 3vw, 44px);
}
.plan {
  display: flex; flex-direction: column; gap: var(--space-md);
  padding: clamp(20px, 2vw, 28px);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  background: var(--paper);
}
/* the two that include a person are marked with the same rule the product uses for a signature */
.plan-review { border-color: var(--forest); }
.plan-name {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-xs);
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-md);
  letter-spacing: -0.01em;
}
.plan-tag {
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--forest); font-weight: 600;
}
.plan-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.85rem, 2.4vw, 2.45rem); letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.plan-price span {
  font-family: var(--font-body); font-weight: 500; font-size: var(--text-sm);
  letter-spacing: 0; color: var(--muted);
}
.plan-what { color: var(--ink-2); font-size: var(--text-sm); min-height: 3.2em; }
.plan ul { display: grid; gap: var(--space-xs); font-size: var(--text-sm); color: var(--ink-2); padding-left: 0; list-style: none; }
.plan li { position: relative; padding-left: 1.05em; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.58em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--forest);
}
.plan .btn { margin-top: auto; justify-content: center; }
.plans-fineprint {
  display: grid; gap: var(--space-lg) clamp(24px, 3vw, 48px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: var(--space-xl);
}
/* the first one is the definition of the product's only human service: it gets the full width */
.plans-fineprint .plans-note:first-child { grid-column: 1 / -1; }
.plans-note {
  margin-top: 0; font-size: var(--text-xs); color: var(--muted);
  max-width: 78ch; line-height: 1.55;
}
.plans-note strong { color: var(--ink-2); font-weight: 600; }

/* ---------- close ---------- */
.close {
  margin: 0 var(--gutter) clamp(56px, 6vw, 88px);
  padding: clamp(36px, 4.4vw, 64px);
  border-radius: 26px;
  background: var(--forest-deep);
  color: var(--cream-ink);
}
.close-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 48px); align-items: end;
}
.close h2 { font-size: clamp(2rem, 2.8vw, 3rem); font-weight: 700; color: var(--cream-ink); }
.close p { margin-top: var(--space-sm); color: var(--cream-muted); }
.close .btn { align-self: end; }

/* ---------- footer ---------- */
.foot {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: var(--space-lg) var(--space-xl);
  align-items: start;
  padding: var(--space-xl) var(--gutter) var(--space-2xl);
  border-top: 1px solid var(--line);
}
.foot-statement { font-size: var(--text-sm); color: var(--ink-2); max-width: 52ch; }
.foot-links { display: flex; flex-direction: column; gap: var(--space-xs); align-items: flex-end; }
.foot-links a {
  font-size: var(--text-sm); color: var(--ink-2);
  text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px;
  transition: text-decoration-color var(--dur-short) var(--ease-out);
}
.foot-links a:hover { text-decoration-color: var(--ink); }
.foot-legal {
  grid-column: 1 / -1;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--muted);
  margin-top: var(--space-md);
}

/* ---------- motion ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.62s var(--ease-out), transform 0.62s var(--ease-out);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

.eyebrow { animation: rise 0.6s var(--ease-out) both; animation-delay: 40ms; }
.hero-copy h1 { animation: rise 0.66s var(--ease-out) both; animation-delay: 90ms; }
.hero-line { animation: rise 0.66s var(--ease-out) both; animation-delay: 150ms; }
.hero-actions { animation: rise 0.66s var(--ease-out) both; animation-delay: 210ms; }
.hero-note { animation: rise 0.66s var(--ease-out) both; animation-delay: 260ms; }
.shot-hero { animation: rise 0.8s var(--ease-out) both; animation-delay: 200ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 150ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 150ms !important;
  }
  .ticker-track { animation: none; }
  html.js [data-reveal] { opacity: 1; transform: none; }
  .eyebrow, .hero-line, .hero-actions, .hero-note, .shot-hero, .hero-copy h1 { animation: rise 150ms linear both; }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .hero-copy h1 { max-width: 18ch; }
  .shot-hero { transform: none; max-width: 46rem; }
  .line { grid-template-columns: minmax(0, 1fr); }
  .line-head { position: static; }
}

@media (max-width: 980px) {
  .tour li { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .tour-copy h3 { max-width: 28ch; }
  .hero-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-lg) 0; }
  .hero-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans-fineprint { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .pill-links { display: none; }
  .live { display: none; }
  .close-inner { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .dates { grid-template-columns: minmax(0, 1fr); }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: var(--space-md); }
  .hero-copy h1 { max-width: 20ch; }
  .rules p { font-size: var(--text-md); }
}

@media (max-width: 560px) {
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .pill-right .btn { width: auto; }
  .screens { padding-top: 96px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-what { min-height: 0; }
  .plans-fineprint { grid-template-columns: minmax(0, 1fr); }
}
