/*
 * DISCO landing page. Measurements follow Bijan's mockup (2880 x 1800,
 * i.e. 1440 x 900 at 2x): everything is sized in vw so the page keeps the
 * mockup's proportions on any wide screen, with limits for very small and
 * very large ones.
 *
 * Font: Nunito (SIL Open Font License, see fonts/Nunito-OFL.txt), hosted
 * here rather than loaded from Google, so visitors aren't tracked.
 */

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin-800-normal.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --ink: #0b0b0b;
  --ink-soft: #3d3d3d;
  --bg: #ffffff;
  /* The sparkle in the logo. */
  --brand-blue: #1aa3ff;
  --font: 'Nunito', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- First screen ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.topbar {
  position: absolute;
  top: clamp(16px, 2.2vw, 32px);
  right: clamp(16px, 2.8vw, 40px);
  z-index: 3;
}

.login {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 24px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 800;
  transition: background-color 160ms ease, color 160ms ease;
}

.login:hover {
  background: var(--ink);
  color: var(--bg);
}

/* In the mockup the wordmark's top sits at 21.6% of the screen height. */
.center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 21.6vh;
  margin-top: round(21.6vh, 4px);
  padding: 0 16px;
  text-align: center;
}

.wordmark {
  margin: 0;
  line-height: 0;
}

.wordmark img,
.wordmark-svg {
  width: clamp(240px, 38.9vw, 760px);
  height: auto;
}

.wordmark-svg {
  display: inline-block;
  overflow: visible;
}

/*
 * The sparkle on the i. When the page opens it spins in, overshoots and
 * settles, with a ring of light bursting out behind it; after that it
 * twinkles now and then (a quarter turn: a four-point star looks the same,
 * so it lands where it started). Still for anyone who asks for less motion.
 */
.spark-star,
.spark-burst {
  transform-box: fill-box;
  transform-origin: center;
}

.spark-burst {
  fill: none;
  stroke: var(--brand-blue);
  stroke-width: 3;
  opacity: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .spark-star {
    animation:
      spark-in 900ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 250ms both,
      spark-twinkle 7s ease-in-out 3s infinite;
  }

  .spark-burst {
    animation: spark-burst 900ms ease-out 650ms both;
  }
}

@keyframes spark-in {
  0% {
    opacity: 0;
    transform: scale(0) rotate(-135deg);
  }

  60% {
    opacity: 1;
    transform: scale(1.3) rotate(12deg);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Starts invisible, so nothing shows while it waits for the sparkle to land. */
@keyframes spark-burst {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }

  12% {
    opacity: 0.6;
  }

  100% {
    opacity: 0;
    transform: scale(2.4);
  }
}

/* Ends a quarter turn on: the star is square, so the restart at 0deg doesn't show. */
@keyframes spark-twinkle {
  0%, 84% {
    transform: scale(1) rotate(0deg);
  }

  90% {
    transform: scale(1.22) rotate(45deg);
  }

  96% {
    transform: scale(0.96) rotate(84deg);
  }

  100% {
    transform: scale(1) rotate(90deg);
  }
}

.tagline {
  margin: clamp(16px, 2.2vw, 40px) 0 0;
  margin: round(clamp(16px, 2.2vw, 40px), 4px) 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.87vw, 34px);
  font-weight: 500;
  line-height: 1.2;
}

.try {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: clamp(150px, 11.25vw, 210px);
  min-height: clamp(48px, 3.6vw, 66px);
  margin-top: clamp(20px, 2.5vw, 48px);
  margin-top: round(clamp(20px, 2.5vw, 48px), 4px);
  padding: 0 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 800;
  transition: transform 160ms ease;
}

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

