@font-face {
  font-family: "General Sans";
  src: url("assets/fonts/GeneralSans-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("assets/fonts/JetBrainsMono-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* Radius: the app's scale from globals.css */
  --radius: 0.625rem;
  --r-sm: calc(var(--radius) * 0.6);
  --r-md: calc(var(--radius) * 0.8);
  --r-lg: var(--radius);
  --r-xl: calc(var(--radius) * 1.4);
  --r-2xl: calc(var(--radius) * 1.8);

  --bg: #fff;
  --ink: #0d0d0f;
  --muted: #6c6c74;
  --faint: #a9a9b2;
  --panel: #f4f4f5;
  --panel-2: #dedee3;
  --ring: rgb(13 13 15 / 0.08);
  --rise: #137333;
  --fall: #b91c1c;
  --brand: #6b2755;

  --sans: "General Sans", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  interpolate-size: allow-keywords;
  scroll-padding-top: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img, svg {
  display: block;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

::selection {
  background: var(--ink);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: 2rem;
}

.muted {
  color: var(--muted);
}

/* Brand */

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  height: 2rem;
  padding-inline: 0.5rem;
  margin-left: -0.5rem;
  border-radius: var(--r-md);
}

.mark {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--brand);
  -webkit-mask: url("assets/logo.svg") center / contain no-repeat;
  mask: url("assets/logo.svg") center / contain no-repeat;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding-inline: 0.75rem;
  border-radius: var(--r-lg);
  white-space: nowrap;
  transition:
    background-color 150ms var(--ease-out),
    color 150ms var(--ease-out),
    scale 150ms var(--ease-out);
}

.btn:active {
  scale: 0.97;
}

.btn.big {
  height: 2.75rem;
  padding-inline: 1.125rem;
}

.btn.primary {
  background: var(--ink);
  color: #fff;
}

.btn.primary:hover {
  background: #2c2c31;
}

.btn.ghost:hover,
.btn.quiet:hover {
  background: #ebebee;
}

.btn.quiet {
  background: var(--panel);
}

.btn.outline {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--panel-2);
}

.btn.outline:hover {
  background: var(--panel);
}

.btn.light {
  background: #fff;
  color: var(--ink);
}

.btn.light:hover {
  background: #e4e4e8;
}

.as-ui {
  pointer-events: none;
}

/* Nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(255 255 255 / 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 4rem;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-lg);
  color: var(--muted);
  transition: color 150ms var(--ease-out);
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-cta {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25rem;
  column-gap: 4rem;
  row-gap: 2.25rem;
  align-items: end;
  padding-top: 4.5rem;
  padding-bottom: 4rem;
}

.hero h1 {
  max-width: 10em;
  text-wrap: balance;
}

.hero .lede {
  padding-bottom: 0.375rem;
  text-wrap: pretty;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.plat {
  white-space: nowrap;
}

.plat img {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  margin-right: 0.3em;
  border-radius: 0.24em;
  vertical-align: -0.17em;
}

.hero > * {
  animation: rise 700ms var(--ease-out) both;
}

.hero > :nth-child(2) {
  animation-delay: 80ms;
}

.hero > :nth-child(3) {
  animation-delay: 160ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Stage: the day, playing */

.stage {
  background: var(--panel);
  padding: 2rem 0 4.5rem;
  animation: rise 900ms var(--ease-out) 200ms both;
}

.tabrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.tabs {
  display: flex;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin: -0.25rem;
  padding: 0.25rem;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 2.25rem;
  padding-inline: 0.75rem;
  border-radius: var(--r-lg);
  color: var(--muted);
  transition:
    background-color 200ms var(--ease-out),
    color 200ms var(--ease-out);
}

.tab:hover {
  color: var(--ink);
}

.tab[aria-selected="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--ring);
}

.ring {
  width: 0;
  height: 1rem;
  margin-right: 0;
  opacity: 0;
  transition:
    width 300ms var(--ease-out),
    margin 300ms var(--ease-out),
    opacity 300ms var(--ease-out);
}

