/* A section below the hero is a band: the hero's grid of squares and its colour wash, so the page keeps its texture
   instead of going flat black (owner, 2026-11-29: "both the sections feel blank in the background they give ai off").
   It comes from behind the section's card and fades outwards on every side ("have the design come from the middle/ui
   not from the top"), quieter than the hero's ("less aggressive").

   It is a STILL picture on purpose: one small tile of squares (band-grid.svg, the hero grid's measures), a colour wash
   under it, and fades drawn in the page's own colour over its edges. No canvas, no timer, no mask: two more animated,
   masked grids here made buttons and text on the page vanish while scrolling (owner, 2026-11-29). Only the hero's
   grid flickers. */
.band {
  position: relative;
  isolation: isolate;
  --hero-grid-end: #795bd3;
  --band-wash: 5%;
  --band-grid-opacity: .115;
  --band-from: var(--ui-primary);
  --band-to: var(--hero-grid-end);
  --halo-x: clamp(5rem, 15vw, 17rem);          /* how far it reaches past the card's sides */
  --halo-top: clamp(7rem, 12vw, 12rem);        /* up behind the heading */
  --halo-bottom: clamp(4rem, 6.5vw, 6rem);     /* down, short of the next divider */
}
html[data-theme="dark"] .band { --hero-grid-end: #9276eb; --band-wash: 7.5%; --band-grid-opacity: .145; }
/* The second band runs violet to blue, so the two aren't the same picture twice. */
.feat { --band-from: var(--hero-grid-end); --band-to: var(--ui-primary); }
.band-stage { position: relative; }
.band-halo {
  position: absolute;
  inset: calc(-1 * var(--halo-top)) calc(-1 * var(--halo-x)) calc(-1 * var(--halo-bottom));
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, color-mix(in srgb, var(--band-from) var(--band-wash), transparent), color-mix(in srgb, var(--band-to) var(--band-wash), transparent));
}
.band-halo::before { content: ""; position: absolute; inset: 0; background: url("band-grid.svg") 0 0 / 160px 160px; opacity: var(--band-grid-opacity); }
/* The fades: the page's colour over the halo's four edges, clear across the card. */
.band-halo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, var(--ui-panel), transparent var(--halo-x), transparent calc(100% - var(--halo-x)), var(--ui-panel)),
    linear-gradient(to bottom, var(--ui-panel), transparent var(--halo-top), transparent calc(100% - var(--halo-bottom)), var(--ui-panel));
}

/* Where DroboAI runs (templates/run_options.html): one card. The three choices on the left, the open one's walkthrough
   on the right. Colours, radii and the dotted stage are the site's own (shared/magic.css, shared/home.css). */
.run {
  --run-ease: cubic-bezier(.22, .8, .24, 1);
  --run-pad: clamp(1.25rem, 2.1vw, 1.85rem);
  /* A wider column than the page's 70rem: the walkthrough is a screen recording and needs the room to be read. */
  --store-gutter: max(clamp(1.25rem, 4vw, 4rem), calc((100% - 76rem) / 2));
  position: relative;
  box-sizing: border-box;
  padding: clamp(4.5rem, 7.5vw, 7rem) var(--store-gutter) clamp(4.5rem, 7.5vw, 7rem);
  color: var(--ui-fg);
  font-family: Inter, system-ui, sans-serif;
  scroll-margin-top: 1rem;
}
.run-head { display: grid; justify-items: center; gap: .8rem; margin-bottom: clamp(1.75rem, 3vw, 2.75rem); text-align: center; }
.run-head h2 { margin: 0; font-family: inherit; font-weight: 690; letter-spacing: -.055em; text-wrap: balance; }
.run-head p { margin: 0; color: var(--ui-muted); font-size: clamp(1rem, 1.25vw, 1.125rem); line-height: 1.5; }

.run-card {
  display: grid;
  grid-template-columns: minmax(0, 27.5rem) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--ui-border);
  border-radius: 1.25rem;
  background: var(--ui-panel);
  box-shadow: var(--ui-shadow);
}