/* The hero's second way in, for anyone not on Chrome or on a phone. */
.try-alt {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

/*
 * The coin piles bleed off the bottom corners. Both are cut from one
 * 2880 x 1824 picture with the white made transparent, so on a wide screen
 * they recreate it exactly, and on narrow ones they can grow and overlap.
 */
.coins {
  position: absolute;
  bottom: 0;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.coins-left {
  left: 0;
  width: 49.55vw;
}

.coins-right {
  right: 0;
  width: 47.05vw;
}

/* Screens wider than the picture (16:10): size the piles by height instead, so they stay below the button. */
@media (min-aspect-ratio: 16/10) and (min-width: 721px) {
  .coins-left {
    width: 79.3vh;
  }

  .coins-right {
    width: 75.3vh;
  }
}

/* Narrow screens: keep the coins big enough to read, below the button. */
@media (max-width: 720px) {
  /* On tall phones a full-height first screen leaves a gap; cap it so the next section peeks in. */
  .hero {
    min-height: min(100svh, 720px);
  }

  .center {
    margin-top: min(17vh, 120px);
    margin-top: round(min(17vh, 120px), 4px);
  }

  .wordmark img,
  .wordmark-svg {
    width: 72vw;
  }

  /* Bigger piles that run off the sides and overlap in the middle, so the screen feels as full as on desktop. */
  .coins-left {
    left: -20vw;
    width: 92vw;
  }

  .coins-right {
    right: -19vw;
    width: 86vw;
  }
}

/* Short, wide screens: pull the centre up so the coins don't crowd the button. */
@media (max-aspect-ratio: 16/11) and (min-width: 721px) {
  .center {
    margin-top: 18vh;
    margin-top: round(18vh, 4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

/* ---------- Simple inner pages ---------- */

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px 16px;
  text-align: center;
}

.page .wordmark img {
  width: clamp(160px, 18vw, 260px);
}

.page h2 {
  margin: 8px 0 0;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
}

.page p {
  max-width: 34rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
}

.back {
  margin-top: 8px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ======================================================================
 * Below the hero.
 * Black and white, the blue sparkle as the one accent, and the panel's
 * own risk colours wherever the product itself is shown. One spacing
 * scale (multiples of 4px), one type scale, generous white space.
 * ====================================================================== */

:root {
  --surface: #f6f6f4;
  --line: #e7e7e4;
  --muted: #6b6b6b;
  --space-section: clamp(96px, 10vw, 160px);
  --radius-card: 28px;

  /* The side panel's colours, used only where the product is shown. */
  --danger: #a8201a;
  --danger-bg: #fdecea;
  --caution: #7a4f00;
  --caution-bg: #fff4d6;
  --pass: #8fcf3c;

  /* Lets the FAQ answers open smoothly where supported. */
  interpolate-size: allow-keywords;
}

html {
  scroll-behavior: smooth;
}

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 800;
}

.skip:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
  padding: 0 round(clamp(20px, 4vw, 48px), 4px);
}

.section {
  padding: var(--space-section) 0;
  padding: round(var(--space-section), 4px) 0;
}

.section-tint {
  background: var(--surface);
}

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* The logo's sparkle, used as the page's one accent. */
.spark {
  flex: none;
  display: inline-block;
  width: 12px;
  height: 12px;
  background: var(--brand-blue);
  -webkit-mask: url('/img/spark.svg') center / contain no-repeat;
  mask: url('/img/spark.svg') center / contain no-repeat;
}

.spark-lg {
  width: 0.8em;
  height: 0.8em;
}

.title {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(36px, 4.6vw, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.lead {
  max-width: 36rem;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.5vw, 21px);
  line-height: 1.5;
}

h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.section p {
  line-height: 1.5;
}

.section-head {
  margin-bottom: clamp(48px, 6vw, 80px);
  margin-bottom: round(clamp(48px, 6vw, 80px), 4px);
}

.section-head-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- Works alongside ---------- */

.platforms {
  padding: 40px clamp(20px, 4vw, 40px) 32px;
  padding: 40px round(clamp(20px, 4vw, 40px), 4px) 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.platforms-title {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px clamp(32px, 5vw, 64px);
  gap: 16px round(clamp(32px, 5vw, 64px), 4px);
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.platform-list li {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
}

.platform-list img {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 800;
}

.facts li + li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 4px;
  background: var(--brand-blue);
  -webkit-mask: url('/img/spark.svg') center / contain no-repeat;
  mask: url('/img/spark.svg') center / contain no-repeat;
}

/* ---------- How it works: steps beside a live demo ---------- */

.story-section {
  padding-top: var(--space-section);
  padding-top: round(var(--space-section), 4px);
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  gap: round(clamp(40px, 6vw, 96px), 4px);
  align-items: start;
  padding-bottom: var(--space-section);
  padding-bottom: round(var(--space-section), 4px);
}

.story-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.story-step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 72vh;
  padding: 24px 0;
}

.story-step:first-child {
  justify-content: flex-start;
  min-height: 60vh;
  padding-top: 40px;
}

.story-num {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.story-num::after {
  content: "";
  width: 40px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-blue);
}

.story-step h3 {
  font-size: clamp(24px, 2.2vw, 32px);
  letter-spacing: -0.015em;
}

.story-step p {
  max-width: 28rem;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.55;
}

.story-stage {
  position: sticky;
  top: max(24px, calc(50vh - 344px));
  margin: 0;
}

/* A browser window: the trading site on the left, DISCO docked on the right. */
.mock {
  display: flex;
  flex-direction: column;
  height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.04),
    0 40px 80px -24px rgba(0, 0, 0, 0.22);
  font-size: 13px;
  text-align: left;
}

.mock-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--line);
  background: #fafaf9;
}

.mock-dots {
  display: flex;
  gap: 8px;
}

.mock-dots i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #e2e2de;
}

