/* Paintline launch site. Tokens match the app (docs/site/BRIEF.md). */

:root {
  /* light */
  --bg: #fbf8f3;
  --surface: #ffffff;
  --surface-sunken: #f2ede4;
  --border: #e4ddd1;
  --text: #22201c;
  --text-muted: #5f5a52;
  --primary: #6a3fd0;
  --primary-strong: #55309f;
  --on-primary: #ffffff;
  --focus: #2d8cf0;
  --warning: #b54708;
  --warning-bg: #fff1e0;
  --success: #2f7d32;
  --success-bg: #e8f5e6;

  /* paint accents (both schemes) */
  --paint-cherry: #e63946;
  --paint-tangerine: #f77f00;
  --paint-sunshine: #f4b400;
  --paint-lime: #5cb338;
  --paint-teal: #0fa3a3;
  --paint-sky: #2d8cf0;
  --paint-violet: #7b4dd6;
  --paint-bubblegum: #e84a9b;
  --paint-midnight: #2b3a67;

  --font-display: "Fredoka", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --font-body: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --radius: 1.375rem;
  --gap-section: clamp(5rem, 10vw, 9rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow: 0 1px 2px rgb(34 32 28 / 0.06), 0 12px 32px color-mix(in srgb, var(--accent, var(--primary)) 12%, transparent);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17151d;
    --surface: #221f2a;
    --surface-sunken: #1c1a23;
    --border: #37323f;
    --text: #f3efe8;
    --text-muted: #b6aebf;
    --primary: #a98bff;
    --primary-strong: #c3adff;
    --on-primary: #17121f;
    --focus: #7cc0ff;
    --warning: #ffb15c;
    --warning-bg: #3a2614;
    --success: #7fd483;
    --success-bg: #17301b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 32px color-mix(in srgb, var(--accent, var(--primary)) 14%, transparent);
  }
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--primary);
}

a:hover {
  color: var(--primary-strong);
}

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

main {
  overflow-x: clip;
}

.defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.wrap {
  width: min(72rem, 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-top: var(--gap-section);
}

.kicker {
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section__title {
  max-width: 22ch;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 700;
}

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

.dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  min-width: 44px;
  padding: 0.75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms var(--ease-bounce);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn--primary:hover {
  background: var(--primary-strong);
  color: var(--on-primary);
}

.btn--outline {
  border-color: var(--primary);
  background: transparent;
  color: var(--primary);
}

.btn--outline:hover {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary-strong);
}

.btn--small {
  min-height: 44px;
  padding: 0.5rem 1.125rem;
  font-size: 0.9375rem;
}

.btn--white {
  min-height: 56px;
  padding-inline: 2rem;
  background: #ffffff;
  color: #2b3a67;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.25);
}

.btn--white:hover {
  color: #2b3a67;
}

.btn--white:focus-visible {
  outline-color: #ffffff;
}

/* ---------- Logo ---------- */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  color: var(--text);
}

.logo__mark {
  width: 2.5rem;
  height: 2.5rem;
  flex: none;
}

