/* Heartstream look: white pages, near-black type set light with one bold phrase, red only on pills, slate band. */
:root {
  --white: #FFFFFF;
  --mist: #F3F4F6;
  --ink: #0B1220;
  --grey: #566676;
  --line: #E3E6EA;
  --red: #BA0220;
  --red-dark: #96011A;
  --slate: #2D3340;
  --on-slate: #C9CED6;
  --head: "Hind", "Frutiger", "Segoe UI", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.55; }
h1, h2, h3 { font-family: var(--head); margin: 0; text-wrap: balance; }
p { margin: 0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

.gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.wrap { max-width: 960px; margin-inline: auto; }

.logo { display: inline-block; width: 150px; line-height: 0; color: var(--ink); }
.logo svg { width: 100%; height: auto; }

.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; }
.top small { color: var(--grey); font-size: 14px; }

/* hero */
.hero { text-align: center; padding-block: 72px 48px; display: grid; gap: 22px; justify-items: center; }
.kicker { font-size: 14px; font-weight: 500; color: var(--red); letter-spacing: 0.02em; }
.line { font-weight: 300; font-size: clamp(2.4rem, 6.4vw, 4.6rem); line-height: 1.06; letter-spacing: -0.01em; max-width: 18ch; }
.line b { font-weight: 600; display: block; }
.lede { color: var(--grey); font-size: 1.15rem; max-width: 40ch; }
.clock { display: grid; gap: 2px; justify-items: center; margin-top: 8px; }
.clock b { font-family: var(--mono); font-weight: 500; font-size: clamp(2.6rem, 8vw, 4.2rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.clock span { font-size: 14px; color: var(--grey); }

/* milestones */
.miles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.miles li { padding: 22px 20px; display: grid; gap: 4px; text-align: center; }
.miles li + li { border-left: 1px solid var(--line); }
.miles .what { font-family: var(--head); font-size: 1.25rem; font-weight: 600; }
.miles .when { font-size: 15px; color: var(--grey); }
.miles .state { font-size: 12px; font-weight: 600; color: var(--grey); letter-spacing: 0.04em; }
.miles li.next .state { color: var(--red); }
.miles li.done { opacity: .55; }
@media (max-width: 620px) { .miles { grid-template-columns: 1fr; } .miles li + li { border-left: 0; border-top: 1px solid var(--line); } }

/* the two cards: play and join */
.pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; padding-block: 48px; }
@media (max-width: 760px) { .pair { grid-template-columns: 1fr; } }
.card { background: var(--mist); border-radius: 16px; padding: clamp(24px, 4vw, 36px); display: grid; gap: 16px; align-content: start; }
.card h2 { font-weight: 300; font-size: 1.9rem; line-height: 1.1; }
.card h2 b { font-weight: 600; }
.card p { color: var(--grey); }

.guess-num { font-family: var(--mono); font-size: 4.4rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.guess-num small { font-size: 1.4rem; color: var(--grey); }
input[type=range] { width: 100%; accent-color: var(--red); height: 32px; }
.sealed { display: grid; gap: 10px; justify-items: start; }
.envelope { width: 100%; height: 110px; border-radius: 12px; background: var(--white); border: 1px dashed #B8C0CA; display: grid; place-items: center; font-family: var(--mono); font-size: 2rem; color: var(--grey); letter-spacing: 0.2em; }

.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; background: var(--red); color: var(--white); font: 600 16px var(--body); text-decoration: none; padding: 13px 26px; border-radius: 999px; }
.pill:hover { background: var(--red-dark); }
.pill.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.pill.ghost:hover { background: var(--white); }
.link { background: none; border: 0; padding: 0; color: var(--grey); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; justify-self: start; }

.qr { width: 168px; height: 168px; background: var(--white); border-radius: 12px; padding: 10px; }

/* launch film */
.film { position: relative; margin-top: 48px; border-radius: 16px; overflow: hidden; background: var(--mist); aspect-ratio: 16 / 9; max-width: 100%; }
.film video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film .sound { position: absolute; right: 16px; bottom: 16px; padding: 9px 18px; font-size: 14px; background: rgb(255 255 255 / .92); }

/* doctors */
.proof { padding-block: 0 48px; display: grid; gap: 20px; }
.proof h2 { font-weight: 300; font-size: 1.9rem; }
.proof h2 b { font-weight: 600; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: center; }
@media (max-width: 760px) { .proof-grid { grid-template-columns: 1fr; } }
.proof video { width: 100%; aspect-ratio: 16 / 9; border-radius: 16px; background: var(--slate); display: block; }
.quote { margin: 0; display: grid; gap: 14px; }
.quote blockquote { margin: 0; font-family: var(--head); font-weight: 300; font-size: 1.6rem; line-height: 1.25; }
.quote figcaption { font-size: 14px; color: var(--grey); }
.quote figcaption b { color: var(--ink); font-weight: 600; margin-right: 6px; }
.how { color: var(--grey); max-width: 70ch; }
.how b { color: var(--ink); }
.src { font-size: 13px; color: var(--grey); }

/* live count */
.live { padding-block: 0 48px; display: grid; gap: 16px; }
.live h2 { font-weight: 300; font-size: 1.9rem; }
.live h2 b { font-weight: 600; }
.live .frame { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--mist); }
.live iframe { display: block; width: 100%; height: min(70vh, 600px); border: 0; background: var(--white); }
.live .ph { padding: 40px 28px; color: var(--grey); text-align: center; }

/* slate footer, as on heartstream.com */
.foot { background: var(--slate); color: var(--on-slate); }
.foot .wrap { padding-block: 40px 48px; display: grid; gap: 14px; font-size: 14px; }
.foot .logo { color: var(--white); width: 110px; }
.foot b { color: var(--white); font-weight: 600; }
.foot .fine { font-size: 12px; opacity: .8; max-width: 70ch; }

/* office screen: slate, white type, red only on the progress pill */
body.screen { background: var(--slate); color: var(--white); height: 100vh; overflow: hidden; }
body.screen .site { display: none; }
.tv { display: none; background: var(--slate); color: var(--white); }
body.screen .tv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr auto; gap: 2.4vw; height: 100vh; padding: 3vw 3.4vw; }
.tv .head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.tv .head .logo { width: 13vw; color: var(--white); }
.tv .head span { font-size: 1.3vw; color: var(--on-slate); }
.tv .left { display: flex; flex-direction: column; justify-content: center; gap: 3vw; }
.tv .line { font-size: 4.8vw; max-width: none; text-align: left; }
.tv .clock { justify-items: start; }
.tv .clock b { font-size: 7vw; }
.tv .clock span { font-size: 1.4vw; color: var(--on-slate); }
.tv .right { border-radius: 1vw; overflow: hidden; background: rgb(255 255 255 / .06); display: grid; }
.tv .right iframe { width: 100%; height: 100%; border: 0; background: var(--white); }
.tv .right .tvfilm { width: 100%; height: 100%; object-fit: cover; }
.tv .right .ph { display: grid; place-content: center; gap: 1.2vw; text-align: center; padding: 3vw; }
.tv .right .ph b { font-family: var(--mono); font-weight: 500; font-size: 8vw; line-height: 1; }
.tv .right .ph span { font-size: 1.6vw; color: var(--on-slate); }
.tv .right .ph .goalpill { justify-self: center; background: var(--red); color: var(--white); border-radius: 999px; padding: .6vw 1.6vw; font-size: 1.4vw; font-weight: 600; }
.tv .bottom { grid-column: 1 / -1; display: flex; align-items: center; gap: 2vw; border-top: 1px solid rgb(255 255 255 / .14); padding-top: 1.6vw; }
.tv .bottom img { width: 7vw; height: 7vw; border-radius: .6vw; background: #fff; padding: .4vw; }
.tv .bottom p { font-size: 1.5vw; }
.tv .bottom .next { margin-left: auto; text-align: right; font-size: 1.3vw; color: var(--on-slate); }