/* ── The choices ── */
.run-list { display: flex; flex-direction: column; min-width: 0; }
.run-option { --row: var(--ui-panel); position: relative; display: flex; flex-direction: column; border-top: 1px solid var(--ui-border); background: var(--row); transition: background-color .35s ease; }
.run-option:first-child { border-top: 0; }
.run-option[data-active] { --row: color-mix(in srgb, var(--ui-primary) 5%, var(--ui-panel)); flex: 1 1 auto; }

/* Cloud's first-store deal, as small as it can be said (owner, 2026-11-29, after a full deal block: "too much shit
   going on bro", then "just make a timer left of the price", "and put + 2 months somewhere"): a tag beside the name
   and the time left beside the price. Both are in the row's heading, so they show whether Cloud is open or not, and
   both go when the hour is over (run.js). Made for this page; nothing is taken from the old site's deal coupon. */
.run-option__name:has(.run-bonus) { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .6rem; }
.run-bonus {
  display: inline-block;
  padding: .22rem .6rem .24rem;
  border-radius: 100px;
  background: var(--cloud-gradient);
  color: #fff;
  font-size: .72rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: 0;
  white-space: nowrap;
}
.run-option__amount { display: inline-flex; align-items: center; justify-content: flex-end; gap: .6rem; }
/* The hero's own highlight (the typed phrase's), holding the minutes and seconds. */
.run-timer {
  padding: .26rem .5rem .28rem;
  border-radius: .45rem;
  background: color-mix(in srgb, var(--ui-primary) 23%, var(--ui-panel));
  color: var(--ui-fg);
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.run-bonus[hidden], .run-timer[hidden] { display: none; }
@media (max-width: 480px) {
  .run-option__name:has(.run-bonus) { gap: .25rem .45rem; }
  .run-bonus { padding: .16rem .5rem .18rem; font-size: .68rem; }
  .run-option__amount { gap: .45rem; }
  .run-timer { padding: .2rem .4rem .22rem; font-size: .78rem; }
}
}
/* The open choice's edge: the hero button's blue-to-violet, drawn top to bottom. */
.run-option::before {
  content: "";
  position: absolute;
  inset: -1px auto -1px 0;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #4f46e5 55%, #7c3aed);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform .5s var(--run-ease);
}
.run-option[data-active]::before { transform: scaleY(1); }

.run-option__title { margin: 0; font: inherit; letter-spacing: inherit; }
.run-option__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  box-sizing: border-box;
  width: 100%;
  padding: 1.05rem var(--run-pad);
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.run-option__head:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: -3px; border-radius: .6rem; }
.run-option__name, .run-option__price b {
  display: block;
  font-size: 1.375rem;
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.045em;
  color: color-mix(in srgb, var(--ui-fg) 64%, transparent);
  transition: color .25s ease;
}
.run-option__price b { font-variant-numeric: tabular-nums; }
.run-option__where, .run-option__price small { display: block; margin-top: .3rem; color: var(--ui-muted); font-size: .875rem; font-weight: 450; line-height: 1.3; }
.run-option__price { text-align: end; white-space: nowrap; }
.run-option[data-active] :is(.run-option__name, .run-option__price b),
.run-option__head:is(:hover, :focus-visible) :is(.run-option__name, .run-option__price b) { color: var(--ui-fg); }
.run-option[data-active] .run-option__head { cursor: default; }

/* Opens and closes by height, so the card never jumps. */
.run-option__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--run-ease); }
.run-option__inner { min-height: 0; overflow: hidden; visibility: hidden; opacity: 0; transition: opacity .2s ease, visibility 0s linear .5s; }
.run-option[data-active] .run-option__body { grid-template-rows: 1fr; }
.run-option[data-active] .run-option__inner { visibility: visible; opacity: 1; transition: opacity .4s ease .12s, visibility 0s; }
.run-option__content {
  display: grid;
  align-content: start;
  gap: 1.15rem;
  box-sizing: border-box;
  min-height: var(--run-body, 0px);
  padding: .1rem var(--run-pad) 1.6rem;
}
.run-option__text { max-width: 44ch; margin: 0; color: var(--ui-muted); font-size: .95rem; line-height: 1.55; }
.run-option__text strong { color: var(--ui-fg); font-weight: 600; }

