/* ============================================================
   SubMedium — pre-launch landing page
   Component styles ported from the Claude Design prototype
   (launch.jsx inline styles) into named classes, plus the
   responsive behaviour the desktop-only mock didn't cover.
   Tokens + type helpers come from styles.css.
   ============================================================ */

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

/* ============================== TOP BAR ============================== */
.lp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
}
.wordmark { display: inline-flex; align-items: baseline; }
.wordmark__sub,
.wordmark__medium {
  font-family: var(--serif);
  font-weight: 620;
  font-size: 25px;
  letter-spacing: -0.02em;
}
.wordmark__medium { color: var(--accent); }
.wordmark__dot {
  width: 5px; height: 5px; border-radius: 5px;
  background: var(--accent);
  margin-left: 3px;
  align-self: flex-end;
  margin-bottom: 6px;
}
.launch-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
}
.launch-pill__dot { width: 6px; height: 6px; border-radius: 6px; background: var(--accent); }

/* =============================== HERO =============================== */
.hero {
  padding: 62px 28px 54px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.hero__kicker { margin-bottom: 20px; }
.hero__title {
  font-size: 62px;
  margin: 0 0 24px;
  letter-spacing: -0.022em;
}
.hero__accent { color: var(--accent); }
.hero__dek {
  font-size: 20px;
  margin: 0 0 34px;
  max-width: 46ch;
}

/* ============================= WAITLIST ============================= */
.waitlist { max-width: 520px; }
.waitlist__form { display: flex; gap: 9px; }
.waitlist__input {
  flex: 1;
  font-family: var(--mono);
  font-size: 14px;
  padding: 13px 15px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
  color: var(--ink);
  border-radius: 4px;
  outline: none;
  min-width: 0;
}
.waitlist__input::placeholder { color: var(--ink-3); }
.waitlist__input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.waitlist__btn {
  background: var(--ink);
  color: var(--paper);
  border: 0;
  border-radius: 4px;
  padding: 0 22px;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity .15s ease;
}
.waitlist__btn:hover { opacity: 0.88; }
.waitlist__btn:disabled { opacity: 0.5; cursor: default; }
.waitlist__meta { margin-top: 11px; font-size: 12px; }
.waitlist__meta .waitlist__count {
  color: var(--ink-2);
  font-family: var(--sans);
  font-weight: 600;
}
.waitlist__done {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 5px;
  max-width: 520px;
}
.waitlist__done[hidden] { display: none; }
.waitlist__done-title { font-family: var(--sans); font-weight: 600; font-size: 15px; }
.waitlist__done-sub { color: var(--paper); opacity: 0.7; font-size: 12px; }
.star { flex: 0 0 auto; }

/* ============================== TEASER ============================== */
.hero__teaser { min-width: 0; }
.teaser {
  border: 1px solid var(--line);
  border-top: 2px solid var(--ink);
  background: var(--paper-2);
  padding: 22px 24px;
  border-radius: 0 0 5px 5px;
  box-shadow: 0 30px 60px -40px rgba(23, 21, 15, 0.45);
}
.teaser__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.teaser__label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.teaser__live { display: inline-flex; align-items: center; gap: 5px; }
.teaser__live-dot {
  width: 6px; height: 6px; border-radius: 6px;
  background: var(--down);
  animation: pulse 1.8s infinite;
}
.teaser__live-text { color: var(--down); font-weight: 600; font-size: 10px; }
.teaser__headline { font-size: 25px; margin: 8px 0 14px; }
.teaser__brief {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  display: flex;
  gap: 8px;
}
.teaser__brief-label { color: var(--ink-2); margin-bottom: 6px; }
.teaser__brief-text {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.teaser__sources {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.teaser__avatars { display: inline-flex; }
.avatar {
  width: 24px; height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 9.5px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 3px;
  position: relative;
}
.avatar + .avatar { margin-left: -6px; }
.teaser__avatars .avatar:nth-child(1) { z-index: 4; }
.teaser__avatars .avatar:nth-child(2) { z-index: 3; }
.teaser__avatars .avatar:nth-child(3) { z-index: 2; }
.teaser__avatars .avatar:nth-child(4) { z-index: 1; }
.teaser__count { color: var(--ink-2); font-weight: 500; }

/* ============================= MARQUEE ============================= */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-3);
  padding: 11px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: tickerscroll 48s linear infinite;
}
.marquee__track:hover { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }
.marquee__item { display: inline-flex; align-items: center; gap: 22px; margin-right: 22px; }
.marquee__name { font-family: var(--serif); font-size: 17px; color: var(--ink-2); font-weight: 500; }
.marquee__dot { width: 4px; height: 4px; border-radius: 4px; background: var(--accent); opacity: 0.6; }

/* ============================== PILLARS ============================== */
.pillars { padding: 56px 28px 30px; }
.pillars__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.pillar { border-top: 2px solid var(--ink); padding-top: 16px; }
.pillar__kicker { margin-bottom: 9px; }
.pillar__title { font-size: 21px; margin: 0 0 9px; font-weight: 580; }
.pillar__body { margin: 0; font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--ink-2); }

/* ============================ CLOSING CTA ============================ */
.cta { padding: 44px 28px 30px; }
.cta__inner {
  border-top: 2px solid var(--ink);
  padding-top: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta__title { font-size: 34px; margin: 0 0 10px; max-width: 16ch; }
.cta__dek { font-size: 17px; margin: 0; }
.cta__form { flex: 0 0 auto; min-width: 360px; }

/* ============================== FOOTER ============================== */
.lp-footer { border-top: 1px solid var(--line); margin-top: 30px; }
.lp-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  flex-wrap: wrap;
  gap: 14px;
}
.lp-footer__links { display: flex; gap: 20px; }
.lp-link { transition: color .15s ease; }
.lp-link:hover { color: var(--accent-2); }
.lp-link--accent { color: var(--accent-2); font-weight: 500; }

/* ============================================================
   RESPONSIVE — the prototype was desktop-only; derive a clean
   stacked layout for tablet/mobile without changing the
   desktop composition above.
   ============================================================ */

/* tablet: collapse hero + pillars */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 44px 24px 40px;
  }
  .hero__title { font-size: clamp(40px, 8.5vw, 62px); }
  .hero__dek { font-size: 18px; max-width: 56ch; }
  .pillars__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta__form { min-width: 0; flex: 1 1 320px; }
}

/* phone */
@media (max-width: 560px) {
  .shell { padding: 0 18px; }
  .lp-top { padding: 18px 18px; }
  .wordmark__sub, .wordmark__medium { font-size: 22px; }
  .launch-pill { font-size: 10.5px; padding: 5px 11px; }

  .hero { padding: 32px 18px 32px; }
  .hero__title { font-size: clamp(34px, 11vw, 46px); margin-bottom: 18px; }
  .hero__dek { font-size: 17px; margin-bottom: 26px; }

  .waitlist__form { flex-direction: column; gap: 10px; }
  .waitlist__btn { padding: 13px 22px; }

  .teaser { padding: 18px 18px; }
  .teaser__headline { font-size: 22px; }

  .marquee__name { font-size: 15px; }

  .pillars { padding: 40px 18px 22px; }
  .pillars__grid { grid-template-columns: 1fr; gap: 26px; }

  .cta { padding: 32px 18px 24px; }
  .cta__inner { gap: 26px; }
  .cta__title { font-size: 27px; }

  .lp-footer__inner { padding: 20px 18px; }
  .lp-footer__links { gap: 16px; flex-wrap: wrap; }
}