.mock-url {
  flex: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  height: 28px;
  padding: 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #efefec;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.mock-ext {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
}

.mock-body {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 288px;
  min-height: 0;
}

.mock-site {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border-right: 1px solid var(--line);
}

.ms-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ms-avatar,
.mp-avatar {
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.ms-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}

.ms-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
}

.ms-name span {
  color: var(--ink-soft);
}

.ms-name small,
.ms-price small {
  color: var(--ink-soft);
  font-size: 12px;
}

.ms-price {
  display: flex;
  flex-direction: column;
  margin-left: auto;
  font-size: 15px;
  text-align: right;
}

.ms-tabs {
  display: flex;
  gap: 4px;
}

.ms-tabs span {
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.ms-tabs .is-on {
  background: var(--ink);
  color: var(--bg);
}

.mock-chart {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 160px;
  max-height: 260px;
}

.mock-wick {
  fill: none;
  stroke: #b9b9b4;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.mock-up {
  fill: var(--bg);
  stroke: #8f8f8a;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.mock-down {
  fill: var(--ink);
}

.ms-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ms-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px;
  white-space: nowrap;
  border-radius: 12px;
  background: var(--surface);
  font-size: 15px;
}

.ms-stats small {
  color: var(--ink-soft);
  font-size: 11px;
}

.ms-trades {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.ms-trades i {
  height: 8px;
  border-radius: 999px;
  background: #efefec;
}

.ms-trades i:nth-child(2) {
  width: 84%;
}

.ms-trades i:nth-child(3) {
  width: 92%;
}

.ms-trades i:nth-child(4) {
  width: 64%;
}

/* DISCO's panel, drawn in HTML from the extension's own styles. */
.mock-panel {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: var(--bg);
}

.mock-panel::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 56px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.mp-scroll {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 288px;
  padding: 16px;
}

.mp-logo {
  display: block;
  width: 72px;
  height: auto;
}

.mp-token {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 17px;
}

.mp-token-text {
  display: flex;
  flex-direction: column;
}

.mp-token-text strong {
  font-size: 18px;
  line-height: 1.2;
}

.mp-token-text small,
.mp-eyebrow,
.mp-group,
.mp-sub {
  color: var(--ink-soft);
}

.mp-token-text small {
  font-size: 12px;
}

.mp-verdict {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 16px;
  background: var(--danger-bg);
  color: var(--danger);
}

.mp-eyebrow,
.mp-group,
.mp-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mp-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
}

