:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #666666;
  --faint: #f7f7f7;
  --border: #e6e6e6;
  --accent: #111111;
  --accent-fg: #ffffff;
  --error: #c4322b;
  --max-width: 960px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

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

/* Nav */
.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.12em;
}

.logo-mark {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.9375rem;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--fg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font: inherit;
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

.btn:hover {
  opacity: 0.85;
}

.btn:disabled {
  opacity: 0.5;
  cursor: progress;
}

.btn-small {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.hero-logo {
  display: block;
  width: clamp(88px, 14vw, 128px);
  height: auto;
  margin: 0 auto 1.75rem;
}

.eyebrow {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.name-expansion {
  margin: 0 auto 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.name-expansion b {
  color: var(--fg);
  font-weight: 700;
}

.lead {
  margin: 0 auto 2.5rem;
  max-width: 560px;
  font-size: 1.125rem;
  color: var(--muted);
}

/* Countdown */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 0 auto 0.75rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 4.5rem;
  padding: 0.75rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.countdown-value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.countdown-target {
  margin: 0 0 2.5rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Waitlist form */
.waitlist-form {
  display: flex;
  gap: 0.5rem;
  max-width: 440px;
  margin: 0 auto;
  scroll-margin-top: 6rem;
}

.waitlist-form input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1.125rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--fg);
  background: var(--bg);
  transition: border-color 0.15s ease;
}

.waitlist-form input::placeholder {
  color: #999999;
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--fg);
}

.waitlist-form input.invalid {
  border-color: var(--error);
}

.form-msg {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.form-msg.error {
  color: var(--error);
}

.form-msg.success {
  color: var(--fg);
  font-weight: 500;
}

/* Sections */
.section-head {
  max-width: 560px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Phone rail */
.rail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.rail .section-head {
  margin-bottom: 1.5rem;
}

.rail .eyebrow {
  margin-bottom: 0.75rem;
}

.rail-stage {
  position: relative;
  height: 323px;
  touch-action: pan-y;
  user-select: none;
  overflow-x: clip;
  overflow-y: visible;
}

.rail-bar {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(to bottom, #e9e9e9, #ffffff 20%, #c7c7c7 45%, #a3a3a3 70%, #8a8a8a);
  box-shadow: 0 1px 0 var(--border), 0 10px 12px -10px rgba(0, 0, 0, 0.18);
}

.rail-bar::before,
.rail-bar::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 14px;
  height: 26px;
  transform: translateY(-50%);
  border-radius: 3px;
  background: linear-gradient(to right, #cfcfcf, #a8a8a8 55%, #8f8f8f);
}

.rail-bar::before {
  left: 6px;
}

.rail-bar::after {
  right: 6px;
}

.rail-screen {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  display: block;
  width: 194px;
  height: 300px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.rail-screen:focus-visible {
  outline-offset: 6px;
  border-radius: 1rem;
}

.rail-hanger {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.rail-hanger svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.rail-hook {
  fill: none;
  stroke: #262626;
  stroke-width: 2.4;
  stroke-linecap: round;
}

/* The phone hangs from 12% down, leaving the hanger's hook and bar above it. */
.rail-lift {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 100%;
  height: 88%;
  transform-origin: 50% -14%;
  transform: translateX(-50%) scale(var(--zoom, 1));
}

.rail-swap {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100%;
  margin-left: -50%;
  transform-origin: 50% 0;
  transform: skewX(var(--sway, 0deg));
  transform-style: preserve-3d;
}

.rail-face,
.rail-edge,
.rail-back {
  position: absolute;
  inset: 0;
  border-radius: 11% / 5.6%;
}

.rail-edge,
.rail-back {
  opacity: 0;
}

.rail-edge {
  z-index: 2;
  background: linear-gradient(to right, #565656, #d6d6d6 28%, #7d7d7d 55%, #2f2f2f 82%, #777777);
}

.rail-back {
  z-index: 1;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.22), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.26)),
    #e6e6e6;
  transform: rotateY(180deg);
}

.rail-front {
  z-index: 3;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  transform: perspective(1100px) rotateY(var(--turn, -68deg)) scaleY(var(--flat, 1));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.rail-front img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 56.4%;
  pointer-events: none;
}

.rail-shade {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #000000;
  opacity: var(--shade, 0.02);
  pointer-events: none;
}

@media (hover: hover) {
  .rail-screen:hover .rail-hook {
    stroke: #111111;
  }
}

.rail-caption {
  min-height: 4.5rem;
  max-width: 480px;
  margin: 0 auto;
}

.rail-caption h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 600;
}

.rail-caption p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.rail-caption.is-entering h3,
.rail-caption.is-entering p {
  animation: rail-fade 300ms ease both;
}

@keyframes rail-fade {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
}

.rail-dots {
  display: none;
  justify-content: center;
  gap: 0.375rem;
  margin-top: 1rem;
}

.rail-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d4d4d4;
  cursor: pointer;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.rail-dots button[aria-current="true"] {
  width: 20px;
  background: var(--fg);
}

.rail.is-carousel .rail-dots {
  display: flex;
}

.rail-dialog {
  width: min(860px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  padding: 3.5rem 2.5rem 2.5rem;
  border: 0;
  border-radius: 1.5rem;
  background: var(--bg);
  color: var(--fg);
  box-shadow: 0 1px 0 var(--border), 0 40px 80px -40px rgba(0, 0, 0, 0.3);
}

.rail-dialog::backdrop {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.rail-dialog[open] {
  animation: rail-dialog-in 260ms ease both;
}

@keyframes rail-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }
}

.rail-dialog-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.5rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}

.rail-dialog-close:hover {
  color: var(--fg);
}

.rail-dialog-close svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

.rail-dialog-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 19rem);
  align-items: center;
  gap: 3rem;
}

.rail-dialog-figure img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(66vh, 560px);
  margin: 0 auto;
}

