/* uistash landing — page layout & components */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(6, 6, 7, 0.88);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-slow) var(--ease-in-out);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-header.is-scrolled {
  border-bottom-color: var(--hairline);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: -1;
}

.brand-link {
  display: flex;
  align-items: center;
}

.brand-lockup {
  display: block;
  height: 28px;
  width: auto;
  aspect-ratio: 677 / 134;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 16px;
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  color: var(--brand-btn-ink);
  background: var(--brand);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding: 120px var(--gutter) 64px;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(300px, 440px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(32px, 4vw, 56px);
  }
}

.hero-copy {
  max-width: 480px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--dim);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--page-insights);
}

.hero-title {
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--dim);
  line-height: 1.5;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.app-preview-wrap {
  --preview-w: 1024;
  --preview-h: 640;
  --fade-x: 76%;
  --fade-y: 84%;
  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1024 / 640;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 var(--fade-x), transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 var(--fade-y), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 0%, #000 var(--fade-x), transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 var(--fade-y), transparent 100%);
  mask-composite: intersect;
}

@media (min-width: 900px) {
  .app-preview-wrap {
    margin-left: auto;
    margin-right: 0;
  }
}

.app-preview-scale {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(var(--preview-w) * 1px);
  height: calc(var(--preview-h) * 1px);
  transform-origin: top left;
  transform: scale(calc(100cqw / var(--preview-w)));
}

.app-preview-frame {
  display: block;
  width: calc(var(--preview-w) * 1px);
  height: calc(var(--preview-h) * 1px);
  border: 0;
}

/* Void wash over the fade zone — matches wrap mask stops */
.app-preview-crop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, transparent var(--fade-x), var(--void) 100%),
    linear-gradient(to bottom, transparent var(--fade-y), var(--void) 100%);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--brand-btn-ink);
  background: var(--brand);
  border-radius: var(--radius);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--dim);
}

.btn-ghost svg {
  width: 14px;
  height: 14px;
  opacity: 0.7;
}

main {
  padding-bottom: var(--section-gap);
}

.section {
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter) 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label--stash { color: var(--page-library); }
.section-label--imports { color: var(--page-imports); }
.section-label--taste { color: var(--page-insights); }
.section-label--lab { color: var(--page-lab); }

.section-title {
  font-family: var(--page-title);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
  max-width: 640px;
}

.section-lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  color: var(--dim);
  line-height: 1.5;
  max-width: 560px;
  margin-bottom: 48px;
}

.section-lead + .section-lead {
  margin-top: -32px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 28px 24px;
  background: var(--bg);
}

@media (min-width: 700px) {
  .feature-row {
    grid-template-columns: 200px 1fr;
    gap: 32px;
    align-items: start;
  }
}

.feature-row-title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--ink);
}

.feature-row-body {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--dim);
  line-height: 1.55;
}

.feature-row-body strong {
  color: var(--ink);
  font-weight: 600;
}

.mode-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.mode-chip {
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--dim);
}

.mode-chip--inspect { border-color: color-mix(in srgb, var(--inspect) 40%, var(--border)); color: var(--inspect); }
.mode-chip--motion { border-color: color-mix(in srgb, var(--mo-teal) 40%, var(--border)); color: var(--mo-teal); }
.mode-chip--comment { border-color: color-mix(in srgb, var(--yellow) 40%, var(--border)); color: var(--yellow); }

.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 48px;
  border: 1px solid var(--hairline);
  overflow: hidden;
}

@media (min-width: 800px) {
  .pipeline {
    flex-direction: row;
  }
}

.pipeline-step {
  flex: 1;
  padding: 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
}

@media (min-width: 800px) {
  .pipeline-step {
    border-bottom: none;
    border-right: 1px solid var(--hairline);
  }

  .pipeline-step:last-child {
    border-right: none;
  }
}

.pipeline-step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--page-insights);
  margin-bottom: 8px;
}

.pipeline-step-title {
  font-size: var(--fs-body);
  font-weight: 600;
  margin-bottom: 6px;
}

.pipeline-step-desc {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--dim);
  line-height: 1.5;
}

.pullquote {
  margin-top: 64px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.pullquote-text {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  max-width: 720px;
}

.pullquote-attr {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  color: var(--faint);
}

.waitlist-section {
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
  padding: var(--section-gap) var(--gutter);
}

.waitlist-card {
  padding: 48px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  text-align: center;
}

@media (min-width: 600px) {
  .waitlist-card {
    padding: 64px 48px;
  }
}

.waitlist-title {
  font-family: var(--page-title);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.waitlist-price {
  margin: 4px 0 14px;
  font-family: var(--font-mono, "IBM Plex Mono", monospace);
  font-size: 15px;
  color: var(--ink, #e8e8ec);
}
.waitlist-price strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.waitlist-price-after {
  color: var(--dim, #9a9aa2);
  font-size: 13px;
}

.waitlist-lead {
  font-size: var(--fs-body);
  font-weight: 500;
  color: var(--dim);
  margin-bottom: 28px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .waitlist-form {
    flex-direction: row;
  }
}

.waitlist-input {
  flex: 1;
  padding: 12px 16px;
  font-size: var(--fs-body);
  font-weight: 500;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.waitlist-input::placeholder {
  color: var(--faint);
}

.waitlist-submit {
  padding: 12px 24px;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--brand-btn-ink);
  background: var(--brand);
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
}

.waitlist-note {
  margin-top: 16px;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--faint);
}

.waitlist-note a {
  color: var(--dim);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.waitlist-success {
  display: none;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--green);
}

.waitlist-form.is-submitted .waitlist-fields {
  display: none;
}

.waitlist-form.is-submitted .waitlist-success {
  display: block;
}

.site-footer {
  padding: 32px var(--gutter) 48px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) + var(--gutter) * 2);
  margin: 0 auto;
}

.footer-copy {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--faint);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a,
.footer-soon {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--dim);
}

