/* The site's one stylesheet: the landing page and the legal pages. Copied to
 * website/site/site.css by build.mjs, which appends the generated rules.
 *
 * Colours from the app's own graphics (store_assets/): the store listing's
 * lavender-to-rose gradient for the hero, the icon's navy (#365F8E) for the Play
 * button and its red (#E8211D) for the lit Sunday. Below the hero the page is
 * dark (dark only), a violet-tinted near-black between the app's dark surface
 * and the gradient. System fonts only: nothing is fetched from elsewhere.
 * Under reduced motion everything stands still. */

:root {
  color-scheme: dark;

  --bg: #14131b;
  --surface: #1c1b25;
  --border: #2f2d3c;
  --text: #f1eff7;
  --muted: #a8a5b8;
  --action: #f2a7b8;
  --ink: #221f30;
  --navy: #365f8e;
  --red: #e8211d;
  --lavender: #dfe0f4;
  --rose: #d27a8f;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

a:focus-visible,
.strip:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
}

/* --- the apps menu ---------------------------------------------------------------
 * The brand opens a menu of Business Object's sites, the same on all of them
 * (build.mjs). menu.js adds the pixel opening and the pixel wipe. */

.apps-nav {
  position: relative;
  z-index: 5;
}

.apps-menu {
  position: relative;
  display: inline-block;
}

.apps-menu summary {
  list-style: none;
  margin: 0 0 0 -8px;
  padding: 6px 10px 6px 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

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

.apps-menu summary:hover,
.apps-menu[open] summary {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border);
}

.hero .apps-menu summary:hover,
.hero .apps-menu[open] summary {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(34, 31, 48, 0.14);
}

.apps-menu summary:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}

.hero .apps-menu summary:focus-visible {
  outline-color: var(--ink);
}

.brand .caret {
  opacity: 0.6;
  transition: transform 0.2s;
}

.apps-menu[open] .caret {
  transform: rotate(180deg);
}

.app-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -8px;
  width: min(310px, calc(100vw - 32px));
  margin: 0;
  padding: 6px;
  list-style: none;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(20, 19, 27, 0.5);
  overflow: hidden;
}

/* Grows out of the icon's corner in four chunky steps. */
.apps-menu[open] .app-menu {
  animation: menu-grow 0.13s steps(4, end) both;
}

.app-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: 9px;
  color: inherit;
  text-decoration: none;
  font-weight: 400;
  font-size: 1rem;
}

.app-menu a:hover,
.app-menu a:focus-visible {
  background: rgba(242, 167, 184, 0.12);
  outline: none;
}

.app-menu img {
  flex: none;
  border-radius: 9px;
}

.app-menu b {
  display: block;
  line-height: 1.25;
}

.app-menu small {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.3;
}

/* The site you are on: a bar in its colour at the item's left edge. */
.app-menu a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--action);
  background: rgba(255, 255, 255, 0.04);
}