.logo__word {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.mark__blob {
  fill: var(--paint-bubblegum);
}

.mark__face {
  fill: none;
  stroke: #ffffff;
  stroke-width: 3;
  stroke-linecap: round;
}

.mark__cheek {
  fill: var(--paint-sunshine);
}

.mark__line {
  fill: none;
  stroke: var(--paint-violet);
  stroke-width: 3.5;
  stroke-linecap: round;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-nav__links {
  display: none;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.75rem;
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms var(--ease-out);
}

.site-nav__links a:hover {
  color: var(--primary);
}

.site-nav__links a:active {
  transform: scale(0.97);
}

@media (min-width: 768px) {
  .site-nav__links {
    display: flex;
    gap: 0.25rem;
    margin-right: 0.5rem;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(2.5rem, 6vw, 5rem);
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 5fr 6fr;
  }
}

.hero__title {
  margin-bottom: 1.75rem;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 5.25rem);
  font-weight: 700;
  animation: fade-up 600ms var(--ease-out) both;
}

.nowrap {
  white-space: nowrap;
}

.brush {
  position: relative;
  display: inline-block;
}

.brush__stroke {
  position: absolute;
  left: 4%;
  bottom: -0.16em;
  width: 92%;
  height: 0.22em;
  overflow: visible;
}

.brush__stroke path,
.strike__scribble path {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.brush__stroke path {
  stroke: var(--paint-bubblegum);
  animation: draw 700ms var(--ease-out) 600ms both;
}

.hero__sub {
  max-width: 34rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-size: 1.125rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero__reassure {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

@media (max-width: 599px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }
}

/* Design board fan */

.hero__art {
  min-width: 0;
}

.fan-wrap {
  position: relative;
  width: min(100%, 36rem);
  margin-inline: auto;
}

.blob {
  position: absolute;
  z-index: -1;
  filter: blur(60px);
  pointer-events: none;
}

.blob--a {
  top: -10%;
  left: -10%;
  width: 70%;
  fill: var(--paint-bubblegum);
  opacity: 0.18;
}

.blob--b {
  right: -10%;
  bottom: -15%;
  width: 70%;
  fill: var(--paint-sky);
  opacity: 0.14;
}

.fan {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 10 / 7.4;
}

.card {
  --w: 20cqi;
  position: absolute;
  top: 15cqi;
  left: calc(50% - var(--w) / 2);
  width: var(--w);
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow:
    0 2px 4px color-mix(in srgb, var(--accent) 25%, transparent),
    0 18px 40px color-mix(in srgb, var(--accent) 25%, transparent);
  transform-origin: 50% 180%;
  transform: translateX(var(--x)) rotate(var(--r));
  transition: transform 260ms var(--ease-bounce);
  animation: deal 600ms var(--ease-bounce) calc(var(--i) * 70ms + 150ms) backwards;
}

.card--centre {
  transform: translateX(var(--x)) translateY(-8%) rotate(var(--r)) scale(1.14);
}

.card__art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, white), var(--accent));
}

.card__motif {
  font-size: 12cqi;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgb(0 0 0 / 0.25));
}

.card__foot {
  display: grid;
  gap: 0.15rem;
  padding: 2cqi 1.6cqi 2.6cqi;
}

/* Cards right of centre sit under their left neighbour, so their text hugs the visible edge. */
.card--right .card__foot {
  justify-items: end;
  text-align: end;
}

.card--right .card__tier {
  justify-self: end;
}

.card__name {
  overflow: hidden;
  font-family: var(--font-display);
  /* Small enough on a phone-sized fan that "Butterfly" fits on one line. */
  font-size: clamp(0.625rem, 3.1cqi, 1.05rem);
  font-weight: 700;
  line-height: 1.1;
  white-space: normal;
  overflow-wrap: anywhere;
}

.card__tier {
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--surface-sunken);
  color: var(--text-muted);
  font-size: clamp(0.5625rem, 2.5cqi, 0.8125rem);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    z-index: 2;
    transform: translateX(var(--x)) translateY(-8px) rotate(var(--rh));
  }

  .card--centre:hover {
    transform: translateX(var(--x)) translateY(calc(-8% - 8px)) rotate(var(--rh)) scale(1.14);
  }
}

.chip {
  position: absolute;
  z-index: 3;
  border-radius: 1rem;
  box-shadow: 0 2px 4px rgb(0 0 0 / 0.08), 0 14px 30px rgb(0 0 0 / 0.14);
  animation: fade-up 500ms var(--ease-out) 700ms both;
}

.chip--fits {
  top: 2%;
  left: 2%;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 800;
}

.chip--now {
  right: 0;
  bottom: 0;
  display: grid;
  gap: 0.1rem;
  min-width: 11.5rem;
  padding: 0.6rem 0.9rem 0.65rem;
  border-top: 6px solid var(--paint-sky);
  background: var(--surface);
  color: var(--text);
}

