/* dl.alphalogix.com.au/guardian (was guardian.alphalogix.com.au)
 *
 * NO FRAMEWORK AND NO BUILD STEP. This is one page on a static host; a
 * toolchain here would mean a toolchain to keep current, on the one property
 * that mine appliances are permitted to reach through a firewall.
 *
 * The palette is Guardian's own dark surface — the product is a control-room
 * screen and the site should not look like a different company's.
 */

:root {
  --bg: #0b1016;
  --panel: #121a23;
  --raise: #18222d;
  --line: #24313f;
  --ink: #e6edf3;
  --ink-dim: #8fa3b5;
  --accent: #4cc2e0;
  --ok: #4ac77e;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- masthead -------------------------------------------------------------- */

.top {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}

.brand {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.02em;
  color: var(--ink-dim);
}
.brand strong { color: var(--ink); font-weight: 650; }

/* -- the first screen ------------------------------------------------------ */

.hero {
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--line);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-dim);
}

/* -- body ------------------------------------------------------------------ */

main { padding: 8px 0 64px; }

section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line); }

h2 {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }

.body { max-width: 68ch; color: var(--ink-dim); margin: 0 0 16px; }
.body strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-dim); font-size: 14px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.grid p { margin: 0; color: var(--ink-dim); font-size: 15px; }

.steps { color: var(--ink-dim); padding-left: 20px; }
.steps li { margin-bottom: 8px; }

/* -- masthead row, links ------------------------------------------------------ */

.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand a { color: var(--ink-dim); text-decoration: none; }
.brand span { opacity: .5; margin: 0 4px; }
.top-help { color: var(--accent); font-weight: 600; text-decoration: none; font-size: 15px; }
a { color: var(--accent); }

/* -- the three planes --------------------------------------------------------- */

/* One colour per plane, the same as the Software screen in the portal. */
[data-plane="operations"]  { --plane: #3b82f6; }
[data-plane="recognition"] { --plane: #a855f7; }
[data-plane="sage"]        { --plane: #14b8a6; }

.planes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.plane {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--plane, var(--accent));
  border-radius: 10px;
  background: var(--panel);
}
.plane-name { margin: 0; font-size: 17px; }
.plane-does { margin: 0; color: var(--ink-dim); font-size: 14px; min-height: 3em; }
.plane-v { margin: 4px 0; font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.plane-get {
  align-self: flex-start;
  padding: 9px 16px;
  border-radius: 7px;
  background: var(--accent);
  color: #04121b;
  font-weight: 650;
  font-size: 15px;
  text-decoration: none;
}
.plane-get:hover { filter: brightness(1.08); }
.plane-k { margin: 8px 0 0; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.plane-notes { margin: 0; padding-left: 18px; color: var(--ink-dim); font-size: 14px; }
.plane-notes li { margin-bottom: 4px; }

/* THE DIGEST WRAPS RATHER THAN TRUNCATES. It is 64 characters and it is here to
   be compared against a downloaded file; an ellipsis would make it decorative. */
.plane-sum { margin: 8px 0 0; font-size: 12px; color: var(--ink-dim); }
.plane-sum .k { letter-spacing: 0.1em; text-transform: uppercase; font-size: 10.5px; }
.plane-sum code, .plane-older code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  word-break: break-all;
  color: var(--ink);
}
.plane-older summary { cursor: pointer; color: var(--ink-dim); font-size: 13px; }
.plane-older ul { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }

/* -- guides ------------------------------------------------------------------- */

.guides { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.guide { padding: 20px; border: 1px solid var(--line); border-left: 4px solid var(--plane, var(--accent)); border-radius: 10px; background: var(--panel); }
.guide .steps { margin: 0; font-size: 15px; }
.guide .steps strong { color: var(--ink); }

/* -- support ------------------------------------------------------------------ */

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contact-way {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--raise);
  color: var(--ink);
  text-decoration: none;
}
.contact-way:hover { border-color: var(--accent); }
.contact-way .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.contact-way strong { font-size: 16px; overflow-wrap: anywhere; }

/* -- foot ------------------------------------------------------------------ */

.foot {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
}
.foot p { margin: 0; color: var(--ink-dim); font-size: 14px; }

@media (prefers-reduced-motion: no-preference) {
  .plane-get { transition: filter 0.12s ease; }
}

/* The front door's product card is a link; it reads as a card, not as link text. */
.plane-link { text-decoration: none; color: inherit; }
.plane-link:hover { border-color: var(--accent); }

/* -- on this page ------------------------------------------------------------- */

.onpage { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 12px; font-size: 14px; }
.onpage a { color: var(--ink-dim); text-decoration: none; }
.onpage a:hover { color: var(--ink); }
.top { padding-bottom: 12px; }

/* -- the download cards, released and not ---------------------------------------- */

.planes-status { margin: 0 0 12px; color: var(--ink-dim); font-size: 14px; }
.planes-status:empty { display: none; }
.planes-status[data-tone="bad"] { color: #f0a35e; }

.plane-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plane-pill {
  flex: none;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: color-mix(in srgb, var(--ok) 18%, transparent);
  color: var(--ok);
}
.plane[data-state="none"] .plane-pill { background: var(--raise); color: var(--ink-dim); }
.plane[data-state="none"] { border-top-color: var(--line); }
.plane-v-none { color: var(--line); }
.plane-meta { margin: 0; font-size: 14px; color: var(--ink-dim); }
.plane-file { margin: 0; font-size: 12px; color: var(--ink-dim); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.plane-req { margin: 0; padding: 8px 10px; border-radius: 6px; background: var(--raise); font-size: 13px; }
.small { font-size: 13px; }

.plane-sum { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 6px 10px; }
.plane-sum code { font-size: 12px; }
.copy {
  font: inherit;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--raise);
  color: var(--ink);
  cursor: pointer;
}
.copy:hover { border-color: var(--accent); }
.plane-older li { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }

/* -- check a download ------------------------------------------------------------ */

.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 12px; }
.tabs button {
  font: inherit;
  font-size: 14px;
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-dim);
  cursor: pointer;
}
.tabs button[aria-selected="true"] { background: var(--accent); color: #04121b; font-weight: 650; }
.tab-panel p { margin: 0 0 6px; }
pre {
  margin: 0 0 10px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow-x: auto;
}
pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; color: var(--ink); }

/* -- keyboard focus is always visible ------------------------------------------- */

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .hero { padding: 44px 0 36px; }
  section { padding: 32px 0; }
  .onpage { gap: 12px; font-size: 13px; }
  .plane-v { font-size: 34px; }
  .plane-sum { grid-template-columns: minmax(0, 1fr) auto; }
  .plane-sum .k { grid-column: 1 / -1; }
}

/* ============================================================================
 * MOTION (owner, 27 Sep 2026: "Make the page animated if possible. Make it
 * look amazing.")
 *
 * TWO RULES HOLD EVERYWHERE BELOW:
 *   - NOTHING IS HIDDEN UNLESS motion.js RAN. The rise-in starts from
 *     `.moving [data-reveal]`, and `.moving` is set by the script -- so a
 *     browser without it, or a script that failed, shows the whole page.
 *   - EVERY KEYFRAME ANIMATION IS DECLARED INSIDE
 *     `prefers-reduced-motion: no-preference`. A visitor who asked their system
 *     for less motion gets the same page, still.
 * ========================================================================== */

:root { --gold: #c9a227; --gold-soft: #e7c65a; }

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

.hero { position: relative; overflow: hidden; isolation: isolate; padding: 84px 0 72px; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px; padding: 6px 14px 6px 8px;
  border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  color: var(--gold-soft);
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
}

.hero h1 { font-size: clamp(34px, 6vw, 58px); }
.grad {
  background: linear-gradient(100deg, #4cc2e0 0%, #3b82f6 30%, #a855f7 60%, #14b8a6 90%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center;
  padding: 12px 22px; border-radius: 10px;
  font-weight: 650; font-size: 15px; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #4cc2e0, #3b82f6);
  color: #04121b;
  box-shadow: 0 8px 28px -10px rgba(76, 194, 224, .7);
}
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(18, 26, 35, .6); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(-120%);
}

.trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 13.5px; color: var(--ink-dim); }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }

