/* DoScroll home page (waitlist). Other pages use style.css. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --mint: #dce8e7;
  --ink: #0e1215;
  --dim: #55636b;
  --white: #ffffff;
    --focus: #2f6fed;
  --grad: linear-gradient(95deg, #ec6fb0 0%, #f6904a 48%, #5b8df6 100%);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

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

.skip {
  position: absolute; left: -9999px; top: 16px; z-index: 20;
  background: var(--ink); color: var(--white); padding: 12px 20px; border-radius: 999px;
}
.skip:focus { left: 24px; }

/* Hero */
.hero-wrap {
  background: var(--mint);
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overflow: clip;
}

.topbar {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { height: 28px; width: auto; }
.topnav { display: flex; gap: 32px; }
.topnav a { font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.topnav a:hover { text-decoration: underline; }

main { flex: 1; display: flex; }

.hero {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 48px 40px 120px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

h1 {
  margin: 0 0 32px;
  font-weight: 700;
  font-size: clamp(42px, 6.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
h1 .line { display: block; white-space: nowrap; }
h1 em {
  font-family: var(--serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: -0.02em;
}

.hero-sub {
  margin: 0 0 40px;
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.pill-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--ink);
  color: var(--white);
  font: 600 17px/1 var(--sans);
  padding: 0 32px;
  height: 60px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}
.pill-btn:hover { opacity: .88; }
.pill-btn:active { transform: scale(.98); }
.pill-btn:disabled { opacity: .6; cursor: default; }

.pill-input {
  appearance: none;
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(14, 18, 21, .14);
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1 var(--sans);
}
.pill-input:focus { outline: none; border-color: var(--ink); }

.field-row { display: flex; gap: 12px; max-width: 520px; }
.status { margin: 16px 0 0; font-size: 16px; min-height: 0; }
.status:empty { display: none; }
.status.ok { font-size: 19px; font-weight: 600; margin-top: 0; }
.status.err { color: #b42318; }

/* Hero card and glass */
.stage { position: relative; display: flex; justify-content: center; padding: 40px 0; }

.promo {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  background: var(--white);
  border-radius: 28px;
  padding: 40px 36px 36px;
  box-shadow: 0 1px 2px rgba(14, 18, 21, .04), 0 24px 60px -20px rgba(30, 60, 60, .28);
}
.promo-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.promo-name {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--ink, #0E1116);
}
.promo-tag { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding-top: 8px; white-space: nowrap; }

.checks { list-style: none; margin: 0 0 36px; padding: 0; }
.checks li {
  position: relative;
  padding-left: 32px;
  font-size: 17px;
  line-height: 1.4;
  margin-bottom: 16px;
}
.checks li::before {
  content: "";
  position: absolute; left: 2px; top: 5px;
  width: 14px; height: 8px;
  border-left: 2px solid #b57bd8;
  border-bottom: 2px solid #b57bd8;
  transform: rotate(-45deg);
}

.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.creator { display: flex; align-items: center; gap: 12px; margin-left: -64px; }
.avatar {
  flex: none;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 44px; color: var(--white);
  background: radial-gradient(circle at 30% 25%, #ffd5ec 0, transparent 45%), linear-gradient(140deg, #c084fc, #f472b6 55%, #fb923c);
  border: 4px solid var(--white);
  box-shadow: 0 10px 24px -10px rgba(120, 60, 140, .45);
}
.creator-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.handle {
  background: var(--white);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 6px 20px -8px rgba(14, 18, 21, .22);
}
.saved { font-size: 12px; color: var(--dim); display: inline-flex; align-items: center; gap: 8px; padding-left: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3fbf6a; display: inline-block; }

.mini {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(var(--white), var(--white)) padding-box, var(--grad) border-box;
  border: 2px solid transparent;
  min-width: 150px;
}
.mini-title { font-size: 14px; font-weight: 700; padding-right: 24px; }
.mini-meta { font-size: 12px; color: var(--dim); }
.play {
  position: absolute; top: 12px; right: 12px;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--white);
}
.play svg { margin-left: 2px; }

.glass { position: absolute; z-index: 1; border-radius: 50%; pointer-events: none; }
.disc {
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,.85) 0, rgba(255,255,255,0) 38%),
    conic-gradient(from 200deg, #9af0ff, #c9a7ff, #ffb3e1, #fff1a8, #a9ffd8, #9af0ff);
  opacity: .78;
  box-shadow: inset 0 0 0 3px rgba(255,255,255,.7), inset 0 -10px 24px rgba(120,160,255,.35);
  filter: saturate(1.1);
}
.d1 { width: 190px; height: 190px; left: -40px; bottom: -10px; --rot: rotateX(58deg) rotateZ(-28deg); transform: var(--rot); animation: float 9s ease-in-out infinite; }
.d2 { width: 130px; height: 130px; left: 34%; bottom: -24px; --rot: rotateX(64deg) rotateZ(18deg); transform: var(--rot); animation: float 11s ease-in-out -3s infinite; opacity: .6; }
.d3 { width: 70px; height: 70px; right: 4%; top: 2%; --rot: rotateX(50deg) rotateZ(40deg); transform: var(--rot); animation: float 8s ease-in-out -5s infinite; filter: blur(1px); opacity: .65; }
.ring {
  width: 440px; height: 440px; right: -150px; top: -110px;
  background: conic-gradient(from 90deg, #ff9ad5, #ffd28a, #a6ffcf, #8fd8ff, #c5a3ff, #ff9ad5);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  --rot: rotateX(62deg) rotateZ(-14deg);
  transform: var(--rot);
  opacity: .75;
  animation: float 13s ease-in-out -2s infinite;
}
.ring::after {
  content: ""; position: absolute; inset: 7px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(255,255,255,.35), rgba(255,255,255,.08) 60%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0) var(--rot); }
  50% { transform: translateY(-16px) var(--rot); }
}
@media (prefers-reduced-motion: reduce) {
  .glass { animation: none !important; }
}

/* Footer */
.foot { background: var(--mint); border-top: 1px solid rgba(14, 18, 21, .08); padding: 40px; font-size: 15px; }
.foot-bottom {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  color: var(--dim);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.foot-links a { color: var(--dim); }

/* Tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 24px 96px; }
  .stage { padding: 48px 0 24px; }
  .creator { margin-left: 0; }
  .topbar { padding: 24px; }
}

/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar { padding: 20px 16px; }
  .brand img { height: 24px; }
  .topnav { gap: 20px; }
  .hero { padding: 32px 16px 80px; }
  h1 { margin-bottom: 24px; }
  .hero-sub { margin-bottom: 32px; }
  .field-row { flex-direction: column; }
  .field-row .pill-btn, .field-row .pill-input { width: 100%; flex: none; }
  .promo { padding: 32px 24px 28px; border-radius: 24px; }
  .promo-name { font-size: 32px; }
  .checks li { font-size: 16px; }
  .avatar { width: 64px; height: 64px; font-size: 32px; border-width: 3px; }
  .promo-foot { gap: 20px; }
  .mini { flex: 1; }
  .ring { width: 300px; height: 300px; right: -120px; top: -60px; }
  .d1 { width: 120px; height: 120px; left: -30px; bottom: 0; }
  .d2 { width: 90px; height: 90px; }
  .foot { padding: 32px 16px 40px; }
  .foot-bottom { flex-direction: column; }
}

/* The name set as type, in the app's wordmark face (Inter Bold), with no bird: the bird was the
   old mark and is being retired. Same treatment in the header and on the card. */
.wordmark { font-family: Inter, -apple-system, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.035em; color: var(--ink, #0E1116); line-height: 1; }
.brand .wordmark { font-size: 26px; }
@media (max-width: 640px) { .brand .wordmark { font-size: 22px; } }
.brand { gap: 10px; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; display: block; }
@media (max-width: 640px) { .brand .mark { width: 28px; height: 28px; border-radius: 7px; } }
.brand { display: inline-flex !important; flex-direction: row; align-items: center; gap: 10px; text-decoration: none !important; color: inherit; }

/* The card's example: one saved video, shown as the steps DoScroll writes out, each with its clip. */
.example { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ECEFF1; }
.ex-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.ex-label { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #6B7785; }
.ex-title { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ex-src { font-size: 14px; color: #5C6E82; display: inline-flex; align-items: center; gap: 8px; }
.ex-src .dot { width: 7px; height: 7px; border-radius: 50%; background: #34C47C; display: inline-block; }
.ex-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ex-steps li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.ex-clip { width: 44px; height: 44px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff;
  background-size: 200% 200%; animation: exloop 3s ease-in-out infinite; }
.ex-a { background-image: linear-gradient(135deg, #F28FB0, #F7B267, #F28FB0); }
.ex-b { background-image: linear-gradient(135deg, #8EC5FC, #B79CF5, #8EC5FC); animation-delay: -1s; }
.ex-c { background-image: linear-gradient(135deg, #7DD3C0, #8EC5FC, #7DD3C0); animation-delay: -2s; }
@keyframes exloop { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) { .ex-clip { animation: none; } }

/* After joining: the place in line, and the invite link. */
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 50; }
.joined { display: grid; gap: 10px; max-width: 520px; }
.joined-kicker { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3E8E6E; }
.joined-place { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.joined-place strong { background: linear-gradient(90deg, #F28FB0, #F7B267, #8EC5FC); -webkit-background-clip: text; background-clip: text; color: transparent; }
.joined-sub { margin: 4px 0 8px; font-size: 17px; line-height: 1.5; color: #3B4652; }
.share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.share-row .share-link { flex: 1 1 240px; min-width: 0; font-size: 15px; }