.run-facts { display: grid; gap: .5rem; margin: 0; padding-top: 1.05rem; border-top: 1px solid var(--ui-border); font-size: .875rem; line-height: 1.4; }
.run-facts > div { display: grid; grid-template-columns: 6.25rem minmax(0, 1fr); gap: .75rem; }
.run-facts dt { color: var(--ui-muted); }
.run-facts dd { margin: 0; color: var(--ui-fg-2); font-weight: 500; }

.run-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; margin-top: .1rem; }
.run-actions form, .run-start { display: grid; margin: 0; }
.run-start button {
  min-height: 44px;
  padding: .5rem 1.35rem;
  border: 0;
  border-radius: 100px;
  background: var(--cloud-gradient);
  color: #fff;
  font: 600 .95rem/1.2 Inter, system-ui, sans-serif;
  cursor: pointer;
}
.run-watch {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 44px;
  color: var(--ui-fg);
  font-size: .9rem;
  font-weight: 580;
  line-height: 1.2;
  text-decoration: none;
}
.run-watch svg { flex: none; width: .95rem; height: .95rem; fill: currentColor; }
.run-watch span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .25em; transition: text-decoration-color .2s ease; }
.run-watch:is(:hover, :focus-visible) span { text-decoration-color: currentColor; }
.run-watch:focus-visible { outline: 2px solid var(--ui-primary); outline-offset: 3px; border-radius: .35rem; }