.footer-soon {
  color: var(--faint);
  cursor: default;
}

@media (hover: hover) {
  .footer-links a:hover {
    color: var(--ink);
  }
}

/* ---- The gap: picture vs code (section #lossy) ---- */
.knows-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (min-width: 820px) {
  .knows-grid { grid-template-columns: 1fr 1fr; }
}
.knows-col { background: var(--bg); padding: 24px; }
.knows-head {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--dim);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
}
.knows-head-dim { color: var(--faint); }
.knows-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.knows-list li {
  font-size: 14px;
  color: var(--dim);
  font-style: italic;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.knows-guess {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-style: normal;
  color: var(--faint);
}
.knows-list--code li { font-style: normal; justify-content: flex-start; }
.knows-list--code code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12.5px;
  color: var(--code-plain);
}
.knows-rule {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  color: var(--code-comment);
}
.knows-verdict {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.knows-verdict--picture { color: var(--faint); }
.knows-verdict--code { color: var(--green); }

/* ---- Lab leaderboard specimen ---- */
.board-demo {
  margin-top: 16px;
  border: 1px solid var(--hairline);
  background: var(--panel);
  font-family: "IBM Plex Mono", monospace;
}
.board-demo-head {
  padding: 10px 14px;
  font-size: 11px;
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}
.board-demo-note { color: var(--faint); text-transform: none; }
.board-demo-row {
  display: grid;
  grid-template-columns: 20px 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11.5px;
  color: var(--dim);
}
.board-demo-row:last-child { border-bottom: 0; }
.board-demo-rank { color: var(--faint); }
.board-demo-row:first-of-type .board-demo-rank { color: var(--page-lab); }
.board-demo-bar { height: 4px; background: var(--hairline); position: relative; }
.board-demo-bar i {
  position: absolute; inset: 0 auto 0 0; display: block;
  background: var(--page-lab); opacity: 0.75;
}
.board-demo-row--thin .board-demo-bar i { background: var(--faint); opacity: 0.4; }
.board-demo-stat { color: var(--faint); white-space: nowrap; }

/* ---- Pricing anchor line ---- */
.waitlist-anchor {
  margin: -6px 0 16px;
  font-size: 13px;
  color: var(--dim);
}

/* ---- The receipt (pricing card) ---- */
.receipt {
  max-width: 480px;
  margin: 20px auto 24px;
  padding: 18px 20px 14px;
  background: var(--panel);
  border: 1px solid var(--hairline);
  font-family: "IBM Plex Mono", monospace;
  text-align: left;
}
.receipt-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 12px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border);
}
.receipt-head span { color: var(--faint); }
.receipt-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12.5px;
  color: var(--dim);
  padding: 4px 0;
}
.receipt-row i {
  flex: 1;
  border-bottom: 1px dotted var(--border);
  transform: translateY(-3px);
}
.receipt-row span:last-child { color: var(--ink); white-space: nowrap; }
.receipt-row--zero span:last-child { color: var(--green); }
.receipt-sep { border-bottom: 1px dashed var(--border); margin: 8px 0; }
.receipt-total { font-size: 15px; }
.receipt-total span { color: var(--ink); font-weight: 600; }
.receipt-total span:last-child { font-size: 20px; }
.receipt-after { font-size: 11px; }
.receipt-after span:last-child { color: var(--faint); }
.receipt-foot {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-align: center;
  text-transform: uppercase;
}

/* ---- header nav + lab cross-links (shared with lab.html) ---- */
.header-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-lab-link {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--dim);
}

.header-lab-link:hover {
  color: var(--ink);
}

.header-lab-link--accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 16px;
  color: var(--page-lab);
  background: transparent;
  border: 1px solid var(--page-lab);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.2;
}

.header-lab-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.header-lab-link.header-lab-link--accent:hover {
  opacity: 0.7;
  color: var(--page-lab);
  border-color: var(--page-lab);
  background: transparent;
}

.header-lab-link--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 36px;
  padding: 8px 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
  line-height: 1.2;
}

.header-lab-link.header-lab-link--outline:hover {
  opacity: 0.7;
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.labp-more { color: var(--page-lab); white-space: nowrap; }
.labp-more:hover { color: var(--ink); }

/* ---- study status line (under the waitlist form) ---- */
.waitlist-status {
  margin-top: 14px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
  text-transform: lowercase;
}
