@font-face { font-family: "Open Runde"; src: url("/fonts/OpenRunde-Regular.otf") format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("/fonts/OpenRunde-Medium.otf") format("opentype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Open Runde"; src: url("/fonts/OpenRunde-Semibold.otf") format("opentype"); font-weight: 600; font-display: swap; }

:root {
  --ink: #fdfdfd;
  --ink-2: rgba(253, 253, 253, 0.68);
  --ink-3: rgba(253, 253, 253, 0.42);
  --ground: #0b0b0c;
  --glass: rgba(253, 253, 253, 0.08);
  --glass-line: rgba(253, 253, 253, 0.16);
  --danger: #ff6b6b;
  --font: "Open Runde", ui-rounded, -apple-system, system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  overflow: hidden;
  isolation: isolate;
}
.hero-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  /* Copy stays readable whatever frame the video is on. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 11, 12, 0.25) 0%, rgba(11, 11, 12, 0.15) 45%, rgba(11, 11, 12, 0.85) 100%);
}
.hero-inner {
  padding: max(28px, env(safe-area-inset-top)) 24px 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 32px;
  min-height: 100svh;
}
.hero-phone { display: none; margin: 0; }

.wordmark { display: block; width: 132px; margin-bottom: 8px; }
.hero-copy { position: static; text-align: center; }
.hero-copy .wordmark { position: absolute; top: max(28px, env(safe-area-inset-top)); left: 50%; margin-left: -66px; }
.headline .line, .lede .line { display: block; }
.lede, .signup, .done { margin-left: auto; margin-right: auto; }
.wordmark-svg { display: block; width: 100%; height: auto; }

/* The curtain: black, the logo alone in the middle, only on a first visit. */
.curtain {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--ground);
  place-items: center;
}
.curtain-stage { width: min(64vw, 520px); will-change: transform; transform-origin: 0 0; }
.curtain-logo { display: block; width: 100%; height: auto; will-change: transform; }
.is-intro .curtain { display: grid; }
.is-intro .curtain-logo { visibility: hidden; } /* until the letters are lifted off screen */
.is-intro .hero-copy > *, .is-intro .hero-phone { animation: none; opacity: 0; }
.is-intro .hero-copy .wordmark { opacity: 0; }
.is-intro body { overflow: hidden; }
/* After the intro the hero is already in place; the load animation must not play a second time. */
.is-landed .hero-copy > *, .is-landed .hero-phone { animation: none; }

.headline {
  font-size: clamp(30px, 9vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0 0 14px;
}
.lede {
  color: var(--ink-2);
  font-size: 18px;
  margin: 0 0 28px;
}

/* Reveal */
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: 0.05s; }
.hero-copy > :nth-child(2) { animation-delay: 0.15s; }
.hero-copy > :nth-child(3) { animation-delay: 0.25s; }
.hero-copy > :nth-child(4) { animation-delay: 0.35s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Signup */
.signup { max-width: 460px; }
.signup-row { display: flex; flex-direction: column; gap: 10px; }
.field {
  width: 100%;
  min-width: 0;
  height: 54px;
  padding: 0 18px;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s, background 0.2s;
}
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: rgba(253, 253, 253, 0.5); background: rgba(253, 253, 253, 0.12); }
.signup.is-invalid .field { border-color: var(--danger); }
.button {
  height: 54px;
  padding: 0 24px;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  color: var(--ground);
  background: var(--ink);
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }
.button:disabled { opacity: 0.65; cursor: default; transform: none; }
.button:focus-visible, .field:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.note { color: var(--ink-3); font-size: 14px; margin: 12px 4px 0; min-height: 21px; }
.signup.is-invalid .note, .signup.is-failed .note { color: var(--danger); }