/* ── The walkthrough ── */
.run-stage.hm-plan__stage {
  display: grid;
  align-content: center;
  height: auto;
  min-height: 0;
  padding: clamp(1.25rem, 3vw, 2.75rem);
  border: 0;
  border-inline-start: 1px solid var(--ui-border);
}
.run-stage.hm-plan__stage::before {
  -webkit-mask-image: radial-gradient(90% 80% at 50% 40%, #000 20%, transparent 85%);
  mask-image: radial-gradient(90% 80% at 50% 40%, #000 20%, transparent 85%);
}
.run-window.hm-plan__win { width: 100%; margin: 0; border-radius: .7rem; }
.run-window__bar.hm-plan__bar { position: relative; height: 1.75rem; }
.run-window__name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgb(255 255 255 / .5);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 0;
  pointer-events: none;
}
.run-screen { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #0a0a0d; color: #fff; }
.run-clip { position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: scale(1.015); transition: opacity .45s ease, transform .6s var(--run-ease), visibility 0s linear .45s; }
.run-clip[data-active] { visibility: visible; opacity: 1; transform: none; transition: opacity .45s ease, transform .6s var(--run-ease), visibility 0s; }
.run-clip video { display: block; width: 100%; height: 100%; object-fit: cover; background: #0a0a0d; }
.run-screen:fullscreen .run-clip video { object-fit: contain; }

/* Before it plays: the still, dimmed, with a play button and one line saying what it is and how long. */
.run-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: clamp(.7rem, 1.3vw, 1rem);
  width: 100%;
  padding: 0;
  border: 0;
  background: rgb(8 8 12 / .32);
  color: #fff;
  font: inherit;
  cursor: pointer;
  transition: background-color .3s ease, opacity .3s ease, visibility 0s;
}
.run-play:is(:hover, :focus-visible) { background: rgb(8 8 12 / .2); }
.run-screen[data-started] .run-play { visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s; }
.run-play__disc {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(3.25rem, 5.2vw, 4.5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  color: #0a0a0d;
  box-shadow: 0 10px 30px -8px rgb(0 0 0 / .65);
  transition: transform .3s var(--run-ease);
}
.run-play__disc svg { width: 40%; height: 40%; margin-left: 6%; fill: currentColor; }
.run-play__disc::after { content: ""; position: absolute; inset: 0; border: 1px solid rgb(255 255 255 / .55); border-radius: inherit; opacity: 0; }
.run-play:is(:hover, :focus-visible) .run-play__disc { transform: scale(1.07); }
.run-play:focus-visible { outline: 0; }
.run-play:focus-visible .run-play__disc { box-shadow: 0 0 0 3px #0a0a0d, 0 0 0 5px #fff; }
.run-play__label {
  display: flex;
  align-items: baseline;
  gap: .55rem;
  padding: .42rem .85rem;
  border: 1px solid rgb(255 255 255 / .12);
  border-radius: 100px;
  background: rgb(10 10 13 / .7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: clamp(.8rem, 1vw, .9rem);
  font-weight: 560;
  line-height: 1.3;
}
.run-play__time { color: rgb(255 255 255 / .7); font-weight: 450; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: no-preference) {
  .run-play__disc::after { animation: run-ring 2.8s var(--run-ease) infinite; }
}
@keyframes run-ring {
  0% { opacity: .7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.75); }
}

/* While it plays: our own bar, shown on hover, on focus and whenever it is paused. */
.run-controls {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: 1.6rem .55rem .4rem;
  background: linear-gradient(180deg, rgb(8 8 12 / 0), rgb(8 8 12 / .82));
  opacity: 0;
  transition: opacity .25s ease;
}
.run-screen[data-started]:is(:hover, :focus-within, [data-paused]) .run-controls { opacity: 1; }
.run-controls__btn { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; padding: 0; border: 0; border-radius: .5rem; background: none; color: #fff; cursor: pointer; transition: background-color .15s ease; }
.run-controls__btn:hover { background: rgb(255 255 255 / .14); }
.run-controls__btn:focus-visible, .run-controls__seek:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.run-controls__btn svg { width: 1rem; height: 1rem; fill: currentColor; }
.run-controls__btn .wave { fill: none; stroke: currentColor; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.run-controls__btn .is-play, .run-screen[data-paused] .run-controls__btn .is-pause, .run-controls__btn .is-muted, .run-controls__btn[aria-pressed="true"] .is-sound { display: none; }
.run-screen[data-paused] .run-controls__btn .is-play, .run-controls__btn[aria-pressed="true"] .is-muted { display: block; }
.run-controls__time { flex: none; min-width: 2.2rem; color: rgb(255 255 255 / .85); font-size: .75rem; font-weight: 500; font-variant-numeric: tabular-nums; text-align: center; }
.run-controls__seek {
  --at: 0%;
  flex: 1 1 auto;
  min-width: 0;
  height: 1.25rem;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.run-controls__seek::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--at), rgb(255 255 255 / .28) var(--at)); }
.run-controls__seek::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #fff var(--at), rgb(255 255 255 / .28) var(--at)); }
.run-controls__seek::-webkit-slider-thumb { -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.run-controls__seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .5); }

/* Without scripts: every choice open, nothing hidden behind a click. */
.run:not([data-ready]) .run-option__body { grid-template-rows: 1fr; }
.run:not([data-ready]) .run-option__inner { visibility: visible; opacity: 1; }
.run:not([data-ready]) .run-option__head { cursor: default; }
.run:not([data-ready]) :is(.run-play, .run-controls) { display: none; }
.run:not([data-ready]) :is(.run-option__name, .run-option__price b) { color: var(--ui-fg); }

/* Narrower than this the video would shrink to a thumbnail beside the choices, so it goes on top at full width. */
@media (max-width: 1140px) {
  .run-card { grid-template-columns: minmax(0, 1fr); }
  .run-stage.hm-plan__stage { grid-row: 1; padding: clamp(1rem, 3vw, 2rem); border-inline-start: 0; border-bottom: 1px solid var(--ui-border); }
  .run-window.hm-plan__win { max-width: 48rem; margin-inline: auto; }
  .run-option__text { max-width: 60ch; }
}
@media (max-width: 480px) {
  .run-option__head { padding-block: 1.05rem; }
  .run-option__name, .run-option__price b { font-size: 1.2rem; }
  .run-facts > div { grid-template-columns: 5.5rem minmax(0, 1fr); }
  .run-controls__time[data-run-length] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .run-option, .run-option::before, .run-option__body, .run-option__inner, .run-clip, .run-play, .run-play__disc, .run-controls { transition: none; }
  .run-clip { transform: none; }
}
@media (forced-colors: active) {
  .run-option::before { background: Highlight; }
  .run-start button { border: 1px solid ButtonText; }
}

/* The Extension before it is out (templates: run_options.html, home_rest.html; modules/extension_release.py). */
.run-soon { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem; border: 1px dashed var(--ui-border-strong); border-radius: 100px; color: var(--ui-muted); font: 600 .95rem/1.2 Inter, system-ui, sans-serif; }
.plan__button:disabled { border-style: dashed; color: var(--ui-muted); cursor: default; }
.plan__button:disabled:hover { background: var(--ui-panel); border-color: var(--ui-border-strong); }
