/* Shared Context Labs — marketing landing
   Tokens from landing-waitlist-spec.md */

:root {
  --canvas: #f7f8f4;
  --surface: #ffffff;
  --ink: #181d16;
  --secondary: #626a5d;
  --border: #d8ddd1;
  --lime-surface: #e4f3b5;
  --lime-ink: #243e0a;
  --yellow-surface: #f5e27a;
  --yellow-ink: #c6a000; /* dots and rules only — fails as text on yellow, lime, or white */
  --amber-surface: #f5e27a; /* attention chips use the brighter yellow, not the old #fff1d8 */
  --amber-ink: #181d16; /* yellow-ink #c6a000 does not hold on yellow fill */
  --danger: #b42318;
  --danger-surface: #fef3f2;
  --shadow: 0 1px 2px rgba(24, 29, 22, 0.04), 0 8px 24px rgba(24, 29, 22, 0.06);
  --radius-card: 12px;
  --radius-control: 9px;
  --shell: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --space: 8px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--secondary);
}

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

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

.skip-link {
  position: absolute;
  left: var(--space);
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--canvas);
  padding: 10px 14px;
  border-radius: var(--radius-control);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  top: var(--space);
  color: var(--canvas);
}

.shell {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}

.shell.narrow {
  width: min(100% - 48px, 720px);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--lime-surface) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--canvas) 92%, transparent);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding-block: 8px;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  height: 36px;
  width: auto;
}

@media (max-width: 720px) {
  .brand img {
    height: 28px;
  }
}

.wordmark {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 14px;
}

.header-nav a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
}

.header-nav a:hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    opacity 0.15s ease;
}

.btn-primary {
  background: var(--ink);
  color: var(--canvas);
}

.btn-primary:hover {
  background: #2a3227;
  color: var(--canvas);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid color-mix(in srgb, var(--canvas) 35%, transparent);
  border-top-color: var(--canvas);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-intro {
  margin-bottom: 40px;
  max-width: 640px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 650;
}

.section-lede {
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
}

/* Hero */
.hero {
  position: relative;
  padding: 56px 0 72px;
  overflow: hidden;
  background: var(--lime-surface);
}

.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, var(--lime-ink) 1px, transparent 1.2px),
    radial-gradient(circle, var(--yellow-ink) 1px, transparent 1.2px);
  background-size: 22px 22px, 22px 22px;
  background-position: 0 0, 11px 11px;
  opacity: 0.28;
  mask-image: radial-gradient(ellipse 70% 65% at 70% 20%, #000 20%, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--secondary);
}

.eyebrow-sep {
  opacity: 0.6;
}

.eyebrow-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--yellow-surface);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--surface);
  font-size: 12px;
  font-weight: 600;
}

.hero .btn-secondary {
  background: var(--surface);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-sub {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-snapshot {
  margin: 0;
}

/* Problem */
.section-problem {
  padding-top: 24px;
  padding-bottom: 48px;
}

.problem-copy {
  margin: 0;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.6;
}

/* Value */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  background: var(--lime-surface);
  border: none;
  border-radius: var(--radius-card);
  padding: 24px 22px;
}

.value-card:nth-child(2) {
  background: var(--yellow-surface);
}

.value-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
  letter-spacing: -0.015em;
  color: var(--lime-ink);
}

.value-card:nth-child(2) h3 {
  color: var(--ink);
}

.value-card p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

/* Snapshots */
.section-product {
  background: var(--canvas);
}

.snapshot-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.snapshot-frame {
  margin: 0;
  background: var(--yellow-surface);
  border-radius: 16px;
  padding: 16px 16px 18px;
}

.snapshot-gallery .snapshot-frame:nth-child(odd) {
  background: var(--lime-surface);
}

.hero-snapshot {
  box-shadow: 0 0 0 8px var(--surface);
}

.snapshot-frame .snapshot-caption {
  color: var(--ink);
}

.snapshot-frame .chip-amber,
.snapshot-frame .chip-lime {
  background: var(--surface);
}

.snapshot-frame .chip-lime {
  color: var(--lime-ink);
}

.snapshot-frame .chip-amber {
  color: var(--ink);
}

.snapshot-trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: inherit;
  cursor: zoom-in;
  border-radius: 14px;
}

.snapshot-trigger:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.snapshot-bezel {
  display: block;
  background: var(--surface);
  border: none;
  border-radius: 12px;
  overflow: hidden;
  padding: 8px;
  box-shadow: none;
}

.hero-snapshot .snapshot-bezel {
  background: var(--surface);
  border: none;
  padding: 8px;
  box-shadow: none;
}

.snapshot-bezel img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1440 / 820;
  object-fit: cover;
  object-position: top center;
  background: var(--surface);
  border-radius: 8px;
}

.hero-snapshot .snapshot-bezel img {
  aspect-ratio: 16 / 11;
  object-position: top center;
  transform: scale(1.28);
  transform-origin: top center;
}

.snapshot-frame figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 12px;
  padding-inline: 4px;
}

.snapshot-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px 7px;
}