.rail-dialog-index {
  margin: 0 0 0.5rem;
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rail-dialog-text h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.rail-dialog-text p:last-child {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Screens showcase */
.screens {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.showcase {
  --text-cols: 340px;
  display: grid;
  grid-template-columns: 1fr var(--text-cols);
  grid-template-areas: "phone text";
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 2.5rem;
  background: var(--faint);
  border-radius: 1.5rem;
}

.showcase-reverse {
  grid-template-columns: var(--text-cols) 1fr;
  grid-template-areas: "text phone";
}

.showcase-text {
  grid-area: text;
  max-width: 380px;
}

.showcase-phone {
  grid-area: phone;
}

.showcase-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.showcase-text h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.showcase-text p {
  margin: 0;
  color: var(--muted);
}

.showcase-phone {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.showcase-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  mix-blend-mode: multiply;
}

/* Reels has a full-bleed logo backdrop, so it blends out of the panel */
.showcase-phone-wide {
  max-width: 420px;
}

.showcase-phone-wide img {
  mix-blend-mode: normal;
}

/* How it works */
.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}

.step-num {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 600;
}

.step p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* Features */
.features {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.feature {
  padding: 1.5rem;
  background: var(--faint);
  border-radius: 1rem;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* About */
.about {
  max-width: 640px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.about h2 {
  margin: 0 0 1.25rem;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.about p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about p:last-child {
  margin-bottom: 0;
}

/* CTA */
.cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cta h2 {
  margin: 0 0 0.75rem;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cta p {
  margin: 0 0 2rem;
  color: var(--muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

@media (max-width: 720px) {
  .nav-links a:not(.btn) {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .countdown {
    gap: 0.5rem;
  }

  .countdown-unit {
    min-width: 0;
    flex: 1;
    padding: 0.625rem 0.25rem;
  }

  .countdown-value {
    font-size: 1.375rem;
  }

  .waitlist-form {
    flex-direction: column;
  }

  .waitlist-form .btn {
    width: 100%;
  }

  .showcase,
  .showcase-reverse {
    grid-template-columns: 1fr;
    grid-template-areas: "text" "phone";
    gap: 2rem;
    padding: 2rem 1.25rem;
    text-align: center;
  }

  .showcase-text {
    max-width: none;
    justify-self: center;
  }

  .showcase-phone {
    max-width: 250px;
  }

  .showcase-phone-wide {
    max-width: 300px;
  }
}

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