/* Business Object's own item, set apart from the apps by a line. */
.app-menu li:first-child {
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

/* The items slide in after the block, one after another. */
.apps-menu[open] .app-menu li {
  animation: menu-item 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-menu li:nth-child(1) { animation-delay: 0.16s; }
.app-menu li:nth-child(2) { animation-delay: 0.21s; }
.app-menu li:nth-child(3) { animation-delay: 0.26s; }
.app-menu li:nth-child(4) { animation-delay: 0.31s; }

/* The pixel block over the menu while it opens (menu.js builds it), in the
 * app's rose and red; each square shrinks away in turn. */
.menu-pixels {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  pointer-events: none;
}

.menu-pixels i {
  background: var(--rose);
  animation: menu-pixel 0.16s steps(3, end) both;
}

.menu-pixels i:nth-child(3n) {
  background: var(--red);
}

@keyframes menu-grow {
  from {
    clip-path: inset(0 100% 100% 0 round 14px);
  }

  to {
    clip-path: inset(0 0 0 0 round 14px);
  }
}

@keyframes menu-pixel {
  from {
    transform: scale(1.02);
  }

  to {
    transform: scale(0);
  }
}

@keyframes menu-item {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
}

/* The pixel wipe into another site (menu.js): squares in its colours over
 * the whole screen, and its icon flown to the middle, landing at 150 px. */
.wipe {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  pointer-events: none;
}

.wipe i {
  transform: scale(0);
  animation: wipe-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes wipe-in {
  to {
    transform: scale(1.02);
  }
}

.wipe-icon {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 150px;
  height: 150px;
  margin: -75px 0 0 -75px;
  border: 3px solid currentColor;
  border-radius: 31px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  will-change: transform;
}

/* --- the hero ------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  color: var(--ink);
  background: linear-gradient(172deg, var(--lavender) 0%, #e2cfe0 45%, #dba3b4 75%, var(--rose) 100%);
  padding: 0 16px 72px;
}

.glows,
.days {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.glows {
  inset: 0;
}

.glows b {
  position: absolute;
  width: 720px;
  height: 560px;
  border-radius: 50%;
  will-change: transform;
}

.glows b:nth-child(1) {
  left: -14%;
  top: -12%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: drift-a 26s ease-in-out infinite alternate;
}

.glows b:nth-child(2) {
  left: 28%;
  top: 45%;
  background: radial-gradient(closest-side, rgba(232, 33, 29, 0.22), rgba(232, 33, 29, 0));
  animation: drift-b 32s ease-in-out infinite alternate;
}

.glows b:nth-child(3) {
  right: -16%;
  top: -8%;
  background: radial-gradient(closest-side, rgba(54, 95, 142, 0.28), rgba(54, 95, 142, 0));
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a {
  to {
    transform: translate(220px, 140px) scale(1.15);
  }
}

@keyframes drift-b {
  to {
    transform: translate(-260px, -120px) scale(0.85);
  }
}

@keyframes drift-c {
  to {
    transform: translate(-160px, 220px) scale(1.2);
  }
}

/* Days passing, like Questify's streak stones: a band of four weeks across the
 * hero, lighting one by one (0.3 s apart, an 18 s cycle), Sundays in rose,
 * until the last Sunday flashes red: a trading Sunday, the last of the month.
 * All lit by ~8 s, held, faded by ~12 s, then again. Under 600 px the band
 * shows its last two weeks, larger. */
.days {
  left: 0;
  right: 0;
  bottom: 44px;
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: min(1.1vw, 14px);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  transform: skewY(-3deg);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%);
  mask-image: linear-gradient(90deg, transparent, #000 12%);
}

.days i {
  aspect-ratio: 1;
  border-radius: 24%;
  background: rgba(34, 31, 48, 0.1);
  animation: day 18s linear infinite;
  animation-delay: calc(var(--i) * 0.3s);
}

.days i:nth-child(7n) {
  animation-name: sunday;
}

.days i:last-child {
  animation-name: trading;
}

@media (max-width: 599px) {
  .days {
    grid-template-columns: repeat(14, 1fr);
    gap: 6px;
    padding: 0 16px;
    bottom: 24px;
  }

  .days i:nth-child(-n + 14) {
    display: none;
  }
}

@keyframes day {
  0% {
    background: rgba(34, 31, 48, 0.1);
    transform: scale(1);
  }

  2% {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.15);
  }

  5%,
  58% {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1);
  }

  66%,
  100% {
    background: rgba(34, 31, 48, 0.1);
    transform: scale(1);
  }
}

@keyframes sunday {
  0% {
    background: rgba(34, 31, 48, 0.1);
    transform: scale(1);
  }

  2% {
    background: #f6c2ce;
    transform: scale(1.2);
  }

  5%,
  58% {
    background: #eea3b4;
    transform: scale(1);
  }

  66%,
  100% {
    background: rgba(34, 31, 48, 0.1);
    transform: scale(1);
  }
}

@keyframes trading {
  0% {
    background: rgba(34, 31, 48, 0.1);
    box-shadow: none;
    transform: scale(1);
  }

  2% {
    background: var(--red);
    box-shadow: 0 0 0 6px rgba(232, 33, 29, 0.3), 0 0 26px rgba(232, 33, 29, 0.9);
    transform: scale(1.45);
  }

  6%,
  58% {
    background: var(--red);
    box-shadow: 0 0 16px rgba(232, 33, 29, 0.7);
    transform: scale(1.1);
  }

  66%,
  100% {
    background: rgba(34, 31, 48, 0.1);
    box-shadow: none;
    transform: scale(1);
  }
}

.bar {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 0;
}

.hero .brand:focus-visible,
.hero .play:focus-visible {
  outline-color: var(--ink);
}

.hero-body {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 24px;
}

/* One line per line of the headline: the type is sized to the column (a
 * container) by the longest line's character count, ~0.6 em a character in a
 * heavy face, capped at 4.4 rem. */
.pitch {
  container-type: inline-size;
}

.hero h1 {
  font-size: min(4.4rem, calc(100cqi * 1.75 / var(--chars, 18)));
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 0 0 16px;
}

.hero h1 .line {
  display: block;
  white-space: nowrap;
}

.hero .sub {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  margin: 0 0 32px;
  color: rgba(34, 31, 48, 0.8);
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px 15px 20px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34, 31, 48, 0.25);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.play:hover {
  background: #2c4f78;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(34, 31, 48, 0.3);
}

.hero .note {
  margin: 14px 0 0;
  font-size: 0.92rem;
  color: rgba(34, 31, 48, 0.72);
}

/* --- phones --------------------------------------------------------------------- */

/* The frame is the listing's pale lavender, with a dark hairline that keeps its
 * edge on the hero's gradient. */
.phone {
  background: linear-gradient(150deg, #f7f6fd 0%, #e9e8f8 30%, #d8d6ef 100%);
  border-radius: 34px;
  padding: 7px;
  box-shadow:
    0 0 0 1px rgba(34, 31, 48, 0.35),
    0 1px 0 1px rgba(255, 255, 255, 0.5) inset,
    0 24px 50px rgba(34, 31, 48, 0.3);
}

.phone .screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 540 / 1212;
  object-fit: cover;
  border-radius: 26px;
  background: #1b1d24;
}

[hidden] {
  display: none !important;
}

/* --- the hero phone's live screen ---------------------------------------------------
 * The app's home screen in HTML (build.mjs, hero.js), drawn to match the dark
 * screenshot (store_assets/screenshots/en/home_dark.png): its colours sampled
 * from it, its sizes measured on it as a share of the screen's width (cqi), so
 * the whole screen scales with the phone. System font, like the app (Roboto on
 * Android). */

.phone .app {
  --a-bg: #1a1b20;
  --a-raised: #1e1f25;
  --a-text: #e3e2e9;
  --a-muted: #c5c6d0;
  --a-pill: #404659;
  --a-avatar: #2f4578;
  --a-outline: #8f9099;

  container-type: inline-size;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  color: var(--a-text);
  background: var(--a-bg);
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.25;
  text-align: left;
  user-select: none;
}

/* :where(), so the rules below win without !important. */
.app :where(p, ul) {
  margin: 0;
  padding: 0;
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 12.5cqi;
  padding: 0 6cqi 0 4.5cqi;
  font-size: 3.6cqi;
}

.app-status-icons {
  display: flex;
  gap: 1.4cqi;
}

.app-si {
  width: 3.2cqi;
  height: 3.2cqi;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 6.5cqi;
  height: 15cqi;
  padding: 0 3.5cqi 0 4cqi;
}

.app-title {
  flex: 1;
  font-size: 5.2cqi;
}

.app-ai {
  width: 5.6cqi;
  height: 5.6cqi;
  color: var(--a-muted);
}

.app-body {
  flex: 1;
  padding: 5.4cqi 5.9cqi 0;
}

.app-next {
  display: flex;
  align-items: center;
  gap: 3cqi;
  font-size: 3.85cqi;
  font-weight: 600;
}

.app-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 9.7cqi;
  height: 9.7cqi;
  border-radius: 50%;
  background: var(--a-avatar);
}