.snapshot-title {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.snapshot-caption {
  flex: 1 1 100%;
  color: var(--secondary);
  font-size: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.chip-amber {
  background: var(--yellow-surface);
  color: var(--ink);
}

.chip-lime {
  background: var(--lime-surface);
  color: var(--lime-ink);
}

.gallery-footnote {
  margin: 36px 0 0;
  max-width: 720px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--secondary);
}

/* How */
.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.step-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px 22px;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime-surface);
  color: var(--lime-ink);
  font-weight: 700;
  font-size: 14px;
}

.step-list h3 {
  margin: 2px 0 6px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.step-list p {
  margin: 0;
  color: var(--secondary);
  font-size: 15px;
}

.how-close {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-left: 3px solid var(--lime-ink);
  background: color-mix(in srgb, var(--lime-surface) 35%, var(--surface));
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  font-size: 15px;
}

/* Who */
.section-who p {
  color: var(--secondary);
  font-size: 16px;
}

.section-who strong {
  color: var(--ink);
  font-weight: 600;
}

.who-not {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 14px !important;
}

/* Waitlist */
.section-waitlist {
  padding-top: 64px;
  padding-bottom: 64px;
  background: var(--yellow-surface);
}

.waitlist-panel {
  background: var(--surface);
  border: none;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.waitlist-panel h2 {
  margin: 0 0 10px;
}

.waitlist-sub {
  margin: 0 0 24px;
  color: var(--secondary);
  font-size: 16px;
}

.waitlist-form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.field input[type="email"],
.field input[type="text"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--canvas);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.field input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.field input:read-only {
  opacity: 0.85;
}

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-privacy {
  margin: 0;
  font-size: 13px;
  color: var(--secondary);
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--radius-control);
  background: var(--danger-surface);
  color: var(--danger);
  font-size: 14px;
  font-weight: 500;
}

.waitlist-success {
  padding: 8px 0;
  background: color-mix(in srgb, var(--lime-surface) 55%, var(--surface));
  margin: -12px;
  padding: 28px 24px;
  border-radius: 12px;
}

.waitlist-success h2 {
  margin: 0 0 10px;
  color: var(--lime-ink);
}

.waitlist-success p {
  margin: 0 0 12px;
  color: var(--ink);
}

.waitlist-success a {
  font-weight: 500;
}

/* Honesty */
.section-honesty {
  padding-top: 48px;
}

.honesty-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.honesty-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 22px 18px;
}

.honesty-card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.honesty-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--secondary);
  font-size: 14px;
}

.honesty-card li + li {
  margin-top: 8px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 56px;
}

.footer-inner {
  display: grid;
  gap: 16px;
}

.footer-copy,
.footer-credit {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--secondary);
}

.footer-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  color: var(--ink);
}

/* Responsive: 1024 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero {
    padding-top: 40px;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .snapshot-gallery {
    grid-template-columns: 1fr;
  }

  .honesty-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 72px 0;
  }
}

/* Responsive: ~390 */
@media (max-width: 640px) {
  .shell,
  .shell.narrow {
    width: min(100% - 32px, var(--shell));
  }

  .header-nav {
    display: none;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .problem-copy,
  .waitlist-panel {
    padding: 22px 18px;
  }

  .snapshot-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 8px;
    margin-inline: -16px;
    padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .snapshot-gallery .snapshot-frame {
    flex: 0 0 min(86vw, 420px);
    scroll-snap-align: start;
  }

  .snapshot-bezel img,
  .hero-snapshot .snapshot-bezel img {
    aspect-ratio: 16 / 10;
    transform: none;
  }
}

/* Snapshot lightbox */
.lightbox[hidden] {
  display: none !important;
}

.lightbox-scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  background: rgba(24, 29, 22, 0.78);
}

.lightbox-dialog {
  position: relative;
  width: min(1440px, 100%);
  max-height: 100%;
  overflow: auto;
  background: var(--surface);
  border-radius: 14px;
  padding: 56px 16px 16px;
  box-shadow: var(--shadow);
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--ink);
  background: var(--yellow-surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lightbox-close:hover {
  background: #ffe98a;
  color: var(--ink);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--canvas);
  border-radius: 10px;
  overflow: auto;
}

.lightbox-stage img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 168px);
  object-fit: contain;
  object-position: center top;
  background: var(--surface);
  border-radius: 8px;
}

.lightbox-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
  margin-top: 12px;
  color: var(--ink);
}

.lightbox-caption .snapshot-caption {
  color: var(--ink);
}

body.lightbox-open {
  overflow: hidden;
}

/* Legal pages */
.legal-band {
  background: var(--lime-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--lime-ink) 12%, transparent);
}

.legal {
  max-width: 720px;
  padding: 48px 0 72px;
}

.legal-back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.legal-back:hover {
  text-decoration: underline;
}

.legal-kicker {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 13px;
}

.legal h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.legal-updated {
  margin: 0 0 28px;
  color: var(--secondary);
  font-size: 14px;
}

.legal h2 {
  margin: 32px 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.legal ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 6px;
}

.legal-note {
  margin-top: 36px;
  padding: 16px 18px;
  background: var(--yellow-surface);
  border-radius: var(--radius-card);
  color: var(--ink);
  font-size: 14px;
}