.tab[aria-selected="true"] .ring {
  width: 1rem;
  margin-right: 0.5rem;
  opacity: 1;
}

.ring circle {
  fill: none;
  stroke-width: 2.5;
}

.ring .trk {
  stroke: var(--panel-2);
}

.ring .prg {
  stroke: var(--ink);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: calc(100 - var(--p, 0) * 100);
  transform: rotate(-90deg);
  transform-origin: center;
}

.hold {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: 0 0 0 1px var(--ring);
  transition: scale 150ms var(--ease-out);
}

.hold:active {
  scale: 0.94;
}

.hold svg {
  width: 1rem;
  height: 1rem;
  fill: var(--ink);
}

.hold .i-play,
.hold[aria-pressed="true"] .i-pause {
  display: none;
}

.hold[aria-pressed="true"] .i-play {
  display: block;
}

.stage-grid {
  display: grid;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: start;
}

.caps {
  padding-top: 1.25rem;
}

.cap {
  display: none;
}

.cap.on {
  display: grid;
  gap: 1.75rem;
  animation: rise 500ms var(--ease-out) both;
}

.cap h2 {
  text-wrap: balance;
}

.steps {
  display: grid;
  gap: 0.625rem;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  transition: color 300ms var(--ease-out);
}

.steps b {
  display: grid;
  place-items: center;
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px var(--panel-2);
  transition:
    background-color 300ms var(--ease-out),
    color 300ms var(--ease-out),
    box-shadow 300ms var(--ease-out);
}

.steps li.now {
  color: var(--ink);
}

.steps li.now b {
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

/* The app window */

.win {
  position: relative;
  height: 28.5rem;
  background: #fff;
  border-radius: var(--r-xl);
  box-shadow:
    0 0 0 1px var(--ring),
    0 32px 64px -36px rgb(13 13 15 / 0.28);
  overflow: hidden;
}

.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 350ms var(--ease-out),
    visibility 0s 350ms;
}

.scene.on {
  opacity: 1;
  visibility: visible;
  transition:
    opacity 350ms var(--ease-out),
    visibility 0s;
}

.wbar {
  display: flex;
  align-items: center;
  flex: none;
  gap: 0.5rem;
  height: 3.25rem;
  padding-inline: 1.5rem;
}

.wbar .mark {
  width: 1.125rem;
  height: 1.125rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  color: var(--muted);
}

.status b {
  font-weight: inherit;
}

.dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--rise);
  transition: background-color 300ms;
}

.scene[data-busy] .dot {
  background: var(--faint);
  animation: pulse 900ms ease-in-out infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.25;
  }
}

.body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  padding: 0.5rem 1.5rem 1.5rem;
}

/* Things that arrive */

.js .st {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 450ms var(--ease-out),
    transform 450ms var(--ease-out);
}

.js .pill.st {
  transform: scale(0.9);
}

.js .st.on {
  opacity: 1;
  transform: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 1.375rem;
  padding-inline: 0.5rem;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
}

.pill.rise {
  background: color-mix(in oklab, var(--rise) 12%, #fff);
  color: var(--rise);
}

/* Scene: morning */

.fold {
  display: grid;
  grid-template-rows: 1fr;
  transition:
    grid-template-rows 650ms var(--ease-drawer),
    opacity 350ms var(--ease-out);
}

[data-phase="done"] .fold {
  grid-template-rows: 0fr;
  opacity: 0;
}

.reading {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  min-height: 0;
  overflow: hidden;
}

.rd {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.rd img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, top);
  opacity: 0;
  scale: calc(var(--zoom, 1) * 1.08);
  transition:
    opacity 400ms var(--ease-out),
    scale 700ms var(--ease-out),
    filter 500ms var(--ease-out);
}

.rd.on img {
  opacity: 1;
  scale: var(--zoom, 1);
}

.rd b {
  position: absolute;
  left: 0.375rem;
  bottom: 0.375rem;
  background: #fff;
  color: var(--muted);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}

.rd.w b {
  background: color-mix(in oklab, var(--rise) 12%, #fff);
  color: var(--rise);
}

[data-phase="score"] .rd b {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 45ms);
}