.mp-sentence {
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.segs {
  display: flex;
  gap: 4px;
  height: 6px;
  margin-top: 8px;
}

.segs i {
  flex: 1 1 0;
  border-radius: 999px;
}

.t-danger {
  background: var(--danger);
}

.t-caution {
  background: #d99a00;
}

.t-pass {
  background: var(--pass);
}

.t-ink {
  background: var(--ink);
}

.t-line {
  background: #d9d9d5;
}

.mp-tally-words {
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
}

.mp-tally-words .is-danger {
  color: var(--danger);
}

.mp-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.mp-group b {
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  letter-spacing: 0;
}

.mp-finding {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--danger-bg);
}

.mp-finding-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.mp-finding-head svg {
  color: var(--danger);
}

.mp-finding-head strong {
  font-size: 13px;
  line-height: 1.3;
}

.mp-finding-head b {
  font-size: 12px;
  white-space: nowrap;
}

.mp-detail {
  font-size: 12px;
  line-height: 1.45;
}

.mp-learn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 -4px;
  padding: 4px;
  border-radius: 12px;
}

.mp-sub {
  margin-top: 4px;
}

.mp-data {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--bg);
}

.mp-data > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 8px 0;
}

.mp-data > span + span {
  border-top: 1px solid var(--line);
}

.mp-data small {
  grid-column: 1 / -1;
  color: var(--ink-soft);
  font-size: 11px;
}

.mp-data b {
  font-size: 13px;
}

.mp-data em {
  align-self: end;
  color: var(--ink-soft);
  font-size: 11px;
  font-style: normal;
}

.mp-fine {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.mp-fine > span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
}

.mp-fine > span + span {
  border-top: 1px solid var(--line);
}

.mp-fine svg {
  flex: none;
  color: #6fae22;
}

.mp-fine b {
  margin-left: auto;
}

.mock-caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/*
 * The story in motion: as each step reaches the middle of the screen, the
 * part of the demo it describes lights up. Step 2 slides the panel in and
 * step 5 scrolls it down to the data. Only where the browser can tie
 * animation to scrolling, on wide screens, and when motion is welcome.
 */
@supports (animation-timeline: view()) and (timeline-scope: --a) {
  @media (min-width: 960px) and (prefers-reduced-motion: no-preference) {
    .story {
      timeline-scope: --s1, --s2, --s3, --s4, --s5;
    }

    .story-step:nth-child(1) { view-timeline-name: --s1; }
    .story-step:nth-child(2) { view-timeline-name: --s2; }
    .story-step:nth-child(3) { view-timeline-name: --s3; }
    .story-step:nth-child(4) { view-timeline-name: --s4; }
    .story-step:nth-child(5) { view-timeline-name: --s5; }

    .story-step {
      animation: step-focus linear both;
      animation-timeline: view();
      animation-range: cover 20% cover 80%;
    }

    .story-step:first-child {
      animation-name: step-focus-first;
    }

    .mock-url.hl-site,
    .mock-ext.hl-open,
    .mp-verdict.hl-verdict,
    .mp-finding.hl-finding,
    .mp-learn.hl-learn {
      animation: ring linear both;
    }

    .mock-site.hl-site {
      animation: ring-inset linear both;
    }

    /* After the shorthand above (which resets the timeline), and as specific. */
    .story .hl-site { animation-timeline: --s1; animation-range: cover 0% cover 75%; }
    .story .hl-open { animation-timeline: --s2; animation-range: cover 25% cover 75%; }
    .story .hl-verdict { animation-timeline: --s3; animation-range: cover 25% cover 75%; }
    .story .hl-finding { animation-timeline: --s4; animation-range: cover 25% cover 75%; }
    .story .hl-learn { animation-timeline: --s5; animation-range: cover 25% cover 75%; }

    .mock-body {
      animation: panel-open linear both;
      animation-timeline: --s2;
      animation-range: cover 30% cover 50%;
    }

    .mp-scroll {
      animation: panel-scroll linear both;
      animation-timeline: --s5;
      animation-range: cover 15% cover 45%;
    }
  }
}