/* Success */
.done { animation: rise 0.7s var(--ease) both; max-width: 460px; }
.done-title { font-size: 34px; font-weight: 500; letter-spacing: -0.02em; margin: 0 0 8px; }
.done-copy { color: var(--ink-2); margin: 0 0 20px; font-size: 18px; }
.done-copy strong { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.done-link { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.done-link:hover { color: var(--ink); }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.scroll-cue:hover { color: var(--ink); }
.scroll-cue-arrow { display: inline-block; animation: nudge 2.2s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Manifesto */
.manifesto { position: relative; padding: 96px 24px 0; background: var(--ground); }
.manifesto-inner { max-width: 620px; margin: 0 auto; }
.manifesto p { margin: 0 0 26px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.manifesto-open, .manifesto-turn, .manifesto-going {
  color: var(--ink) !important;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.manifesto-open { font-size: clamp(32px, 6vw, 44px) !important; line-height: 1.12 !important; margin-bottom: 40px !important; }
.manifesto-turn { font-size: 24px !important; line-height: 1.3 !important; margin: 40px 0 !important; }
.plan { margin: 44px 0; }
.plan .rule { display: block; height: 1px; background: var(--glass-line); transform-origin: left center; }
.plan .rule:first-child { margin-bottom: 28px; }
.plan .rule:last-child { margin-top: 18px; }
.beat { display: inline-block; }
/* The bars: a pause in the manifesto that fills with the scroll. */
.bars { display: block; height: 56px; width: auto; margin: 56px auto 64px; overflow: visible; }
.plan p { margin-bottom: 10px; }
.plan-label { color: var(--ink) !important; font-size: 17px !important; margin-bottom: 14px !important; }
.plan-price { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 22px; }
.price { display: block; height: 64px; width: auto; overflow: visible; }
.plan-unit { color: var(--ink); font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; padding-bottom: 6px; }
.manifesto-no { color: var(--ink) !important; margin-bottom: 10px !important; }
.manifesto-going { font-size: clamp(30px, 7.4vw, 40px) !important; line-height: 1.12 !important; margin: 64px 0 0 !important; }

/* The closer: the picture, edge to edge, revealed as it arrives. */
.closer { margin: 40px -24px 0; overflow: hidden; }
.closer img { display: block; width: 100%; height: auto; aspect-ratio: 800 / 711; } /* the box is right before the file arrives */

.footer {
  margin: 0 -24px;
  padding: 28px 24px max(28px, env(safe-area-inset-bottom));
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 14px;
}
.footer-logo { display: block; width: 84px; height: auto; overflow: visible; }
.footer-right { display: inline-flex; gap: 18px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* Desktop: the 9:16 clip becomes a tall panel beside the copy, and the blurred copy of it sets the mood behind. */
@media (min-width: 900px) {
  .hero-backdrop { filter: blur(48px) saturate(1.3) brightness(0.45); transform: scale(1.25); }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(11, 11, 12, 0) 70%, var(--ground) 100%),
      radial-gradient(120% 90% at 20% 60%, rgba(11, 11, 12, 0.55) 0%, rgba(11, 11, 12, 0.2) 60%, rgba(11, 11, 12, 0.05) 100%);
  }
  .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 64px 48px 96px;
  }
  .hero-copy { flex: 1 1 0; max-width: 560px; }
  .wordmark { width: 156px; margin-bottom: 24px; }
  .hero-copy { position: relative; text-align: left; }
  .hero-copy .wordmark { position: static; margin-left: 0; }
  .headline .line { display: block; }
  .lede, .signup, .done { margin-left: 0; margin-right: 0; }
  .headline { font-size: clamp(44px, 3.9vw, 56px); }
  .lede { font-size: 19px; margin-bottom: 36px; }
  .lede .line { display: inline; }
  .signup-row { flex-direction: row; }
  .field { flex: 1 1 0; width: auto; }
  .hero-phone {
    display: block;
    flex: 0 0 auto;
    height: min(82vh, 780px);
    aspect-ratio: 9 / 16;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(253, 253, 253, 0.08);
    animation: rise 1.1s var(--ease) 0.2s both;
  }
  .hero-video { width: 100%; height: 100%; object-fit: cover; }
  .manifesto { padding: 140px 48px 0; }
  .manifesto-going { font-size: 44px !important; margin-top: 96px !important; }
  .closer { margin: 56px -48px 0; }
  .closer img { aspect-ratio: 1920 / 1086; }
  .footer { margin: 0 -48px; padding: 36px 48px; }
  .footer-logo { width: 96px; }
  .manifesto p { font-size: 21px; }
  .manifesto-open { font-size: 48px !important; }
  .price { height: 84px; }
  .bars { height: 72px; margin: 80px auto 88px; }
  .plan-unit { font-size: 28px; padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy > *, .done, .hero-phone { animation: none; }
  .scroll-cue-arrow { animation: none; }
}