[data-phase="score"] .rd:not(.w) img {
  opacity: 0.2;
  filter: grayscale(1);
  transition-delay: calc(var(--i) * 45ms);
}

.thead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.25rem 0 1.25rem;
}

.topics {
  display: grid;
  gap: 1.375rem;
}

.topic {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.covers {
  display: flex;
  gap: 0.375rem;
}

.covers img {
  width: 3.5rem;
  height: 4.625rem;
  border-radius: var(--r-md);
  object-fit: cover;
  object-position: top;
}

.txt {
  display: grid;
  gap: 0.125rem;
  min-width: 0;
}

.tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
}

.tag i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--c);
}

/* Scene: your pick */

.s-pick .body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  column-gap: 2.5rem;
}

.hooks {
  display: grid;
  grid-column: 1;
  margin-inline: -0.75rem;
}

.hook {
  display: grid;
  grid-template-rows: 1fr;
  border-radius: var(--r-lg);
  transition:
    grid-template-rows 550ms var(--ease-drawer),
    opacity 300ms var(--ease-out),
    background-color 300ms var(--ease-out);
}

.hook > div {
  min-height: 0;
  overflow: hidden;
}

.hk {
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
}

.hook .meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.375rem;
}

.js .hook .angle {
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

.js .hook.in .angle {
  opacity: 1;
}

.hook.chosen {
  background: var(--panel);
}

.hook.gone {
  grid-template-rows: 0fr;
  opacity: 0;
}

.ty-off {
  visibility: hidden;
}

.typing .ty-on::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: -0.16em;
  background: var(--ink);
}

.brief {
  display: grid;
  grid-column: 1;
  align-content: start;
  gap: 0.875rem;
  margin-top: 1.5rem;
}

.frame {
  position: relative;
  grid-column: 2;
  grid-row: 1 / 3;
  width: 12.75rem;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 25% 56%;
  scale: 1.9;
  filter: brightness(0.42);
  transition:
    scale 900ms var(--ease-out),
    filter 600ms var(--ease-out);
}

.js .frame:not(.mine) img {
  scale: 1;
  filter: none;
}

.frame .pill {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  background: #fff;
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

.js .frame:not(.mine) .pill {
  opacity: 1;
}

.onscreen {
  position: absolute;
  inset: 13% 0.875rem auto;
  text-align: center;
  text-wrap: balance;
}

.frame .typing .ty-on::after {
  background: #fff;
}

.timer {
  position: absolute;
  inset: 46% 0 auto;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.shots {
  position: absolute;
  inset: auto 0.625rem 0.625rem;
  display: flex;
  gap: 0.1875rem;
  height: 0.25rem;
}

.shots i {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(#fff, #fff) left / 100% 100% no-repeat rgb(255 255 255 / 0.3);
}

.js .frame:not(.cut) .shots i {
  background-size: 0% 100%;
}

.js .frame.cut .shots i {
  animation: shot 1100ms linear both;
}

.js .frame.cut .shots i:nth-child(2) {
  animation-delay: 1100ms;
}

.js .frame.cut .shots i:nth-child(3) {
  animation-delay: 2200ms;
}

@keyframes shot {
  from {
    background-size: 0% 100%;
  }
}

.brief > div {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1rem;
}

.cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--ink);
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.25));
  opacity: 0;
  translate: var(--x, 0) var(--y, 0);
  transition:
    translate 850ms cubic-bezier(0.45, 0, 0.2, 1),
    opacity 250ms var(--ease-out),
    scale 120ms var(--ease-out);
}

.cursor.on {
  opacity: 1;
}

.cursor.press {
  scale: 0.84;
}

/* Scene: before you post */

.s-check .body {
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
}

.clip {
  position: relative;
  flex: none;
  width: 12.75rem;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
}

.js .clip {
  opacity: 0;
  transform: scale(0.96);
  transition:
    opacity 450ms var(--ease-out),
    transform 450ms var(--ease-out);
}

.js .clip.on {
  opacity: 1;
  transform: none;
}

