/* ==========================================================================
   Strata44 landing page
   1. Fonts   2. Tokens   3. Base   4. Layout & utilities   5. Components
   6. Sections (nav, hero, library, system, access, footer)   7. Motion
   ========================================================================== */

/* 1. Fonts (self-hosted, latin subset, OFL) ------------------------------ */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

/* 2. Tokens -------------------------------------------------------------- */
:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --panel: #eaeaea;
  --ink: #0a0a0a;
  --ink-2: #4d4d4d;
  --ink-3: #8a8a8a;
  --line: #dcdcdc;
  --sage: #c8d3c4;
  --sage-ink: #3d4a39;
  --night: #0e0e0e;
  --night-2: #1a1a1a;
  --night-line: #2a2a2a;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px -12px rgba(0, 0, 0, 0.18);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.05), 0 28px 60px -20px rgba(0, 0, 0, 0.28);

  color-scheme: light;
}

/* 3. Base ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--sage); color: var(--ink); }

/* 4. Layout & utilities -------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* 5. Components ---------------------------------------------------------- */

/* Mixed headline: serif italic + bold sans, as in the library's sign-up module */
.mix {
  font-family: var(--sans);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.mix em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding-right: 0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.5s var(--ease-out), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn__arrow { transition: transform 0.5s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--ink); }
.btn--small { height: 38px; padding: 0 16px; font-size: 14px; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.04em;
}
.logo svg { width: 22px; height: 22px; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  color: var(--ink-2);
}
.chip b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Dotted interactive background (canvas painted by dot-grid.js) */
.dots {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 85% 75% at 50% 45%, #000 40%, transparent 100%);
}
.dots canvas { display: block; width: 100%; height: 100%; }

/* 6. Sections ------------------------------------------------------------ */

/* Nav */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding-block: 14px;
  transition: background-color 0.4s, box-shadow 0.4s, padding 0.4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(244, 244, 244, 0.78);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  padding-block: 10px;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__links { display: flex; gap: 4px; font-size: 14px; color: var(--ink-2); }
