/* Digitide website. Colours follow the app (composeApp/.../ui/GameColors.kt), light and dark. */

@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source_sans_pro_regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source_sans_pro_semibold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans Pro";
  src: url("../fonts/source_sans_pro_bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Light theme (GameColors.Light) */
  --bg-top: #f4f1ea;
  --bg-bottom: #e2dccf;
  --surface: rgba(255, 255, 255, 0.55);
  --surface-border: rgba(27, 33, 51, 0.14);
  --stripe-a: rgba(48, 58, 82, 0.08);
  --stripe-b: rgba(48, 58, 82, 0.04);
  --text: #1b2133;
  --text-soft: #3d4660;
  --label: #5a6380;
  --tile-text: #141826;
  --carry: #ffd25a;
  --carry-ring: #1b2133;
  --chain: #c2470a;
  --danger: #e0453a;
  --link: #1f4fb8;
  --tile-s: 70%;
  --tile-l: 70%;
  --phone: #1b2133;
  --shadow: 0 24px 60px rgba(27, 33, 51, 0.22);

  --radius: 12px;
  --radius-lg: 24px;
  --wrap: 1120px;
  --font: "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark theme (GameColors.Dark) */
    --bg-top: #151a28;
    --bg-bottom: #0b0e16;
    --surface: rgba(201, 210, 234, 0.06);
    --surface-border: rgba(201, 210, 234, 0.16);
    --stripe-a: rgba(201, 210, 234, 0.07);
    --stripe-b: rgba(201, 210, 234, 0.035);
    --text: #f2f4fa;
    --text-soft: #b7bfd6;
    --label: #8d96b0;
    --tile-text: #0b0e16;
    --carry-ring: #f2f4fa;
    --chain: #ffb347;
    --danger: #ff5a4e;
    --link: #9dbcff;
    --tile-s: 62%;
    --tile-l: 66%;
    --phone: #05070c;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-bottom) linear-gradient(var(--bg-top), var(--bg-bottom)) fixed;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img,
picture {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 9vw, 5.5rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0; }

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--carry);
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 6px var(--bg-bottom);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  background: var(--carry);
  color: #141826;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-top) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--surface-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
  font-size: 1.3rem;
  text-decoration: none;
}
.brand img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 22%;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2.5vw, 1.75rem);
  font-weight: 600;
  font-size: 1rem;
}
.nav a {
  color: var(--text-soft);
  text-decoration: none;
  padding-block: 0.5rem;
}
.nav a:hover { color: var(--text); text-decoration: underline; }
.nav .nav-section { display: none; }
@media (min-width: 720px) {
  .nav .nav-section { display: inline; }
}
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.9rem;
  font-weight: 700;
}
.lang-switch a,
.lang-switch span {
  padding: 0.3rem 0.75rem;
  min-width: 2.75rem;
  text-align: center;
}
.lang-switch a { color: var(--text-soft); }
.lang-switch [aria-current] {
  background: var(--text);
  color: var(--bg-top);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: var(--carry);
  border: 2px solid var(--carry-ring);
  color: #141826;
}
.btn svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
  fill: currentColor;
}
.btn small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
}
.btn span { display: block; line-height: 1.15; text-align: left; }
.btn[aria-disabled="true"] {
  cursor: default;
}
.btn[aria-disabled="true"]:hover { transform: none; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 7vw, 5.5rem) clamp(3rem, 7vw, 5rem);
}
/* The five place-value columns of the board as a quiet backdrop. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(
    90deg,
    var(--stripe-a) 0 10%,
    var(--stripe-b) 10% 20%
  );
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
/* Now and then a single digit falls down one of the stripes (main.js). It shares the mask
   of the backdrop, so it fades out on its way down. */
.hero-rain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}
/* A full-height lane with the tile at its bottom: moving the lane by its own height
   takes the tile from just above the hero to its lower edge. */