.clip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scan {
  position: absolute;
  inset: 0 0 auto;
  height: 30%;
  border-bottom: 1.5px solid #fff;
  background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 0.4));
  opacity: 0;
  transform: translateY(-100%);
  transition: opacity 300ms;
}

[data-phase="scan"] .scan {
  opacity: 1;
  animation: scan 1.5s linear infinite;
}

@keyframes scan {
  to {
    transform: translateY(340%);
  }
}

.tl {
  position: absolute;
  inset: auto 0.625rem 0.625rem;
  height: 0.25rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.4);
}

.played {
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--t, 1) * 100%);
  border-radius: 999px;
  background: #fff;
}

.flag {
  position: absolute;
  top: -0.1875rem;
  bottom: -0.1875rem;
  left: 38%;
  width: 33%;
  border-radius: 999px;
  background: #ff5b4f;
}

.js .flag.st {
  transform: scaleX(0.4);
}

.checks {
  display: grid;
  flex: 1;
  gap: 1.375rem;
  min-width: 0;
}

.chk {
  display: grid;
  grid-template-columns: 1.25rem minmax(0, 1fr);
  align-items: start;
  gap: 0.875rem;
  transition: color 300ms var(--ease-out);
}

.chk > .t-body {
  display: grid;
  gap: 0.125rem;
}

.chk[data-s="wait"] {
  color: var(--faint);
}

.ic {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1875rem;
  border-radius: 50%;
  background: center / 0.75rem no-repeat;
  box-shadow: inset 0 0 0 1.5px var(--panel-2);
}

.chk[data-s="run"] .ic {
  box-shadow: none;
  border: 1.5px solid var(--panel-2);
  border-top-color: var(--ink);
  animation: spin 700ms linear infinite;
}

.chk[data-s="ok"] .ic {
  background-color: var(--rise);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
  box-shadow: none;
  animation: pop 350ms var(--ease-out);
}

.chk[data-s="bad"] .ic {
  background-color: var(--fall);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 2.8v3.8M6 9.1v.1'/%3E%3C/svg%3E");
  box-shadow: none;
  animation: pop 350ms var(--ease-out);
}

@keyframes spin {
  to {
    rotate: 360deg;
  }
}

@keyframes pop {
  from {
    scale: 0.6;
  }
}

/* Scene: the day after */

.s-verdict .body {
  gap: 1.5rem;
  padding-top: 1rem;
}

.score {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.875rem;
}

.score .num {
  font-variant-numeric: tabular-nums;
}

.score .pill {
  align-self: center;
}

.meter {
  position: relative;
  padding: 1.625rem 0 1.5rem;
}

.track {
  position: relative;
  display: block;
  height: 0.625rem;
  border-radius: 999px;
  background: var(--panel);
}

.fill,
.over {
  position: absolute;
  top: 0;
  bottom: 0;
}

.fill {
  left: 0;
  width: calc(min(var(--p, 3.4), 1) / 4 * 100%);
  border-radius: 999px 0 0 999px;
  background: var(--ink);
}

.over {
  left: 25%;
  width: calc(max(var(--p, 3.4) - 1, 0) / 4 * 100%);
  border-radius: 0 999px 999px 0;
  background: var(--rise);
}

.tick {
  position: absolute;
  left: 25%;
  top: -0.375rem;
  bottom: -0.375rem;
  width: 2px;
  margin-left: -1px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--faint) inset;
}

.usual {
  position: absolute;
  left: 25%;
  top: 0;
  translate: -50% 0;
  white-space: nowrap;
}

.views {
  position: absolute;
  left: max(calc(var(--p, 3.4) / 4 * 100%), 6rem);
  bottom: 0;
  translate: -100% 0;
  white-space: nowrap;
}

.why {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.125rem;
  list-style: disc;
}

.why li::marker {
  color: var(--faint);
}

.next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

/* Sections */

.sec {
  padding-block: 7rem;
}

.sec + .sec {
  padding-top: 2rem;
}

.head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 25rem;
  gap: 1rem 4rem;
  align-items: end;
  margin-bottom: 3rem;
}

.head h2 {
  text-wrap: balance;
}