.nav__links a {
  padding: 8px 14px;
  border-radius: 999px;
  transition: background-color 0.3s, color 0.3s;
}
.nav__links a:hover { background: rgba(0, 0, 0, 0.05); color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  min-height: max(720px, 100svh);
  display: grid;
  place-items: center;
  padding: 120px var(--gutter) 96px;
  overflow: hidden;
  isolation: isolate;
}
.hero__content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 28px;
}
.hero__content::before {
  /* soft halo that keeps the copy readable over the scattered modules */
  content: "";
  position: absolute;
  inset: -12% -18%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 244, 244, 0.96) 45%, rgba(244, 244, 244, 0) 100%);
  pointer-events: none;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 34px;
  padding: 0 14px 0 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  color: var(--ink-2);
}
.hero__badge span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero__title { font-size: clamp(58px, 9vw, 128px); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead {
  max-width: 560px;
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero__meta { font-size: 13px; color: var(--ink-3); }

/* Scattered modules: positions are set per card on a 1440 x 900 reference */
.scatter {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.card {
  --x: 0; --y: 0; --w: 200px; --r: 0deg;
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  pointer-events: auto;
}
.card__inner {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--r));
  transition: transform 0.8s var(--ease-out), box-shadow 0.8s var(--ease-out);
}
.card:hover .card__inner { transform: rotate(0deg) scale(1.04); box-shadow: var(--shadow-lift); }
.card img { width: 100%; }

.card--1 { --x: 3%;  --y: 13%; --w: clamp(150px, 14vw, 210px); --r: -4deg; }
.card--2 { --x: 13%; --y: 37%; --w: clamp(120px, 10.5vw, 150px); --r: 3deg; }
.card--3 { --x: -1%; --y: 55%; --w: clamp(150px, 15vw, 220px); --r: 2deg; }
.card--4 { --x: 14%; --y: 77%; --w: clamp(150px, 14vw, 200px); --r: -3deg; }
.card--5 { --x: 83%; --y: 9%;  --w: clamp(140px, 13vw, 190px); --r: 4deg; }
.card--6 { --x: 72%; --y: 15%; --w: clamp(110px, 10vw, 150px); --r: -3deg; }
.card--7 { --x: 85%; --y: 47%; --w: clamp(150px, 14vw, 210px); --r: -2deg; }
.card--8 { --x: 70%; --y: 72%; --w: clamp(150px, 14vw, 210px); --r: 3deg; }

/* Section heads */
.section { position: relative; padding-block: clamp(96px, 12vw, 160px); }
.section__head { display: grid; gap: 20px; max-width: 720px; }
.section__title { font-size: clamp(40px, 5.6vw, 80px); text-wrap: balance; }
.section__title em { display: block; }
.section__lead { font-size: clamp(16px, 1.4vw, 18px); color: var(--ink-2); max-width: 520px; }

/* Library: sticky assembly */
.library { padding-block: 0; overflow-x: clip; }
.assemble { position: relative; height: 340vh; }
.assemble__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  overflow: hidden;
}
.steps { display: grid; gap: 4px; margin-top: 40px; counter-reset: step; }
.step {
  position: relative;
  padding: 18px 0 18px 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  transition: color 0.5s var(--ease-out);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0; top: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.step::after {
  content: "";
  position: absolute;
  left: 0; top: -1px;
  height: 1px;
  width: calc(var(--fill, 0) * 100%);
  background: var(--ink);
}
.step h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.step p { font-size: 15px; line-height: 1.5; max-width: 420px; margin-top: 6px; }
.step.is-active { color: var(--ink); }
.step.is-active p { color: var(--ink-2); }

.stage {
  position: relative;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 12vh;
}
.stage__glow {
  position: absolute;
  inset: 10% -10%;
  background: radial-gradient(closest-side, rgba(200, 211, 196, 0.35), rgba(200, 211, 196, 0));
  pointer-events: none;
}
.email {
  position: relative;
  width: min(380px, 100%);
  padding: 12px;
  will-change: transform;
}
.email__bg {
  position: absolute;
  inset: 0 0 auto;
  height: var(--h, 100%);
  border-radius: 22px;
  background: #ebebeb;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04), var(--shadow-lift);
}
.email__bar, .email__stack { position: relative; }
.email__bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.email__bar i { width: 8px; height: 8px; border-radius: 50%; background: #d0d0d0; }
.email__stack { display: grid; gap: 0; }
.email__module { position: relative; }
.email__module img { width: 100%; border-radius: 0; }
.email__module:first-child img { border-radius: 10px 10px 0 0; }
.email__module:last-child img { border-radius: 0 0 10px 10px; }
.email__tag {
  position: absolute;
  top: 14px;
  right: calc(100% + 22px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.email__tag::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--ink);
}
.email__module:nth-child(even) .email__tag { right: auto; left: calc(100% + 22px); }
.email__module:nth-child(even) .email__tag::after { left: auto; right: 100%; }

/* Stats + categories */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat { padding: 32px 24px 28px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat__value {
  display: block;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.categories { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 72px;
  padding-bottom: 100px;
}
.feature {
  padding: 28px;
  border-radius: var(--radius-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}
.feature svg { width: 28px; height: 28px; margin-bottom: 40px; }
.feature h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.feature p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* System */
.system { background: var(--surface); border-radius: var(--radius-l) var(--radius-l) 0 0; }
.system__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.panel {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-m);
  background: var(--bg);
  overflow: hidden;
}
.panel__label { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); }
.panel__label b { color: var(--ink); font-weight: 600; }

.specimen { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 24px 0 8px; }
.specimen__glyph {
  font-size: clamp(120px, 15vw, 220px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  font-weight: var(--wght, 500);
  font-variation-settings: "wght" var(--wght, 500);
}
.specimen__weight { text-align: right; font-size: 13px; color: var(--ink-3); }
.specimen__weight output {
  display: block;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.scale { margin-top: 24px; }
.scale li {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
}
.scale li::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--line);
  transform-origin: left;
  transform: scaleX(var(--line-in, 1));
  transition: transform 1.1s var(--ease-out);
}
.scale small { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
.scale small b { display: block; color: var(--ink); font-weight: 600; }
.scale span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.02em; }
.t-display { font-size: clamp(40px, 4.4vw, 64px); line-height: 0.95; font-weight: 500; letter-spacing: -0.04em !important; }
.t-headline { font-size: clamp(30px, 3vw, 44px); line-height: 1; font-weight: 500; letter-spacing: -0.035em !important; }
.t-title { font-size: 18px; line-height: 22px; font-weight: 500; }
.t-body { font-size: 14px; line-height: 20px; }
.t-caption { font-size: 11px; line-height: 14px; color: var(--ink-3); }
.t-eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.12em !important; text-transform: uppercase; }

/* Colour modes */
.modes { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); position: relative; }
.modes button {
  position: relative;
  z-index: 1;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 0.4s;
}
.modes button[aria-pressed="true"] { color: var(--ink); }
.modes__thumb {
  position: absolute;
  top: 4px; bottom: 4px; left: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
  transition: transform 0.6s var(--ease-out), width 0.6s var(--ease-out);
}
.palette {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.swatch {
  --c: #fff;
  --fg: #0a0a0a;
  position: relative;
  min-height: 112px;
  padding: 14px;
  border-radius: 12px;
  background: var(--c);
  color: var(--fg);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.7s var(--ease-in-out), color 0.7s var(--ease-in-out);
}
.swatch b { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.swatch code {
  display: block;
  height: 16px;
  overflow: hidden;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 16px;
  opacity: 0.75;
}
.swatch code span { display: block; transition: transform 0.6s var(--ease-out); }
.swatch small { font-size: 11px; opacity: 0.7; }
.swatch--fixed::after {
  content: "Fixed";
  position: absolute;
  top: 12px; right: 12px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 10px;
  font-weight: 600;
}

.preview {
  position: relative;
  margin-top: 16px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}
.preview img:first-child { position: relative; }
.preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s var(--ease-in-out), transform 1.2s var(--ease-out);
}
.preview img.is-on { opacity: 1; transform: none; }
.panel--modes { display: flex; flex-direction: column; }
.panel--modes .panel__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.note { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* Access (sign-up module) */
.access {
  position: relative;
  padding: clamp(120px, 16vw, 200px) var(--gutter);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.access__inner { position: relative; z-index: 1; display: grid; justify-items: center; gap: 0; }
.access__inner::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 244, 244, 0.95) 55%, rgba(244, 244, 244, 0) 100%);
  pointer-events: none;
}
.access__title { font-size: clamp(48px, 6.4vw, 88px); }
.access__lead {
  max-width: 470px;
  margin-top: 18px;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.5;
  color: var(--ink);
}
.signup {
  position: relative;
  width: min(810px, 100%);
  margin-top: 56px;
}
.signup__field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px 18px 32px;
  border-radius: 18px;
  background: #eaeaea;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0);
  transition: box-shadow 0.4s, background-color 0.4s;
}
.signup__field:focus-within { background: #e6e6e6; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.18); }
.signup input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 56px;
  border: 0;
  background: transparent;
  font-size: clamp(17px, 1.6vw, 22px);
  outline: none;
  caret-color: var(--ink);
}
.signup input::placeholder { color: #8f8f8f; }
.signup .btn {
  --btn-bg: #858585;
  height: 76px;
  padding: 0 32px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.signup.is-valid .btn { --btn-bg: var(--ink); }
.signup .btn[disabled] { cursor: progress; }
.signup__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup__status { min-height: 22px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.signup__status.is-error { color: #a02a1a; }
.signup__legal { margin-top: 6px; font-size: 12px; color: var(--ink-3); }
.signup__legal a { text-decoration: underline; text-underline-offset: 2px; }
.signup.is-done .signup__field { background: var(--sage); }

/* Footer */
.footer { background: var(--night); color: #9c9c9c; font-size: 14px; }
.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 56px 40px;
}
.footer .logo { color: #f2f2f2; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 28px; }
.footer__links a { transition: color 0.3s; }
.footer__links a:hover { color: #fff; }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 24px 32px;
  border-top: 1px solid var(--night-line);
  font-size: 13px;
  color: #6b6b6b;
}


/* Launch states (set by launch.js; without JS the launch-week copy shows) */
.state-pre [data-when]:not([data-when~="pre"]),
.state-after [data-when]:not([data-when~="after"]),
html:not(.state-pre):not(.state-after) [data-when]:not([data-when~="live"]) { display: none !important; }
.hero__badge i { font-style: normal; }
.hero .btn.is-parked { display: none; }
.btn.is-parked { --btn-bg: var(--panel); --btn-fg: var(--ink-3); cursor: default; pointer-events: none; box-shadow: none; }
.feature h3 small { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--sage); color: var(--sage-ink); font-size: 11px; font-weight: 600; letter-spacing: 0; vertical-align: 2px; }

/* Pricing */
.pricing { background: var(--surface); padding-top: 0; }
.offer {
  display: block; line-height: 2;
  margin-top: 48px; padding: 18px 24px;
  border-radius: var(--radius-m); background: var(--sage); color: var(--sage-ink); font-size: 15px;
}
.offer b { color: var(--ink); font-weight: 600; margin-right: 12px; }
.offer code { font: 600 14px/1 var(--sans); letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; background: rgba(255, 255, 255, 0.6); color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius-m); background: var(--bg);
}
.plan--pro { background: var(--night); color: #f2f2f2; }
.plan__tag { position: absolute; top: 24px; right: 24px; padding: 4px 10px; border-radius: 999px; background: var(--sage); color: var(--sage-ink); font-size: 12px; font-weight: 600; }
.plan__name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.plan__price { display: flex; align-items: baseline; gap: 10px; margin-top: 28px; }
.plan__price b { font-size: clamp(48px, 4.6vw, 64px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan__price span { font-size: 14px; color: var(--ink-3); }
.plan__deal { margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--sage-ink); }
.plan--pro .plan__deal { color: var(--sage); }
.plan__for { margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.plan--pro .plan__for, .plan--pro .plan__price span { color: #9c9c9c; }
.plan__list { display: grid; gap: 10px; margin: 24px 0 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 15px; }
.plan--pro .plan__list { border-color: var(--night-line); }
.plan__list li { position: relative; padding-left: 26px; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 0.42em; width: 12px; height: 7px; border-left: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: 0.7; }
.plan__cta { margin-top: auto; width: 100%; }
.plans__note { margin-top: 24px; max-width: 720px; font-size: 13px; color: var(--ink-3); }
.plans__note a { text-decoration: underline; text-underline-offset: 2px; }
.sample { display: grid; justify-items: center; gap: 18px; margin-top: 48px; }
.sample__btn { height: 64px; padding: 0 32px; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; border-radius: 12px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }

/* 7. Motion -------------------------------------------------------------- */

/* Initial states only apply once JS confirms it can animate (html.js) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js .hero [data-intro] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.9s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 1ms);
}
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.25s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js .hero .card { opacity: 0; transform: scale(0.9); filter: blur(10px); transition: opacity 1.1s var(--ease-out), transform 1.4s var(--ease-out), filter 1.1s var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
.js .nav { opacity: 0; transform: translateY(-12px); transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), background-color 0.4s, box-shadow 0.4s, padding 0.4s var(--ease-out); }

.is-ready .hero [data-intro],
.is-ready .hero__title .line > span,
.is-ready .nav { opacity: 1; transform: none; }
.is-ready .hero .card { opacity: 1; transform: none; filter: none; }
.card__float { will-change: transform; }

.js .scale li { --line-in: 0; }
.js .scale.is-in li { --line-in: 1; }
.js .scale li > * { opacity: 0; transform: translateY(10px); transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out); }
.js .scale.is-in li > * { opacity: 1; transform: none; }
.scale li:nth-child(2) > *, .scale li:nth-child(2)::before { transition-delay: 80ms; }
.scale li:nth-child(3) > *, .scale li:nth-child(3)::before { transition-delay: 160ms; }
.scale li:nth-child(4) > *, .scale li:nth-child(4)::before { transition-delay: 240ms; }
.scale li:nth-child(5) > *, .scale li:nth-child(5)::before { transition-delay: 320ms; }
.scale li:nth-child(6) > *, .scale li:nth-child(6)::before { transition-delay: 400ms; }

.js .palette .swatch { opacity: 0; transform: translateY(18px) scale(0.97); }
.js .palette.is-in .swatch { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out), transform 1s var(--ease-out), background-color 0.7s var(--ease-in-out), color 0.7s var(--ease-in-out); transition-delay: calc(var(--d, 0) * 70ms), calc(var(--d, 0) * 70ms), 0s, 0s; }

/* Responsive ------------------------------------------------------------- */
@media (max-width: 1080px) {
  .card--2, .card--6 { display: none; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav__links { display: none; }
  .hero { padding-top: 96px; min-height: max(680px, 100svh); }
  .card--1 { --x: -8%; --y: 9%; --w: 130px; }
  .card--5 { --x: 76%; --y: 8%; --w: 120px; }
  .card--3 { --x: -10%; --y: 79%; --w: 140px; }
  .card--7 { --x: 78%; --y: 76%; --w: 130px; }
  .card--4, .card--8 { display: none; }
  
  .assemble { height: auto; }
  .assemble__sticky { position: relative; height: auto; grid-template-columns: 1fr; padding-block: 96px 48px; overflow: visible; }
  .stage { padding-top: 0; }
  .email { width: min(340px, 100%); }
  .email__tag { display: none; }

  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .system__grid { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .hero__content::before { inset: -6% -10%; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__lead { font-size: 16px; }
  .hero__meta { max-width: 260px; }
  .signup__field { flex-direction: column; align-items: stretch; padding: 10px; }
  .signup input[type="email"] { padding-inline: 14px; height: 52px; }
  .signup .btn { height: 56px; width: 100%; }
  .stat { padding: 24px 12px 20px; }
  .scale li { grid-template-columns: 76px minmax(0, 1fr); }
  .swatch--fixed::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}

/* Fixed swatches and small resets */
.swatch--sage { --c: #c8d3c4; }
.swatch--ph { --c: #e3e4e7; }
.swatch--white { --c: #000000; --fg: #f2f2f2; }
.stats dd { margin: 0; }
.stat__value small { font-size: 0.5em; color: var(--ink-3); font-weight: 500; margin-inline: 0.06em; letter-spacing: 0; }

/* Simple pages (privacy, 404) */
.page { padding: 160px 0 120px; min-height: 70vh; }
.page .container { max-width: 760px; }
.page h1 { font-size: clamp(44px, 6vw, 72px); margin-bottom: 32px; }
.page h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 10px; }
.page p, .page li { color: var(--ink-2); }
.page ul { list-style: disc; padding-left: 20px; }
.page .btn { margin-top: 32px; }
