/* www.5oman.com: the teaser page. Spec: docs/superpowers/specs/2026-09-27-landing-teaser-design.md
   Mobile first (375 px); one breakpoint at 900 px. Tokens are the demo site's (video-lab/site/styles.css). */
:root {
  color-scheme: light;
  --paper: #F5F2E8;
  --ink: #14113C;
  --muted: #55517A;
  --accent: #F7E02E;
  --line: rgba(20, 17, 60, .22);
  --danger: #A32D2D;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --label: "IBM Plex Sans Condensed", "Arial Narrow", sans-serif;
  --hand: Caveat, "Bradley Hand", cursive;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gutter: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body { font-family: var(--sans); font-size: 15px; line-height: 1.55; overflow-x: hidden; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body::after { content: ""; position: fixed; inset: 0; z-index: 80; pointer-events: none; background: url(/media/paper.jpg) center / cover; mix-blend-mode: multiply; opacity: .5; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

/* Top bar: the wordmark and the stopwatch that plays along with the video. */
.bar { display: flex; align-items: center; justify-content: space-between; padding: 16px var(--gutter) 0; }
.brand { font-family: var(--serif); font-weight: 600; font-size: 26px; text-decoration: none; letter-spacing: -.01em; }
.brand .five { display: inline-block; background: var(--accent); padding: 0 .12em; margin-right: .04em; }
/* The video's own stopwatch (video-lab/src/promo/parts.tsx), at 0.47×: a paper pill (268×112 in
   the video), a drawn stopwatch whose hand turns 45° on every beat, handwritten figures, and a
   small pulse on each beat. Fixed width, so "10:00" → "0:00" doesn't shift anything. */
.watch { display: inline-flex; align-items: center; gap: 8px; width: 126px; height: 53px; padding: 0 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); font-family: var(--hand); font-weight: 700; font-size: 31px; line-height: 1; transform-origin: center; }
.watch svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; }
#clock-hand { transform-origin: 32px 34px; transition: transform .18s var(--ease); }
.watch.beat { animation: beat .2s ease-out; }
@keyframes beat { 50% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* The stage: headline, video, form. One column on a phone; two from 900 px. */
.stage { position: relative; flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 18px var(--gutter) 24px; display: grid; grid-template-areas: "head" "film" "copy"; row-gap: 22px; }
.ed { font-family: var(--serif); font-weight: 500; letter-spacing: -.012em; margin: 0; text-wrap: balance; }
.ed i { font-style: italic; }
.head { grid-area: head; font-size: clamp(32px, 9vw, 64px); line-height: 1.04; }
.hand { font-family: var(--hand); font-weight: 700; }

/* The video in a phone frame, the "sound on" note, the READY stamp. */
.film { --w: min(78vw, 360px); grid-area: film; position: relative; justify-self: center; width: var(--w); margin-top: 22px; }
.phone { position: relative; aspect-ratio: 9 / 16; border: 10px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--ink); box-shadow: 0 24px 50px rgba(20, 17, 60, .22); }
.phone video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.pp { position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(20, 17, 60, .72); display: grid; place-items: center; cursor: pointer; }
.pp svg { width: 20px; height: 20px; fill: #fff; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; display: none; }
.pp .i-pause, .pp .i-again { fill: none; }
.pp[data-state="play"] .i-play, .pp[data-state="pause"] .i-pause, .pp[data-state="again"] .i-again { display: block; }
.sound { position: absolute; left: -6px; top: -44px; display: flex; align-items: flex-end; gap: 0; border: 0; background: none; padding: 4px; cursor: pointer; transform: rotate(-5deg); }
.sound .hand { font-size: 26px; line-height: 1; }
.sound svg { width: 46px; height: 32px; margin-left: 6px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transform: translate(0, 16px); }
.sound[hidden] { display: none; }
.stamp { position: absolute; left: -14px; top: calc(var(--w) * 16 / 9 - 34px); z-index: 5; font-family: var(--label); font-weight: 700; font-size: 38px; letter-spacing: .04em; padding: 2px 16px; background: var(--accent); border: 4px solid var(--ink); color: var(--ink); transform: rotate(-6deg) scale(1.4); opacity: 0; pointer-events: none; }
.stamp.on { animation: press .5s var(--ease) forwards; }
@keyframes press {
  0% { opacity: 0; transform: rotate(-6deg) scale(1.4); }
  55% { opacity: 1; transform: rotate(-6deg) scale(.94); }
  70% { transform: rotate(-5deg) scale(1.03) translateX(-2px); }
  85% { transform: rotate(-6.5deg) scale(.99) translateX(1px); }
  100% { opacity: 1; transform: rotate(-6deg) scale(1); }
}

/* The waitlist card and the demo link. */
.copy { grid-area: copy; display: flex; flex-direction: column; gap: 18px; }
.card { position: relative; z-index: 3; border: 1.5px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .42); padding: 22px 20px 18px; }
.card h2 { font-size: 26px; line-height: 1.12; margin-bottom: 14px; }
.field { display: block; margin-bottom: 14px; }
.field > span:first-child { display: block; font-family: var(--label); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.field small { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-weight: 400; color: var(--muted); font-size: 12px; }
.field input, .tel { width: 100%; height: 48px; border: 1.5px solid var(--ink); border-radius: 10px; background: #fff; font: inherit; font-size: 17px; color: var(--ink); padding: 0 14px; }
.field input:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
.tel { display: flex; align-items: center; padding: 0; overflow: hidden; }
.tel:focus-within { box-shadow: 0 0 0 3px var(--accent); }
.tel .cc { padding: 0 10px 0 14px; font-weight: 500; border-right: 1.5px solid var(--line); height: 100%; display: grid; place-items: center; }
.tel .cc[hidden] { display: none; }
.tel input { border: 0; height: 100%; border-radius: 0; box-shadow: none !important; }
.field [aria-invalid="true"], .tel:has([aria-invalid="true"]) { border-color: var(--danger); }
.err { display: block; font-style: normal; color: var(--danger); font-size: 13px; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }
.linkish { border: 0; background: none; padding: 4px 0 0; font-size: 13px; color: var(--muted); text-decoration: underline; cursor: pointer; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cta { width: 100%; height: 54px; margin-top: 4px; border: 2.5px solid var(--ink); border-radius: 999px; background: var(--accent); font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: .02em; cursor: pointer; box-shadow: 0 4px 0 var(--ink); transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.cta:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--ink); }
.cta:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.cta[disabled] { cursor: progress; opacity: .8; }
.fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.done { text-align: center; padding: 18px 0 8px; }
.done .big { font-size: 38px; line-height: 1; margin: 0; }
.card .lead { margin: -6px 0 16px; color: var(--muted); font-size: 15px; }
/* After joining, the demo is the reward: an ink button, as strong as the yellow one. */
.look { display: flex; align-items: center; justify-content: center; height: 54px; margin: 16px 0 4px; border-radius: 999px; background: var(--ink); color: var(--paper); font-family: var(--label); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-decoration: none; box-shadow: 0 4px 0 rgba(20, 17, 60, .35); transition: transform .12s var(--ease); }
.look:hover { transform: translateY(-1px); }
/* The hand-off's choice, under the video once it has ended: join, or see the demo without joining.
   In the flow (it pushes the form down), so it never overlaps anything. */
.choice { margin-top: 56px; display: grid; gap: 12px; opacity: 0; transform: translateY(10px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.choice.on { opacity: 1; transform: none; }
.choice[hidden] { display: none; }
.choice .cta, .choice .look { display: flex; align-items: center; justify-content: center; width: 100%; margin: 0; text-decoration: none; color: var(--ink); }
.choice .look { color: var(--paper); }
.choice-note { margin: -2px 0 0; text-align: center; font-size: 22px; line-height: 1; }

/* The dotted route the READY moment draws, from the video to the button (the demo site's dots). */
.route { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 4; pointer-events: none; overflow: visible; }
#route-dots { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .1 11; }
#route-mask { fill: none; stroke: #fff; stroke-width: 18; stroke-linecap: round; }
#route-end { fill: var(--ink); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); transition: transform .3s var(--ease), opacity .1s; }
#route-end.on { opacity: 1; transform: scale(1); }

.foot { text-align: center; font-size: 12.5px; color: var(--muted); padding: 10px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 900px) {
  :root { --gutter: 40px; }
  .stage { grid-template-columns: 380px 1fr; grid-template-areas: "film head" "film copy"; column-gap: 96px; row-gap: 26px; align-content: center; padding-top: 28px; }
  .head { align-self: end; font-size: clamp(44px, 4.6vw, 64px); }
  .film { --w: 380px; align-self: start; margin-top: 0; }
  .copy { max-width: 440px; }
  .sound { left: -110px; top: 28%; transform: rotate(-8deg); }
  .sound svg { transform: translate(-2px, 10px) rotate(-6deg); }
  .stamp { left: auto; right: -70px; top: calc(var(--w) * 16 / 9 - 28px); }
  .pp { right: auto; left: 10px; }
  .choice { margin-top: 74px; }
  .choice-join { display: none !important; } /* the form is beside the video, and the route leads to it */
}

@media (prefers-reduced-motion: reduce) {
  .stamp.on { animation: none; opacity: 1; transform: rotate(-6deg); }
  #route-end { transition: none; }
}