.head p {
  text-wrap: pretty;
}

.head.center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.panel {
  border-radius: var(--r-2xl);
  background: var(--panel);
}

/* Proven */

.proof {
  display: grid;
  gap: 3rem;
  padding: 3.5rem 3.5rem 3rem;
}

.lanes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4rem;
}

.lane {
  display: grid;
  gap: 0.875rem;
}

.bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 0.3125rem;
  height: 13rem;
}

.bars::after {
  content: "";
  position: absolute;
  inset: auto 0 17%;
  border-top: 1.5px dashed var(--faint);
  opacity: 0;
  transition: opacity 500ms var(--ease-out) 300ms;
}

.lane.on .bars::after {
  opacity: 1;
}

.bar {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 3px 3px 0 0;
  background: var(--panel-2);
  transform: scaleY(0);
  transform-origin: bottom;
  transition:
    transform 700ms var(--ease-out) calc(var(--i) * 28ms),
    height 900ms var(--ease-out),
    background-color 400ms var(--ease-out),
    opacity 500ms var(--ease-out);
}

.lane.on .bar {
  transform: none;
}

.lane.up .bar.w {
  height: calc(var(--top) * 1%);
  background: var(--rise);
}

.proof.found .bar:not(.w) {
  opacity: 0.55;
}

.lab {
  position: absolute;
  left: calc((var(--at) + 0.5) / 14 * 100%);
  bottom: calc(var(--top) * 1% + 0.5rem);
  translate: -50% 0;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 300ms var(--ease-out) 350ms,
    transform 300ms var(--ease-out) 350ms;
}

.lane.up .lab {
  opacity: 1;
  transform: none;
}

.lane-foot {
  display: flex;
  justify-content: space-between;
}

.result {
  justify-self: center;
  width: min(100%, 30rem);
  padding: 1rem 1.25rem 1rem 1rem;
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: 0 0 0 1px var(--ring);
}

/* Week and month */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.duo .panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  aspect-ratio: 5 / 4;
  padding: 2.75rem;
  overflow: hidden;
}

figcaption {
  display: grid;
  gap: 0.125rem;
  padding: 1.25rem 0.25rem 0;
}

.weekn {
  display: flex;
  align-items: baseline;
  gap: 0.875rem;
}

.weekn [data-count] {
  font-variant-numeric: tabular-nums;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.625rem;
  color: var(--muted);
  text-align: center;
}

.day {
  display: grid;
  gap: 0.625rem;
}

.day i {
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  background: #fff center / 38% no-repeat;
  transition:
    background-color 350ms var(--ease-out),
    scale 350ms var(--ease-out);
}

.day.todo i {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--panel-2);
}

.js .day.hit i {
  scale: 0.92;
}

.day.hit i,
.js .day.hit.on i {
  scale: 1;
  background-color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}

.js .day.hit:not(.on) i {
  background-color: #fff;
  background-image: none;
}

.mix {
  display: flex;
  gap: 0.25rem;
}

.seg {
  display: grid;
  gap: 0.625rem;
  flex: 0 0 calc(var(--w) * 1% - 0.1875rem);
  min-width: 0;
  transition:
    flex-basis 900ms var(--ease-out),
    opacity 400ms var(--ease-out);
}

.js .week:not(.mixed) .seg {
  flex-basis: 0%;
  opacity: 0;
}

.seg i {
  height: 0.625rem;
  border-radius: 999px;
  background: var(--ink);
}

.seg:nth-child(2) i {
  background: #77777f;
}

.seg:nth-child(3) i {
  background: #b9b9c1;
}

.seg b {
  white-space: nowrap;
}

.fan {
  position: absolute;
  inset: auto 0 0;
  height: 66%;
}

.card {
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: 25%;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  background: var(--panel-2);
  box-shadow:
    0 0 0 1px var(--ring),
    0 18px 36px -18px rgb(13 13 15 / 0.45);
  overflow: hidden;
  transform-origin: 50% 170%;
  translate: -50% 0;
  transform: rotate(calc(var(--r) * 1deg)) translateY(calc(var(--lift) * 1%));
  transition: transform 1000ms var(--ease-out) calc(var(--d) * 70ms);
}