.chip__label {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chip__timer {
  justify-self: start;
  padding: 0 0.35rem;
  margin-left: -0.35rem;
  border-radius: 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.chip--now.is-over .chip__timer {
  background: var(--warning-bg);
  color: var(--warning);
}

.chip--now.is-over .chip__label {
  color: var(--warning);
}

@media (max-width: 480px) {
  .chip--fits {
    font-size: 0.8125rem;
  }

  .chip--now {
    min-width: 0;
    padding: 0.45rem 0.7rem 0.5rem;
  }

  .chip__label {
    font-size: 0.75rem;
  }

  .chip__timer {
    font-size: 1.375rem;
  }
}

/* ---------- Problem ---------- */

.problem__text {
  max-width: 26ch;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  text-align: center;
}

.strike {
  position: relative;
  display: inline-block;
  color: var(--text-muted);
}

.strike__scribble {
  position: absolute;
  top: 30%;
  left: -2%;
  width: 104%;
  height: 0.5em;
  overflow: visible;
}

.strike__scribble path {
  stroke: var(--paint-cherry);
  stroke-width: 4;
  transition: stroke-dashoffset 900ms var(--ease-out) 200ms;
}

html.js .reveal-strike:not(.is-visible) .strike__scribble path {
  stroke-dashoffset: 1;
}

/* ---------- Steps ---------- */

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

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid var(--border);
  border-top: 6px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step__mock {
  display: grid;
  gap: 0.6rem;
  min-height: 9.5rem;
  margin-bottom: 1.25rem;
  padding: 0.9rem;
  border-radius: 1rem;
  background: var(--surface-sunken);
  align-content: center;
}

.step__num {
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.step__title {
  margin: 0.5rem 0 0.5rem;
  font-size: 1.375rem;
  font-weight: 600;
}

.step p {
  color: var(--text-muted);
}

.chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pill-chip {
  position: relative;
  z-index: 1;
  padding: 0.2rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.pill-chip.is-on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}

/* Tier chips: All and Quick share a width so the highlight can slide between them. */
.chips--tier .pill-chip:nth-child(-n + 2) {
  width: 4rem;
  text-align: center;
}

.chips--tier .pill-chip:nth-child(2) {
  border-color: transparent;
  background: transparent;
  color: var(--on-primary);
}

.chips__slider {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 4rem;
  height: calc(0.8125rem * 1.4 + 0.4rem + 2px);
  border-radius: 999px;
  background: var(--primary);
  transform: translateX(calc(4rem + 0.35rem));
  transition: transform 300ms var(--ease-out) 500ms;
}

html.js .step:not(.is-visible) .chips__slider {
  transform: translateX(0);
}

html.js .step:not(.is-visible) .chips--tier .pill-chip:nth-child(1) {
  border-color: transparent;
  background: transparent;
  color: var(--on-primary);
}

html.js .step:not(.is-visible) .chips--tier .pill-chip:nth-child(2) {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.mini-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mini-tile {
  display: grid;
  overflow: hidden;
  border-radius: 0.75rem;
  background: var(--surface);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent) 22%, transparent);
}

.mini-tile span {
  display: grid;
  place-items: center;
  height: 2.75rem;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, white), var(--accent));
  font-size: 1.5rem;
}