@keyframes step-focus {
  0%, 100% { opacity: 0.25; }
  30%, 70% { opacity: 1; }
}

/* The first step starts lit: it's what you see when the section arrives. */
@keyframes step-focus-first {
  0%, 70% { opacity: 1; }
  100% { opacity: 0.25; }
}

@keyframes ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(26, 163, 255, 0); }
  20%, 80% { box-shadow: 0 0 0 3px rgba(26, 163, 255, 1), 0 0 0 8px rgba(26, 163, 255, 0.18); }
}

@keyframes ring-inset {
  0%, 100% { box-shadow: inset 0 0 0 0 rgba(26, 163, 255, 0); }
  20%, 80% { box-shadow: inset 0 0 0 3px rgba(26, 163, 255, 1); }
}

@keyframes panel-open {
  from { grid-template-columns: minmax(0, 1fr) 0px; }
  to { grid-template-columns: minmax(0, 1fr) 288px; }
}

@keyframes panel-scroll {
  to { transform: translateY(-216px); }
}

/* ---------- The three answers ---------- */

.answers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.answer {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 32px;
  border-radius: var(--radius-card);
}

/* "No red flags" stays black and white, as in the panel: it isn't a green light. */
.answer-clear {
  border: 1px solid var(--line);
  background: var(--bg);
}

.answer-watch {
  background: var(--caution-bg);
}

.answer-flag {
  background: var(--danger-bg);
}

.answer-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.answer-watch .answer-label {
  color: var(--caution);
}

.answer-flag .answer-label {
  color: var(--danger);
}

.answer-sentence {
  min-height: 3em;
  margin: 0;
  font-size: clamp(18px, 1.5vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}

.answer .segs {
  height: 8px;
  margin-top: 0;
}

.answer-note {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- The traps ---------- */

.traps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trap-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface);
}

.trap-text {
  padding: 40px 40px 0;
}

.trap-text h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.015em;
}

.trap-text p {
  max-width: 30rem;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.trap-text .trap-why {
  margin-top: 8px;
  color: var(--ink);
  font-weight: 800;
}

/* The illustrations are on white: multiply melts the white into the card. */
.trap-card img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  mix-blend-mode: multiply;
  transform-origin: 0 100%;
  transition: transform 400ms ease;
}

.trap-card:hover img {
  transform: scale(1.03);
}

.more-checks {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  gap: round(clamp(32px, 5vw, 80px), 4px);
  margin-top: 20px;
  padding: clamp(32px, 4vw, 56px);
  padding: round(clamp(32px, 4vw, 56px), 4px);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.more-head h3 {
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.015em;
}

.more-head p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.segs-big {
  height: 10px;
  max-width: 320px;
  margin-top: 28px;
}

.more-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.more-list li {
  position: relative;
  padding: 16px 0 16px 28px;
  border-top: 1px solid var(--line);
}

.more-list li:nth-child(-n + 2) {
  border-top: 0;
  padding-top: 0;
}

.more-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 21px;
  width: 14px;
  height: 14px;
  background: var(--brand-blue);
  -webkit-mask: url('/img/spark.svg') center / contain no-repeat;
  mask: url('/img/spark.svg') center / contain no-repeat;
}

.more-list li:nth-child(-n + 2)::before {
  top: 5px;
}

.more-list h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.more-list p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Beyond the panel ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tile {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 360px;
  padding: 40px;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--bg);
}

.tile-wide {
  grid-column: span 7;
}

/* The score tile puts its words and timeline side by side on wide screens. */
@media (min-width: 1081px) {
  .tile-score {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: center;
    gap: 40px;
  }

  .tile-score .tile-art {
    margin-top: 0;
  }
}

.tile-text h3 {
  font-size: clamp(22px, 2vw, 28px);
  letter-spacing: -0.015em;
}

