/* Light and dark mode for monolen.com (the owner's request, November 23, 2026).

   Dark is the page as designed: black and the edge of the Earth at dawn. Light is a warm gold sky with drifting
   clouds that stays in place behind the whole page (js/ridges.js). The opening has a painted heaven and circling
   cranes over it, closed at its foot by a band of painted clouds. Ink words sit straight on the sky, and the boxes
   are white with a fine edge. The pictures of screens are white too; only the phone keeps its dark face. The metal
   cards are metal in both.

   js/theme.js sets data-theme on <html> before the page is drawn; the sun and moon button changes it.
   Light mode passes WCAG AA like the dark one: words 15:1 on paper, second words 9.4:1, quiet words 6:1,
   labels (deep champagne) 5.8:1, deep gold 5.2:1, the dawn colour 5.3:1. */

/* ---- The sun and moon button, in the bar (both modes) ---- */

.theme-btn {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 0.75rem;
  padding: 0;
  border: 0.0625rem solid rgb(255 255 255 / 0.35);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.theme-btn[hidden] {
  display: none;
}

.theme-btn:hover {
  border-color: var(--ink);
}

.theme-btn svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-btn .icon-moon,
:root[data-theme="light"] .theme-btn .icon-sun {
  display: none;
}

:root[data-theme="light"] .theme-btn .icon-moon {
  display: block;
}

/* The links stay to the left of the button on a wide screen; on a phone the button sits by the menu button. */
.bar > .nav {
  margin-left: auto;
}

@media (max-width: 59.99rem) {
  .theme-btn {
    margin-left: auto;
    margin-right: 0.5rem;
  }
}

/* ---- Light mode ---- */

:root[data-theme="light"] {
  color-scheme: light;
  --space: #f5f3ee;
  --ink: #17171a;
  --ink-2: #45454d;
  --ink-3: #5c5c64;
  --accent: #a4502f;
  --champagne: #7a5a22;
  --line: rgb(23 23 26 / 0.12);
  --box: #ffffff;
  --box-edge: rgb(23 23 26 / 0.13);
  --box-sky: rgb(255 255 255 / 0.94);
  scrollbar-color: #b9b5ab #f5f3ee;
}

/* The phone keeps its dark face and its own light words: it is a phone. The other pictures of screens are white in
   light mode (the block at the end of this file). */
:root[data-theme="light"] .phone-body {
  color-scheme: dark;
  --ink: #ffffff;
  --ink-2: #c9c9cc;
  --ink-3: #a3a3a8;
  --accent: #ffb69b;
  --champagne: rgb(232 211 168);
  --line: rgb(255 255 255 / 0.12);
  --box: #0e0e11;
  --box-edge: rgb(255 255 255 / 0.13);
  color: var(--ink);
}

/* ---- The backdrop (js/ridges.js): a sky that stays in place while the page scrolls over it, as the Earth does
   in dark mode (the owner's request, November 23, 2026). It is warm gold with drifting clouds, printed in ordered
   dither, and fills the window (.day-sky). A range of blue mountains used to stand along the bottom of the window;
   the owner took it out on November 26, 2026. ---- */

.day-sky {
  display: none;
}

:root[data-theme="light"] {
  /* The band of clouds at the foot of the opening. It starts --band-rise above the opening's foot, so its heads
     close the first screen, and hangs five rems below it. It is never narrower than the screen (its picture is
     4.865 times as wide as it is tall). */
  --band-rise: clamp(12.4rem, calc(27vh + 2.5rem), 21.4rem);
  --band-h: max(calc(var(--band-rise) + 5rem), calc(100vw / 4.865));
  /* The painting fades out between these two heights above the opening's foot, behind the band's solid middle. */
  --paint-a: 9rem;
  --paint-b: 3.5rem;
}

/* On a phone the band of clouds is smaller, so more of it is seen and less of the screen is given to it. */
@media (max-width: 40rem) {
  :root[data-theme="light"] {
    --band-h: 11rem;
    --band-rise: 9.2rem;
    --paint-a: 5.5rem;
    --paint-b: 2.5rem;
  }
}

:root[data-theme="light"] .sky {
  display: none;
}

:root[data-theme="light"] .day-sky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: -3;
  display: block;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  pointer-events: none;
}