.mini-tile b {
  overflow: hidden;
  padding: 0.2rem 0.5rem 0.3rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet {
  display: grid;
  gap: 0.45rem;
  padding: 0.85rem;
  border-radius: 0.85rem;
  background: var(--surface);
}

.sheet__label {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.sheet__field {
  padding: 0.35rem 0.65rem;
  border: 2px solid var(--focus);
  border-radius: 0.6rem;
  font-weight: 600;
}

.sheet__btn {
  padding: 0.4rem;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.875rem;
  font-weight: 800;
  text-align: center;
}

.sheet__ok {
  padding: 0.25rem 0.6rem;
  border-radius: 0.5rem;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.8125rem;
  font-weight: 800;
}

.counter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.counter div {
  padding: 0.5rem 0.65rem;
  border-radius: 0.75rem;
  background: var(--surface);
}

.counter dt {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.counter dd {
  font-size: 1.375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

/* ---------- Features bento ---------- */

.bento {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
  }

  .tile {
    grid-column: span 2;
  }

  .tile--wide {
    grid-column: span 4;
    grid-row: span 2;
  }

  .tile:nth-child(4),
  .tile:nth-child(5) {
    grid-column: span 3;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.tile__title {
  font-size: 1.375rem;
  font-weight: 600;
}

.tile > p {
  color: var(--text-muted);
}

.tile > div {
  margin-top: auto;
  padding-top: 1rem;
}

.tile--wide > div {
  margin-top: 0.5rem;
}

.fits-pill,
.saved-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 0.875rem;
  font-weight: 800;
}

.queue__list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.queue__list li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 0.75rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--bg);
  transition:
    opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out);
  transition-delay: calc(var(--n) * 90ms + 250ms);
}

.queue__motif {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 45%, white), var(--accent));
  font-size: 1.1rem;
}