.card:nth-child(1) { --r: -27; --lift: 0; --d: 4; }
.card:nth-child(2) { --r: -13.5; --lift: -4; --d: 2; z-index: 1; }
.card:nth-child(3) { --r: 0; --lift: -8; --d: 0; z-index: 2; }
.card:nth-child(4) { --r: 13.5; --lift: -4; --d: 2; z-index: 1; }
.card:nth-child(5) { --r: 27; --lift: 0; --d: 4; }

.js .month:not(.fanned) .card {
  transform: rotate(0deg) translateY(70%);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.card b {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  background: #fff;
}

/* Pricing */

.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
  max-width: 56rem;
  margin-inline: auto;
  padding: 3.5rem;
}

.price {
  display: grid;
  gap: 2rem;
}

.incl {
  display: grid;
  gap: 0.875rem;
}

.incl li {
  display: flex;
  gap: 0.75rem;
}

.incl svg,
.qs svg {
  flex: none;
  width: 1rem;
  height: 1rem;
  margin-top: 0.3125rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Questions */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
  gap: 2rem 4rem;
  align-items: start;
}

.faq h2 {
  max-width: 9em;
  text-wrap: balance;
}

.qs {
  display: grid;
  gap: 0.5rem;
}

.qs details {
  border-radius: var(--r-xl);
  background: var(--panel);
}

.qs summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.25rem;
  border-radius: var(--r-xl);
  list-style: none;
  cursor: pointer;
}

.qs summary::-webkit-details-marker {
  display: none;
}

.qs svg {
  transition: rotate 300ms var(--ease-out);
}

.qs details[open] svg {
  rotate: 45deg;
}

.qs details::details-content {
  block-size: 0;
  overflow: hidden;
  transition:
    block-size 350ms var(--ease-out),
    content-visibility 350ms allow-discrete;
}

.qs details[open]::details-content {
  block-size: auto;
}

.qs p {
  max-width: 36rem;
  padding: 0 3.25rem 1.375rem 1.25rem;
  text-wrap: pretty;
}

/* Closing */