.day-sky canvas {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  max-width: none;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

:root[data-theme="light"] .shade {
  background: none;
}

/* ---- The opening's heaven (the owner's request, November 25, 2026): a painted sky behind the opening's words.
   Heaven opens in the middle, a blaze of white-gold light with rays to the edges, ringed by gold, amber and rose
   clouds; cranes circle the words (.flock, moved by js/ridges.js). The pictures were made with an image generator
   from descriptions in words and are in assets/heaven. The middle of the painting is very light, so the words sit
   straight on it with nothing laid behind them (measured: every line passes). It scrolls away with the opening,
   and its foot ends behind the band of clouds below. A tall version is used on
   upright screens. ---- */
:root[data-theme="light"] .hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/heaven/sky-wide.webp") 50% 45% / cover no-repeat;
  /* The painting ends behind the solid middle of the band of clouds below, so its last edge is never seen. */
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--paint-a)), rgb(0 0 0 / 0) calc(100% - var(--paint-b)));
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - var(--paint-a)), rgb(0 0 0 / 0) calc(100% - var(--paint-b)));
  pointer-events: none;
}

@media (max-aspect-ratio: 4/5) {
  :root[data-theme="light"] .hero::before {
    background-image: url("assets/heaven/sky-tall.webp");
  }
}

/* A band of painted clouds closes the foot of the painting (the owner's requests, November 25, 2026: "add here
   more clouds to make it clean", then "still need some significant cloud here" when its foot faded to a wash).
   Both its edges are drawn clouds: a skyline of heads above, lobes and curling tails hanging below, in strong
   gold and rose all the way down. Its heads rise from just under the opening's buttons, and its tails hang into
   the top of the New release, which makes room for them. The
   picture is one painted band joined to its own mirror image, so it is wide enough for a whole screen. */
:root[data-theme="light"] .hero::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: 0;
  right: 0;
  top: calc(100% - var(--band-rise));
  height: var(--band-h);
  background: url("assets/heaven/band.webp") 50% 0 / max(100%, calc(var(--band-h) * 4.865)) 100% no-repeat;
  pointer-events: none;
}

:root[data-theme="light"] .release {
  padding-top: calc(var(--band-h) - var(--band-rise) + 4.5rem);
}

/* The caption under the phone sits in the phone's own soft shadow, which darkens the sky behind it a little. It
   takes the stronger of the two greys there, so it passes even on the gold at the top of the window. */
:root[data-theme="light"] .phone figcaption {
  color: var(--ink-2);
}

/* ---- Painted clouds further down the page (the same request). One floats in the gap above each of four
   sections, at the right, where no words are; on a wide screen it is bigger and sits beside the section's
   heading, which keeps to the left. They lie in front of the dotted sky and drift a little from side to side.
   (Two more floated in the empty upper half of the closing until December 3, 2026, when the closing got the
   opening's heaven.) ---- */
:root[data-theme="light"] :is(#services, #capabilities, #process, #faq) {
  position: relative;
}

:root[data-theme="light"] :is(#services, #capabilities, #process, #faq)::before {
  content: "";
  position: absolute;
  z-index: -2;
  top: 0.75rem;
  right: 1rem;   /* inside the page even at the far end of its drift, so a phone never scrolls sideways */
  height: calc(var(--section) - 1.5rem);
  aspect-ratio: 2 / 1;
  background: 50% 50% / contain no-repeat;
  pointer-events: none;
}

:root[data-theme="light"] #services::before {
  background-image: url("assets/heaven/cloud-a.webp");
}

:root[data-theme="light"] #capabilities::before {
  background-image: url("assets/heaven/cloud-b.webp");
  scale: -1 1;
}

:root[data-theme="light"] #process::before {
  background-image: url("assets/heaven/cloud-c.webp");
}

:root[data-theme="light"] #faq::before {
  background-image: url("assets/heaven/cloud-a.webp");
  scale: -1 1;
}

@media (min-width: 80rem) {
  :root[data-theme="light"] :is(#services, #capabilities, #process, #faq)::before {
    top: calc(var(--section) - 2rem);
    right: calc(var(--gutter) - 3rem);
    width: clamp(19rem, 26vw, 25rem);
    height: auto;
  }
}

/* The drift. Held still by "Pause motion", at rest for the checking switches, and never started when the system
   asks for less motion. */
@media (prefers-reduced-motion: no-preference) {
  :root[data-theme="light"] :is(#services, #capabilities, #process, #faq)::before {
    animation: cloud-drift 26s ease-in-out infinite alternate;
  }

  :root[data-theme="light"] :is(#capabilities, #faq)::before {
    animation-duration: 34s;
  }

  :root[data-theme="light"].paused :is(#services, #capabilities, #process, #faq)::before {
    animation-play-state: paused;
  }

  :root[data-theme="light"].at-rest :is(#services, #capabilities, #process, #faq)::before {
    animation: none;
  }
}

@keyframes cloud-drift {
  from { translate: -0.875rem 0; }
  to { translate: 0.875rem 0; }
}

.flock {
  display: none;
}

:root[data-theme="light"] .flock {
  position: absolute;
  z-index: -1;
  inset: 0;
  display: block;
  overflow: hidden;
  pointer-events: none;
}