.queue__list li > span:nth-child(3) {
  overflow: hidden;
  color: var(--text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue__wait {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.past-tag {
  grid-column: 2 / -1;
  justify-self: start;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  background: var(--warning-bg);
  color: var(--warning);
  font-size: 0.8125rem;
  font-weight: 800;
  transition:
    opacity 300ms var(--ease-out),
    transform 400ms var(--ease-bounce);
  transition-delay: 900ms;
}

@media (min-width: 600px) {
  .queue__list li.is-past {
    grid-template-columns: 2.25rem minmax(0, auto) minmax(0, 1fr) auto auto;
  }

  .past-tag {
    grid-column: auto;
  }
}

html.js .tile--wide:not(.is-visible) .queue__list li {
  opacity: 0;
  transform: translateX(-8px);
}

html.js .tile--wide:not(.is-visible) .past-tag {
  opacity: 0;
  transform: scale(0.6);
}

.seg {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: var(--surface-sunken);
}

.seg span {
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 800;
}

.seg .is-on {
  background: var(--primary);
  color: var(--on-primary);
}

.price__sum {
  margin-top: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.tile > div.paper {
  position: relative;
  display: grid;
  gap: 0.2rem;
  width: min(100%, 15rem);
  margin: auto auto 0;
  padding: 1rem 1.1rem;
  border: 1px solid #e4ddd1;
  border-radius: 0.35rem;
  background: #ffffff;
  color: #22201c;
  box-shadow: 0 10px 24px rgb(0 0 0 / 0.12);
  font-size: 0.8125rem;
  transform: rotate(1.5deg);
}

.paper__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  /* Teal deepened so white text meets 4.5:1. */
  background: color-mix(in srgb, var(--paint-teal) 68%, black);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
}

.paper__title {
  padding-right: 3rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
}

.paper__row {
  display: flex;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}

.paper__small {
  color: #5f5a52;
}

.paper__top {
  padding-left: 1.1rem;
  list-style: decimal;
  color: #5f5a52;
}

.paper__total {
  margin-top: 0.2rem;
  padding-top: 0.3rem;
  border-top: 1px solid #e4ddd1;
  font-size: 0.9375rem;
}

.offline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.offline__wifi {
  width: 3rem;
  height: 3rem;
  fill: var(--text-muted);
  stroke: var(--text-muted);
  stroke-width: 3.5;
  stroke-linecap: round;
}

.offline__wifi path {
  fill: none;
}

.offline__wifi circle {
  stroke: none;
}

.swatches {
  display: flex;
  gap: 0.75rem;
}

.swatches span {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
}

.swatches .is-on {
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 6px var(--text);
}

/* ---------- Try it ---------- */

.try__text {
  max-width: 44rem;
  margin-top: -1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  color: var(--text-muted);
}

.device-wrap {
  position: relative;
  isolation: isolate;
}

.blob--c {
  top: 50%;
  left: 50%;
  width: min(60rem, 120%);
  fill: var(--paint-violet);
  opacity: 0.14;
  transform: translate(-50%, -50%);
}

.device {
  position: relative;
  width: min(100%, 60rem);
  aspect-ratio: 4 / 3;
  margin-inline: auto;
  padding: 14px;
  border-radius: 2.25rem;
  background: #1d1b22;
  box-shadow:
    0 2px 4px rgb(0 0 0 / 0.12),
    0 24px 48px rgb(0 0 0 / 0.18),
    0 60px 120px color-mix(in srgb, var(--paint-violet) 20%, transparent);
}

.device__cam {
  position: absolute;
  top: 4px;
  left: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: #3a3742;
}

.device iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: calc(2.25rem - 14px);
  background: var(--bg);
}

@media (max-width: 699px) {
  .device {
    width: min(100%, 22rem);
    aspect-ratio: 9 / 17;
    padding: 10px;
  }

  .device__cam {
    top: 2px;
  }

  .device iframe {
    border-radius: calc(2.25rem - 10px);
  }
}

.try__after {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
  text-align: center;
}

/* ---------- Closing band ---------- */

.closing {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: var(--gap-section);
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background: var(--paint-midnight);
  color: #ffffff;
  text-align: center;
}

.closing__inner {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

.closing__title {
  max-width: 18ch;
  font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem);
  font-weight: 700;
}

.closing__inner > p {
  max-width: 36rem;
  font-size: 1.125rem;
}

.closing .btn--white {
  margin-top: 0.5rem;
}

.closing__small {
  font-size: 0.9375rem;
}

.drift {
  position: absolute;
  z-index: -1;
  width: clamp(16rem, 40vw, 30rem);
  opacity: 0.35;
  filter: blur(60px);
  animation: drift 40s ease-in-out infinite alternate;
  pointer-events: none;
}

.drift--a {
  top: -30%;
  left: -8%;
  fill: var(--paint-bubblegum);
}

.drift--b {
  top: 20%;
  right: -10%;
  fill: var(--paint-sunshine);
  animation-delay: -13s;
}

.drift--c {
  bottom: -40%;
  left: 30%;
  fill: var(--paint-teal);
  animation-delay: -26s;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 1.5rem;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.site-footer__mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.site-footer__links {
  display: flex;
  gap: 0.5rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 0.6rem;
  border-radius: 0.5rem;
  font-weight: 700;
  transition: transform 160ms var(--ease-out);
}

.site-footer__links a:active {
  transform: scale(0.97);
}

/* ---------- Reveals (hidden only once main.js has marked the page) ---------- */

.reveal {
  transition:
    opacity 600ms var(--ease-out),
    transform 600ms var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

html.js .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(16px);
}

html.js .device.reveal:not(.is-visible) {
  transform: scale(0.96);
}

/* ---------- Keyframes ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes draw {
  from {
    stroke-dashoffset: 1;
  }
}

@keyframes deal {
  from {
    opacity: 0;
    transform: translateY(12%) rotate(0deg) scale(0.9);
  }
}

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(6%, -5%) scale(1.06);
  }
}

/* ---------- Reduced motion: everything in its final state ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html.js .reveal:not(.is-visible),
  html.js .device.reveal:not(.is-visible),
  html.js .tile--wide:not(.is-visible) .queue__list li,
  html.js .tile--wide:not(.is-visible) .past-tag {
    opacity: 1;
    transform: none;
  }

  html.js .reveal-strike:not(.is-visible) .strike__scribble path {
    stroke-dashoffset: 0;
  }

  html.js .step:not(.is-visible) .chips__slider {
    transform: translateX(calc(4rem + 0.35rem));
  }

  html.js .step:not(.is-visible) .chips--tier .pill-chip:nth-child(1) {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
  }

  html.js .step:not(.is-visible) .chips--tier .pill-chip:nth-child(2) {
    border-color: transparent;
    background: transparent;
    color: var(--on-primary);
  }

  .btn:hover {
    transform: none;
  }
}