.app-avatar img {
  width: 6.3cqi;
  height: 6.3cqi;
}

.app-date {
  margin-top: 1.6cqi;
  font-size: 8.4cqi;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.app-count {
  margin-top: 1.2cqi;
  font-size: 3.8cqi;
}

.app-heading {
  margin-top: 8.4cqi;
  font-size: 3.85cqi;
  font-weight: 600;
}

.app-card {
  list-style: none;
  margin-top: 2.6cqi;
  border-radius: 2.6cqi;
  background: var(--a-raised);
  box-shadow: 0 0.3cqi 0.8cqi rgba(0, 0, 0, 0.35);
}

.app-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 13.6cqi;
  padding: 0 4.4cqi 0 4.9cqi;
  font-size: 3.85cqi;
  letter-spacing: 0.02em;
}

/* The app's trading Sunday chip: an outlined Material chip with the glyph. */
.app-chip {
  display: inline-flex;
  align-items: center;
  gap: 1.3cqi;
  height: 7.2cqi;
  padding: 0 3cqi 0 1.6cqi;
  border: 0.25cqi solid var(--a-outline);
  border-radius: 1.8cqi;
  font-size: 3.2cqi;
  font-weight: 500;
  color: var(--a-muted);
}

.app-chip img {
  width: 4cqi;
  height: 4cqi;
}