/* One crane: a window on one pose of the sheet of its wingbeat. js/ridges.js sizes it, moves it and picks the
   pose. Whole and solid, never see-through. */
.flock span {
  position: absolute;
  top: 0;
  left: 0;
  background: url("assets/heaven/crane-fly.webp") 0 0 no-repeat;
  will-change: transform;
}

/* Titles are bold in light mode (the owner's request, November 23, 2026): on the bright sky the light weights of
   dark mode look thin. */
:root[data-theme="light"] :is(.display, .title, .tracker-title, .agent-title, .step h3, .tier .spec-name, .doc-part h2) {
  font-weight: 700;
}

:root[data-theme="light"] .release-name {
  font-weight: 750;
}

/* Titles are deep blue in light mode, not black: #1a3e66, the deep blue that the mountains' near ridges had (they are gone now), so they belong
   to the picture behind them. 8:1 on the bluest sky, 10.9:1 on a white box. */
:root[data-theme="light"] :is(.display, .title, .tracker-title, .agent-title, .doc-part h2, .release-name) {
  color: #1a3e66;
}

/* The word picked out in the opening's heading: a burnt orange, the strong opposite of the blue round it.
   4.6:1 on the bluest sky, 5.3:1 where the heading sits. */
:root[data-theme="light"] .display .key {
  color: #ad3a12;
}

/* The opening keeps its words above the band of clouds at its foot. On a phone its buttons stack, so they are
   given a little more room above the band. */
:root[data-theme="light"] .hero .shade {
  padding-bottom: calc(var(--band-rise) - 2.5rem);
}

@media (max-width: 40rem) {
  :root[data-theme="light"] .hero .shade {
    padding-bottom: calc(var(--band-rise) - 0.75rem);
  }
}

/* Boxes are solid from the moment they come into view. In dark mode they fade in as they rise; over the bright
   sky and its painted clouds a half-faded box looked like a fault, so here they only rise. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    :root[data-theme="light"]:not(.at-rest) :is(.spec, .grid6 li, .stats div, .offer-steps li, .faq details, .phone, .tracker, .agent, .cast li) {
      animation-name: rise-solid;
    }
  }
}

@keyframes rise-solid {
  from { transform: translateY(2rem); }
}

/* Nothing pale is laid over the backdrop (the owner's request, November 23, 2026): the sky shows at full strength
   behind every section, and the words sit straight on it, with no glow or halo. */
:root[data-theme="light"] :is(.sheet, .foot) {
  background-color: transparent;
}

:root[data-theme="light"] :is(.sheet, .closing, .glow, .glow-small, .release-head)::before {
  display: none;
}

:root[data-theme="light"] :is(.glow, .glow-small) {
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] :is(.hero, .closing, .release-head, .glow, .glow-small) * {
  text-shadow: none;
}

/* Outlined buttons are white, so their words never sit on the sky's gold or on a painted cloud. */
:root[data-theme="light"] :is(.hero, .closing, .release, .sheet) .btn:not(.btn-solid) {
  background-color: #ffffff;
}

/* If the backdrop cannot run, a soft dawn light stands in for it. Each glow fades out inside its own section,
   so no edge shows where one section meets the next. */
:root[data-theme="light"]:not(.ridges-on) .hero {
  background: radial-gradient(closest-side at 72% 32%, rgb(255 190 160 / 0.5), rgb(255 190 160 / 0));
}

:root[data-theme="light"]:not(.ridges-on) .closing {
  background: radial-gradient(closest-side at 50% 55%, rgb(255 190 160 / 0.42), rgb(232 211 168 / 0.18) 55%, rgb(232 211 168 / 0));
}

/* ---- The closing's heaven (December 3, 2026): the page ends where it began. After the critique found the light
   page's idea stopping after its first screen and its ending flat, the owner chose to "keep it, carry it down".
   The closing shows the opening's painting again, with the same two pictures (nothing more to fetch). A band of
   clouds lies across its top, the same band that closes the opening's foot, and another closes its own foot, so
   both of the painting's edges are hidden behind the bands' solid middles: from the top, it is the same rows of
   the band that hide the opening's foot. Cranes circle the words here too (.flock, moved by js/ridges.js). ---- */
:root[data-theme="light"] .closing::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  display: block;
  height: auto;
  background: url("assets/heaven/sky-wide.webp") 50% 45% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / 0) 0, #000 calc(var(--paint-a) - var(--paint-b)), #000 calc(100% - var(--paint-a)), rgb(0 0 0 / 0) calc(100% - var(--paint-b)));
  mask-image: linear-gradient(180deg, rgb(0 0 0 / 0) 0, #000 calc(var(--paint-a) - var(--paint-b)), #000 calc(100% - var(--paint-a)), rgb(0 0 0 / 0) calc(100% - var(--paint-b)));
  pointer-events: none;
}