.tile-text p {
  max-width: 30rem;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.tile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 8px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.tile-link:hover {
  text-decoration-color: var(--brand-blue);
}

.tile-art {
  margin-top: auto;
}

.art-search {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.as-field {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 8px 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.as-field span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.as-field b {
  display: inline-flex;
  align-items: center;
  height: 40px;
  margin-left: auto;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
}

.as-result,
.art-copycat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--caution-bg);
  color: var(--caution);
}

.art-copycat {
  border: 1px solid var(--caution);
}

.as-result svg,
.art-copycat svg {
  flex: none;
  margin-top: 2px;
}

.as-result span,
.art-copycat span {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.as-result strong,
.art-copycat strong {
  color: var(--caution);
  font-size: 16px;
}

.art-moving {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.am-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
}

.am-row + .am-row {
  border-top: 1px solid var(--line);
}

.am-avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e7e7e4;
}

.am-name {
  width: 36%;
  height: 10px;
  border-radius: 999px;
  background: #e7e7e4;
}

.am-name-b {
  width: 26%;
}

.am-name-c {
  width: 44%;
}

.am-pill {
  margin-left: auto;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.am-flag {
  background: var(--danger-bg);
  color: var(--danger);
}

.am-watch {
  background: var(--caution-bg);
  color: var(--caution);
}

.am-clear {
  border: 1px solid var(--line);
}

.art-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 24px 0 8px;
}

.at-line {
  position: absolute;
  top: 34px;
  left: 12px;
  right: 12px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
}

.at-stop {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 800;
}

.at-stop:last-of-type {
  align-items: flex-end;
  text-align: right;
}

.at-stop i {
  width: 22px;
  height: 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
}

.at-end i {
  background: var(--ink);
}

/* ---------- Trust: the dark section ---------- */

.trust {
  background: var(--ink);
  color: var(--bg);
}

.trust .eyebrow {
  color: #a3a39f;
}

.principles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.principles h3 {
  margin-top: 24px;
}

.principles p {
  margin: 8px 0 0;
  color: #b4b4b0;
  font-size: 16px;
}

.pledge {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 24ch;
  margin: clamp(64px, 8vw, 120px) 0 0;
  margin: round(clamp(64px, 8vw, 120px), 4px) 0 0;
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---------- Questions ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 96px);
  gap: round(clamp(40px, 6vw, 96px), 4px);
  align-items: start;
}

.faq-head {
  position: sticky;
  top: 48px;
  margin-bottom: 0;
}

.faq-head .lead a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 16px 0;
  font-size: clamp(17px, 1.4vw, 19px);
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

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

/* A plus that turns into a minus. */
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  transition: background-color 160ms ease, color 160ms ease;
}

.faq details[open] summary::after {
  content: "\2212";
  background: var(--ink);
  color: var(--bg);
}

.faq summary:hover::after {
  background: var(--ink);
  color: var(--bg);
}

.faq details::details-content {
  block-size: 0;
  overflow: hidden;
  transition: block-size 260ms ease, content-visibility 260ms allow-discrete;
}

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

.faq details p {
  max-width: 40rem;
  margin: 0;
  padding: 0 48px 24px 0;
  color: var(--ink-soft);
  font-size: 17px;
}

.faq details p a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- The close: the hero's coins return ---------- */

.finale {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: clamp(600px, 62vw, 880px);
  padding: var(--space-section) 20px 0;
  padding: round(var(--space-section), 4px) 20px 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  text-align: center;
}