.app-nav {
  display: flex;
  justify-content: space-around;
  height: 22cqi;
  padding-top: 3.4cqi;
  background: var(--a-raised);
}

.app-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9cqi;
  width: 40%;
  font-size: 3.1cqi;
  font-weight: 500;
  color: var(--a-muted);
}

.app-tab-on {
  color: var(--a-text);
}

.app-pill {
  display: grid;
  place-items: center;
  width: 15.5cqi;
  height: 7.6cqi;
  border-radius: 99px;
}

.app-tab-on .app-pill {
  background: var(--a-pill);
}

.app-ni {
  width: 5.4cqi;
  height: 5.4cqi;
}

.app-gesture {
  position: absolute;
  left: 50%;
  bottom: 2.3cqi;
  width: 26cqi;
  height: 0.8cqi;
  border-radius: 1cqi;
  background: var(--a-text);
  transform: translateX(-50%);
}

.hero-phone {
  position: relative;
  width: min(270px, 62vw);
  justify-self: center;
  perspective: 1400px;
}

/* A month on a calendar page behind the phone, faint: 5 weeks, Monday first,
 * Sundays tinted, the last Sunday lit red and glowing, as a trading Sunday is
 * so often the last of the month. */
.month {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  width: 165%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3%;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.month i {
  aspect-ratio: 1;
  border-radius: 22%;
  background: rgba(34, 31, 48, 0.07);
}

.month i:nth-child(7n) {
  background: rgba(232, 33, 29, 0.14);
}

.month i:last-child {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(232, 33, 29, 0.18), 0 0 20px rgba(232, 33, 29, 0.45);
}

@media (min-width: 820px) {
  .hero {
    padding-bottom: 96px;
  }

  .hero-body {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 64px;
  }

  .hero-phone {
    width: 290px;
    margin-right: 48px;
  }
}

/* --- the hero phone in 3D --------------------------------------------------------
 * The face on a stack of 14 slabs, 1 px apart in depth, so the edge shows with
 * its rounded corners as the phone turns; two keys on the side. It sways slowly
 * and turns toward the mouse (the inline script sets --ry and --rx). */

.p3d-sway {
  transform-style: preserve-3d;
  animation: p3d-sway 11s ease-in-out infinite alternate;
}

@keyframes p3d-sway {
  from {
    transform: rotateY(-4deg) translateY(4px);
  }

  to {
    transform: rotateY(5deg) translateY(-6px);
  }
}

.p3d-body {
  --ry: -18deg;
  --rx: 6deg;

  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(3deg);
  transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.p3d-face {
  position: relative;
  transform: translateZ(1px);
}

/* The face's sheen: light from the upper left. */
.p3d-face::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 38%);
  pointer-events: none;
}

