html:has(.landing) { scroll-behavior: smooth; }

.landing {
  --ink: #212121;
  --muted: #6d6d6d;
  --control-radius: 8px;
  min-width: 280px;
  background: white;
}
.landing :where(section, form) { scroll-margin-top: 20px; }

.landing .site-header {
  display: flex;
  min-height: 76px;
  align-items: flex-start;
  padding: 24px 24px 0;
}
.landing .wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -.05em;
}
.landing .brand-mark {
  display: flex;
  width: auto;
  height: auto;
  align-items: flex-end;
  gap: 3px;
  padding-inline: 3px;
  background: none;
  color: currentColor;
  transform: skewX(-24deg);
}
.landing .brand-mark::before, .landing .brand-mark::after { content: none; }
.landing .brand-mark i { display: block; width: 4px; border-radius: 1px; background: currentColor; }
.landing .brand-mark i:nth-child(1) { height: 7px; }
.landing .brand-mark i:nth-child(2) { height: 12px; }
.landing .brand-mark i:nth-child(3) { height: 17px; }

.hero {
  display: grid;
  justify-items: center;
  padding: 28px 20px 21px;
  text-align: center;
}
.hero h1 {
  display: grid;
  max-width: 800px;
  font-size: clamp(32px, 10.25vw, 52px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.05em;
}
.headline-line { display: block; }
.headline-line > span { display: block; }
.intro {
  max-width: 420px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.intro-product { color: var(--ink); font-size: 18px; font-weight: 600; }
.intro-benefit { margin-top: 3px; }
.intro-priority { margin-top: 12px; color: var(--ink); font-size: 14px; font-weight: 500; }
.intro-priority::before {
  display: block;
  width: 24px;
  height: 1px;
  margin: 0 auto 10px;
  background: #dedede;
  content: "";
}
.waitlist { width: min(100%, 550px); margin-top: 28px; text-align: left; scroll-margin-top: 20px; }
.signup-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 8px;
}
.signup-field { display: grid; min-width: 0; gap: 5px; }
.signup-email { grid-column: 1 / -1; }
.signup-field label { padding-inline: 13px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.signup-field label span { color: var(--muted); font-weight: 400; }
.signup-field input, .signup-actions button {
  min-height: 52px;
  border-radius: var(--control-radius);
  line-height: 1.4;
}
.signup-field input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 15px;
  border: 1px solid #ececec;
  background: #f7f7f7;
  color: var(--ink);
  font-size: 16px;
}
.signup-field input::placeholder { color: #767676; }
.signup-preferences {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  gap: 0 18px;
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
}
.signup-preferences label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
}
.signup-preferences input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #212121;
}
.signup-actions { display: grid; justify-items: center; text-align: center; }
.signup-actions button {
  min-width: 110px;
  padding: 0 12px;
  border: 0;
  background: #212121;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.02em;
  white-space: nowrap;
  transition: background-color .2s ease;
}
.signup-actions button:hover { background: #393939; }
.signup-actions button:disabled { opacity: .66; cursor: wait; }
.form-note { color: var(--muted); font-size: 12px; line-height: 1.4; }
.form-note:not(:empty) { margin-top: 8px; }
.form-note[data-state="error"] { color: #952e2e; }
.signup-confirmation {
  width: min(100%, 390px);
  margin-top: 28px;
  padding: 16px 20px;
  border: 1px solid #ececec;
  border-radius: var(--control-radius);
  background: #f7f7f7;
  scroll-margin: 20px;
}
.signup-confirmation:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.signup-confirmation h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.signup-confirmation p { margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.4; text-wrap: pretty; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.walk {
  position: relative;
  width: min(calc(100% - 32px), 840px);
  height: clamp(290px, 40vw, 425px);
  margin-inline: auto;
  overflow: hidden;
  background: #dbe2d8;
}
.walk-scene, .walk-poster, .walk-canvas {
  position: absolute;
  inset: 0;
}
.walk-scene {
  filter: blur(7px);
  transition: filter .4s ease-out;
}
.walk:is([data-ready], [data-still]) .walk-scene {
  filter: none;
}
.walk-poster, .walk-poster img {
  display: block;
  width: 100%;
  height: 100%;
}
.walk-canvas {
  display: block;
  width: 100%;
  height: 100%;
  visibility: hidden;
  image-rendering: pixelated;
}
.walk[data-ready] .walk-canvas { visibility: visible; }

.walk-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #ffffffa8;
  border-radius: var(--control-radius);
  background: #fffffff2;
  color: var(--ink);
  transition: background-color .2s ease;
}
.walk-toggle:hover { background: #fff; }
.walk-toggle:focus-visible { outline-offset: 3px; }
.walk-toggle::before {
  content: "";
  width: 10px;
  height: 13px;
  border-inline: 3px solid currentColor;
}
.walk-toggle[data-playing="false"]::before {
  width: 0;
  height: 0;
  margin-left: 2px;
  border: solid transparent;
  border-width: 7px 0 7px 11px;
  border-left-color: currentColor;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding-inline: 24px;
  color: var(--muted);
}
.site-footer small, .site-footer button { font-size: 13px; }
.site-footer button { min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit; }
.site-footer button:hover { text-decoration: underline; }

.privacy {
  width: min(calc(100% - 32px), 440px);
  padding: 25px;
  border: 1px solid #ececec;
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
}
.privacy::backdrop { background: #21212173; }
.privacy h2 { font-size: 24px; font-weight: 500; letter-spacing: -.05em; }
.privacy p { margin-block: 10px 20px; color: var(--muted); line-height: 1.55; }
.privacy button { min-height: 44px; padding-inline: 20px; border: 0; border-radius: 1000px; color: white; background: var(--ink); }
@media (max-width: 355px) {
  .landing .site-header { padding-inline: 16px; }
}

@media (min-width: 760px) {
  .landing .site-header { min-height: 73px; padding: 30px 32px 0; }
  .hero { padding-top: 0; padding-bottom: 23px; }
  .hero h1 { font-size: 72px; }
  .signup-fields { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); }
  .signup-email { grid-column: auto; }
  .signup-field input { font-size: 14px; }
  .signup-preferences { justify-content: center; }
  .walk { height: auto; aspect-ratio: 16 / 7; }
  .site-footer { padding-inline: 32px; }
}

@media (prefers-reduced-motion: no-preference) {
  .headline-line {
    --descender-space: .28em;
    overflow: hidden;
    padding: 0 .12em var(--descender-space);
    margin: 0 -.12em calc(-1 * var(--descender-space));
  }
  .headline-line > span { animation: headline-in 1s cubic-bezier(.18,.68,.24,1) both; }
  .headline-line + .headline-line > span { animation-delay: .14s; }
  .enter { animation: rise-in .82s cubic-bezier(.2,.7,.25,1) both; }
  .intro.enter { animation-delay: .28s; }
  .waitlist.enter { animation-delay: .4s; }
  [data-reveal="visible"] { animation: frame-in .85s cubic-bezier(.2,.72,.24,1) both; }
  [data-reveal="pending"] { opacity: 0; transform: translateY(22px); }
  [data-reveal="pending"]:focus-within { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .walk-scene {
      animation: scene-reveal linear both;
      animation-timeline: view(block);
      animation-range: entry 15% cover 45%;
    }
  }
}
@keyframes headline-in {
  from { opacity: 0; transform: translateY(calc(100% + var(--descender-space))); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes frame-in {
  from { opacity: 0; clip-path: inset(0 5% 16%); transform: translateY(20px); }
  to { opacity: 1; clip-path: inset(0); transform: translateY(0); }
}
@keyframes scene-reveal {
  from { clip-path: inset(0 2% 6%); }
  to { clip-path: inset(0); }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.landing) { scroll-behavior: auto; }
  .landing * { transition: none !important; }
}