.finale-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finale-title {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.finale .lead {
  max-width: 30rem;
}

.finale-coins {
  position: absolute;
  bottom: 0;
  z-index: 1;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.finale-coins-left {
  left: 0;
  width: min(40vw, 640px);
}

.finale-coins-right {
  right: 0;
  width: min(38vw, 608px);
}

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

.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-mark img {
  display: block;
  width: 110px;
  height: auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-weight: 800;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-links a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.disclaimer {
  max-width: 48rem;
  margin: 24px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.copyright {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Things rise into place as they arrive ---------- */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section-head,
    .answer,
    .trap-card,
    .more-checks,
    .tile,
    .principles li,
    .pledge,
    .faq details,
    .finale-inner {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 40%;
    }

    .answer:nth-child(2),
    .trap-card:nth-child(2),
    .tile:nth-child(2),
    .principles li:nth-child(2) {
      animation-range: entry 6% entry 46%;
    }

    .answer:nth-child(3),
    .tile:nth-child(3),
    .principles li:nth-child(3) {
      animation-range: entry 12% entry 52%;
    }

    .principles li:nth-child(4),
    .tile:nth-child(4) {
      animation-range: entry 18% entry 58%;
    }

    .finale-coins {
      animation: coins-in linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 50%;
    }

    .finale-coins-right {
      animation-name: coins-in-right;
    }
  }
}

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

@keyframes coins-in {
  from {
    transform: translate(-12%, 18%);
  }
}

@keyframes coins-in-right {
  from {
    transform: translate(12%, 18%);
  }
}

/* ---------- Narrower screens ---------- */

@media (max-width: 1080px) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile,
  .tile-wide {
    grid-column: span 6;
  }

  .answer {
    padding: 28px;
  }
}

/* Tablets and phones: the demo comes first, the steps follow as a list. */
@media (max-width: 959px) {
  .story {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }

  .story-stage {
    position: relative;
    top: 0;
    order: -1;
  }

  .story-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 32px;
  }

  .story-step,
  .story-step:first-child {
    min-height: 0;
    padding: 0;
  }

  .answers {
    grid-template-columns: minmax(0, 1fr);
    max-width: 560px;
    margin: 0 auto;
  }

  .answer-sentence {
    min-height: 0;
  }

  .more-checks,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq-head {
    position: static;
  }
}

@media (max-width: 760px) {
  .traps-grid,
  .more-list,
  .story-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .more-list li:nth-child(2) {
    padding-top: 16px;
    border-top: 1px solid var(--line);
  }

  .more-list li:nth-child(2)::before {
    top: 21px;
  }

  .tile,
  .tile-wide {
    grid-column: 1 / -1;
    min-height: 0;
    padding: 32px 28px;
  }

  .trap-text {
    padding: 32px 28px 0;
  }

  .finale {
    min-height: 640px;
  }

  .finale-coins-left {
    left: -18vw;
    width: 84vw;
  }

  .finale-coins-right {
    right: -18vw;
    width: 80vw;
  }
}

/* Phones: the demo is just DISCO's panel, as it looks on its own. */
@media (max-width: 600px) {
  .mock {
    height: 600px;
  }

  .mock-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-site {
    display: none;
  }

  .mp-scroll {
    width: auto;
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
  }

  .platform-list {
    flex-wrap: nowrap;
    gap: 12px;
  }

  .platform-list li {
    flex: 1 1 0;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
  }

  .facts {
    gap: 8px 20px;
  }

  .facts li + li::before {
    display: none;
  }

  .answer {
    padding: 24px;
  }

  .more-checks {
    padding: 28px 24px;
  }

  .pledge {
    align-items: flex-start;
  }
}

/* ---------- Sign-in pages (the email link's confirm step) ---------- */

.auth-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 16px;
  background: var(--surface);
}

.auth-mark img {
  display: block;
  width: 120px;
  height: auto;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin-top: 48px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--bg);
  text-align: center;
}

.auth-card h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.auth-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.auth-card form {
  margin: 0;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.auth-card .auth-small {
  margin-top: 16px;
  color: var(--muted, #6b6b6b);
  font-size: 13px;
}

/* ---------- Privacy and other plain pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 96px;
}

.legal-mark img {
  display: block;
  width: 120px;
  height: auto;
}

.legal h1 {
  margin: 48px 0 0;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.legal-lead {
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.5;
}

.legal-updated {
  margin: 12px 0 0;
  color: var(--muted, #6b6b6b);
  font-size: 14px;
}

.legal h2 {
  margin: 40px 0 0;
  font-size: 22px;
  font-weight: 800;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
}

.legal ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.legal li + li {
  margin-top: 8px;
}

.legal strong {
  color: var(--ink);
}

.legal .back {
  display: inline-block;
  margin-top: 48px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}