.slab {
  position: absolute;
  inset: 0;
  border-radius: 34px;
  background: linear-gradient(150deg, #d2cfe9, #b0abd0 45%, #c1bddd);
  transform: translateZ(calc(var(--k) * -1px));
}

/* The back plate, darker, carries the shadow. */
.slab:last-of-type {
  background: #8f89b5;
  box-shadow: 0 30px 60px rgba(34, 31, 48, 0.4);
}

.key {
  position: absolute;
  right: -3px;
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(90deg, #e4e2f5, #a19bc6);
  transform: translateZ(-7px);
}

.key-power {
  top: 22%;
  height: 54px;
}

.key-volume {
  top: 36%;
  height: 92px;
}

/* --- below the hero --------------------------------------------------------------- */

.landing main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

.landing h2 {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  letter-spacing: -0.02em;
  margin: 72px 0 24px;
}

.points ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

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

.point,
.panel {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.point-icon {
  display: inline-flex;
  color: var(--action);
}

.point h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 12px 0 6px;
}

.point p {
  margin: 0;
  color: var(--muted);
}

/* The screens, sideways, each under its own caption. */
.strip {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 24px;
  margin: 0 -4px;
  scrollbar-color: var(--border) transparent;
}

.shot {
  flex: 0 0 236px;
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shot figcaption {
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--muted);
  min-height: 5.8em;
}

.shot figcaption strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.shot .phone {
  box-shadow:
    0 0 0 1px rgba(34, 31, 48, 0.6),
    0 1px 0 1px rgba(255, 255, 255, 0.5) inset,
    0 16px 34px rgba(0, 0, 0, 0.35);
}

/* The law, in short: a list marked with small red calendar days. */
.panel-lead {
  margin: 0 0 14px;
  font-weight: 600;
}

.panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.panel li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
}

.panel li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.3em;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border-top: 5px solid var(--red);
  background: #e9e8f2;
}

.panel-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* --- footer ----------------------------------------------------------------------- */

.site-footer {
  max-width: 1080px;
  margin: 72px auto 0;
  padding: 24px 16px 56px;
  border-top: 1px solid var(--border);
  color: var(--muted);
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer p {
  margin: 16px 0 0;
}

/* The language switcher: each name in its own language, the page's own bold. */
.site-footer .languages {
  margin-bottom: 20px;
}

.languages a {
  text-decoration: none;
}

.languages a[aria-current] {
  color: var(--text);
  font-weight: 700;
}

/* "(EN)" after the legal links on other languages' pages: they're in English. */
.lang-note {
  font-size: 0.85em;
  opacity: 0.75;
}

/* The 404's list of home pages. */
.homes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  padding: 0;
  list-style: none;
}

/* --- the legal pages and 404 ------------------------------------------------------- */

.doc header,
.doc main {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 16px;
}

.doc header {
  padding-top: 24px;
}

.doc h1 {
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 40px 0 4px;
}

.doc h2 {
  font-size: 1.2rem;
  margin: 32px 0 8px;
}

.updated {
  margin: 0 0 24px;
  color: var(--muted);
}

.summary {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--action);
  border-radius: 8px;
}

.summary p {
  margin: 0;
}

.see-also {
  margin-top: 40px;
  color: var(--muted);
}

.doc .site-footer {
  max-width: 720px;
}

/* --- the 404 ---------------------------------------------------------------------------
 * The text beside a page of the calendar (build.mjs, lostCalendar): four weeks
 * in the hero's lavender-to-rose, whose days light up one by one, Sundays
 * rose, as the hero's band does. Where the last Sunday should be there is only
 * an empty dashed square marked 404, which flashes red as the trading Sunday
 * would. CSS only. */

.lost header,
.lost main.lost-body,
.lost .site-footer {
  max-width: 1080px;
}

.lost-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-bottom: 24px;
}