@media (max-aspect-ratio: 4/5) {
  :root[data-theme="light"] .closing::before {
    background-image: url("assets/heaven/sky-tall.webp");
  }
}

/* The two bands, in one layer that reaches from the top band's heads to the foot band's tails. */
:root[data-theme="light"] .closing::after {
  content: "";
  position: absolute;
  z-index: -2;
  left: 0;
  right: 0;
  top: calc(var(--paint-a) - var(--band-rise));
  bottom: calc(var(--band-rise) - var(--band-h));
  background:
    url("assets/heaven/band.webp") 50% 0 / max(100%, calc(var(--band-h) * 4.865)) var(--band-h) no-repeat,
    url("assets/heaven/band.webp") 50% 100% / max(100%, calc(var(--band-h) * 4.865)) var(--band-h) no-repeat;
  pointer-events: none;
}

/* The words keep above the foot band, as the opening's do. On a phone the address goes under the button, as the
   opening's two buttons stack, so the cranes have room to pass under them. */
:root[data-theme="light"] .closing .shade {
  padding-bottom: calc(var(--band-rise) - 2.5rem);
}

@media (max-width: 40rem) {
  :root[data-theme="light"] .closing .shade {
    padding-bottom: calc(var(--band-rise) - 0.75rem);
  }

  :root[data-theme="light"] .closing-copy .actions {
    flex-direction: column;
    align-items: center;
  }
}

/* The footer makes room for the foot band's tails, and has no line across them. */
:root[data-theme="light"] .foot {
  padding-top: calc(var(--band-h) - var(--band-rise) + 2rem);
  border-top: 0;
}

/* ---- The space pictures of dark mode stay in dark mode. In light mode each metal card carries a crane in flight
   instead of a planet, cut into the metal: the crane of the opening (its first pose, wings open), as a solid shape
   a shade deeper than the metal. Process step 4 drops its planet at dawn, the cards their shooting star, and the
   footer the Earth's credit, since no Earth is shown. ---- */
:root[data-theme="light"] :is(.tier-orbit, .shoot, .stage-shot .s-planet, .earth-credit) {
  display: none;
}

/* The pinpricks of starlight across the metal too. */
:root[data-theme="light"] .tier-plate::before {
  content: none;
}

:root[data-theme="light"] .tier-top::after {
  --crane-h: clamp(4.75rem, 30cqi, 6.75rem);
  content: "";
  position: absolute;
  top: -0.5rem;
  right: 0.25rem;
  width: calc(var(--crane-h) * 0.78125);
  height: var(--crane-h);
  background-color: var(--crane-ink);
  -webkit-mask: url("assets/heaven/crane-fly.webp") 0 0 / calc(var(--crane-h) * 0.78125 * 7) calc(var(--crane-h) * 4) no-repeat;
  mask: url("assets/heaven/crane-fly.webp") 0 0 / calc(var(--crane-h) * 0.78125 * 7) calc(var(--crane-h) * 4) no-repeat;
  rotate: -32deg;
  pointer-events: none;
}