/* -- the camera wall (decoration: what Guardian does, shown, not claimed) ------- */

.hero-wall {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
  padding: 12px; border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, rgba(24, 34, 45, .85), rgba(11, 16, 22, .85));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  transform: perspective(1200px) rotateY(-9deg) rotateX(3deg);
}
.tile {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9; border-radius: 8px;
  background:
    radial-gradient(60% 40% at 30% 78%, rgba(143, 163, 181, .10), transparent 70%),
    linear-gradient(180deg, #16202b 0%, #111a23 55%, #0c131a 56%, #0a1016 100%);
}
.tile[data-n="2"], .tile[data-n="5"] {
  background:
    linear-gradient(170deg, transparent 58%, rgba(143, 163, 181, .10) 59%, transparent 64%),
    linear-gradient(180deg, #141d27 0%, #0f1720 60%, #0a1016 100%);
}
.tile[data-n="3"], .tile[data-n="6"] {
  background:
    repeating-linear-gradient(90deg, transparent 0 22%, rgba(143, 163, 181, .06) 22% 23%),
    linear-gradient(180deg, #131c26 0%, #0e161e 62%, #0a0f15 100%);
}
.tile::before {
  content: ""; position: absolute; top: 7px; right: 8px;
  width: 6px; height: 6px; border-radius: 50%;
  background: #ef4444; box-shadow: 0 0 6px #ef4444;
}
.tile-label {
  position: absolute; left: 7px; bottom: 5px;
  font: 600 9.5px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .06em; color: rgba(230, 237, 243, .6);
}
.tile-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 30%;
  background: linear-gradient(180deg, transparent, rgba(76, 194, 224, .10) 85%, rgba(76, 194, 224, .35));
  opacity: 0;
}
.tile-box {
  position: absolute;
  border: 1.5px solid var(--box, var(--accent));
  border-radius: 3px;
  box-shadow: 0 0 12px color-mix(in srgb, var(--box, var(--accent)) 45%, transparent);
  opacity: 0;
}
.tile-box::after {
  position: absolute; left: -1.5px; top: -15px;
  padding: 1px 5px; border-radius: 3px 3px 3px 0;
  background: var(--box, var(--accent)); color: #04121b;
  font: 700 8.5px/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: .04em;
}
.b1 { left: 58%; top: 34%; width: 16%; height: 50%; --box: #4cc2e0; }
.b1::after { content: "person"; }
.b2 { left: 18%; top: 44%; width: 38%; height: 34%; --box: var(--gold); }
.b2::after { content: "vehicle"; }
.b3 { left: 30%; top: 40%; width: 34%; height: 38%; --box: #a855f7; }
.b3::after { content: "vehicle"; }
.b4 { left: 20%; top: 30%; width: 14%; height: 52%; --box: #14b8a6; }
.b4::after { content: "person"; }
.b5 { left: 62%; top: 36%; width: 15%; height: 48%; --box: #4cc2e0; }
.b5::after { content: "person"; }
.b6 { left: 40%; top: 46%; width: 36%; height: 32%; --box: #3b82f6; }
.b6::after { content: "vehicle"; }

/* -- how an upgrade flows ---------------------------------------------------------- */

.flow {
  position: relative;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin: 0; padding: 0; list-style: none;
}
/* The line the pulse travels along, behind the four icons. */
.flow::before {
  content: ""; position: absolute; z-index: 0;
  left: 12.5%; right: 12.5%; top: 27px; height: 2px;
  background: linear-gradient(90deg, #3b82f6, #a855f7, #14b8a6);
  opacity: .35;
}
.flow::after {
  content: ""; position: absolute; z-index: 0;
  left: 12.5%; top: 24px; width: 70px; height: 8px; border-radius: 8px;
  background: radial-gradient(closest-side, #fff, rgba(76, 194, 224, .8) 40%, transparent);
  opacity: 0;
}
.flow-step {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
}
.flow-ico {
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 0 0 6px var(--bg);
  margin-bottom: 6px;
}
.flow-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow-step:nth-child(2) .flow-ico svg { stroke: #3b82f6; }
.flow-step:nth-child(3) .flow-ico svg { stroke: #a855f7; }
.flow-step:nth-child(4) .flow-ico svg { stroke: #14b8a6; }
.flow-step strong { font-size: 16px; }
.flow-step span:last-child { color: var(--ink-dim); font-size: 14px; max-width: 24ch; }

/* -- cards: a lift and their own colour on hover ----------------------------------- */

.plane, .guide, .contact-way, .plane-link { position: relative; }
.plane::before {
  content: ""; position: absolute; left: -1px; right: -1px; top: -4px; height: 4px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  background-size: 40% 100%; background-repeat: no-repeat; background-position: -60% 0;
  opacity: 0;
}
.plane[data-state="none"]::before { display: none; }
.plane-v {
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--plane, var(--accent)) 70%, var(--ink)));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.plane-v-none { color: var(--line); background: none; }

/* -- rise into view (only when motion.js ran: see the head of this block) ---------- */

.moving [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  --d: calc(var(--i, 0) * 120ms);
  /* The stagger delays the rise only; a hover (translate, below) answers at once. */
  transition:
    opacity .7s ease var(--d), transform .8s cubic-bezier(.2, .75, .2, 1) var(--d),
    translate .3s cubic-bezier(.2, .75, .2, 1), box-shadow .3s ease, border-color .3s ease;
}
.moving [data-reveal].in { opacity: 1; transform: none; }
/* A printed install guide has every section, scrolled to or not. */
@media print { .moving [data-reveal] { opacity: 1; transform: none; } .bg-field, .hero-wall { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .grad { animation: sheen 9s ease-in-out infinite alternate; }


  .hero-copy > * { animation: rise .9s cubic-bezier(.2, .75, .2, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-wall { animation: wall-in 1.2s .2s cubic-bezier(.2, .75, .2, 1) both, float 9s 1.4s ease-in-out infinite; }
  .tile { animation: rise .7s .25s cubic-bezier(.2, .75, .2, 1) both; }
  .tile[data-n="2"] { animation-delay: .35s; }
  .tile[data-n="3"] { animation-delay: .45s; }
  .tile[data-n="4"] { animation-delay: .55s; }
  .tile[data-n="5"] { animation-delay: .65s; }
  .tile[data-n="6"] { animation-delay: .75s; }
  .tile::before { animation: blink 1.6s steps(2, jump-none) infinite; }
  .tile-scan { animation: scan 4.2s linear infinite; }
  .tile[data-n="2"] .tile-scan { animation-delay: -1.1s; }
  .tile[data-n="3"] .tile-scan { animation-delay: -2.3s; }
  .tile[data-n="4"] .tile-scan { animation-delay: -0.6s; }
  .tile[data-n="5"] .tile-scan { animation-delay: -3.1s; }
  .tile[data-n="6"] .tile-scan { animation-delay: -1.8s; }
  .tile-box { animation: detect 7s ease-in-out infinite; }
  .b1 { animation-delay: .4s; }
  .b2 { animation-delay: 1.6s; }
  .b3 { animation-delay: 2.8s; }
  .b4 { animation-delay: 3.9s; }
  .b5 { animation-delay: 5s; }
  .b6 { animation-delay: 6.1s; }

  .btn { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(76, 194, 224, .85); }
  .btn-primary:hover::after { transition: transform .7s ease; transform: translateX(120%); }

  .flow::after { animation: pulse-run 4.5s cubic-bezier(.45, 0, .55, 1) infinite; }
  .flow-ico { transition: transform .3s ease, border-color .3s ease; }
  .flow-step:hover .flow-ico { transform: translateY(-3px) rotate(-3deg); border-color: var(--accent); }

  /* translate, not transform: the rise-in owns transform on these. */
  .plane, .guide, .contact-way, .plane-link { transition: translate .3s cubic-bezier(.2, .75, .2, 1), box-shadow .3s ease, border-color .3s ease; }
  .plane:hover, .guide:hover, .plane-link:hover {
    translate: 0 -4px;
    box-shadow: 0 18px 44px -18px color-mix(in srgb, var(--plane, var(--accent)) 60%, transparent);
    border-color: color-mix(in srgb, var(--plane, var(--accent)) 45%, var(--line));
  }
  .plane[data-state="released"]::before { animation: shimmer 5s ease-in-out infinite; }
  .contact-way:hover { translate: 0 -3px; box-shadow: 0 14px 34px -18px rgba(76, 194, 224, .6); }
  .plane-get { transition: filter .12s ease, transform .2s ease; }
  .plane-get:hover { transform: translateY(-1px); }

  @keyframes sheen { to { background-position: 100% 0; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes wall-in { from { opacity: 0; transform: perspective(1200px) rotateY(-24deg) rotateX(8deg) translateY(30px); } }
  @keyframes float { 50% { transform: perspective(1200px) rotateY(-6deg) rotateX(2deg) translateY(-8px); } }
  @keyframes blink { 50% { opacity: .2; } }
  @keyframes scan { 0% { top: -30%; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
  @keyframes detect {
    0%, 8% { opacity: 0; transform: scale(1.25); }
    14%, 52% { opacity: 1; transform: scale(1); }
    60%, 100% { opacity: 0; transform: scale(1); }
  }
  @keyframes pulse-run {
    0% { left: 12.5%; opacity: 0; }
    8% { opacity: 1; }
    92% { opacity: 1; }
    100% { left: calc(87.5% - 70px); opacity: 0; }
  }
  @keyframes shimmer { 0%, 55% { opacity: 0; background-position: -60% 0; } 60% { opacity: 1; } 100% { opacity: 0; background-position: 160% 0; } }
}

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); transform: none; }
}
@media (max-width: 820px) and (prefers-reduced-motion: no-preference) {
  .hero-wall { animation: rise 1s .3s cubic-bezier(.2, .75, .2, 1) both; }
}
@media (max-width: 600px) {
  .hero { padding: 48px 0 40px; }
  .hero-wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile[data-n="5"], .tile[data-n="6"] { display: none; }
  .flow { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .flow::before { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; background: linear-gradient(180deg, #3b82f6, #a855f7, #14b8a6); }
  .flow::after { display: none; }
  .flow-step { flex-direction: row; flex-wrap: wrap; text-align: left; align-items: center; column-gap: 14px; }
  .flow-step .flow-ico { margin: 0; }
  .flow-step strong { flex: 1; }
  .flow-step span:last-child { flex-basis: 100%; padding-left: 70px; max-width: none; margin-top: -8px; }
}

/* ============================================================================
 * BRAND (owner, 27 Sep 2026: "Make sure we have our alphalogix official logo
 * and branding everywhere").
 *
 * The OFFICIAL files, not redrawings: brand/alphalogix-line-on-dark.png is the
 * portal's own (apps/guardian-web/public/brand), and brand/guardian-mark.svg is
 * GuardianMark.tsx's geometry in its three golds. The lockup is the portal's
 * top bar: company mark, rule, product.
 *
 * Alphalogix blue is the logo's gradient (#0066FF -> #0833FF). It is too dark to
 * read as text on this background, so links and headings use a lighter step of
 * the same blue, and the full-strength gradient is kept for buttons and marks.
 * ========================================================================== */

:root {
  --alx-blue-1: #0066ff;
  --alx-blue-2: #0833ff;
  --accent: #5b93ff;
  --gold-light: #e8c766;
  --gold-deep: #8c6d13;
  --paper: #fafaf7;
}

.lockup { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.lockup-alx { display: inline-flex; }
.lockup-alx img { height: 24px; width: auto; display: block; }
.lockup-rule { width: 1px; height: 22px; background: var(--line); }
.lockup-product { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; }
.lockup-product img { height: 22px; width: auto; }
.lockup-product strong { font-size: 17px; font-weight: 650; letter-spacing: .01em; }
.lockup-crumb { color: var(--ink-dim); font-size: 15px; }
.lockup-crumb::before { content: "/"; margin-right: 12px; opacity: .5; }

.foot-logo { display: block; height: 20px; width: auto; margin-bottom: 12px; opacity: .9; }
.card-mark { height: 20px; width: auto; vertical-align: -3px; margin-right: 8px; }

/* The Guardian mark, inline in the hero badge. */
.gmark { width: 20px; height: 24px; flex: none; }
.gm-top { fill: var(--gold-light); }
.gm-mid { fill: var(--gold); }
.gm-node { fill: var(--paper); }
.gm-base { fill: var(--gold-deep); }

/* Alphalogix blue on the things a visitor presses. */
.btn-primary, .plane-get, .tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--alx-blue-1), var(--alx-blue-2));
  color: #fff;
}
.btn-primary { box-shadow: 0 8px 28px -10px rgba(8, 51, 255, .8); }
.grad { background-image: linear-gradient(100deg, #5b93ff 0%, var(--alx-blue-1) 35%, var(--alx-blue-2) 55%, var(--gold) 85%); }

/* ============================================================================
 * THE INSTALL GUIDE (install-operations.html)
 * ========================================================================== */

.hero-guide { padding-bottom: 56px; }
.phase-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; }
.phase {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 7px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(18, 26, 35, .7);
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600;
}
.phase span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(135deg, var(--alx-blue-1), var(--alx-blue-2)); color: #fff; font-size: 12px;
}
.phase:hover { border-color: var(--accent); }
.guide-progress { margin: 14px 0 0; color: var(--ink-dim); font-size: 14px; }

.guide-main h3.sub { margin: 30px 0 12px; font-size: 16px; }
.need-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.need { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.need h3 { font-size: 15px; color: var(--gold-light); }
.need ul { margin: 0; padding-left: 18px; color: var(--ink-dim); font-size: 14.5px; }
.need li { margin-bottom: 6px; }
.need strong { color: var(--ink); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
table.versions { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.versions th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.versions td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-dim); }
.versions tr:last-child td { border-bottom: 0; }
.versions td:first-child { color: var(--ink); font-weight: 600; }
.versions.compact td, .versions.compact th { padding: 8px 14px; }
.warn-text { color: #f0a35e; }
.guide-main code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; color: var(--ink); }
.guide-main pre i, .guide-main code i { color: var(--gold-light); font-style: normal; }

.steps.big { font-size: 15.5px; }
.steps.big li { margin-bottom: 10px; }
.steps.big strong { color: var(--ink); }

/* -- the disks, drawn to their proportions (the small partitions get a floor) */
.disk { margin: 22px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.disk-name { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.disk-name span { color: var(--ink-dim); font-size: 14px; }
.disk-bar { display: flex; gap: 3px; height: 58px; margin-bottom: 14px; border-radius: 10px; overflow: hidden; }
.seg {
  display: flex; flex-direction: column; justify-content: center; min-width: 54px; padding: 0 8px;
  color: #fff; font-size: 12px; line-height: 1.3; overflow: hidden; white-space: nowrap;
}
.seg b { font-weight: 700; }
.seg i { font-style: normal; opacity: .8; }
.seg-efi  { flex: 1;   background: #334155; }
.seg-boot { flex: 2;   background: #475569; }
.seg-root { flex: 150; background: linear-gradient(135deg, var(--alx-blue-1), var(--alx-blue-2)); }
.seg-log  { flex: 50;  background: #3b5bdb; }
.seg-swap { flex: 16;  background: #5b6b8c; }
.seg-free { flex: 280; background: repeating-linear-gradient(135deg, rgba(143,163,181,.10) 0 8px, rgba(143,163,181,.04) 8px 16px); color: var(--ink-dim); }
.seg-lock { flex: 1; background: linear-gradient(135deg, var(--gold-deep), var(--gold)); white-space: normal; }
.seg-lock b::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 7px; border: 2px solid currentColor; border-radius: 2px 2px 3px 3px; vertical-align: -1px; }

/* -- the install steps, as a timeline ---------------------------------------- */
.stages { position: relative; list-style: none; margin: 10px 0 0; padding: 0 0 0 26px; }
.stages::before {
  content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px;
  background: linear-gradient(180deg, var(--alx-blue-1), #a855f7 60%, var(--gold));
  opacity: .5;
}
.stage {
  position: relative; margin: 0 0 14px; padding: 16px 18px 14px 30px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
}
.stage-key { border-color: color-mix(in srgb, var(--alx-blue-2) 55%, var(--line)); }
.stage p { margin: 0 0 10px; color: var(--ink-dim); font-size: 14.5px; }
.stage p strong { color: var(--ink); }
.stage pre { margin: 0 0 10px; }
.stage-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 8px; }
.stage-head h3 { margin: 0; font-size: 16px; }
.stage-n {
  position: absolute; left: -26px; top: 14px;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--alx-blue-2); color: var(--ink);
  font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums;
}
.stage[data-done="true"] .stage-n { background: var(--ok); border-color: var(--ok); color: #04121b; }
.stage[data-done="true"] { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }
.badge { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.badge-reboot { background: color-mix(in srgb, #a855f7 22%, transparent); color: #c9a6ff; }
.badge-danger { background: color-mix(in srgb, #ef4444 22%, transparent); color: #ff9c9c; }
.badge-time { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--gold-light); }
.tick { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-dim); cursor: pointer; }
.tick input { width: 16px; height: 16px; accent-color: var(--ok); }

.checks { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink-dim); font-size: 14.5px; }
.checks li::before { content: ""; position: absolute; left: 14px; top: 13px; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--ok); }
.callout { margin: 0 0 18px; padding: 14px 18px; border-left: 4px solid var(--gold); border-radius: 8px; background: color-mix(in srgb, var(--gold) 9%, var(--panel)); color: var(--ink-dim); }
.callout strong { color: var(--ink); }
pre.example { border-style: dashed; }

/* Copy buttons, added by guide.js to each command block. */
.guide-main pre { position: relative; }
.pre-copy {
  position: absolute; top: 8px; right: 8px;
  font: inherit; font-size: 12px; padding: 3px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--raise); color: var(--ink); cursor: pointer; opacity: .85;
}
.pre-copy:hover { border-color: var(--accent); opacity: 1; }

/* -- the walkthrough video ------------------------------------------------------ */
.video-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chapters { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 12px; max-height: 420px; overflow-y: auto; }
.chapters-k { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-dim); }
.chapters ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.chapter, .watch {
  display: flex; align-items: baseline; gap: 10px; width: 100%;
  font: inherit; font-size: 14px; text-align: left; color: var(--ink);
  padding: 6px 8px; border: 0; border-radius: 7px; background: transparent; cursor: pointer;
}
.chapter:hover { background: var(--raise); }
.chapter[aria-current="true"] { background: color-mix(in srgb, var(--alx-blue-2) 22%, transparent); }
.chapter time { color: var(--accent); font-variant-numeric: tabular-nums; font-size: 12.5px; min-width: 3.2em; }
.watch {
  display: inline-flex; width: auto; margin-left: 10px; padding: 2px 10px; border: 1px solid var(--line);
  border-radius: 999px; font-size: 12px; color: var(--accent); vertical-align: middle; letter-spacing: 0; text-transform: none;
}
.watch:hover { border-color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .gm-top, .gm-mid, .gm-base { animation: slice-in .7s cubic-bezier(.2, .75, .2, 1) both; }
  .gm-mid { animation-delay: .12s; }
  .gm-base { animation-delay: .24s; }
  .gm-node { animation: node-in .5s .6s cubic-bezier(.3, 1.6, .5, 1) both; transform-box: fill-box; transform-origin: center; }
  .phase { transition: border-color .2s ease, translate .2s ease; }
  .phase:hover { translate: 0 -2px; }
  .stage-n { transition: background .3s ease, border-color .3s ease; }
  @keyframes slice-in { from { opacity: 0; transform: translateY(-6px); } }
  @keyframes node-in { from { opacity: 0; transform: scale(0); } }
}

@media (max-width: 820px) {
  .video-grid { grid-template-columns: minmax(0, 1fr); }
  .chapters { max-height: none; }
}
@media (max-width: 600px) {
  .lockup { gap: 10px; }
  .lockup-alx img { height: 20px; }
  .lockup-crumb { flex-basis: 100%; }
  .lockup-crumb::before { display: none; }
  .disk-bar { height: auto; flex-wrap: wrap; }
  .seg { flex: 1 1 40%; padding: 8px; }
  .seg-free { flex-basis: 100%; }
  .stages { padding-left: 18px; }
  .stage { padding-left: 24px; }
  .stage-n { left: -18px; }
  .stages::before { left: 5px; }
}

/* ============================================================================
 * THE GUARDIAN MARK IN 3D -- the hero (owner, 27 Sep 2026: "guardian logo too
 * that is our hero.. make it 3d ... Animated and transitions").
 *
 * Live CSS 3D, not a rendered video: sharp at any size, a few hundred bytes,
 * and it answers the pointer. The face is the official mark; its depth is
 * sixteen copies of the same file stepped back in Z (motion.js adds them), each
 * a little darker, which reads as a solid gold plate.
 *
 * Sequence on load: the three slices assemble, the node lands, the plate
 * extrudes behind them, then it settles into a slow turn with a sheen passing
 * over the face and two orbits circling it.
 * ========================================================================== */

.mark3d {
  position: relative;
  height: 460px;
  display: grid; place-items: center;
  perspective: 1100px;
  transform-style: preserve-3d;
}
.m3-tilt { transform-style: preserve-3d; transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s cubic-bezier(.2, .75, .2, 1); }
.m3-spin {
  position: relative; width: 240px; height: 288px;
  transform-style: preserve-3d;
  transform: rotateY(-20deg) rotateX(6deg);
}
.m3-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translateZ(14px);
  filter: drop-shadow(0 0 22px rgba(201, 162, 39, .35));
  overflow: visible;
}
.m3-depth { position: absolute; inset: 0; transform-style: preserve-3d; }
.m3-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translateZ(calc(14px - var(--z) * 1.75px));
  filter: brightness(calc(.62 - var(--z) * .018)) saturate(1.15);
}
/* The sheen is cut to the mark's own outline, so it never spills past it. */
.m3-sheen {
  position: absolute; inset: 0;
  transform: translateZ(14.5px);
  background: linear-gradient(115deg, transparent 38%, rgba(255, 250, 225, .75) 50%, transparent 62%);
  background-size: 260% 100%; background-position: 160% 0;
  -webkit-mask: url("brand/guardian-mark.svg") center / contain no-repeat;
          mask: url("brand/guardian-mark.svg") center / contain no-repeat;
  opacity: .0;
  pointer-events: none;
}
.m3-halo {
  position: absolute; width: 440px; height: 440px; border-radius: 50%;
  background:
    radial-gradient(circle, rgba(201, 162, 39, .30) 0%, transparent 55%),
    radial-gradient(circle, rgba(8, 51, 255, .35) 0%, transparent 70%);
  filter: blur(18px);
}
.m3-orbit {
  position: absolute; width: 380px; height: 380px; border-radius: 50%;
  border: 1px solid rgba(91, 147, 255, .35);
  transform: rotateX(74deg);
}
.m3-orbit::after {
  content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px;
  border-radius: 50%; background: #9dbcff; box-shadow: 0 0 12px 3px rgba(91, 147, 255, .8);
}
.m3-orbit.o2 { width: 460px; height: 460px; border-color: rgba(201, 162, 39, .28); transform: rotateX(74deg) rotateY(14deg); }
.m3-orbit.o2::after { background: var(--gold-light); box-shadow: 0 0 12px 3px rgba(201, 162, 39, .8); }
.m3-floor {
  position: absolute; bottom: 34px; width: 260px; height: 34px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .65), transparent);
}

/* -- the camera band that the wall moved to ------------------------------------- */
.watch-band { padding-top: 52px; }
.band-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }

@media (prefers-reduced-motion: no-preference) {
  /* 1. assemble */
  .m3-face .gm-top  { animation: m3-top .9s .15s cubic-bezier(.2, .8, .2, 1) both; }
  .m3-face .gm-mid  { animation: m3-mid .9s .35s cubic-bezier(.2, .8, .2, 1) both; }
  .m3-face .gm-base { animation: m3-base .9s .55s cubic-bezier(.2, .8, .2, 1) both; }
  .m3-face .gm-node { animation: node-in .5s 1.15s cubic-bezier(.3, 1.8, .5, 1) both; transform-box: fill-box; transform-origin: center; }
  /* 2. extrude */
  .m3-layer { animation: m3-extrude .7s calc(1.3s + var(--z) * 22ms) ease-out both; }
  /* 3. turn, sheen, orbit, breathe */
  .m3-spin { animation: m3-turn 9s 1.8s ease-in-out infinite alternate, m3-float 6s 1.8s ease-in-out infinite; }
  .m3-sheen { animation: m3-sheen 6s 2.4s ease-in-out infinite; }
  .m3-orbit.o1 { animation: m3-orbit-a 16s linear infinite; }
  .m3-orbit.o2 { animation: m3-orbit-b 24s linear infinite reverse; }
  .m3-halo { animation: m3-breathe 5s ease-in-out infinite alternate; }
  .m3-floor { animation: m3-floor 6s 1.8s ease-in-out infinite; }
  .mark3d { animation: rise 1s .1s cubic-bezier(.2, .75, .2, 1) both; }

  @keyframes m3-top  { from { opacity: 0; transform: translate(0, -26px) scale(1.25); } }
  @keyframes m3-mid  { from { opacity: 0; transform: translate(-34px, 0) scale(1.15); } }
  @keyframes m3-base { from { opacity: 0; transform: translate(0, 30px) scale(1.2); } }
  @keyframes m3-extrude { from { opacity: 0; } }
  @keyframes m3-turn {
    from { transform: rotateY(-30deg) rotateX(8deg); }
    to   { transform: rotateY(30deg) rotateX(3deg); }
  }
  @keyframes m3-float { 50% { translate: 0 -12px; } }
  @keyframes m3-floor { 50% { transform: scale(.86); opacity: .75; } }
  @keyframes m3-sheen {
    0%, 55% { background-position: 160% 0; opacity: 0; }
    60% { opacity: 1; }
    100% { background-position: -60% 0; opacity: 0; }
  }
  @keyframes m3-orbit-a { to { transform: rotateX(74deg) rotateZ(360deg); } }
  @keyframes m3-orbit-b { to { transform: rotateX(74deg) rotateY(14deg) rotateZ(360deg); } }
  @keyframes m3-breathe { to { transform: scale(1.12); opacity: .8; } }
}

@media (max-width: 820px) {
  .mark3d { height: 320px; }
  .m3-spin { width: 160px; height: 192px; }
  .m3-orbit.o1 { width: 270px; height: 270px; }
  .m3-orbit.o2 { width: 320px; height: 320px; }
  .band-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 600px) {
  .mark3d { height: 280px; }
  .m3-spin { width: 136px; height: 163px; }
  .m3-halo { width: 260px; height: 260px; }
  .m3-orbit.o1 { width: 230px; height: 230px; }
  .m3-orbit.o2 { width: 270px; height: 270px; }
  .m3-floor { bottom: 18px; width: 160px; }
}

.guide-link { display: inline-block; margin-top: 12px; font-weight: 650; font-size: 14.5px; text-decoration: none; }
.guide-link:hover { text-decoration: underline; }

/* ============================================================================
 * THE LIVE FIELD (field.js) -- owner, 27 Sep 2026: "more interactive ... or
 * animated so it looks flashy and cool". One canvas, fixed behind the page; it
 * replaced a CSS aurora and a static grid. Sections are transparent over it;
 * cards and panels stay opaque, so text is never read across moving lines.
 * ========================================================================== */
.bg-field {
  position: fixed; inset: 0; z-index: -1;
  width: 100vw; height: 100vh;
  pointer-events: none;
}
/* A soft vignette over the field, so the page's edges stay calm. */
.has-field body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 40%, transparent 55%, rgba(5, 8, 12, .55) 100%);
}
.has-field .top { background: rgba(11, 16, 22, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.has-field .hero { border-bottom-color: rgba(36, 49, 63, .6); }

/* ============================================================================
 * THE INSTALLATION GUIDE AS A DOCUMENT (install-operations.html)
 *
 * Owner, 27 Sep 2026: the guide "needs to look like" the icetana AI
 * Installation Guide -- a printed document: a branded band across the top, a
 * centred blue title, numbered sections, tables with blue header rows, one
 * command per box, and pictures of each installer screen. So the guide is a
 * white sheet laid over the site's live field, and it prints as the document
 * alone. Everything here is scoped to .doc so the rest of the site is unchanged.
 * ========================================================================== */

.doc-shell { width: 100%; max-width: 980px; margin: 0 auto; padding: 36px 16px 64px; }
.doc {
  --doc-ink: #18202b; --doc-dim: #4a5566; --doc-line: #c9d2e0; --doc-soft: #f2f5fb;
  --doc-blue: #1650e8; --doc-blue-deep: #0833ff;
  background: #fff; color: var(--doc-ink);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
  font-size: 15.5px; line-height: 1.6;
}
.doc > *:not(.doc-band) { padding-left: clamp(18px, 6vw, 64px); padding-right: clamp(18px, 6vw, 64px); }
.doc section { padding-top: 26px; padding-bottom: 8px; border: 0; }
.doc p, .doc li { color: var(--doc-ink); }
.doc a { color: var(--doc-blue); }
.doc strong { color: #0b1220; }
.doc code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; color: #0b2a8a; background: #eef2fb; padding: 1px 5px; border-radius: 4px; }
.doc kbd { font: 600 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding: 1px 6px; border: 1px solid var(--doc-line); border-bottom-width: 2px; border-radius: 5px; background: #fafbfd; }
.doc .ph { color: #9a6b00; font-style: italic; font-weight: 600; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }

/* The band: our answer to a printed page header. */
.doc-band { position: relative; height: 84px; background: #0b1016; overflow: hidden; }
.doc-slash {
  position: absolute; left: -40px; top: 0; bottom: 0; width: 300px;
  background:
    linear-gradient(115deg, transparent 0 44%, var(--gold) 44% 47%, transparent 47%),
    linear-gradient(115deg, var(--alx-blue-1) 0 38%, var(--alx-blue-2) 38% 44%, transparent 44%);
}
.doc-band-brand { position: absolute; right: clamp(18px, 6vw, 64px); top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 12px; }
.doc-band-brand img:first-child { height: 26px; width: auto; }
.doc-band-brand img + .doc-band-rule + img { height: 24px; width: auto; }
.doc-band-rule { width: 1px; height: 26px; background: #3a4656; }
.doc-band-product { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .01em; }

.doc-title { text-align: center; padding-top: 44px; padding-bottom: 8px; }
.doc-title h1 { margin: 0 0 10px; font-size: clamp(30px, 5vw, 44px); line-height: 1.15; color: var(--doc-blue-deep); letter-spacing: -.015em; }
.doc-sub { margin: 0 0 18px; color: var(--doc-dim); font-weight: 600; }
.doc-lead { margin: 0 auto; max-width: 64ch; color: var(--doc-dim); font-size: 16.5px; }

.doc-howto { margin-top: 26px; }
.doc-howto > * { max-width: none; }
.doc-howto ul { background: var(--doc-soft); border-radius: 10px; padding: 14px 18px 10px 38px; }

.doc-toc { margin-top: 22px; }
.doc-toc-k { margin: 0 0 8px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--doc-dim); font-weight: 700; }
.doc-toc ol { columns: 2; column-gap: 32px; margin: 0; padding-left: 22px; }
.doc-toc li { break-inside: avoid; }
.doc-toc a { color: var(--doc-ink); text-decoration: none; font-weight: 600; }
.doc-toc a:hover { color: var(--doc-blue); text-decoration: underline; }

.doc h2 {
  display: flex; align-items: center; gap: 14px;
  margin: 18px 0 14px; padding-top: 18px; border-top: 1px solid var(--doc-line);
  font-size: 26px; letter-spacing: -.01em; text-transform: none; color: #0b1220; font-weight: 750;
}
.doc-n {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--alx-blue-1), var(--alx-blue-2)); color: #fff; font-size: 17px;
}
.doc .doc-h3, .doc h2.doc-h3 {
  display: block; border: 0; padding: 0; margin: 24px 0 8px;
  font-size: 18px; font-weight: 650; color: var(--doc-blue); letter-spacing: 0; text-transform: none;
}

/* Tables with a blue header row, as a specification sheet. */
.doc-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14.5px; }
.doc-table th, .doc-table td { border: 1px solid #1b2330; padding: 9px 12px; vertical-align: top; text-align: left; color: var(--doc-ink); }
.doc-table thead th { background: var(--doc-blue); color: #fff; font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: 0; }
.doc-table thead th[colspan] { text-align: center; font-size: 17px; }
.doc-table tbody tr { background: var(--doc-soft); }
.doc-table tbody th[scope="row"] { width: 26%; background: #fff; font-weight: 700; }
.doc-table tr.key td { font-weight: 700; }
.doc-table .soft { color: var(--doc-dim); }
.doc-table code { white-space: nowrap; }
@media (max-width: 700px) {
  .doc-table-wide { display: block; overflow-x: auto; }
  .doc-table code { white-space: normal; }
}

/* One command per box. */
.doc pre.cmd {
  margin: 8px 0 12px; padding: 12px 84px 12px 14px;
  background: #fff; border: 1px solid #1b2330; border-radius: 4px;
  white-space: pre-wrap; word-break: break-word;
}
.doc pre.cmd code { background: none; padding: 0; color: #111; font-size: 14px; }
.doc pre.cmd.example { border-style: dashed; background: #fcfcf6; }
.doc .pre-copy { background: var(--doc-blue); border-color: var(--doc-blue); color: #fff; opacity: 1; }
.doc .pre-copy:hover { background: var(--alx-blue-2); }

.doc .note { color: var(--doc-dim); }
.doc .note strong { font-style: italic; }
.doc .warn { color: #b3261e; font-weight: 700; font-style: italic; }
.doc .callout { color: var(--doc-ink); background: #fff8e5; border-left-color: var(--gold); }

.doc-steps > li::marker { font-weight: 700; color: var(--doc-blue); }

/* The Ubuntu installer, drawn: our choices highlighted, nothing copied. */
.screen {
  margin: 10px 0 18px; max-width: 640px; padding: 0 0 14px;
  background: #2c2c2c; color: #e8e8e8; border-radius: 6px; overflow: hidden;
  font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, .6);
}
.screen p { margin: 0; padding: 0 18px; color: #e8e8e8; white-space: pre; }
.screen .screen-bar { background: #e95420; color: #fff; padding: 5px 18px; margin-bottom: 10px; }
.screen .sel { background: #0e8420; color: #fff; display: inline-block; }
.screen p.sel { display: block; margin: 0 18px; padding: 0 6px; }
.screen .scr-field { display: inline-block; min-width: 180px; margin-left: 8px; padding: 0 6px; background: #fff; color: #111; }
.screen .scr-field .ph { color: #7a5200; }
.screen .btn-row { margin-top: 10px; text-align: center; }
.screen-grub { background: #000; }
.screen-grub .screen-title { text-align: center; padding: 10px 0 8px; color: #bbb; }
.screen-grub p.sel { background: #bbb; color: #000; }

/* The architecture diagram. */
.arch { margin: 12px 0 8px; padding: 16px; background: var(--doc-soft); border-radius: 12px; }
.arch svg { display: block; width: 100%; height: auto; }
.a-cams { fill: var(--doc-blue); }
.a-cam-ico path { fill: #fff; }
.a-t { fill: var(--doc-ink); font: 700 14px system-ui, sans-serif; text-anchor: middle; }
.a-vms { fill: #e8702a; }
.a-node { fill: #0b1016; stroke: var(--gold); stroke-width: 2; }
.a-room { fill: var(--doc-blue); }
.a-opt { fill: #fff; stroke: #9aa7bb; stroke-width: 1.5; stroke-dasharray: 5 4; }
.a-in { fill: #fff; font: 700 14px system-ui, sans-serif; text-anchor: middle; }
.a-small { font-weight: 500; font-size: 12px; opacity: .9; }
.a-dim { fill: #56627a; }
.a-note { fill: #56627a; font: italic 12px system-ui, sans-serif; text-anchor: middle; }
.a-line { fill: none; stroke: #3a4a66; stroke-width: 1.6; }
.a-dash { stroke-dasharray: 5 4; stroke: #9aa7bb; }
.a-ah { fill: #3a4a66; }
.a-lbl { fill: #1b2a4a; font: italic 13px system-ui, sans-serif; text-anchor: middle; }
.a-left { text-anchor: start; }
.arch .gm-top { fill: var(--gold-light); } .arch .gm-mid { fill: var(--gold); }
.arch .gm-node { fill: var(--paper); } .arch .gm-base { fill: var(--gold-deep); }

/* The two drives, drawn. */
.disk-draw { margin: 6px 0 12px; }
.disk-draw p { margin: 10px 0 6px; font-size: 14px; }
.dd-bar { display: flex; gap: 3px; height: 44px; border-radius: 8px; overflow: hidden; }
.dd { display: flex; align-items: center; justify-content: center; padding: 0 6px; color: #fff; font: 600 12px system-ui, sans-serif; white-space: nowrap; overflow: hidden; min-width: 48px; }
.dd-efi { flex: 1; background: #475569; } .dd-boot { flex: 2; background: #64748b; }
.dd-root { flex: 150; background: var(--doc-blue); } .dd-log { flex: 50; background: #4f7cf0; }
.dd-swap { flex: 16; background: #7b8aa8; }
.dd-free { flex: 280; color: #56627a; background: repeating-linear-gradient(135deg, #e4e9f2 0 8px, #f2f5fb 8px 16px); }
.dd-empty { flex: 1; background: linear-gradient(135deg, var(--gold-deep), var(--gold)); }

/* The install steps, restyled for the sheet. */
.doc-stages { margin-top: 14px; }
.doc .stage { background: var(--doc-soft); border-color: var(--doc-line); }
.doc .stage p { color: var(--doc-ink); }
.doc .stage-head h3 { color: #0b1220; }
.doc .stage-n { background: #fff; color: #0b1220; }
.doc .stage[data-done="true"] .stage-n { color: #fff; }
.doc .stages::before { opacity: .35; }
.doc .badge-reboot { background: #efe4ff; color: #6b21a8; }
.doc .badge-danger { background: #fde2e1; color: #b3261e; }
.doc .badge-time { background: #fff1c7; color: #7a5200; }
.doc .tick { color: var(--doc-dim); }

/* The video, on the sheet. */
.doc-video h2 { border-top: 0; }
.doc .chapters { background: var(--doc-soft); border-color: var(--doc-line); }
.doc .chapter { color: var(--doc-ink); }
.doc .chapter:hover { background: #e3e9f6; }
.doc .watch { color: var(--doc-blue); border-color: var(--doc-line); }

.doc-foot {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 16px; padding-bottom: 22px; border-top: 1px solid var(--doc-line);
  color: var(--doc-blue); font-size: 13px; font-weight: 700;
}
.doc-foot code { background: none; padding: 0; }

@media (max-width: 600px) {
  .doc-shell { padding: 16px 0 40px; }
  .doc { border-radius: 0; }
  .doc-toc ol { columns: 1; }
  .doc h2 { font-size: 22px; }
  .doc-band-brand img:first-child { height: 20px; }
  .doc-slash { width: 180px; }
  .screen p { white-space: pre-wrap; }
}

/* PRINTED, IT IS THE DOCUMENT ALONE: no site header, field, video or buttons. */
@media print {
  body { background: #fff !important; }
  .top, .foot, .bg-field, .doc-video, .pre-copy, .tick, .watch { display: none !important; }
  .doc-shell { max-width: none; padding: 0; }
  .doc { box-shadow: none; border-radius: 0; }
  .doc h2 { break-before: page; }
  #prereq h2 { break-before: auto; }
  .doc-table, .screen, .arch, .stage, pre.cmd { break-inside: avoid; }
  .doc-band, .doc-slash, .doc-n, .doc-table thead th, .screen, .screen-bar, .a-cams, .a-node, .a-room, .a-vms, .dd {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}

/* Bold text inside a step card: the dark-theme rule (.stage p strong) is light ink. */
.doc .stage p strong, .doc .callout strong, .doc .note strong { color: #0b1220; }