.hero-rain .lane {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  translate: 0 -100%;
  animation: hero-fall 8s linear forwards;
}
.hero-rain .tile {
  width: 86%;
  font-size: 5vw;
  opacity: 0.26;
  /* Same duration as the fall: the mask alone would leave a faint rest at the lower edge. */
  animation: hero-fade 8s linear forwards;
}
@keyframes hero-fall {
  to { translate: 0 0; }
}
@keyframes hero-fade {
  45% { opacity: 0.26; }
  88%, 100% { opacity: 0; }
}
.hero .wrap {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 860px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; }
}
.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.25rem 0.8rem;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--label);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tagline {
  margin-top: 0.75rem;
  font-size: clamp(1.5rem, 3.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
.tagline em {
  font-style: normal;
  color: var(--chain);
}
.lead {
  margin-top: 1.25rem;
  max-width: 34em;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-soft);
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.cta-note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--label);
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
}
.phone {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: var(--phone);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.phone img {
  width: 100%;
  border-radius: 34px;
}
.float-tile {
  position: absolute;
  width: 4.25rem;
  height: 4.25rem;
  font-size: 2.1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.float-tile.one { left: -2.4rem; top: 16%; transform: rotate(-8deg); }
.float-tile.two { right: -2.2rem; top: 46%; transform: rotate(7deg); }
.float-tile.three { left: -1.6rem; bottom: 12%; transform: rotate(5deg); }
@media (max-width: 420px) {
  /* Smaller and closer to the phone, so they fit into the side gutter. */
  .hero-visual { width: min(100% - 1.5rem, 320px); }
  .float-tile {
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
  }
  .float-tile.one { left: -0.75rem; }
  .float-tile.two { right: -0.75rem; }
  .float-tile.three { left: -0.75rem; }
}

/* ---------- Tiles (ui/Tiles.kt): hue = 215 + (digit - 1) * 40 ---------- */

.tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 20%;
  background: hsl(var(--h, 215), var(--tile-s), var(--tile-l));
  color: var(--tile-text);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.d1 { --h: 215; } .d2 { --h: 255; } .d3 { --h: 295; }
.d4 { --h: 335; } .d5 { --h: 15; }  .d6 { --h: 55; }
.d7 { --h: 95; }  .d8 { --h: 135; } .d9 { --h: 175; }
/* The carry is round with a ring: a shape of its own, never just a colour. */
.tile.carry {
  border-radius: 50%;
  background: var(--carry);
  box-shadow: inset 0 0 0 0.07em var(--carry-ring);
  color: #141826;
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}
.section-head p {
  margin-top: 0.9rem;
  font-size: 1.2rem;
  color: var(--text-soft);
}
.kicker {
  display: block;
  margin-bottom: 0.6rem;
  color: var(--chain);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card {
  padding: 1.5rem;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.card p {
  margin-top: 0.5rem;
  color: var(--text-soft);
}

/* ---------- How it works ---------- */

.how {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 860px) {
  .how { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); }
  .how .demo {
    position: sticky;
    top: 5.5rem;
  }
}
.steps {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding-left: 4.75rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.4rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--carry);
  box-shadow: inset 0 0 0 3px var(--carry-ring);
  color: #141826;
  font-weight: 700;
}
.step.is-active {
  border-color: var(--chain);
  background: color-mix(in srgb, var(--carry) 14%, var(--surface));
}
.sum {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-weight: 700;
  font-size: 1.15rem;
}
.sum .tile {
  width: 2.4rem;
  font-size: 1.25rem;
}

.demo {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: linear-gradient(var(--bg-top), var(--bg-bottom));
  box-shadow: var(--shadow);
}
.demo-hud {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  padding-inline: 0.25rem;
}
.demo-hud dt {
  color: var(--label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.demo-hud dd {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.demo-hud dl { margin: 0; }
.demo-places {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-bottom: 0.25rem;
  color: var(--label);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.demo-board {
  position: relative;
  aspect-ratio: 5 / 6;
  border-radius: 10px;
  overflow: hidden;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 20%, var(--stripe-b) 20% 40%);
  container-type: inline-size;
}
.demo-board .tile {
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  isolation: isolate;
  border-radius: 0;
  background: none;
  font-size: 10cqw;
  transition: left 0.14s ease-out, bottom 0.22s cubic-bezier(0.4, 0, 0.7, 1), transform 0.2s ease, opacity 0.2s ease;
}
/* The coloured body sits inset, like the gap between tiles in the game. */
.demo-board .tile::before {
  content: "";
  position: absolute;
  inset: 6%;
  z-index: -1;
  border-radius: 20%;
  background: hsl(var(--h, 215), var(--tile-s), var(--tile-l));
}
.demo-board .tile.carry::before {
  border-radius: 50%;
  background: var(--carry);
  box-shadow: inset 0 0 0 0.07em var(--carry-ring);
}
.demo-board .tile.carry {
  box-shadow: none;
  transition: left 0.45s cubic-bezier(0.3, 0, 0.2, 1), bottom 0.45s cubic-bezier(0.5, -0.6, 0.6, 1), transform 0.2s ease, opacity 0.2s ease;
}
.demo-board .tile.is-new { transform: scale(0.2); opacity: 0; }
.demo-board .tile.is-hit { transform: scale(1.14); }
.demo-board .tile.is-gone { transform: scale(0.2); opacity: 0; }
.demo-board .ghost {
  position: absolute;
  width: 20%;
  aspect-ratio: 1;
  transition: left 0.14s ease-out, opacity 0.2s ease;
}
.demo-board .ghost::before {
  content: "";
  position: absolute;
  inset: 8%;
  border: 2px dashed var(--label);
  border-radius: 20%;
  opacity: 0.7;
}
.demo-label {
  position: absolute;
  z-index: 2;
  width: 20%;
  text-align: center;
  font-size: 9cqw;
  font-weight: 700;
  line-height: 1;
  color: var(--text);
  text-shadow: 0 2px 10px var(--bg-bottom);
  transform: translateY(50%);
  transition: transform 0.7s ease-out, opacity 0.7s ease-out;
  pointer-events: none;
}
.demo-label.chain { color: var(--chain); }
.demo-label.is-up { transform: translateY(-60%); opacity: 0; }
.demo-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.demo-caption {
  flex: 1;
  min-height: 3em;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text-soft);
}
.demo-toggle {
  min-height: 2.75rem;
  padding: 0.3rem 0.9rem;
  font-size: 0.95rem;
}

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

.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature .tile {
  width: 3rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}
.feature .tile svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Screenshots ---------- */

.shots {
  display: grid;
  grid-template-columns: minmax(0, 250px);
  justify-content: center;
  gap: clamp(2rem, 5vw, 3rem) clamp(1.5rem, 5vw, 3rem);
  margin: 0;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) 1.5rem;
  list-style: none;
}
/* Phone: one below the other. Tablet: 2 x 2. Desktop: all four in a row. */
@media (min-width: 600px) {
  .shots { grid-template-columns: repeat(2, minmax(0, 300px)); }
}
@media (min-width: 1180px) {
  .shots {
    grid-template-columns: repeat(4, minmax(0, 250px));
    column-gap: 2rem;
  }
}
.shots figure { margin: 0; }
.shots .phone {
  padding: 8px;
  border-radius: 36px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3), inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.shots .phone img { border-radius: 28px; }
.shots figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 1rem;
  color: var(--text-soft);
}

/* ---------- Scoring ---------- */

.score-layout {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .score-layout { grid-template-columns: 1fr 1fr; align-items: start; }
}
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
caption {
  padding-bottom: 0.75rem;
  text-align: left;
  font-weight: 700;
  font-size: 1.15rem;
}
th,
td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--surface-border);
  text-align: left;
}
thead th {
  color: var(--label);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
td.num,
th.num { text-align: right; }
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
.rules {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rules li {
  padding-left: 1.6rem;
  position: relative;
  color: var(--text-soft);
}
.rules li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: var(--carry);
  box-shadow: inset 0 0 0 2px var(--carry-ring);
}
.rules strong { color: var(--text); }

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 0.75rem;
  max-width: 50rem;
}
.faq details {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-weight: 700;
  font-size: 1.15rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--chain);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary h3 {
  font-size: inherit;
  line-height: 1.3;
}
.faq details p {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-soft);
}