/* Not "--engrave": styles.css already uses that name for the cards' words, and reusing it turned them crane brown. */
:root[data-theme="light"] .tier-bronze { --crane-ink: #7a4527; }
:root[data-theme="light"] .tier-silver { --crane-ink: #5d636d; }
:root[data-theme="light"] .tier-gold { --crane-ink: #7d5b1c; }

@media (prefers-reduced-motion: no-preference) {
  :root[data-theme="light"] .tier-top::after {
    transition: transform 0.9s var(--ease);
  }

  :root[data-theme="light"] .tier:hover .tier-top::after {
    transform: translate(0.25rem, -0.25rem) scale(1.06);
  }
}

:root[data-theme="light"]:not(.ridges-on) .release {
  background: radial-gradient(closest-side at 50% 30%, rgb(255 190 160 / 0.26), rgb(255 190 160 / 0));
}

/* The bar */
:root[data-theme="light"] .top {
  background-color: rgb(255 255 255 / 0.94);
  box-shadow: 0 0.0625rem 0 var(--line);
}

:root[data-theme="light"] .top::after {
  display: none;
}

:root[data-theme="light"] :is(.scrolled .top, .js.menu-open .top, .js .menu-open .nav, .page-plain .top) {
  background-color: #ffffff;
}

:root[data-theme="light"] .theme-btn {
  border-color: rgb(23 23 26 / 0.3);
}

/* Buttons: ink instead of white, so the words on them are white. */
:root[data-theme="light"] :is(.btn:hover, .btn:focus-visible, .btn-solid, .nav .nav-cta:hover, .nav .nav-cta:focus-visible, .skip) {
  color: #ffffff;
}

:root[data-theme="light"] .btn-solid::before {
  background-color: var(--space);
}

:root[data-theme="light"] :is(.btn-solid:hover, .btn-solid:focus-visible) {
  color: var(--ink);
}

:root[data-theme="light"] ::selection {
  color: #ffffff;
}

:root[data-theme="light"] :is(.pause, .phone-play) {
  border-color: rgb(23 23 26 / 0.35);
  background-color: rgb(255 255 255 / 0.9);
  color: var(--ink);
}

/* Boxes on paper: white, a fine edge and a soft shadow. */
:root[data-theme="light"] :is(.box, .box-sky, .stage) {
  box-shadow: 0 0.0625rem 0.125rem rgb(70 55 35 / 0.06), 0 1rem 2.5rem -1.25rem rgb(70 55 35 / 0.2);
}

:root[data-theme="light"] .tracker {
  background:
    radial-gradient(36rem 22rem at 100% 0%, rgb(201 138 96 / 0.12), rgb(201 138 96 / 0) 70%),
    radial-gradient(30rem 20rem at 0% 100%, rgb(255 182 155 / 0.14), rgb(255 182 155 / 0) 70%),
    #ffffff;
}

:root[data-theme="light"] .agent {
  background:
    radial-gradient(34rem 20rem at 0% 0%, rgb(255 182 155 / 0.16), rgb(255 182 155 / 0) 70%),
    radial-gradient(30rem 18rem at 100% 100%, rgb(232 211 168 / 0.18), rgb(232 211 168 / 0) 70%),
    #ffffff;
}

/* The three tool marks under the agent's words: fine ink frames on paper. The light that crosses them is a warm
   tint here, since white would not show on white, and each chip's edge rests at ink between its turns. */
:root[data-theme="light"] .agent-marks {
  --mark-light: rgb(164 80 47 / 0.14);
}

:root[data-theme="light"] .agent-marks li {
  border-color: rgb(23 23 26 / 0.18);
  background-color: rgb(23 23 26 / 0.03);
  animation-name: mark-turn-light;
}

@keyframes mark-turn-light {
  0%, 30%, 100% { transform: translateY(0); border-color: rgb(23 23 26 / 0.18); }
  12% { transform: translateY(-0.25rem); border-color: var(--accent); }
}

/* Champagne and gold words, made deep enough to read on paper. */
:root[data-theme="light"] :is(.release-new, .live-pill) {
  color: var(--champagne);
}

:root[data-theme="light"] .live-pill {
  border-color: rgb(134 103 42 / 0.45);
  background-color: rgb(134 103 42 / 0.08);
}

:root[data-theme="light"] :is(.lost-code, .folio-offer-big) {
  color: #86672a;
}

:root[data-theme="light"] .folio-offer {
  border-color: rgb(134 103 42 / 0.5);
  background-color: #f8f1e2;
}

/* Tags filled with the dawn colour keep the light peach, so their dark words stay readable (13:1). */
:root[data-theme="light"] :is(.folio-tag, .pick:not(.tier .pick)) {
  background-color: #ffb69b;
  color: #1b1310;
}

/* Fine lines and tags that were white on black. */
:root[data-theme="light"] :is(.t-tag, .offer-steps .t-tag, .steps .t-tag) {
  border-color: rgb(23 23 26 / 0.28);
}

:root[data-theme="light"] .step-rail {
  background-color: rgb(23 23 26 / 0.14);
}

/* The plain pages (privacy, terms, page not found) have no sky: they stay paper. */
:root[data-theme="light"] :is(.page-plain, .page-plain .foot) {
  background-color: var(--space);
}

/* The wheel logo is white; on paper it is shown in ink. */
:root[data-theme="light"] .brand img {
  filter: brightness(0);
}

/* ---- White faces (the owner's request, November 23, 2026): in light mode the pictures of screens are white like
   the rest of the page, instead of dark devices lying on the paper. Ink words, fine grey lines, light grey
   placeholders, and each picture keeps its own luxury colour, made deeper so it shows on white. The phone stays
   dark (the rule near the top). Every word on them passes WCAG AA. ---- */

/* The luxury colours, deepened for drawings on white: cognac, champagne, rose gold, bordeaux, platinum,
   antique gold. */
:root[data-theme="light"] :is(.c-cognac .tile-visual, .stage-shot.c-cognac) { --c: 168 102 62; }
:root[data-theme="light"] :is(.c-champagne .tile-visual, .stage-shot.c-champagne) { --c: 172 138 72; }
:root[data-theme="light"] :is(.c-rose .tile-visual, .stage-shot.c-rose) { --c: 184 118 98; }
:root[data-theme="light"] :is(.c-bordeaux .tile-visual, .stage-shot.c-bordeaux) { --c: 160 76 90; }
:root[data-theme="light"] :is(.c-platinum .tile-visual, .stage-shot.c-platinum) { --c: 120 124 132; }
:root[data-theme="light"] :is(.c-gold .tile-visual, .stage-shot.c-gold) { --c: 170 128 50; }

/* Tags and status pills: white with fine ink edges. The filled tags have white words. */
:root[data-theme="light"] .tag:not(.tag-bright, .agent-tag-now, .agent-tag-ask) {
  border-color: rgb(23 23 26 / 0.3);
}

:root[data-theme="light"] :is(.tag-bright, .agent-tag-ask) {
  color: #ffffff;
}

:root[data-theme="light"] .status:not(.is-ask, .is-live) {
  border-color: rgb(23 23 26 / 0.3);
}

/* The three service cards: the panel set into the metal is white. */
:root[data-theme="light"] .tier-body {
  background: #ffffff;
  box-shadow:
    inset 0 0 0 0.0625rem rgb(23 23 26 / 0.12),
    0 0.0625rem 0 rgb(255 255 255 / 0.5),
    0 0.75rem 1.5rem -1rem rgb(40 28 16 / 0.4);
}

:root[data-theme="light"] .tier .pick {
  border-color: rgb(170 128 50 / 0.75);
  background-color: #ffffff;
  color: var(--champagne);
  box-shadow: 0 0.375rem 1rem -0.5rem rgb(40 28 16 / 0.45);
}

/* The project tracker's screen. */
:root[data-theme="light"] .console {
  border-color: var(--box-edge);
  background-color: #ffffff;
  box-shadow: 0 2.5rem 5rem -2.5rem rgb(70 55 35 / 0.4), 0 0 4rem -1rem rgb(212 175 106 / 0.22);
}

:root[data-theme="light"] .console-bar {
  background-color: #f4f4f6;
}

:root[data-theme="light"] .console-url {
  background-color: #e8e8ec;
}

:root[data-theme="light"] .console .meter {
  background-color: rgb(23 23 26 / 0.09);
}

:root[data-theme="light"] .console .stepper::before {
  background: rgb(23 23 26 / 0.16);
}

:root[data-theme="light"] .console .stepper li::before {
  background-color: #ffffff;
  box-shadow: inset 0 0 0 0.125rem rgb(23 23 26 / 0.28);
}

:root[data-theme="light"] .console .stepper .done::before {
  background-color: rgb(212 175 106);
  box-shadow: none;
}

:root[data-theme="light"] .console .stepper .now::before {
  background: radial-gradient(circle, #d9825e 0 0.3rem, #ffffff 0.35rem);
  box-shadow: inset 0 0 0 0.125rem #d9825e, 0 0 0 0.3rem rgb(217 130 94 / 0.16);
}

:root[data-theme="light"] .console .mini-site {
  background-color: #f4f4f6;
  box-shadow: inset 0 0 0 0.0625rem rgb(23 23 26 / 0.1);
}

:root[data-theme="light"] .console .mini-site span:not(.mini-live) {
  border-color: rgb(23 23 26 / 0.28);
}

:root[data-theme="light"] .console:is([data-stage="1"], [data-stage="2"], [data-stage="3"]) .mini-site span:not(.mini-live) {
  border-color: rgb(23 23 26 / 0.06);
  background-color: rgb(23 23 26 / 0.08);
}

:root[data-theme="light"] .console:is([data-stage="1"], [data-stage="2"], [data-stage="3"]) .mini-cards span:nth-child(1) { background-color: rgb(201 138 96 / 0.55); }
:root[data-theme="light"] .console:is([data-stage="1"], [data-stage="2"], [data-stage="3"]) .mini-cards span:nth-child(2) { background-color: rgb(212 175 106 / 0.4); }
:root[data-theme="light"] .console:is([data-stage="1"], [data-stage="2"], [data-stage="3"]) .mini-cards span:nth-child(3) { background-color: rgb(170 128 50 / 0.45); }

/* Build: real words and a working button (named with "span" so they outrank the placeholder rule above). */
:root[data-theme="light"] .console:is([data-stage="2"], [data-stage="3"]) .mini-site span:is(.mini-h, .mini-l) {
  background-color: rgb(60 38 24 / 0.6);
}

:root[data-theme="light"] .console:is([data-stage="2"], [data-stage="3"]) .mini-site span.mini-btn {
  background-color: #17171a;
}

/* The six custom software pictures: a light grey window with a fine dot grid. */
:root[data-theme="light"] .tile-visual {
  background:
    radial-gradient(20rem 10rem at 50% 0%, rgb(var(--c) / 0.14), rgb(var(--c) / 0) 75%),
    radial-gradient(circle, rgb(23 23 26 / 0.09) 0.05rem, rgb(23 23 26 / 0) 0.0625rem) 50% 0.5rem / 0.875rem 0.875rem,
    #f6f6f8;
}

:root[data-theme="light"] .viz .v-win { fill: #ffffff; stroke: rgb(23 23 26 / 0.14); }
:root[data-theme="light"] .viz .v-in { fill: rgb(23 23 26 / 0.035); stroke: rgb(23 23 26 / 0.1); }
:root[data-theme="light"] .viz .v-in2 { fill: #ffffff; stroke: rgb(23 23 26 / 0.14); }
:root[data-theme="light"] .viz .v-hi { fill: rgb(23 23 26 / 0.5); }
:root[data-theme="light"] .viz .v-lo { fill: rgb(23 23 26 / 0.14); }
:root[data-theme="light"] .viz .v-glyph { stroke: rgb(23 23 26 / 0.5); }
:root[data-theme="light"] .viz .v-tick { stroke: #ffffff; }
:root[data-theme="light"] .viz .d-line { stroke: #17171a; }
:root[data-theme="light"] .viz .d-dot { fill: #17171a; }

/* The colours written into the drawings themselves: dark surfaces become white, white lines and bars become ink. */
:root[data-theme="light"] .viz :is([fill="#15151a"], [fill="#211c1f"], [fill="#1b1810"], [fill="#17150f"]) { fill: #ffffff; }
:root[data-theme="light"] .viz [fill="#3a3120"] { fill: rgb(var(--c) / 0.2); }
:root[data-theme="light"] .viz [stroke="#1b1b20"] { stroke: #ffffff; }
:root[data-theme="light"] .viz circle[fill="#141414"]:not([fill-opacity]) { fill: #ffffff; }

:root[data-theme="light"] :is(.viz, .stage-shot) :is([fill="rgb(255 255 255 / 0.5)"], [fill="rgb(255 255 255 / 0.6)"], [fill="rgb(255 255 255 / 0.62)"], [fill="rgb(255 255 255 / 0.7)"], [fill="rgb(255 255 255 / 0.75)"]) {
  fill: rgb(23 23 26 / 0.5);
}

:root[data-theme="light"] :is(.viz, .stage-shot) :is([fill="rgb(255 255 255 / 0.16)"], [fill="rgb(255 255 255 / 0.18)"], [fill="rgb(255 255 255 / 0.2)"], [fill="rgb(255 255 255 / 0.22)"], [fill="rgb(255 255 255 / 0.28)"], [fill="rgb(255 255 255 / 0.3)"]) {
  fill: rgb(23 23 26 / 0.15);
}

:root[data-theme="light"] :is(.viz, .stage-shot) :is([fill="rgb(255 255 255 / 0.035)"], [fill="rgb(255 255 255 / 0.05)"], [fill="rgb(255 255 255 / 0.06)"], [fill="rgb(255 255 255 / 0.07)"]) {
  fill: rgb(23 23 26 / 0.035);
}

:root[data-theme="light"] :is(.viz, .stage-shot, .agent-flow) :is([stroke="rgb(255 255 255 / 0.08)"], [stroke="rgb(255 255 255 / 0.12)"], [stroke="rgb(255 255 255 / 0.14)"], [stroke="rgb(255 255 255 / 0.16)"], [stroke="rgb(255 255 255 / 0.18)"], [stroke="rgb(255 255 255 / 0.2)"], [stroke="rgb(255 255 255 / 0.22)"]) {
  stroke: rgb(23 23 26 / 0.15);
}

:root[data-theme="light"] :is(.viz, .stage-shot) [stroke="rgb(255 255 255 / 0.3)"] { stroke: rgb(23 23 26 / 0.28); }
:root[data-theme="light"] :is(.viz, .stage-shot) [stroke="rgb(255 255 255 / 0.6)"] { stroke: rgb(23 23 26 / 0.5); }

/* The agent's screen. */
:root[data-theme="light"] .agent-run {
  border-color: var(--box-edge);
  background-color: #ffffff;
  box-shadow: 0 2.5rem 5rem -2.5rem rgb(70 55 35 / 0.4), 0 0 4rem -1rem rgb(255 182 155 / 0.24);
}

:root[data-theme="light"] .agent-canvas {
  border-color: rgb(23 23 26 / 0.1);
  background-color: #f6f6f8;
  background-image: radial-gradient(circle, rgb(23 23 26 / 0.1) 0.05rem, rgb(23 23 26 / 0) 0.0625rem);
}

:root[data-theme="light"] .agent-flow [fill="#17171b"] { fill: #ffffff; }
:root[data-theme="light"] .agent-flow :is(.n-box, .o-box) { fill: #ffffff; stroke: rgb(23 23 26 / 0.14); }
:root[data-theme="light"] .agent-flow .n-hi { fill: rgb(23 23 26 / 0.5); }
:root[data-theme="light"] .agent-flow .n-lo { fill: rgb(23 23 26 / 0.14); }
:root[data-theme="light"] .flow-out .o-chip { fill: rgb(23 23 26 / 0.05); }
:root[data-theme="light"] .flow-out .n-icon { stroke: rgb(23 23 26 / 0.35); }
:root[data-theme="light"] .flow-out .o-line { fill: rgb(23 23 26 / 0.15); }
:root[data-theme="light"] .flow-out .o-ring { fill: #ffffff; stroke: rgb(23 23 26 / 0.28); }
:root[data-theme="light"] .flow-out .o-check { stroke: #ffffff; }
:root[data-theme="light"] .flow-out.on .o-box { fill: #fff6f2; stroke: rgb(217 130 94 / 0.6); }
:root[data-theme="light"] .flow-out.on .o-chip { fill: rgb(255 182 155 / 0.3); }
:root[data-theme="light"] .flow-out.on .n-icon { stroke: currentColor; }
:root[data-theme="light"] .flow-out.on .o-line { fill: rgb(23 23 26 / 0.5); }
:root[data-theme="light"] .flow-out.on .o-line-2 { fill: rgb(23 23 26 / 0.18); }
:root[data-theme="light"] .flow-out.on .o-ring { fill: currentColor; stroke: currentColor; }
:root[data-theme="light"] .flow-out.wait .o-box { fill: #fbf7ee; stroke: rgb(170 128 50 / 0.7); }
:root[data-theme="light"] .flow-out.wait .o-chip { fill: rgb(212 175 106 / 0.22); }
:root[data-theme="light"] .flow-out.wait .n-icon { stroke: currentColor; }
:root[data-theme="light"] .flow-out.wait .o-ring { stroke: currentColor; }
:root[data-theme="light"] .flow-out.wait .o-line { fill: rgb(23 23 26 / 0.3); }

:root[data-theme="light"] .agent-stack {
  border-color: rgb(23 23 26 / 0.14);
  background-color: #ffffff;
}

:root[data-theme="light"] .agent-meter {
  background-color: rgb(23 23 26 / 0.09);
}

:root[data-theme="light"] .agent-mark {
  border-color: rgb(23 23 26 / 0.25);
}

:root[data-theme="light"] .agent-tasks .done .agent-mark {
  border-color: var(--ink);
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.25 7 10.5l4.5-5' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 0.875rem no-repeat;
}

:root[data-theme="light"] .agent-tasks .now .agent-mark {
  border-color: rgb(217 130 94 / 0.3);
  border-top-color: var(--accent);
}

:root[data-theme="light"] .agent-tasks .ask .agent-mark {
  border-color: var(--champagne);
}

:root[data-theme="light"] .agent-ok {
  border-color: rgb(23 23 26 / 0.14);
  background-color: #ffffff;
}

:root[data-theme="light"] .agent-run[data-step="4"] .agent-ok {
  border-color: rgb(170 128 50 / 0.6);
}

:root[data-theme="light"] .agent-approve {
  border-color: rgb(23 23 26 / 0.3);
}

:root[data-theme="light"] .agent-run[data-step="4"] .agent-approve {
  border-color: var(--ink);
  background-color: var(--ink);
  color: #ffffff;
}

:root[data-theme="light"] .agent-run[data-step="5"] .agent-approve {
  border-color: rgb(170 128 50 / 0.8);
  color: var(--champagne);
}

/* The process pictures: a white page with the same drawings, in each step's colour. */
:root[data-theme="light"] .stage-shot {
  background:
    radial-gradient(70% 60% at 76% 12%, rgb(var(--c) / 0.2), rgb(var(--c) / 0) 72%),
    linear-gradient(180deg, #fbfbfc, #efeff2);
}

:root[data-theme="light"] .stage-shot .s-chip {
  fill: var(--ink);
}

:root[data-theme="light"] .stage-shot :is([fill="#101013"], [fill="#131316"], [fill="#151518"], [fill="#17171a"], [fill="#1d1d21"]) {
  fill: #ffffff;
}

:root[data-theme="light"] .stage-shot [fill="#050506"] {
  fill: #e7e5df;
}

:root[data-theme="light"] .stage-count {
  border-color: rgb(23 23 26 / 0.2);
  background-color: rgb(255 255 255 / 0.94);
}

:root[data-theme="light"] .stage-btn {
  border-color: rgb(23 23 26 / 0.35);
  background-color: rgb(255 255 255 / 0.94);
  color: var(--ink);
}

:root[data-theme="light"] :is(.stage-btn:hover, .stage-btn:focus-visible) {
  border-color: var(--ink);
  background-color: var(--ink);
  color: #ffffff;
}