@media (min-width: 820px) {
  .lost-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.cal-page {
  width: 100%;
  max-width: 420px;
  justify-self: center;
  overflow: hidden;
  padding: 0 18px 18px;
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(172deg, var(--lavender) 0%, #e2cfe0 45%, #dba3b4 75%, var(--rose) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 90px rgba(210, 122, 143, 0.18);
}

/* The page's red top, as on a tear-off calendar. */
.cal-page::before {
  content: "";
  display: block;
  height: 12px;
  margin: 0 -18px 14px;
  background: var(--red);
}

.cal-head,
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.cal-head {
  margin-bottom: 8px;
}

.cal-head b {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(34, 31, 48, 0.55);
}

.cal-head b:last-child {
  color: #b0465f;
}

.cal i {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 24%;
  font-style: normal;
  font-weight: 700;
  font-size: clamp(0.7rem, 2.6vw, 0.95rem);
  background: rgba(255, 255, 255, 0.3);
  color: rgba(34, 31, 48, 0.35);
  animation: cal-day 10s linear infinite both;
  animation-delay: calc(var(--i) * 0.13s);
}

.cal i:nth-child(7n) {
  animation-name: cal-sunday;
}

/* The missing Sunday. */
.cal i:last-child {
  background: none;
  outline: 2px dashed rgba(34, 31, 48, 0.35);
  outline-offset: -2px;
  color: var(--red);
  font-size: clamp(0.6rem, 2.1vw, 0.8rem);
  animation-name: cal-missing;
}

@keyframes cal-day {
  0% {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(34, 31, 48, 0.35);
  }

  3%,
  70% {
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
  }

  80%,
  100% {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(34, 31, 48, 0.35);
  }
}

@keyframes cal-sunday {
  0% {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(34, 31, 48, 0.35);
  }

  3%,
  70% {
    background: #eea3b4;
    color: var(--ink);
  }

  80%,
  100% {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(34, 31, 48, 0.35);
  }
}

@keyframes cal-missing {
  0% {
    background: none;
    color: var(--red);
    box-shadow: none;
    transform: none;
  }

  3%,
  55% {
    background: var(--red);
    color: #fff;
    box-shadow: 0 0 18px rgba(232, 33, 29, 0.7);
    transform: scale(1.1);
  }

  65%,
  100% {
    background: none;
    color: var(--red);
    box-shadow: none;
    transform: none;
  }
}

/* --- reduced motion: everything stands still, no tilt ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  /* :nth-child(n), to outweigh each glow's own :nth-child rule. */
  .glows b:nth-child(n),
  .p3d-sway,
  .apps-menu[open] .app-menu,
  .apps-menu[open] .app-menu li,
  .menu-pixels i,
  .wipe i {
    animation: none;
  }

  .apps-menu summary,
  .brand .caret {
    transition: none;
  }

  .cal i,
  .cal i:nth-child(7n) {
    animation: none;
    background: rgba(255, 255, 255, 0.85);
    color: var(--ink);
  }

  .cal i:nth-child(7n) {
    background: #eea3b4;
  }

  .cal i:last-child {
    animation: none;
    background: var(--red);
    color: #fff;
  }

  .days i {
    animation: none;
    background: rgba(255, 255, 255, 0.7);
  }

  .days i:nth-child(7n) {
    animation: none;
    background: #eea3b4;
  }

  .days i:last-child {
    animation: none;
    background: var(--red);
    box-shadow: 0 0 16px rgba(232, 33, 29, 0.7);
  }

  .play,
  .p3d-body {
    transition: none;
  }

  .play:hover {
    transform: none;
  }
}

/* --- generated by build.mjs ------------------------------------------------ */

.days i:nth-child(1),
.cal i:nth-child(1) {
  --i: 0;
}

.days i:nth-child(2),
.cal i:nth-child(2) {
  --i: 1;
}

.days i:nth-child(3),
.cal i:nth-child(3) {
  --i: 2;
}

.days i:nth-child(4),
.cal i:nth-child(4) {
  --i: 3;
}

.days i:nth-child(5),
.cal i:nth-child(5) {
  --i: 4;
}

.days i:nth-child(6),
.cal i:nth-child(6) {
  --i: 5;
}

.days i:nth-child(7),
.cal i:nth-child(7) {
  --i: 6;
}

.days i:nth-child(8),
.cal i:nth-child(8) {
  --i: 7;
}

.days i:nth-child(9),
.cal i:nth-child(9) {
  --i: 8;
}

.days i:nth-child(10),
.cal i:nth-child(10) {
  --i: 9;
}

.days i:nth-child(11),
.cal i:nth-child(11) {
  --i: 10;
}

.days i:nth-child(12),
.cal i:nth-child(12) {
  --i: 11;
}

.days i:nth-child(13),
.cal i:nth-child(13) {
  --i: 12;
}

.days i:nth-child(14),
.cal i:nth-child(14) {
  --i: 13;
}

.days i:nth-child(15),
.cal i:nth-child(15) {
  --i: 14;
}

.days i:nth-child(16),
.cal i:nth-child(16) {
  --i: 15;
}

.days i:nth-child(17),
.cal i:nth-child(17) {
  --i: 16;
}

.days i:nth-child(18),
.cal i:nth-child(18) {
  --i: 17;
}

.days i:nth-child(19),
.cal i:nth-child(19) {
  --i: 18;
}

.days i:nth-child(20),
.cal i:nth-child(20) {
  --i: 19;
}

.days i:nth-child(21),
.cal i:nth-child(21) {
  --i: 20;
}

.days i:nth-child(22),
.cal i:nth-child(22) {
  --i: 21;
}

.days i:nth-child(23),
.cal i:nth-child(23) {
  --i: 22;
}

.days i:nth-child(24),
.cal i:nth-child(24) {
  --i: 23;
}

.days i:nth-child(25),
.cal i:nth-child(25) {
  --i: 24;
}

.days i:nth-child(26),
.cal i:nth-child(26) {
  --i: 25;
}

.days i:nth-child(27),
.cal i:nth-child(27) {
  --i: 26;
}

.days i:nth-child(28),
.cal i:nth-child(28) {
  --i: 27;
}

.slab:nth-child(1) {
  --k: 1;
}

.slab:nth-child(2) {
  --k: 2;
}

.slab:nth-child(3) {
  --k: 3;
}

.slab:nth-child(4) {
  --k: 4;
}

.slab:nth-child(5) {
  --k: 5;
}

.slab:nth-child(6) {
  --k: 6;
}

.slab:nth-child(7) {
  --k: 7;
}

.slab:nth-child(8) {
  --k: 8;
}

.slab:nth-child(9) {
  --k: 9;
}

.slab:nth-child(10) {
  --k: 10;
}

.slab:nth-child(11) {
  --k: 11;
}

.slab:nth-child(12) {
  --k: 12;
}

.slab:nth-child(13) {
  --k: 13;
}

.slab:nth-child(14) {
  --k: 14;
}

.chars-10 {
  --chars: 10;
}

.chars-11 {
  --chars: 11;
}

.chars-12 {
  --chars: 12;
}

.chars-13 {
  --chars: 13;
}

.chars-14 {
  --chars: 14;
}

.chars-15 {
  --chars: 15;
}

.chars-16 {
  --chars: 16;
}

.chars-17 {
  --chars: 17;
}

.chars-18 {
  --chars: 18;
}

.chars-19 {
  --chars: 19;
}

.chars-20 {
  --chars: 20;
}

.chars-21 {
  --chars: 21;
}

.chars-22 {
  --chars: 22;
}

.chars-23 {
  --chars: 23;
}

.chars-24 {
  --chars: 24;
}

.chars-25 {
  --chars: 25;
}

.chars-26 {
  --chars: 26;
}

.chars-27 {
  --chars: 27;
}

.chars-28 {
  --chars: 28;
}

.chars-29 {
  --chars: 29;
}

.chars-30 {
  --chars: 30;
}

.chars-31 {
  --chars: 31;
}

.chars-32 {
  --chars: 32;
}

.chars-33 {
  --chars: 33;
}

.chars-34 {
  --chars: 34;
}

.chars-35 {
  --chars: 35;
}

.chars-36 {
  --chars: 36;
}

.chars-37 {
  --chars: 37;
}

.chars-38 {
  --chars: 38;
}

.chars-39 {
  --chars: 39;
}

.chars-40 {
  --chars: 40;
}