/* ---------- Final call ---------- */

.final {
  text-align: center;
}
.final .card {
  padding: clamp(2rem, 6vw, 4rem) 1.5rem;
  background: repeating-linear-gradient(90deg, var(--stripe-a) 0 20%, var(--stripe-b) 20% 40%), var(--surface);
}
.final img {
  width: 5.5rem;
  margin: 0 auto 1.25rem;
  border-radius: 22%;
  box-shadow: var(--shadow);
}
.final p {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  font-size: 1.2rem;
}
.final .cta { justify-content: center; }

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

.site-footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid var(--surface-border);
  font-size: 1rem;
  color: var(--label);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  align-items: center;
  justify-content: space-between;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--text-soft); }

/* ---------- Text pages (legal, 404) ---------- */

.prose {
  max-width: 46rem;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.prose h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
.prose h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}
.prose h3 {
  margin-top: 2rem;
  font-size: 1.25rem;
}
.prose h4 {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: var(--text);
}
.prose p,
.prose ul { margin-top: 1rem; color: var(--text-soft); }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose strong { color: var(--text); }
.notice {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border: 2px dashed var(--danger);
  border-radius: var(--radius);
  color: var(--text);
}
.todo {
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: color-mix(in srgb, var(--danger) 22%, transparent);
  color: var(--text);
  font-weight: 600;
}

/* ---------- Motion ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@keyframes bob {
  50% { translate: 0 -10px; }
}
.float-tile { animation: bob 5s ease-in-out infinite; }
.float-tile.two { animation-delay: -1.7s; }
.float-tile.three { animation-delay: -3.2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .demo-foot,
  .hero-rain,
  .cta { display: none; }
  body { background: #fff; color: #000; }
}