.closing-wrap {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.closing {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 2.25rem;
  padding: 7rem 2rem 13rem;
  border-radius: var(--r-2xl);
  background: var(--ink);
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.closing h2 {
  position: relative;
  max-width: 11em;
  text-wrap: balance;
}

.closing .btn {
  position: relative;
}

.skyline {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  gap: 0.375rem;
  height: 11rem;
  padding-inline: 2rem;
}

.skyline i {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 3px 3px 0 0;
  background: rgb(255 255 255 / 0.1);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 900ms var(--ease-out) calc(var(--i) * 14ms);
}

.skyline i.w {
  background: #4ade80;
  transition-delay: calc(700ms + var(--i) * 14ms);
}

.closing.on .skyline i {
  transform: none;
}

/* Footer: the current one */

.foot-in {
  display: grid;
  gap: 4rem;
  padding-block: 6rem;
}

.foot-top {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
}

.foot-brand {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 1rem;
}

.foot-brand p {
  max-width: 20rem;
  text-wrap: pretty;
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.foot-cols nav {
  display: grid;
  align-content: start;
  gap: 1rem;
}

.foot-cols ul {
  display: grid;
  gap: 0.5rem;
}

.foot-cols a {
  color: var(--muted);
  text-underline-offset: 4px;
}

.foot-cols a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.foot-note {
  display: grid;
  gap: 0.5rem;
}

/* Start page */

.start {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 2rem;
  min-height: calc(100dvh - 4rem);
  padding-block: 4rem 8rem;
  text-align: center;
}

.start h1 {
  max-width: 11em;
  text-wrap: balance;
}

.handle {
  display: flex;
  gap: 0.5rem;
  width: min(100%, 28rem);
  padding: 0.375rem;
  border-radius: var(--r-xl);
  background: var(--panel);
}

.handle input {
  flex: 1;
  min-width: 0;
  padding-inline: 0.875rem;
  border: 0;
  background: none;
  color: var(--ink);
  outline: none;
}

.handle input::placeholder {
  color: var(--faint);
}

.handle:focus-within {
  box-shadow: 0 0 0 2px var(--ink);
}

/* Small screens */

@media (max-width: 880px) {
  .wrap {
    padding-inline: 1rem;
  }

  .nav-row {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .hero .lede {
    padding-bottom: 0;
  }

  .stage {
    padding: 1.25rem 0 2rem;
  }

  .tabrow {
    margin-bottom: 1.5rem;
  }

  .stage-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .caps {
    order: 2;
    padding-top: 0;
    min-height: 11rem;
  }

  .cap.on {
    gap: 1.25rem;
  }

  .win {
    height: 28rem;
  }

  .wbar {
    padding-inline: 1rem;
  }

  .body {
    padding: 0.25rem 1rem 1rem;
  }

  .reading {
    gap: 0.375rem;
  }

  .rd b {
    left: 0.1875rem;
    bottom: 0.1875rem;
    padding-inline: 0.25rem;
  }

  .topics {
    gap: 1.125rem;
  }

  .topic {
    gap: 0.75rem;
  }

  .covers img {
    width: 2.75rem;
    height: 3.625rem;
  }

  .result .covers img:nth-child(n + 2) {
    display: none;
  }

  .s-pick .body {
    grid-template-columns: minmax(0, 1fr) 7.5rem;
    column-gap: 1rem;
  }

  .hooks {
    grid-column: 1 / -1;
  }

  .brief {
    grid-row: 2;
    margin-top: 1rem;
  }

  .brief > div {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .frame {
    grid-row: 2;
    width: 7.5rem;
    margin-top: 1rem;
  }

  .js .frame:not(.mine) {
    visibility: hidden;
  }

  .onscreen {
    inset: 8% 0.5rem auto;
  }

  .timer {
    inset-block-start: 60%;
  }

  .s-check .body {
    align-items: flex-start;
    gap: 1rem;
    padding-top: 0.75rem;
  }

  .clip {
    width: 6.5rem;
  }

  .checks {
    gap: 1.125rem;
  }

  .chk {
    gap: 0.625rem;
  }

  .sec {
    padding-block: 4.5rem;
  }

  .sec + .sec {
    padding-top: 1rem;
  }

  .head {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
  }

  .proof {
    gap: 1.5rem;
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .lanes {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .bars {
    height: 6.5rem;
  }

  .duo {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .duo .panel {
    padding: 1.5rem;
  }

  .days {
    gap: 0.375rem;
  }

  .seg b {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .plan {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.75rem 1.5rem;
  }

  .faq {
    grid-template-columns: 1fr;
  }

  .qs p {
    padding-right: 1.25rem;
  }

  .closing-wrap {
    padding-top: 3rem;
  }

  .closing {
    padding: 4.5rem 1.25rem 9.5rem;
  }

  .skyline {
    height: 7.5rem;
    padding-inline: 1rem;
    gap: 0.25rem;
  }

  .skyline i:nth-child(n + 33) {
    display: none;
  }

  .foot-in {
    padding-block: 4rem;
  }

  .foot-top {
    grid-template-columns: 1fr;
  }

  .foot-cols {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

.stage.paused * {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .ring,
  .hold,
  .cursor,
  .scan {
    display: none;
  }
}

/* Type: the five styles. Nothing else on the page sets a font. */

.t-display {
  font: 500 clamp(2.5rem, 1.42rem + 4.6vw, 4.25rem) / 1.02 var(--sans);
  letter-spacing: -0.035em;
}

.t-title {
  font: 500 clamp(1.75rem, 1.4rem + 1.5vw, 2.5rem) / 1.1 var(--sans);
  letter-spacing: -0.025em;
}

.t-body {
  font: 400 1.0625rem / 1.625rem var(--sans);
  letter-spacing: -0.005em;
}

.t-small {
  font: 450 0.875rem / 1.25rem var(--sans);
  letter-spacing: 0;
}

.t-mono {
  font: 500 0.75rem / 1rem var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}
