/* Home page: six working sample apps in a device frame, then the products.
   Loaded only on index.html, after site.css. */

/* Typefaces the visitor can pick for the sample apps. All SIL Open Font License; subset to Latin;
   licenses in assets/fonts/picker. A font is only downloaded when it is shown. */
@font-face { font-family: "Inter"; src: url("../fonts/picker/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/picker/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/picker/ibmplexsans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Sans"; src: url("../fonts/picker/ibmplexsans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/picker/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("../fonts/picker/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/picker/nunito-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/picker/nunito-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/picker/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/picker/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../fonts/picker/merriweather-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Merriweather"; src: url("../fonts/picker/merriweather-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/picker/lora-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/picker/lora-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/picker/spacegrotesk-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/picker/spacegrotesk-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/picker/jetbrainsmono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/picker/jetbrainsmono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --draft-line: rgba(243, 244, 238, 0.06);
  --table-rule: rgba(243, 244, 238, 0.14);
  --app-bg: #f4f5f1;
  --app-surface: #ffffff;
  --app-line: #dfe3dc;
  --app-ink: #1a221e;
  --app-muted: #66706a;
  --app-green: #2a7560;
  --app-amber: #b8882f;
  --app-red: #a3372b;
  --app-radius: 8px;
}

/* ---------- The try section ---------- */
.try {
  background: radial-gradient(ellipse at 15% 0%, #13304c 0%, var(--steel-950) 55%);
  color: var(--text-on-dark);
  padding: 2.25rem 0 2.75rem;
  position: relative;
  overflow: hidden;
}
/* A survey map under everything: contour lines drawn once at build time (assets/img/contours.svg) */
.topo { position: absolute; left: 0; right: 0; top: -12%; height: 124%; pointer-events: none; background: url("../img/contours.svg") center / cover no-repeat; opacity: 0.3; will-change: transform; }
.try .wrap { position: relative; }
.try .eyebrow { color: var(--sky-300); }
.try .try-title em { font-style: normal; color: var(--sky-300); }
.try .try-title .w, .intro h1 .w { display: inline-block; }
@keyframes word-in { 0% { opacity: 0; translate: 0 0.35em; filter: blur(4px); } 100% { opacity: 1; translate: none; filter: none; } }
.try .try-title.words .w, .intro h1.words .w { animation: word-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i) * 80ms); }
.sec-label { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sky-700); margin-bottom: 0.9rem; }
.try .sec-label { color: var(--sky-300); }
.sec-label .n { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0; }
.sec-label::after { content: ""; display: block; width: 0; height: 1px; background: currentColor; opacity: 0.7; transition: width 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s; }
.sec-label.seen::after { width: 3.5rem; }
.try::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--sky-500), var(--sky-300) 40%, var(--sky-500)); }
.try .try-title { color: #fff; font-size: clamp(2.1rem, 1.3rem + 3vw, 3.7rem); line-height: 1.02; letter-spacing: -0.015em; margin-bottom: 0.8rem; max-width: 13ch; text-wrap: balance; }
.try-intro { color: var(--muted-on-dark); font-size: 1.05rem; max-width: 46ch; margin: 0 0 1.4rem; }
.try-grid { display: grid; gap: 1.5rem; }
.try-left, .try-right { min-width: 0; }
.try-right { display: grid; gap: 0.9rem; align-content: start; }
@media (min-width: 960px) {
  .try { padding: 3rem 0 3.5rem; }
  .try-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2.75rem; align-items: start; }
}

/* Who it is for: a vertical list on wide screens, a scrolling row on narrow ones */
.auds { margin: 0; padding: 0; border: 0; min-width: 0; max-width: 100%; display: flex; gap: 0.45rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; padding-block: 4px 0.35rem; scrollbar-width: none; }
.auds::-webkit-scrollbar { display: none; }
.auds label {
  position: relative; cursor: pointer; flex: none; scroll-snap-align: start;
  display: flex; align-items: baseline; gap: 0.55rem;
  padding: 0.5em 0.9em; border-radius: 999px; border: 1px solid rgba(243, 244, 238, 0.3);
  color: var(--text-on-dark); background: rgba(243, 244, 238, 0.04); font-size: 0.92rem; font-weight: 500;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.auds label:hover { border-color: rgba(243, 244, 238, 0.65); }
.auds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.auds .ak { display: none; }
.auds label:has(input:checked) { background: var(--sky-400); border-color: var(--sky-400); color: var(--on-sky); }
.auds label:has(input:focus-visible) { outline: 2px solid var(--sky-300); outline-offset: 2px; }
@media (min-width: 960px) {
  .auds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; overflow: visible; padding: 0; }
  .auds label { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.1rem; border: 1px solid var(--table-rule); border-radius: 8px; padding: 0.55rem 0.8rem 0.55rem 0.9rem; background: rgba(243, 244, 238, 0.03); font-size: 0.92rem; font-weight: 600; line-height: 1.2; min-width: 0; }
  .auds label::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: transparent; transition: background-color 0.15s ease; }
  .auds label:hover { background: rgba(243, 244, 238, 0.07); border-color: rgba(243, 244, 238, 0.3); }
  .auds .ak { display: block; font-size: 0.78rem; font-weight: 500; color: var(--muted-on-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .auds .al { max-width: 100%; }
  .auds label:has(input:checked) { background: rgba(243, 244, 238, 0.1); border-color: rgba(230, 201, 121, 0.55); color: #fff; }
  .auds label:has(input:checked)::before { background: var(--sky-400); }
  .auds label:has(input:checked) .ak { color: var(--sky-300); }
  .auds label:last-child { grid-column: 1 / -1; }
}

.try-head h2 { font-size: clamp(1.25rem, 1rem + 0.9vw, 1.6rem); color: #fff; margin-bottom: 0.3rem; text-wrap: balance; }
.try-head p { color: var(--muted-on-dark); margin: 0; font-size: 0.97rem; max-width: 64ch; }

.device-bar { display: flex; align-items: center; gap: 0.65rem 0.9rem; flex-wrap: wrap; }
.device-bar .reset { margin-left: auto; }
.device-bar .sound { margin-left: 0; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; padding: 0; }
.device-bar .sound[aria-pressed="true"] { background: var(--sky-400); border-color: var(--sky-400); color: var(--on-sky); }
.device-bar .sound[aria-pressed="false"] .wave { opacity: 0.35; }
.device { transition: max-width 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); }
.splash { position: absolute; z-index: 5; width: 200px; height: 200px; margin: -100px 0 0 -100px; pointer-events: none; }
.splash svg { width: 100%; height: 100%; overflow: visible; display: block; }
.splash .blob { transform-box: fill-box; transform-origin: center; }
.splash .flood { animation: flood 1.3s cubic-bezier(0.3, 0.6, 0.3, 1) both; }
.splash .second { animation: flood2 1.1s cubic-bezier(0.3, 0.6, 0.3, 1) 0.06s both; }
@keyframes flood { 0% { transform: scale(0.05); opacity: 0.9; } 30% { transform: scale(2.4); opacity: 0.8; } 100% { transform: scale(18); opacity: 0; } }
@keyframes flood2 { 0% { transform: rotate(140deg) scale(0.05); opacity: 0.8; } 35% { transform: rotate(140deg) scale(1.6); opacity: 0.6; } 100% { transform: rotate(140deg) scale(7); opacity: 0; } }
.splash .drop { animation: drop 0.9s cubic-bezier(0.1, 0.8, 0.3, 1) both; }
@keyframes drop { 0% { transform: translate(0, 0) scale(0.3); opacity: 0.95; } 70% { opacity: 0.9; } 100% { transform: translate(var(--dx), var(--dy)) scale(1.1); opacity: 0; } }
.seg { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; border: 0; }
.seg label { position: relative; cursor: pointer; font-size: 0.82rem; font-weight: 500; padding: 0.35em 0.75em; border-radius: 999px; border: 1px solid rgba(243, 244, 238, 0.3); color: var(--text-on-dark); background: rgba(243, 244, 238, 0.04); }
.seg label:hover { border-color: rgba(243, 244, 238, 0.65); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--text-on-dark); border-color: var(--text-on-dark); color: var(--on-sky); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--sky-300); outline-offset: 2px; }
.reset { font: inherit; font-size: 0.82rem; font-weight: 500; cursor: pointer; padding: 0.35em 0.75em; border-radius: 999px; border: 1px solid rgba(243, 244, 238, 0.3); color: var(--text-on-dark); background: transparent; }
.reset:hover { border-color: rgba(243, 244, 238, 0.65); }
.lays { gap: 0.25rem; }
.lays .lay { position: relative; width: 34px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; border: 1px solid rgba(243, 244, 238, 0.3); color: var(--text-on-dark); background: rgba(243, 244, 238, 0.04); padding: 0; }
.lays .lay:hover { border-color: rgba(243, 244, 238, 0.65); }
.lays .lay input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.lays .lay svg { width: 18px; height: 18px; pointer-events: none; }
.lays .lay:has(input:checked) { background: var(--text-on-dark); border-color: var(--text-on-dark); color: var(--on-sky); }
.lays .lay:has(input:focus-visible) { outline: 2px solid var(--sky-300); outline-offset: 2px; }
.lays .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; background: var(--steel-950); color: #fff; padding: 0.25em 0.6em; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity 0.15s ease; }
.lays .lay:hover .tip, .lays .lay:has(input:focus-visible) .tip { opacity: 1; }
.swatches { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; margin: 0; padding: 0; border: 0; }
.swatches legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sw { position: relative; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; flex: none; }
.sw input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.sw i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(90deg, var(--a) 0 42%, var(--b) 42% 70%, var(--c) 70% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); transition: transform 0.15s ease; }
.sw:hover i { transform: scale(1.12); }
.sw input:checked + i { box-shadow: 0 0 0 2px var(--steel-950), 0 0 0 4px var(--sky-300); }
.sw input:focus-visible + i { box-shadow: 0 0 0 2px var(--steel-950), 0 0 0 4px #fff; }
.sw.custom i { background: conic-gradient(from 0deg, #d4a84b, #a3372b, #2a4a8a, #2a7560, #d4a84b); }
.sw.custom.on i { box-shadow: 0 0 0 2px var(--steel-950), 0 0 0 4px var(--sky-300); }
.sw.custom input[type=color] { -webkit-appearance: none; appearance: none; border: 0; padding: 0; background: transparent; }
.sw.custom input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.sw.custom input[type=color]::-webkit-color-swatch { border: 0; }
.sw .tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; font-size: 0.75rem; background: var(--steel-950); color: #fff; padding: 0.25em 0.6em; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity 0.15s ease; }
.sw:hover .tip, .sw input:focus-visible ~ .tip { opacity: 1; }
.fontpick { position: relative; }
.fontbtn { font: inherit; font-size: 0.82rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3em 0.75em; border-radius: 999px; border: 1px solid rgba(243, 244, 238, 0.3); color: var(--muted-on-dark); background: rgba(243, 244, 238, 0.06); }
.fontbtn b { color: var(--text-on-dark); font-weight: 500; }
.fontbtn::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--sky-300); border-bottom: 1.5px solid var(--sky-300); transform: rotate(45deg) translate(-1px, -1px); }
.fontbtn:hover { border-color: rgba(243, 244, 238, 0.65); }
.fontbtn[aria-expanded="true"] { background: var(--text-on-dark); color: #5a6574; }
.fontbtn[aria-expanded="true"] b { color: var(--on-sky); }
.fontmenu { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(92vw, 34rem); background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.1); padding: 0.5rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.25rem; }
@media (min-width: 560px) { .fontmenu { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fontmenu button { font: inherit; text-align: left; cursor: pointer; display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.6rem; align-items: center; padding: 0.5rem 0.6rem; border-radius: var(--radius); border: 1px solid transparent; background: transparent; color: var(--ink); }
.fontmenu button:hover { background: var(--stone-100); }
.fontmenu button[aria-selected="true"] { border-color: var(--blue-600); background: var(--blue-50); }
.fontmenu .aa { font-size: 1.5rem; line-height: 1; font-weight: 600; }
.fontmenu .fn { font-size: 0.86rem; font-weight: 600; display: block; line-height: 1.2; }
.fontmenu .fd { font-size: 0.74rem; color: var(--muted); display: block; }
@media (max-width: 700px) { .fontmenu { position: fixed; left: 0.75rem; right: 0.75rem; top: auto; bottom: 0.75rem; width: auto; max-height: 72vh; overflow: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); z-index: 60; box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.1); } }
.device-caption { font-size: 0.82rem; color: var(--muted-on-dark); margin: 0; text-align: center; }

/* ---------- The device frames ---------- */
.device { position: relative; margin: 0 auto; width: 100%; min-width: 0; overflow: hidden; border-radius: 10px; }
.device.phone { border-radius: 30px; }
.device.desktop { max-width: 720px; }
.device.desktop .screen { width: 720px; height: 450px; transform-origin: top left; }
.device.desktop .layer { grid-template-rows: var(--ui-top-h) 1fr; }
.device.phone { max-width: 320px; }
.device.phone .screen { height: 640px; border-radius: 30px; border: 6px solid #10151b; }
.device.phone .layer { grid-template-rows: 46px 1fr 50px; }
.device.phone .screen[data-shell="topm"] .layer { grid-template-rows: 80px 1fr; }
.device.phone .screen[data-shell="drawer"] .layer { grid-template-rows: 46px 1fr; }
.device.phone .screen[data-shell="topm"] .app-top { justify-content: flex-start; }
.device.phone .app-tabsx { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex-wrap: nowrap; }
.device.phone .app-tabsx::-webkit-scrollbar { display: none; }
.device.phone .app-tabsx .nv { flex: none; }
.menu-btn { width: 28px; height: 28px; border: 0; background: transparent; display: grid; gap: 4px; align-content: center; justify-items: center; padding: 0; cursor: pointer; color: inherit; flex: none; margin-right: 2px; }
.menu-btn i { display: block; width: 16px; height: 2px; border-radius: 1px; background: currentColor; }
.app-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); z-index: 6; animation: scrim-in 0.25s ease both; }
@keyframes scrim-in { from { opacity: 0; } to { opacity: 1; } }
.app-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: 72%; max-width: 240px; background: var(--ui-side); color: var(--ui-side-ink); z-index: 7; padding: 16px 0; display: flex; flex-direction: column; gap: 2px; box-shadow: 8px 0 30px rgba(0, 0, 0, 0.35); animation: drawer-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes drawer-in { from { translate: -100% 0; } to { translate: none; } }
.app-drawer .side-head { padding: 0 16px 10px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ui-side-muted); opacity: 0.8; }
.app-drawer .nv { font-size: 13px; padding: 10px 16px 10px 14px; }
.device.phone .screen[data-layout="friendly"] .app-top { padding-top: 12px; }
.screen .layer { position: absolute; inset: 0; display: grid; min-height: 0; }
/* The blueprint: the same app drawn as lines, wiped away to reveal the built one */
.screen .plan { z-index: 2; pointer-events: none; background-color: #0d2742; background-image: linear-gradient(0deg, rgba(230, 201, 121, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(230, 201, 121, 0.08) 1px, transparent 1px); background-size: 100% 24px, 24px 100%; animation: plan-wipe 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both; }
.screen .plan * { background-color: transparent !important; background-image: none !important; color: rgba(230, 201, 121, 0.6) !important; border-color: rgba(230, 201, 121, 0.45) !important; box-shadow: none !important; text-shadow: none !important; }
.screen .plan .app-top, .screen .plan .app-side, .screen .plan .app-tabs { border-color: rgba(230, 201, 121, 0.35) !important; }
.screen .plan .card, .screen .plan .stat, .screen .plan .box, .screen .plan .b, .screen .plan .in, .screen .plan .tbl, .screen .plan .pill, .screen .plan .receipt, .screen .plan .opt, .screen .plan .cert, .screen .plan .frm.boxed, .screen .plan .chip, .screen .plan .kcol, .screen .plan .bar, .screen .plan .av, .screen .plan .explain, .screen .plan .nv.on, .screen .plan .app-tabs .nv::before { outline: 1px solid rgba(230, 201, 121, 0.5); outline-offset: -1px; }
.screen .plan .bar i { background: rgba(230, 201, 121, 0.35) !important; }
.screen .plan svg, .screen .plan .rng { opacity: 0.4; }
@keyframes plan-wipe { 0% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
.screen .scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 3; pointer-events: none; background: var(--sky-300); box-shadow: 0 0 14px 3px rgba(230, 201, 121, 0.55); animation: scan 1.1s cubic-bezier(0.65, 0, 0.35, 1) 0.1s both; }
@keyframes scan { 0% { left: 0; opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.try-head { transition: opacity 0.25s ease; }
.try-head.swap { opacity: 0; }
.screen {
  /* Theme variables. The palette and font pickers set these inline; these are the defaults. */
  --ui-font: var(--font-body); --ui-font-head: var(--font-display); --ui-size: 12px;
  --ui-bg: #f4f5f1; --ui-surface: #ffffff; --ui-line: #dfe3dc; --ui-ink: #1a221e; --ui-muted: #66706a;
  --ui-top: #171e27; --ui-top-ink: #ffffff; --ui-top-muted: #aab6c4;
  --ui-side: #10151b; --ui-side-ink: #ffffff; --ui-side-muted: #aab6c4; --ui-side-on: rgba(255, 255, 255, 0.06);
  --ui-accent: #004a88; --ui-accent-dark: #003a6b; --ui-accent-ink: #ffffff; --ui-accent-soft: #e3edf7;
  --ui-hi: #29b9ef;
  --app-radius: 8px; --ui-btn-radius: 5px; --ui-pad: 12px; --ui-mult: 1; --ui-top-h: 32px;
  background: var(--ui-bg); color: var(--ui-ink); font-family: var(--ui-font); font-size: calc(var(--ui-size) * var(--ui-mult)); line-height: 1.4;
  border-radius: 10px; overflow: hidden; border: 1px solid rgba(243, 244, 238, 0.18);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.3);
  position: relative; text-align: left;
}
@keyframes screen-in { 0% { opacity: 0; translate: 0 12px; } 100% { opacity: 1; translate: none; } }
.screen.boot { animation: screen-in 0.5s ease-out both; }

.app-top { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; padding: 0 12px; background: var(--ui-top); color: var(--ui-top-ink); font-weight: 600; font-size: 12px; border-bottom: 1px solid rgba(0, 0, 0, 0.12); }
.app-icon { width: 16px; height: 16px; color: var(--ui-hi); flex: none; }
.screen[data-shell="top"] .layer { grid-template-rows: calc(var(--ui-top-h) + 30px) 1fr; }
.device.desktop .screen[data-shell="pills"] .layer { grid-template-rows: var(--ui-top-h) auto 1fr; }
.device.phone .screen[data-shell="pills"] .layer { grid-template-rows: 46px auto 1fr; }
.screen[data-shell="pills"] .app-body { grid-template-columns: 1fr; }
.app-pills { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 14px 2px; }
.app-pills .nv { border: 1px solid var(--ui-line); border-left-width: 1px; border-radius: 999px; padding: 5px 12px; background: var(--ui-surface); color: var(--ui-ink); font-size: 11px; font-weight: 600; }
.app-pills .nv:hover { border-color: var(--ui-accent); color: var(--ui-accent); }
.app-pills .nv.on { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-accent-ink); }
.app-pills .nv.done::after { color: var(--ui-accent-ink); margin-left: 6px; }
.app-pills .nv.on.done::after { color: var(--ui-accent-ink); }
.app-pills .nv:not(.on).done::after { color: var(--ui-accent); }
/* The four layouts: corners, density, and the header */
.screen[data-layout="modern"] { --app-radius: 12px; --ui-btn-radius: 999px; --ui-pad: 14px; --ui-top-h: 38px; }
.screen[data-layout="modern"] .app-top .app-name { font-size: 14px; }
.screen[data-layout="modern"] .screen, .screen[data-layout="modern"] .card, .screen[data-layout="modern"] .stat { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.screen[data-layout="compact"] { --app-radius: 3px; --ui-btn-radius: 3px; --ui-pad: 8px; --ui-mult: 0.93; --ui-top-h: 28px; }
.screen[data-layout="compact"] .stack { gap: 5px; }
.screen[data-layout="compact"] .tbl th, .screen[data-layout="compact"] .tbl td { padding: 4px 6px; }
.screen[data-layout="compact"] .card { padding: 6px 8px; gap: 2px; }
.screen[data-layout="compact"] .stats { gap: 5px; }
.screen[data-layout="friendly"] { --app-radius: 16px; --ui-btn-radius: 999px; --ui-pad: 16px; --ui-mult: 1.06; --ui-top-h: 40px; }
.screen[data-layout="friendly"] .app-top { padding: 0 16px; }
.screen[data-layout="friendly"] .app-top .app-name { font-size: 15px; }
.screen[data-layout="friendly"] .card, .screen[data-layout="friendly"] .stat, .screen[data-layout="friendly"] .box, .screen[data-layout="friendly"] .frm.boxed, .screen[data-layout="friendly"] .receipt { border-color: transparent; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07); }
.screen[data-layout="friendly"] .card { padding: 11px 13px; gap: 5px; }
.screen[data-layout="friendly"] .b { padding: 8px 14px; }
.screen[data-layout="friendly"] .in { border-radius: 10px; padding: 8px 10px; }
.screen[data-layout="friendly"] .stats { gap: 10px; }
.screen[data-layout="friendly"] .tbl { border-radius: 12px; }
.screen[data-shell="top"] .app-body { grid-template-columns: 1fr; }
.app-tabsx { order: 10; flex-basis: 100%; display: flex; gap: 2px; margin: 0 -12px; padding: 0 6px; border-top: 1px solid rgba(0, 0, 0, 0.1); align-self: end; }
.app-tabsx .nv { border-left: 0; border-bottom: 2px solid transparent; padding: 6px 10px 5px; color: var(--ui-top-muted); font-size: 10.5px; }
.app-tabsx .nv:hover { color: var(--ui-top-ink); }
.app-tabsx .nv.on { color: var(--ui-top-ink); border-bottom-color: var(--ui-hi); background: transparent; }
.app-tabsx .nv.done::after, .app-tabsx .nv.locked::after { margin-left: 4px; }
.screen[data-shell="rail"] .app-body { grid-template-columns: 64px 1fr; }
.app-side.rail { padding: 8px 0; gap: 0; }
.app-side.rail .nv { flex-direction: column; align-items: center; gap: 4px; font-size: 9px; padding: 8px 2px; border-left: 0; text-align: center; }
.app-side.rail .nv span { white-space: normal; line-height: 1.15; }
.app-side.rail .nv::before { content: ""; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.14); }
.app-side.rail .nv.on { background: var(--ui-side-on); }
.app-side.rail .nv.on::before { background: var(--ui-hi); }
.app-side.rail .nv.done::after, .app-side.rail .nv.locked::after { display: none; }
.app-top .app-name { font-family: var(--ui-font-head); font-size: 13px; }
.app-top .who { margin-left: auto; font-weight: 500; font-size: 10px; color: var(--ui-hi); }
.app-top .clock { font-weight: 500; font-size: 10px; color: var(--ui-top-muted); font-variant-numeric: tabular-nums; }
.device.phone .app-top { padding-top: 12px; }
.device.phone .app-top .who { display: none; }

.app-body { display: grid; grid-template-columns: 136px 1fr; min-height: 0; }
.device.phone .app-body { grid-template-columns: 1fr; }
.app-side { background: var(--ui-side); padding: 10px 0; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid rgba(0, 0, 0, 0.06); }
.app-side .side-head { padding: 0 14px 8px; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ui-side-muted); opacity: 0.8; }
.nv { font: inherit; font-size: 11px; text-align: left; color: var(--ui-side-muted); background: transparent; border: 0; border-left: 3px solid transparent; padding: 6px 12px 6px 11px; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.nv span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nv:hover { color: var(--ui-side-ink); }
.nv.on { color: var(--ui-side-ink); border-left-color: var(--ui-hi); background: var(--ui-side-on); }
.nv.done::after { content: "\2713"; color: var(--ui-hi); font-size: 10px; margin-left: auto; }
.nv.locked { opacity: 0.55; }
.nv.locked::after { content: "\1F512"; font-size: 9px; margin-left: auto; }
.nv:focus-visible { outline: 2px solid var(--ui-hi); outline-offset: -2px; }

.app-tabs { display: flex; background: var(--ui-surface); border-top: 1px solid var(--ui-line); padding-bottom: 4px; }
.app-tabs .nv { flex: 1; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-left: 0; border-top: 2px solid transparent; padding: 6px 2px 0; font-size: 9px; color: var(--ui-muted); }
.app-tabs .nv::before { content: ""; width: 18px; height: 18px; border-radius: 5px; background: var(--ui-line); }
.app-tabs .nv.on { color: var(--ui-accent); background: transparent; border-top-color: var(--ui-accent); }
.app-tabs .nv.on::before { background: var(--ui-accent); }
.app-tabs .nv.done::after, .app-tabs .nv.locked::after { display: none; }
.app-tabs .nv span { max-width: 100%; }

.app-main { padding: var(--ui-pad) 14px 14px; overflow-y: auto; position: relative; min-width: 0; }
.device.phone .app-main { padding: 12px; }

/* ---------- Pieces every app is made of ---------- */
.app-main h3 { font-family: var(--ui-font-head); font-size: 16px; font-weight: 600; margin: 0; }
.app-main h4 { font-family: inherit; font-size: 11px; font-weight: 600; margin: 0 0 6px; color: var(--ui-ink); }
.app-main p { margin: 0; }
.screen .mh { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.screen .mh .sum { font-size: 10.5px; color: var(--ui-muted); }
.screen .note { font-size: 10.5px; color: var(--ui-muted); margin-top: 10px; max-width: 60ch; }
.screen .dim { color: var(--ui-muted); }
.screen .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10px; letter-spacing: 0.02em; }
.screen .empty { color: var(--ui-muted); font-size: 10.5px; padding: 12px 6px; text-align: center; border: 1px dashed var(--ui-line); border-radius: 6px; }

.screen .pill { display: inline-block; font-size: 9.5px; font-weight: 600; line-height: 1.5; padding: 0 7px; border-radius: 999px; background: var(--ui-line); color: var(--ui-ink); white-space: nowrap; }
.screen .pill.ok { background: #dff0e6; color: var(--ok-ink); }
.screen .pill.warn { background: #f7efdc; color: var(--warn-ink); }
.screen .pill.bad { background: #f6e1de; color: var(--app-red); }
.screen .pill.quiet { background: var(--ui-bg); color: var(--ui-muted); }

.screen .b { font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; padding: 6px 11px; border-radius: var(--ui-btn-radius); border: 1px solid var(--ui-accent); background: var(--ui-accent); color: var(--ui-accent-ink); white-space: nowrap; }
.screen .b:hover { background: var(--ui-accent-dark); border-color: var(--ui-accent-dark); }
.screen .b.ghost { background: var(--ui-surface); color: var(--ui-accent); border-color: var(--ui-line); }
.screen .b.ghost:hover { border-color: var(--ui-accent); background: var(--ui-accent-soft); }
.screen .b.small { font-size: 10px; padding: 3px 8px; }
.screen[data-layout="friendly"] .b.small { padding: 5px 10px; }
.screen .b.x { background: transparent; border-color: transparent; color: var(--ui-muted); font-size: 14px; line-height: 1; padding: 2px 6px; }
.screen .b.x:hover { color: var(--app-red); }
.screen .b:focus-visible, .screen .opt:focus-visible, .screen .chip:focus-visible, .screen .rowb:focus-visible { outline: 2px solid var(--ui-accent); outline-offset: 2px; }

.screen .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin-bottom: 10px; }
.screen .stat { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--app-radius); padding: 8px 10px; display: grid; gap: 1px; }
.screen .stat .v { font-family: var(--ui-font-head); font-size: 20px; font-weight: 600; line-height: 1.1; }
.screen .stat .l { font-size: 9.5px; color: var(--ui-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.screen .stat .s { font-size: 10px; color: var(--ui-muted); }

.screen .box { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--app-radius); padding: 10px 12px; }
.screen .brow { display: grid; grid-template-columns: 110px 1fr 24px; gap: 8px; align-items: center; font-size: 10.5px; margin-top: 5px; }
.screen .brow b { text-align: right; }
.screen .bar { height: 6px; border-radius: 3px; background: var(--ui-line); overflow: hidden; }
.screen .bar i { display: block; height: 100%; background: var(--ui-accent); transition: width 0.3s ease; }
.screen .bar i.amber { background: var(--app-amber); }

.screen .kan { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.screen .kcol { background: rgba(0, 0, 0, 0.03); border-radius: var(--app-radius); padding: 6px; display: grid; gap: 6px; align-content: start; }
.screen .kh { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ui-muted); padding: 2px 4px; display: flex; justify-content: space-between; }
.screen .stack { display: grid; gap: 8px; }
.screen .stack.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.device.phone .stack.g2 { grid-template-columns: 1fr; }
.screen .card { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--app-radius); padding: 8px 9px; display: grid; gap: 4px; min-width: 0; }
.screen .card .ch { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 11px; min-width: 0; }
.screen .card .ch b { min-width: 0; overflow-wrap: anywhere; }
.screen .card .ch .pill { flex: none; }
.screen .card .addr { font-size: 10.5px; color: var(--ui-ink); opacity: 0.85; }
.screen .card .cf { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 10px; color: var(--ui-muted); margin-top: 2px; min-width: 0; }
.screen .card .cf > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.screen .card .cf .avs { white-space: normal; overflow: visible; }
.screen .app-main > * { min-width: 0; max-width: 100%; }
.screen .mh h3 { min-width: 0; }
.screen .mh > span, .screen .mh .sum { min-width: 0; }
.screen .chips { display: flex; gap: 5px; margin-bottom: 10px; }
.screen .chip { font: inherit; font-size: 10.5px; font-weight: 500; cursor: pointer; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--ui-line); background: var(--ui-surface); color: var(--ui-ink); }
.screen .chip.on { background: var(--ui-accent); border-color: var(--ui-accent); color: var(--ui-accent-ink); }

.screen .frm { display: grid; gap: 9px; }
.screen .frm:not(.boxed) { max-width: 460px; }
.screen .frm.boxed { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--app-radius); padding: 10px 12px; margin-top: 12px; }
.screen .f { display: grid; gap: 3px; font-size: 10.5px; font-weight: 600; color: var(--ui-ink); min-width: 0; }
.screen .f output { font-weight: 700; color: var(--ui-ink); }
.screen .in { font: inherit; font-size: 11.5px; padding: 6px 8px; border: 1px solid var(--ui-line); border-radius: 5px; background: var(--ui-surface); color: var(--ui-ink); width: 100%; min-width: 0; }
.screen .in:focus { outline: 2px solid var(--ui-accent); outline-offset: 1px; border-color: var(--ui-accent); }
.screen .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
.device.phone .two { grid-template-columns: 1fr; }
.screen .fa { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; margin-top: 6px; align-items: center; }
.screen .fa.left { justify-content: flex-start; }
.screen .fee { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--ui-muted); border-top: 1px dashed var(--ui-line); padding-top: 8px; }
.screen .fee b { font-family: var(--ui-font-head); font-size: 18px; color: var(--ui-ink); }
.screen .ck { font-size: 10.5px; display: flex; gap: 6px; align-items: center; }

.screen .rng { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; margin: 0; cursor: pointer; }
.screen .rng:focus { outline: none; }
.screen .rng::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ui-accent) var(--fill, 0%), var(--ui-line) var(--fill, 0%)); }
.screen .rng::-moz-range-track { height: 4px; border-radius: 2px; background: var(--ui-line); }
.screen .rng::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ui-accent); }
.screen .rng::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: var(--ui-accent); border: 3px solid var(--ui-surface); box-shadow: 0 0 0 1px var(--ui-accent); }
.screen .rng::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--ui-accent); border: 3px solid var(--ui-surface); box-shadow: 0 0 0 1px var(--ui-accent); }
.screen .rng:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--ui-accent-soft); }
.screen .rng:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--ui-accent-soft); }

.screen .receipt { background: var(--ui-surface); border: 1px solid var(--ui-line); border-left: 4px solid var(--ui-accent); border-radius: var(--app-radius); padding: 10px 12px; }
.screen .receipt .rn { font-family: var(--ui-font-head); font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.screen .receipt dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 11px; }
.screen .receipt dt { color: var(--ui-muted); }
.screen .receipt dd { margin: 0; }

.screen .tbl { width: 100%; border-collapse: collapse; font-size: 11px; background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--app-radius); overflow: hidden; }
.screen .tbl th, .screen .tbl td { padding: 6px 8px; border-bottom: 1px solid var(--ui-line); text-align: left; vertical-align: middle; }
.screen .tbl th { font-size: 9.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ui-muted); font-weight: 600; background: var(--ui-bg); }
.screen .tbl tr:last-child td { border-bottom: 0; }
.screen .tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.screen .tbl .ta { text-align: right; white-space: nowrap; }
.screen .tbl .ta .b + .b { margin-left: 4px; }
.screen .tbl .rowb { cursor: pointer; }
.screen .tbl .rowb:hover td { background: var(--ui-accent-soft); }
.screen .tbl.lines td { padding: 4px 5px; }
.screen .tbl.lines .in { padding: 4px 6px; font-size: 11px; }
.screen .tbl.lines td:nth-child(2) .in, .screen .tbl.lines td:nth-child(3) .in { width: 64px; text-align: right; }
.device.phone .tbl.lines td:nth-child(2) .in, .device.phone .tbl.lines td:nth-child(3) .in { width: 52px; }
.device.phone .xw { display: none !important; }
.screen .tot { align-items: start; margin-top: 10px; }
.screen .totals { display: grid; gap: 3px; font-size: 11px; align-content: start; }
.screen .totals div { display: flex; justify-content: space-between; gap: 8px; }
.screen .totals b { font-variant-numeric: tabular-nums; }
.screen .totals .grand { border-top: 1px solid var(--ui-line); padding-top: 4px; margin-top: 2px; font-size: 13px; }
.screen .totals .grand b { font-family: var(--ui-font-head); font-size: 18px; }

.screen .avs { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.screen .av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ui-accent-soft); color: var(--ui-accent-dark); font-size: 9px; font-weight: 700; border: 1px solid var(--ui-line); }
.screen .inline { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.screen .inline .in { flex: 1; }
.screen .shift .bar { margin-top: 4px; }

.screen .prog { display: grid; gap: 4px; margin-bottom: 12px; font-size: 10px; color: var(--ui-muted); }
.app-main .eyebrow { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ui-accent); font-weight: 600; margin-bottom: 4px; }
.screen .lt { font-size: 18px; margin-bottom: 8px; }
.screen .lp { font-size: 12px; line-height: 1.5; max-width: 62ch; margin-bottom: 8px !important; color: var(--ui-ink); opacity: 0.9; }
.screen .qq { font-family: var(--ui-font-head); font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 10px !important; max-width: 60ch; }
.screen .opts { display: grid; gap: 6px; max-width: 60ch; }
.screen .opt { font: inherit; font-size: 11.5px; text-align: left; padding: 8px 10px; border-radius: 6px; border: 1.5px solid var(--ui-line); background: var(--ui-surface); cursor: pointer; color: var(--ui-ink); }
.screen .opt:hover:not([disabled]) { border-color: var(--ui-accent); }
.screen .opt[disabled] { cursor: default; }
.screen .opt.right { border-color: var(--ok); background: #dff0e6; }
.screen .opt.wrong { border-color: var(--app-red); background: #f6e1de; }
.screen .explain { margin-top: 10px; padding: 8px 10px; background: var(--ui-bg); border-left: 3px solid var(--ui-hi); border-radius: 4px; font-size: 11px; max-width: 60ch; }
.screen .cert { background: var(--ui-surface); border: 1px solid var(--ui-line); border-radius: var(--app-radius); padding: 6px; }
.screen .cert svg { width: 100%; height: auto; display: block; }

.screen .toast { position: sticky; bottom: 0; margin-top: 10px; width: fit-content; max-width: 100%; background: var(--ui-side); color: var(--ui-side-ink); font-size: 10.5px; padding: 6px 10px; border-radius: 6px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25); border: 1px solid rgba(0, 0, 0, 0.1); animation: toast-in 0.35s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.screen .toast.err { background: #7a2a22; color: #fff; }
@keyframes toast-in { 0% { opacity: 0; translate: 0 10px; } 100% { opacity: 1; translate: none; } }
.screen .card.new { animation: card-in 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes card-in { 0% { opacity: 0; translate: 0 -8px; box-shadow: 0 0 0 3px var(--ui-hi); } 40% { opacity: 1; translate: none; box-shadow: 0 0 0 3px var(--ui-hi); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* Reservations: the week grid */
.screen .tbl.cal { table-layout: fixed; }
.screen .tbl.cal th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .tbl.cal th:first-child { width: 96px; }
.screen .tbl.cal tbody th { font-size: 10px; text-transform: none; letter-spacing: 0; white-space: normal; }
.screen .tbl.cal td.slot { vertical-align: top; cursor: pointer; height: 44px; padding: 4px; overflow: hidden; }
.screen .tbl.cal td.slot:hover { background: var(--ui-accent-soft); }
.screen .bk { display: block; font-size: 9.5px; line-height: 1.25; padding: 2px 5px; border-radius: 4px; background: var(--ui-accent-soft); color: var(--ui-accent-dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen .bk.held { background: #f7efdc; color: var(--warn-ink); border: 1px dashed #e6d4a2; }
/* Fleet: the checklist */
.screen .dvl { display: grid; gap: 0; padding: 4px 10px; }
.screen .dv { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--ui-line); font-size: 11px; }
.screen .dv:last-child { border-bottom: 0; }
.screen .dv em { font-style: normal; font-size: 9px; text-transform: uppercase; letter-spacing: 0.05em; }
.screen .dvo { display: flex; gap: 10px; white-space: nowrap; }
.screen .dvo label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
/* Community: the vendor select inside a card; the search box */
.screen .in.small { width: auto; padding: 3px 6px; font-size: 10.5px; }
.screen .vend { min-width: 0; }
.screen .in.search { margin-bottom: 8px; max-width: 320px; }
/* League: the score form */
.screen .game .sc { display: inline-flex; align-items: center; gap: 4px; }
.screen .game .sc .in { width: 46px; text-align: center; padding: 4px; }
.screen .game .sc i { font-style: normal; color: var(--ui-muted); }
.screen .game.done { border-left: 3px solid var(--ui-accent); }
.screen .chips.wrap { flex-wrap: wrap; }

/* ---------- Start from this ---------- */
.start { background: var(--steel-800); border: 1px solid var(--table-rule); border-radius: var(--radius-lg); padding: 0.9rem 1rem 1rem; }
.start label { display: block; font-size: 0.92rem; color: var(--muted-on-dark); margin-bottom: 0.55rem; }
.start label span { color: #fff; font-weight: 600; }
.start-row { display: flex; flex-direction: column; gap: 0.5rem; }
.start-row input { flex: 1; font: inherit; font-size: 0.95rem; padding: 0.6em 0.8em; border-radius: var(--radius); border: 1px solid rgba(243, 244, 238, 0.3); background: rgba(255, 255, 255, 0.95); color: #161d26; min-width: 0; }
.start-row input:focus { outline: 2px solid var(--sky-300); outline-offset: 1px; }
.start-row .btn { white-space: nowrap; }
@media (min-width: 560px) { .start-row { flex-direction: row; } }

/* ---------- How a build goes ---------- */
.how { background: var(--stone-100); padding: 2.75rem 0 3rem; }
.how-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.how h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0; }
.how-head a { font-weight: 600; }
.how-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: step; }
.how-list li { margin: 0; display: grid; grid-template-columns: 1fr; gap: 0.9rem; align-items: start; padding-left: 2.4rem; position: relative; color: var(--ink-2); font-size: 0.97rem; }
.how-list li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); font-weight: 700; font-size: 0.85rem; display: grid; place-items: center; }
.how-list b { color: var(--ink); display: block; font-family: var(--font-display); font-size: 1.15rem; margin-bottom: 0.2rem; }
.paper { background: #fff; border: 1px solid var(--stone-300); border-radius: 3px; padding: 0.6rem 0.7rem; font-size: 0.66rem; line-height: 1.35; color: var(--ink-2); box-shadow: 0 6px 16px rgba(16, 22, 30, 0.12); transform: rotate(var(--tilt, 1.5deg)); transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s ease; min-width: 0; width: 12rem; max-width: 100%; justify-self: start; margin-top: 0.25rem; }
.how-list li:hover .paper { transform: rotate(0deg) translateY(-4px) scale(1.04); box-shadow: 0 14px 28px rgba(16, 22, 30, 0.18); }
.paper .ph { font-weight: 700; color: var(--ink); font-size: 0.66rem; margin-bottom: 0.25rem; display: flex; justify-content: space-between; gap: 0.4rem; }
.paper .ph span { color: var(--muted); font-weight: 500; }
.paper .row { display: flex; justify-content: space-between; gap: 0.5rem; border-top: 1px solid var(--stone-200); padding: 0.15rem 0; }
.paper .row b { font-family: var(--font-body); font-size: inherit; color: var(--ink-2); margin: 0; display: inline; }
.paper .row .ok { color: var(--ok-ink); font-weight: 600; }
.paper .line { height: 4px; border-radius: 2px; background: var(--stone-200); margin: 0.3rem 0; }
.paper .line.short { width: 60%; }
.paper .sig { font-family: var(--font-body); font-style: italic; color: var(--blue-700); margin-top: 0.3rem; }
@media (min-width: 880px) {
  .how-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
}

/* ---------- Built, shipped, in use ---------- */
.built { padding: 3.25rem 0 2.5rem; }
.built-head { max-width: 62ch; margin-bottom: 1.75rem; }
.built-head p { color: var(--ink-2); font-size: 1.05rem; }
.built-grid { display: grid; gap: 1.5rem; }
@media (min-width: 880px) { .built-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } .built { padding: 4rem 0 3rem; } }
.prod { display: grid; gap: 0.9rem; align-content: start; min-width: 0; }
.shot { display: block; position: relative; border-radius: var(--radius-lg); padding: 0; box-shadow: 0 16px 40px rgba(16, 22, 30, 0.18), 0 0 0 1px rgba(16, 22, 30, 0.12); overflow: visible; text-decoration: none; transform: perspective(1400px) rotateY(var(--ry, 0deg)); transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease; }
.shot > img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); background: #fff; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); background: var(--steel-900); mix-blend-mode: multiply; opacity: 0.88; transition: opacity 1.1s ease 0.15s; pointer-events: none; }
.seen .shot::after { opacity: 0; }
.shot:hover { transform: perspective(1400px) rotateY(0deg) translateY(-4px); }
@media (min-width: 880px) { .built-grid .prod:first-child .shot { --ry: 7deg; } .built-grid .prod:last-child .shot { --ry: -7deg; } }
.prod .prod-copy, .probono-copy, .gift-copy { opacity: 0; translate: 0 14px; transition: opacity 0.7s ease 0.2s, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s; }
.gift.seen .gift-copy { opacity: 1; translate: none; }
.seen .prod-copy, .probono.seen .probono-copy { opacity: 1; translate: none; }
.shot .ph { position: absolute; right: -8px; bottom: -14px; width: 27%; border-radius: 10px; border: 3px solid #10151b; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3); background: #fff; }
.shot:hover { box-shadow: 0 20px 44px rgba(16, 22, 30, 0.24), 0 0 0 2px var(--blue-500); }
.prod-copy { padding-top: 0.5rem; display: grid; gap: 0.45rem; }
.prod-copy .status { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.prod-copy h3 { font-size: 1.35rem; margin: 0; }
.prod-copy h3 a { color: inherit; text-decoration: none; }
.prod-copy h3 a:hover { color: var(--blue-700); text-decoration: underline; }
.prod-copy p { color: var(--ink-2); margin: 0; }
.prod-copy .actions { margin-top: 0.4rem; }
.probono { margin-top: 2.5rem; padding: 1.4rem 1.4rem 1.4rem; border: 1px solid var(--stone-200); border-left: 4px solid var(--sky-500); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 1.5rem; }
.probono .shot { margin: 0 0.5rem 0.75rem 0; }
.probono-copy { display: grid; gap: 0.45rem; align-content: center; justify-items: start; }
.probono-copy p { justify-self: stretch; }
.probono h3 { font-size: 1.35rem; margin: 0.2rem 0 0; }
.probono p { color: var(--ink-2); margin: 0; max-width: 62ch; }
.probono .actions { margin-top: 0.5rem; }
@media (min-width: 880px) { .probono { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 2.5rem; padding: 1.75rem 2rem 1.75rem 1.75rem; } .probono .shot { margin: 0 0.75rem 0.5rem 0; } }

/* ---------- Veteran band ---------- */
/* ---------- Try it, on the home page: the way to the sample apps page ---------- */
.try-teaser { padding: 3rem 0 3.25rem; }
.try-teaser .sec-label { color: var(--sky-300); }
.try-teaser h2 { margin: 0 0 0.6rem; color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); line-height: 1.05; max-width: 16ch; }
.try-teaser h2 em { font-style: normal; color: var(--sky-300); }
.try-teaser p { margin: 0 0 1.4rem; color: var(--muted-on-dark); max-width: 46ch; }

.vet { background: var(--steel-100); border-top: 1px solid #cfdcd4; border-bottom: 1px solid #cfdcd4; padding: 2rem 0; }
.vet .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.vet p { margin: 0; max-width: 60ch; color: var(--ink-2); }
.vet p strong { color: var(--ink); }


@media (prefers-reduced-motion: reduce) { .splash, .splash .blob, .splash .drop, .screen .toast, .screen .card.new, .app-scrim, .app-drawer { animation: none; } .device { transition: none; } .screen.boot, .try .try-title.words .w, .intro h1.words .w, .screen .plan, .screen .scan { animation: none; } .screen .plan, .screen .scan { display: none; } .bar i, .shot, .shot::after, .prod-copy, .probono-copy, .sec-label::after { transition: none; } .shot { transform: none; } .shot::after { opacity: 0; } .prod .prod-copy, .probono-copy, .gift-copy { opacity: 1; translate: none; transition: none; } .sec-label::after { width: 3.5rem; } }

/* ---------- The free invoice tool ---------- */
.gift { padding: 3rem 0; background: var(--surface); border-top: 1px solid var(--stone-200); }
.gift-grid { display: grid; gap: 2rem; align-items: center; }
.gift-copy h2 { max-width: 20ch; }
.gift-copy p { color: var(--ink-2); max-width: 56ch; }
.gift-copy .actions { margin-top: 1.2rem; }
.gift-paper { display: block; width: 100%; max-width: 22rem; margin: 0 auto; background: #fff; border: 1px solid var(--stone-300); border-radius: 4px; padding: 1.1rem 1.2rem; box-shadow: 0 18px 40px rgba(16, 22, 30, 0.16); font-size: 0.78rem; color: var(--ink-2); text-decoration: none; transform: rotate(-2deg); transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.4s ease; }
.gift-paper:hover { transform: rotate(0deg) translateY(-4px); box-shadow: 0 26px 50px rgba(16, 22, 30, 0.22); }
.gp-top { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 3px solid var(--steel-900); padding-bottom: 0.4rem; margin-bottom: 0.6rem; }
.gp-top b { font-family: var(--font-display); font-size: 1.3rem; letter-spacing: 0.08em; color: var(--steel-900); }
.gp-line { height: 6px; border-radius: 3px; background: var(--stone-200); margin: 0.4rem 0; }
.gp-line.short { width: 55%; }
.gp-rows { display: grid; grid-template-columns: 1fr auto; gap: 0.25rem 1rem; margin-top: 0.8rem; font-variant-numeric: tabular-nums; }
.gp-rows span:nth-child(even) { text-align: right; }
.gp-rows .due { font-weight: 700; color: var(--steel-900); border-top: 1px solid var(--stone-300); padding-top: 0.3rem; margin-top: 0.2rem; font-size: 0.9rem; }
.gp-foot { margin-top: 0.8rem; font-size: 0.7rem; color: var(--muted); border-top: 1px dashed var(--stone-300); padding-top: 0.5rem; }
@media (min-width: 880px) { .gift { padding: 4rem 0; } .gift-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; } }
.gift-card .gift-paper { max-width: 18rem; }
.gift-copy p + p { margin-top: 0.7rem; }
/* The Billhead invoice wears Billhead's navy. */
.gift-paper.bh .gp-top { border-bottom-color: #1C3F7A; }
.gift-paper.bh .gp-top b, .gift-paper.bh .gp-rows .due { color: #1C3F7A; }

/* Witch Card is an app for phones, so its card shows phones only */
.prod-app { margin-top: 2.5rem; align-items: center; }
@media (min-width: 880px) { .prod-app { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.75rem; } }
/* A second wide row reads better mirrored: the copy on the left, the phones on the right. */
@media (min-width: 880px) { .prod-app.flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .prod-app.flip .phones { order: 2; } }
.phones { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-lg); background: radial-gradient(90% 85% at 50% 108%, var(--blue-500) 0%, var(--steel-900) 58%, var(--steel-950) 100%); box-shadow: 0 16px 40px rgba(16, 22, 30, 0.18), 0 0 0 1px rgba(16, 22, 30, 0.12); text-decoration: none; transition: box-shadow 0.3s ease; }
.phones::before { content: ""; position: absolute; left: 50%; top: -30%; width: 70%; height: 70%; translate: -50% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(212, 168, 75, 0.22), transparent); pointer-events: none; }
.phones img { position: absolute; display: block; width: 26%; height: auto; border-radius: 14px; border: 4px solid #10151b; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); transition: translate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), rotate 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.phones .p1 { left: 10%; top: 21%; rotate: -6deg; transition-delay: 0.08s; }
.phones .p2 { left: 37%; top: 8%; z-index: 2; }
.phones .p3 { right: 10%; top: 21%; rotate: 6deg; transition-delay: 0.16s; }
.prod-app:not(.seen) .phones img { translate: 0 45%; }
.phones:hover { box-shadow: 0 20px 44px rgba(16, 22, 30, 0.24), 0 0 0 2px var(--blue-500); }
.phones:hover .p2 { translate: 0 -3%; }
.phones:hover .p1 { rotate: -8deg; }
.phones:hover .p3 { rotate: 8deg; }
@media (max-width: 560px) { .phones img { width: 29%; border-width: 3px; border-radius: 10px; } .phones .p1 { left: 6%; } .phones .p2 { left: 35.5%; } .phones .p3 { right: 6%; } }
@media (prefers-reduced-motion: reduce) { .phones img { transition: none; } .prod-app:not(.seen) .phones img { translate: none; } }

/* ---------- What TSS is: the opening of the home page ---------- */
.intro { padding: 2.75rem 0 3rem; }
.intro .eyebrow { color: var(--sky-400); }
.intro h1 { color: #fff; font-size: clamp(2.4rem, 1.35rem + 3.7vw, 4.4rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 21ch; margin-bottom: 1rem; text-wrap: balance; }
.intro h1 em { font-style: normal; color: var(--sky-300); }
.intro .lede { color: var(--muted-on-dark); max-width: 62ch; font-size: 1.12rem; }
.doors { display: grid; gap: 1rem; margin-top: 2rem; }
.door { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 14px; border: 1px solid var(--rule-on-dark); background: var(--steel-800); color: var(--text-on-dark); text-decoration: none; transition: border-color 0.25s ease, background-color 0.25s ease, translate 0.3s cubic-bezier(0.2, 0.7, 0.2, 1); animation: head-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both; }
.door + .door { animation-delay: 0.35s; }
.band-dark a.door { color: var(--text-on-dark); }
.door:hover { border-color: var(--sky-400); background: var(--steel-700); translate: 0 -3px; }
.door-stage { position: relative; height: 150px; overflow: hidden; border-bottom: 1px solid var(--rule-on-dark); }
.door-stage img { position: absolute; display: block; height: auto; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); transition: translate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), rotate 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.door-stage .dm { width: 44px; border-radius: 10px; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35); z-index: 2; }
/* Our products: a card per family, side by side; the cards wrap as families are added */
.door-stage.ours { background: linear-gradient(90deg, #172e4e 0 50%, #101a2e 50% 100%); }
.door-stage.ours .ph1, .door-stage.ours .ph2 { width: 27%; top: 30px; border-radius: 12px; border: 3px solid #05090f; }
.door-stage.ours .ph1 { left: 14%; rotate: -4deg; }
.door-stage.ours .ph2 { left: 59%; rotate: 4deg; }
.door-stage.ours .dm1 { left: 4%; top: 14px; }
.door-stage.ours .dm2 { left: 52%; top: 14px; }
/* Customer products: the partners' own products */
.door-stage.theirs { background: radial-gradient(90% 120% at 50% 110%, var(--blue-500) 0%, var(--steel-900) 60%, var(--steel-950) 100%); }
.door-stage.theirs .sh1, .door-stage.theirs .sh2 { width: 52%; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); }
.door-stage.theirs .sh1 { left: 5%; top: 26px; rotate: -3deg; }
.door-stage.theirs .sh2 { right: 5%; top: 44px; rotate: 3deg; }
.door:hover .ph1, .door:hover .sh1 { translate: 0 -6px; }
.door:hover .ph2, .door:hover .sh2 { translate: 0 -10px; }
.door-copy { display: grid; gap: 0.35rem; align-content: start; padding: 1.1rem 1.25rem 1.3rem; }
.door-k { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky-400); }
.door strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.15; color: #fff; }
.door-p { color: var(--muted-on-dark); font-size: 0.98rem; }
.door-go { margin-top: 0.35rem; font-weight: 600; color: var(--sky-300); }
.door-go::after { content: " \2192"; }
@media (min-width: 720px) { .door-stage { height: 170px; } }
@media (min-width: 880px) { .intro { padding: 3.75rem 0 4rem; } .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; } .door-stage { height: 190px; } }

/* Customer products on the home page sit on a tint, after our own */
.built.cust { background: var(--stone-100); border-top: 1px solid var(--stone-200); }
.cust-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* Also from TSS: two of our apps outside the families, as small cards */
.mini-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-prod { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 1rem; align-items: center; padding: 0.9rem 1rem; border: 1px solid var(--stone-200); border-radius: var(--radius-lg); background: var(--surface); color: inherit; text-decoration: none; transition: border-color 0.2s ease, translate 0.25s ease, box-shadow 0.25s ease; }
.mini-prod:hover { border-color: var(--blue-500); translate: 0 -3px; box-shadow: 0 10px 24px rgba(16, 22, 30, 0.1); color: inherit; }
.mini-prod img { display: block; width: 84px; aspect-ratio: 390 / 560; object-fit: cover; object-position: top; border-radius: 10px; border: 3px solid #10151b; background: #fff; }
.mini-prod .mp-copy { display: grid; gap: 0.25rem; justify-items: start; }
.mini-prod strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; }
.mini-prod .mp-p { color: var(--ink-2); font-size: 0.95rem; }
@media (prefers-reduced-motion: reduce) { .door, .door-stage img, .mini-prod { animation: none; transition: none; } .door:hover, .mini-prod:hover { translate: none; } }

/* Swipe rows (the doors, families, Also from TSS, Customer products, How a build goes) are
   class swipe swipe-880 in index.html; the row and dot styles are in site.css. */

/* ---------- Desktop: Also from TSS keeps its place under the families ---------- */
@media (min-width: 880px) { #products.built { padding-bottom: 0; } .built.also { padding-top: 3rem; } }

/* ---------- Phones: one section per screen, and a short swipe moves to the next ---------- */
@media (max-width: 879px) and (orientation: portrait) and (min-height: 560px) and (hover: none) and (pointer: coarse) {
  html:has(body.home) { scroll-snap-type: y mandatory; scroll-padding-top: 67px; scroll-behavior: auto; }
  body.home main > section { scroll-snap-align: start; }
  body.home .site-footer { scroll-snap-align: end; }
  body.home :is(.intro, .svc-home, .how, #products, .also, .cust, .try-teaser) {
    min-height: calc(100svh - 67px); scroll-snap-stop: always;
    display: flex; flex-direction: column; justify-content: center;
    padding-block: 0.7rem 0.8rem;
  }
  body.home :is(.intro, .svc-home, #products, .also, .cust, .try-teaser) > .wrap, body.home .how .wrap { width: 100%; }

  /* What we do */
  .intro h1 { font-size: clamp(1.75rem, 7.6vw, 2.4rem); }
  .intro .lede { margin-bottom: 0; font-size: 1rem; }
  .doors { margin-top: 1rem; }
  .door-stage { height: clamp(92px, 16svh, 170px); }
  .door-stage.ours .ph1, .door-stage.ours .ph2 { top: 22px; }
  .door-copy { padding: 0.75rem 1rem 0.9rem; gap: 0.15rem; }
  .door strong { font-size: 1.15rem; }
  .door-p { font-size: 0.9rem; line-height: 1.4; }

  /* Section heads */
  .sec-label { margin-bottom: 0.45rem; }
  .built-head { margin-bottom: 0.8rem; }
  .built-head h2 { margin-bottom: 0.25rem; }
  .built-head p { display: none; }

  /* Families: the family, its look, and its apps by name and status */
  .fam-card { gap: 0.65rem; padding: 0.95rem; }
  .fam-card-head p { margin-top: 0.35rem; font-size: 0.93rem; }
  .fam-card .phones { display: none; }
  .fam-apps { gap: 0.3rem; }
  #products .fam-apps li { flex-direction: row; align-items: center; padding: 0.25rem 0.6rem; }
  .fam-apps a span { display: none; }
  .fam-lock .fam-mark { width: 34px; height: 34px; }
  .fam-card .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; margin-top: 0; }
  .fam-card .actions .btn { padding: 0.5rem 0.4rem; font-size: 0.8rem; text-align: center; justify-content: center; white-space: normal; }
  .fam-apps strong { font-size: 0.93rem; }
  .fam-apps .badge { font-size: 0.68rem; }
  .fam-card .fam-tagline { display: none; }

  /* Also from TSS: bigger phones, since the section has the screen to itself */
  .also .prod-group { margin-top: 0; }
  .also .prod-group-head { margin-bottom: 0.9rem; }
  .also .mini-prod { grid-template-columns: 1fr; justify-items: start; align-content: start; }
  .also .mini-prod img { width: auto; height: clamp(170px, 36svh, 340px); aspect-ratio: 390 / 700; }

  /* Systems we build with a partner */
  .cust .shot > img { aspect-ratio: 2.2 / 1; object-fit: cover; object-position: top; height: auto; }
  .cust .prod { gap: 0.55rem; }
  .cust .prod-copy { gap: 0.3rem; padding-top: 0.2rem; }
  .cust .prod-copy .badge { font-size: 0.68rem; }
  .cust .prod-copy h3 { font-size: 1.2rem; }
  .cust .prod-copy p { font-size: 0.93rem; }
  .cust .prod-copy .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
  .cust .prod-copy .actions .btn { padding: 0.5rem 0.4rem; font-size: 0.8rem; text-align: center; justify-content: center; white-space: normal; }
  .cust-actions { margin-top: 0.6rem; }

}
/* Short phones (iPhone SE and the like): a little less on each screen so it still fits */
@media (max-width: 879px) and (orientation: portrait) and (min-height: 560px) and (max-height: 640px) and (hover: none) and (pointer: coarse) {
  .intro h1 { font-size: 1.6rem; }
  .intro .lede { display: none; }
  .how-steps li { font-size: 0.85rem; }
  .door-p, .fam-card-head p, .cust-actions { display: none; }
  .cust .shot > img { aspect-ratio: 2.8 / 1; }
  .built-head h2, .how h2 { font-size: 1.3rem; }
  #products .fam-apps li { padding-block: 0.18rem; }
}

/* ======================================================================
   December 2026: the opening that builds itself, What we build,
   How a build goes as a scroll story, and the closing call
   ====================================================================== */

/* Section labels read like a drawing's dimension line: mono, with ticks at both ends */
.sec-label { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; }
.sec-label .n { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; }
.sec-label::after { height: 9px; background: linear-gradient(currentColor, currentColor) 0 50% / 100% 1px no-repeat; border-left: 1px solid currentColor; border-right: 1px solid currentColor; box-sizing: border-box; }
.sec-label.seen::after { width: 4.5rem; }

/* ---------- The opening ---------- */
.intro { padding: 2.5rem 0 2.75rem; }
.intro-grid { display: grid; gap: 1.75rem; align-items: center; }
@media (min-width: 960px) { .intro-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 3rem; } .intro { padding: 3.5rem 0 3.75rem; } }
.intro .eyebrow { color: var(--sky-300); }
.intro h1 { font-size: clamp(2.3rem, 1.4rem + 3.2vw, 4rem); max-width: 14ch; }
.intro .lede { font-size: 1.08rem; max-width: 46ch; }
.intro-actions { margin-top: 1.4rem; }
.intro-links { display: flex; flex-wrap: wrap; gap: 0.35rem 1.3rem; margin: 1.1rem 0 0; font-size: 0.95rem; }
.band-dark .intro-links a { color: var(--sky-300); text-decoration: none; font-weight: 600; }
.band-dark .intro-links a::after { content: " \2192"; }
.band-dark .intro-links a:hover { color: #fff; }

/* The stage: a window where a system builds itself */
.stage { margin: 0; min-width: 0; }
.stage-frame {
  position: relative; border-radius: 14px; overflow: hidden; background: #0a0f15;
  border: 1px solid rgba(132, 213, 245, 0.24);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.stage-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 6; background: radial-gradient(420px circle at var(--mx, 70%) var(--my, -10%), rgba(255, 255, 255, 0.09), transparent 60%); }
.stage-bar { display: flex; align-items: center; gap: 0.55rem; height: 34px; padding: 0 12px; background: #0e141b; border-bottom: 1px solid rgba(132, 213, 245, 0.16); }
.stage-dots { display: inline-flex; gap: 5px; }
.stage-dots i { width: 8px; height: 8px; border-radius: 50%; background: #29323d; }
.stage-logo { display: inline-flex; width: 13px; height: 16px; opacity: 0; transform: scale(0.4); transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1); }
.stage-logo.on { opacity: 1; transform: none; }
.stage-logo svg { width: 13px; height: 16px; display: block; }
.stage-spec { color: var(--sky-300); font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stage-state { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 0.4rem; color: #8be8b4; font-size: 0.64rem; }
.stage-state i { width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; animation: live-pulse 1.8s ease-out infinite; }
.stage-state.building { color: #f7d27a; }
.stage-state.building i { background: #f6c75a; animation: blink 0.7s steps(2, start) infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.55); } 100% { box-shadow: 0 0 0 7px rgba(61, 220, 132, 0); } }
@keyframes blink { to { visibility: hidden; } }
.stage-screen {
  position: relative; overflow: hidden; aspect-ratio: 560 / 350;
  background-color: #0b1016;
  background-image: linear-gradient(rgba(132, 213, 245, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(132, 213, 245, 0.07) 1px, transparent 1px);
  background-size: 20px 20px; background-position: -1px -1px;
}
.stage[data-size="narrow"] .stage-screen { aspect-ratio: 340 / 230; }
.stage-canvas { position: absolute; left: 0; top: 0; width: 560px; height: 350px; transform-origin: 0 0; transform: scale(var(--k, 1)); }
.stage[data-size="narrow"] .stage-canvas { width: 340px; height: 230px; }
.stage-app { position: absolute; inset: 0; }
.stage-bp { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.stage-bp rect { fill: none; stroke: #5fd0f7; stroke-width: 1.1; stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); opacity: 0.95; }
.stage-bp.draw rect { stroke-dashoffset: 0; transition: stroke-dashoffset 0.55s cubic-bezier(0.4, 0, 0.2, 1); transition-delay: calc(var(--d, 0) * 1ms); }
.stage-bp.fade rect, .stage-bp.fade text { opacity: 0; transition: opacity 0.6s ease; }
.stage-bp text { fill: #84d5f5; font: 600 8px var(--font-mono); letter-spacing: 0.06em; }

/* The shield: three pieces fly in, lock together, and a glint runs across */
.stage-shield { position: absolute; left: 50%; top: calc(34px + (100% - 34px) / 2); width: 104px; height: 128px; margin: -64px 0 0 -52px; z-index: 5; pointer-events: none; opacity: 0; perspective: 600px; }
.stage-shield.run { opacity: 1; }
.sh-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sh-layer { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.45)); }
.sh-glint { filter: none; }

/* The sample apps inside the stage, drawn at a fixed size and scaled to fit */
.app {
  position: absolute; inset: 14px; display: grid; grid-template-rows: 32px minmax(0, 1fr); overflow: hidden;
  border-radius: 10px; background: var(--a-bg); color: var(--a-ink); font: 11px/1.35 var(--font-body);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.stage[data-size="narrow"] .app { inset: 10px; grid-template-rows: 30px minmax(0, 1fr); }
.sc-works { --a-top: #171e27; --a-top-ink: #f2f5f8; --a-top-muted: #aab6c4; --a-side: #10151b; --a-side-ink: #dbe3ec; --a-side-on: rgba(255, 255, 255, 0.08); --a-accent: #004a88; --a-hi: #29b9ef; --a-bg: #f4f6f8; --a-ink: #161d26; --a-soft: #e3edf7; }
.sc-gov { --a-top: #ffffff; --a-top-ink: #1a221e; --a-top-muted: #6b7280; --a-side: #f1f2ee; --a-side-ink: #1a221e; --a-side-on: rgba(0, 0, 0, 0.06); --a-accent: #0a5ca3; --a-hi: #0a5ca3; --a-bg: #f7f8fa; --a-ink: #161d26; --a-soft: #e6eef8; }
.sc-park { --a-top: #0f6b63; --a-top-ink: #f2fbf9; --a-top-muted: #bfe2dd; --a-side: #0b5049; --a-side-ink: #e3f4f1; --a-side-on: rgba(255, 255, 255, 0.1); --a-accent: #13857a; --a-hi: #f2d37a; --a-bg: #f3f8f7; --a-ink: #14201e; --a-soft: #d6efec; }
.sc-biz { --a-top: #b4541b; --a-top-ink: #fff7f0; --a-top-muted: #f6d3bc; --a-side: #8e4115; --a-side-ink: #fbe9dc; --a-side-on: rgba(255, 255, 255, 0.12); --a-accent: #c9641f; --a-hi: #ffe9c2; --a-bg: #fbf7f2; --a-ink: #2a1d14; --a-soft: #fbe6d8; }
.a-top { display: flex; align-items: center; gap: 8px; padding: 0 12px; background: var(--a-top); color: var(--a-top-ink); border-bottom: 1px solid rgba(0, 0, 0, 0.08); white-space: nowrap; min-width: 0; }
.a-top b { font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.a-ic { width: 14px; height: 14px; border-radius: 4px; background: var(--a-hi); flex: none; }
.a-who { margin-left: auto; font-size: 9.5px; font-weight: 600; color: var(--a-hi); }
.sc-gov .a-who { color: var(--a-accent); }
.a-clock { font-size: 9.5px; color: var(--a-top-muted); font-variant-numeric: tabular-nums; }
.a-body { display: grid; grid-template-columns: 108px minmax(0, 1fr); min-height: 0; }
.a-side { background: var(--a-side); color: var(--a-side-ink); padding: 10px 0; display: flex; flex-direction: column; gap: 1px; }
.a-sh { padding: 0 12px 6px; font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; }
.a-nv { padding: 6px 10px 6px 9px; border-left: 3px solid transparent; font-size: 10.5px; opacity: 0.85; }
.a-nv.on { border-left-color: var(--a-hi); background: var(--a-side-on); opacity: 1; font-weight: 600; }
.sc-gov .a-nv.on { border-left-color: var(--a-accent); }
.a-main { padding: 11px 12px; display: flex; flex-direction: column; gap: 8px; min-width: 0; min-height: 0; }
.a-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.a-head h3 { font: 700 13.5px/1.2 var(--font-display); margin: 0; color: var(--a-ink); }
.a-sum { font-size: 9.5px; color: #5a6574; }
.a-sum b { color: var(--a-ink); font-variant-numeric: tabular-nums; }
.a-btn { margin-left: auto; font-size: 9px; font-weight: 600; color: var(--a-accent); border: 1px solid currentColor; border-radius: 5px; padding: 2px 7px; }
.a-btn.solid { background: var(--a-accent); color: #fff; border-color: var(--a-accent); }
.a-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; min-height: 0; }
.a-col { background: rgba(22, 29, 38, 0.05); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.a-col h4 { margin: 0 0 1px; font: 700 8.5px/1.2 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: #5a6574; display: flex; justify-content: space-between; }
.a-col h4 i { font-style: normal; }
.a-card { background: #fff; border-radius: 6px; padding: 6px 7px; box-shadow: 0 1px 2px rgba(16, 22, 30, 0.1); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 6px; align-items: center; min-width: 0; }
.a-card b { grid-column: 1 / -1; font-size: 10px; line-height: 1.2; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.a-card .a-no { font: 600 7.5px/1.4 var(--font-mono); letter-spacing: 0.02em; color: #5a6574; }
.a-card small { font-size: 8.5px; color: #5a6574; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-go { font-size: 8.5px; font-weight: 700; background: var(--a-accent); color: #fff; border-radius: 4px; padding: 1px 7px; justify-self: end; }
.pill { font-size: 8px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--a-soft); color: var(--a-accent); white-space: nowrap; justify-self: end; }
.pill.red { background: #fde4e1; color: #a3372b; }
.pill.soft { background: #eef1f4; color: #5a6574; }
.pill.ok { background: #dcf3e6; color: #17643b; }
.pill.warn { background: #fdf0d5; color: #7a5200; }
.a-tabs { display: flex; gap: 4px; margin-top: auto; }
.a-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid rgba(22, 29, 38, 0.08); border-radius: 8px; padding: 7px 10px; font-size: 9.5px; color: #5a6574; }
.a-foot b { color: var(--a-ink); }
.a-foot .a-spark { display: flex; align-items: flex-end; gap: 3px; height: 22px; margin-left: auto; }
.a-foot .a-spark i { width: 7px; border-radius: 2px 2px 0 0; background: var(--a-hi); opacity: 0.85; }
.a-foot .a-spark i:last-child { background: var(--a-accent); opacity: 1; }
.a-tabs span { flex: 1; text-align: center; font-size: 9px; font-weight: 600; padding: 4px 0; border-radius: 6px; background: rgba(22, 29, 38, 0.06); color: #5a6574; }
.a-tabs span.on { background: var(--a-accent); color: #fff; }
/* Permit desk: the clerk's queue */
.a-tbl { display: grid; gap: 4px; }
.a-tr { display: grid; grid-template-columns: 62px 62px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: #fff; border: 1px solid rgba(22, 29, 38, 0.08); border-radius: 6px; padding: 6px 8px; font-size: 9.5px; }
.a-tr.h { background: transparent; border: 0; padding: 0 8px; font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6574; font-weight: 700; }
.a-tr b { font-variant-numeric: tabular-nums; }
.a-tr small { color: #5a6574; font-size: 8.5px; display: block; }
.a-note { font-size: 9px; color: #5a6574; }
.a-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.a-kpi { background: #fff; border: 1px solid rgba(22, 29, 38, 0.08); border-radius: 6px; padding: 5px 7px; }
.a-kpi small { display: block; font-size: 8px; color: #5a6574; text-transform: uppercase; letter-spacing: 0.08em; }
.a-kpi b { font: 700 13px/1.15 var(--font-display); color: var(--a-accent); font-variant-numeric: tabular-nums; }
/* Reservations: the week */
.a-week { display: grid; grid-template-columns: 84px repeat(7, minmax(0, 1fr)); gap: 3px; font-size: 8.5px; }
.a-week .d { text-align: center; font-weight: 700; color: #5a6574; letter-spacing: 0.06em; text-transform: uppercase; font-size: 7.5px; }
.a-week .s { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: center; }
.a-week .c { height: 34px; border-radius: 4px; background: rgba(22, 29, 38, 0.05); }
.a-week .bk { height: 34px; border-radius: 4px; background: var(--a-accent); color: #fff; padding: 3px 4px; font-size: 7.5px; line-height: 1.2; overflow: hidden; display: grid; align-content: start; }
.a-week .bk b { font-weight: 700; line-height: 1.12; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.a-week .bk span { opacity: 0.85; white-space: nowrap; }
.a-week .bk.held { background: #e9b949; color: #2a1d00; }
/* Estimates: the lines and the total */
.a-est { background: #fff; border: 1px solid rgba(22, 29, 38, 0.08); border-radius: 8px; padding: 8px 10px; display: grid; gap: 3px; }
.a-ln { display: grid; grid-template-columns: minmax(0, 1fr) 54px 64px; gap: 8px; font-size: 9.5px; padding: 3px 0; border-bottom: 1px solid rgba(22, 29, 38, 0.07); }
.a-ln span:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.a-ln.h { font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: #5a6574; font-weight: 700; }
.a-ln.t { border: 0; font-weight: 700; font-size: 11px; color: var(--a-accent); }
.a-ln.t span:last-child { font-family: var(--font-display); }
.a-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 9.5px; color: #5a6574; }
.a-meta b { color: var(--a-ink); }
.n-only { display: none; }
.stage[data-size="narrow"] .w-only { display: none; }
.stage[data-size="narrow"] .n-only { display: flex; }
.stage[data-size="narrow"] .a-body { grid-template-columns: minmax(0, 1fr); }
.stage[data-size="narrow"] .a-side { display: none; }
.stage[data-size="narrow"] .a-cols { grid-template-columns: minmax(0, 1fr); }
.stage[data-size="narrow"] .a-card { grid-template-columns: auto minmax(0, 1fr) auto; padding: 4px 7px; gap: 1px 6px; }
.stage[data-size="narrow"] .a-card .a-no { order: 1; }
.stage[data-size="narrow"] .a-card b { order: 2; grid-column: auto; display: block; white-space: nowrap; text-overflow: ellipsis; }
.stage[data-size="narrow"] .a-card .pill { order: 3; }
.stage[data-size="narrow"] .a-card small { order: 4; grid-column: 1 / 3; }
.stage[data-size="narrow"] .a-card .a-go { order: 5; }
.stage[data-size="narrow"] .a-week { grid-template-columns: 64px repeat(7, minmax(0, 1fr)); }
.stage[data-size="narrow"] .a-week .c, .stage[data-size="narrow"] .a-week .bk { height: 22px; font-size: 0; padding: 0; }
.stage[data-size="narrow"] .a-tr { grid-template-columns: 54px minmax(0, 1fr) auto; }
.stage[data-size="narrow"] .a-tr .w-cell { display: none; }

/* Building: parts arrive in order once their blueprint is drawn */
.app.pre { opacity: 0; }
.app.building { background-color: transparent; box-shadow: none; }
.app.building.go { background-color: var(--a-bg); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45); transition: background-color 0.5s ease 0.25s, box-shadow 0.5s ease 0.25s; }
.app.building [data-b] { opacity: 0; translate: 0 7px; }
.app.building .pill, .app.building .a-go, .app.building .bk { opacity: 0; scale: 0.4; }
.app.building.go [data-b] { opacity: 1; translate: none; transition: opacity 0.35s ease, translate 0.45s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--d, 0) * 1ms); }
.app.building.go .pill, .app.building.go .a-go, .app.building.go .bk { opacity: 1; scale: 1; transition: opacity 0.2s ease, scale 0.35s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc((var(--d, 0) + 260) * 1ms); }
.app.leaving { opacity: 0; transition: opacity 0.3s ease; }

/* Picking a system, pausing, and opening it */
.stage-controls { margin-top: 0.9rem; display: grid; gap: 0.7rem; }
.stage-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.45rem; }
.stage-tab { position: relative; overflow: hidden; display: grid; gap: 0.1rem; text-align: left; padding: 0.55rem 0.65rem 0.65rem; border-radius: 10px; border: 1px solid var(--rule-on-dark); background: rgba(255, 255, 255, 0.03); color: var(--muted-on-dark); font: inherit; cursor: pointer; min-width: 0; }
.stage-tab:hover { border-color: rgba(132, 213, 245, 0.55); color: #fff; }
.stage-tab .mlabel { font-size: 0.62rem; color: var(--sky-400); }
.stage-tab b { font-size: 0.88rem; font-weight: 600; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-tab small { font-size: 0.76rem; opacity: 0.8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-tab[aria-pressed="true"] { border-color: var(--sky-400); color: #fff; background: rgba(41, 185, 239, 0.1); }
.stage-tab .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--sky-400); transform-origin: 0 50%; transform: scaleX(0); }
.stage-tab[aria-pressed="true"] .prog.run { animation: tab-prog var(--dur, 6000ms) linear forwards; }
.stage.paused .stage-tab .prog.run { animation-play-state: paused; }
@keyframes tab-prog { to { transform: scaleX(1); } }
.stage-tab:focus-visible, .stage-pause:focus-visible { outline: 2px solid var(--sky-300); outline-offset: 2px; }
.stage-acts { display: flex; align-items: center; justify-content: flex-end; gap: 0.6rem 1.1rem; flex-wrap: wrap; }
.stage-pause { display: inline-flex; align-items: center; gap: 0.4rem; font: inherit; font-size: 0.88rem; font-weight: 600; color: var(--muted-on-dark); background: none; border: 1px solid var(--rule-on-dark); border-radius: 999px; padding: 0.35em 0.85em; cursor: pointer; min-height: 36px; }
.stage-pause:hover { color: #fff; border-color: rgba(132, 213, 245, 0.55); }
.stage-pause svg { fill: currentColor; }
.stage-pause .i-play { display: none; }
.stage-pause[aria-pressed="true"] .i-play { display: inline; }
.stage-pause[aria-pressed="true"] .i-pause { display: none; }
.band-dark a.stage-use { color: var(--sky-300); font-weight: 700; text-decoration: none; }
.band-dark a.stage-use::after { content: " \2192"; }
.band-dark a.stage-use:hover { color: #fff; }

/* ---------- What we build, on the home page ---------- */
.svc-home { padding: 3.25rem 0 2.75rem; background: var(--surface); }
.svc-cards { display: grid; gap: 1rem; }
@media (min-width: 880px) { .svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } .svc-home { padding: 4rem 0 3.25rem; } }
.svc-card { position: relative; display: grid; gap: 0.35rem; align-content: start; padding: 1.15rem 1.2rem 1.2rem; border: 1px solid var(--stone-200); border-radius: var(--radius-lg); background: var(--paper); color: var(--ink); text-decoration: none; overflow: hidden; }
.svc-card::before { content: ""; position: absolute; top: 8px; left: 8px; width: 12px; height: 12px; border-top: 2px solid var(--sky-500); border-left: 2px solid var(--sky-500); }
.svc-card::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 12px; height: 12px; border-right: 2px solid var(--sky-500); border-bottom: 2px solid var(--sky-500); transition: translate 0.2s ease; }
.svc-card:hover { border-color: var(--blue-500); background: var(--surface); box-shadow: 0 12px 28px rgba(16, 22, 30, 0.08); translate: 0 -3px; color: var(--ink); }
.svc-card:hover::after { translate: 3px 3px; }
.svc-card .mlabel { color: var(--sky-700); padding-left: 0.6rem; }
.svc-card strong { font-family: var(--font-display); font-size: 1.15rem; line-height: 1.2; }
.svc-card .sc-p { color: var(--ink-2); font-size: 0.96rem; }
.svc-card .sc-go { margin-top: 0.3rem; font-size: 0.85rem; font-weight: 600; color: var(--blue-700); }
.svc-card .sc-go::after { content: " \2192"; }
.svc-home .cust-actions { margin-top: 1.6rem; }

/* ---------- How a build goes ---------- */
.how { padding: 3rem 0; }
.how-grid { display: grid; gap: 1.5rem; }
.how-copy h2 { margin: 0 0 1rem; }
.how-steps { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.7rem; counter-reset: st; }
.how-steps li { position: relative; padding-left: 2.4rem; color: var(--ink-2); counter-increment: st; }
.how-steps li::before { content: counter(st); position: absolute; left: 0; top: 0.1rem; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; background: var(--btn-bg); color: var(--btn-ink); font: 600 0.82rem/1 var(--font-mono); transition: background-color 0.3s ease, transform 0.3s ease; }
.how-steps b { display: block; color: var(--ink); font-family: var(--font-display); font-size: 1.1rem; }
.how-buy { font-weight: 600; }
.how-desk { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 880px) { .how-desk { grid-template-columns: repeat(4, minmax(0, 1fr)); } .how-grid { gap: 2rem; } }
.how .paper { font-size: 0.74rem; padding: 0.75rem 0.85rem; transform: rotate(var(--tilt, 0deg)); position: relative; }
.how .paper .ph { font-size: 0.78rem; }
.how .paper .note { margin-top: 0.45rem; font-family: var(--font-mono); font-size: 0.64rem; color: var(--sky-700); }
.p-call { --tilt: -2deg; } .p-charter { --tilt: 1.5deg; } .p-update { --tilt: -1deg; }
.paper .stamp { position: absolute; right: 0.7rem; bottom: 0.55rem; display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.2rem 0.55rem 0.2rem 0.4rem; border: 2px solid #1e7b4a; border-radius: 6px; color: #1e7b4a; font: 700 0.7rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; transform: rotate(-8deg); background: rgba(255, 255, 255, 0.9); }
.p-charter { padding-bottom: 2.6rem !important; }
.p-update .wk b { font-variant-numeric: tabular-nums; }
.paper .bar { margin-top: 0.5rem; height: 5px; border-radius: 3px; background: var(--stone-200); overflow: hidden; }
.paper .bar i { display: block; height: 100%; width: 100%; background: var(--ok); border-radius: 3px; }
.shipped { border-radius: 12px; background: #0e141b; border: 1px solid rgba(132, 213, 245, 0.25); color: var(--text-on-dark); overflow: hidden; box-shadow: 0 14px 30px rgba(16, 22, 30, 0.25); align-self: start; }
.sh-top { display: flex; justify-content: space-between; gap: 0.5rem; padding: 0.45rem 0.6rem; border-bottom: 1px solid rgba(132, 213, 245, 0.16); }
.sh-top .mlabel { font-size: 0.6rem; color: var(--sky-300); white-space: nowrap; }
.sh-top .live { color: #8be8b4; display: inline-flex; align-items: center; gap: 0.3rem; }
.sh-top .live i { width: 6px; height: 6px; border-radius: 50%; background: #3ddc84; animation: live-pulse 1.8s ease-out infinite; }
.sh-body { display: grid; gap: 0.4rem; padding: 0.7rem 0.75rem 0.8rem; background: #f7f8fa; color: var(--ink); font-size: 0.72rem; }
.sh-body b { font-family: var(--font-display); font-size: 0.86rem; }
.sh-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 0.35rem; }
.sh-row i { height: 16px; border-radius: 4px; background: #fff; border: 1px solid var(--stone-300); }
.sh-fee { font-weight: 700; color: var(--blue-700); }
.sh-btn { justify-self: start; background: var(--blue-700); color: #fff; font-weight: 600; border-radius: 6px; padding: 0.25rem 0.6rem; }

/* Wide screens with motion on: the section stays put while the papers fill in (stage.js sets data-phase) */
.how.how-live { padding: 0; }
.how-live .how-track { height: 330vh; }
.how-live .how-pin { position: sticky; top: 67px; height: calc(100vh - 67px); min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.how-live .how-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: 3rem; width: 100%; }
.how-live .how-steps li { opacity: 0.45; transition: opacity 0.35s ease; cursor: pointer; }
.how-live .how-steps li.now, .how-live .how-steps li.done { opacity: 1; }
.how-live .how-steps li.now::before { background: var(--sky-500); transform: scale(1.15); }
.how-live .how-steps li.done::before { content: "\2713"; background: var(--ok); }
.how-live .how-desk { display: block; position: relative; height: min(560px, 68vh); }
.how-live .how-desk::before { position: absolute; right: 0; top: 50%; translate: 0 -50%; font: 600 clamp(9rem, 14vw, 15rem)/1 var(--font-mono); color: rgba(0, 74, 136, 0.06); letter-spacing: -0.04em; pointer-events: none; }
.how-live[data-phase="1"] .how-desk::before { content: "01"; }
.how-live[data-phase="2"] .how-desk::before { content: "02"; }
.how-live[data-phase="3"] .how-desk::before { content: "03"; }
.how-live[data-phase="4"] .how-desk::before { content: "Live"; font-size: clamp(6rem, 9vw, 10rem); color: rgba(30, 123, 74, 0.08); }
.how-live .how-copy h2 { font-size: clamp(1.9rem, 1.2rem + 1.5vw, 2.6rem); max-width: 16ch; margin-bottom: 1.4rem; }
.how-live .how-steps { gap: 1rem; }
.how-live .how-steps li { font-size: 1.05rem; }
.how-live .how-steps b { font-size: 1.22rem; }
.how-live .how-desk > * { position: absolute; left: 50%; top: 50%; width: min(430px, 78%); transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.5s ease, filter 0.5s ease; }
.how-live .paper { font-size: 1rem; padding: 1.2rem 1.35rem; box-shadow: 0 24px 50px rgba(16, 22, 30, 0.16); }
.how-live .paper .ph { font-size: 1.08rem; margin-bottom: 0.5rem; }
.how-live .paper .row { padding: 0.35rem 0; }
.how-live .paper .note { font-size: 0.78rem; }
.how-live .p-charter { padding-bottom: 3rem !important; }
.how-live .paper .stamp { font-size: 0.8rem; }
.how-live [data-paper] { opacity: 0; transform: translate(-50%, -10%) rotate(4deg) scale(0.9); }
/* the paper in hand */
.how-live[data-phase="1"] .p-call, .how-live[data-phase="2"] .p-charter, .how-live[data-phase="3"] .p-update, .how-live[data-phase="4"] .shipped { opacity: 1; transform: translate(-50%, -50%) rotate(var(--tilt, 0deg)) scale(1.06); z-index: 3; }
/* papers already done, stacked to the side */
.how-live[data-phase="2"] .p-call, .how-live[data-phase="3"] .p-call, .how-live[data-phase="4"] .p-call { opacity: 0.55; transform: translate(-112%, -86%) rotate(-7deg) scale(0.62); filter: saturate(0.6); z-index: 1; }
.how-live[data-phase="3"] .p-charter, .how-live[data-phase="4"] .p-charter { opacity: 0.6; transform: translate(10%, -92%) rotate(6deg) scale(0.62); filter: saturate(0.6); z-index: 1; }
.how-live[data-phase="4"] .p-update { opacity: 0.6; transform: translate(-108%, -8%) rotate(-5deg) scale(0.6); filter: saturate(0.6); z-index: 1; }
.how-live .shipped { width: min(400px, 74%); }
.how-live .sh-body { font-size: 0.9rem; padding: 1rem; gap: 0.6rem; }
.how-live .sh-body b { font-size: 1.1rem; }
.how-live .sh-row i { height: 26px; }
.how-live .sh-top .mlabel { font-size: 0.7rem; }
/* what is written so far on the paper in hand */
.how-live .paper [data-at] { transition: opacity 0.3s ease, translate 0.35s ease; }
.how-live .paper [data-at]:not(.on) { opacity: 0; translate: 8px 0; }
.how-live .paper .stamp[data-at]:not(.on) { opacity: 0; transform: rotate(-8deg) scale(2.2); translate: none; }
.how-live .paper .stamp[data-at].on { transition: opacity 0.12s ease, transform 0.35s cubic-bezier(0.3, 1.5, 0.5, 1); }
.how-live .paper .bar i { transition: width 0.3s ease; }

/* ---------- The closing call: light, so the dark footer has an edge ---------- */
.start-band { padding: 3rem 0; background: var(--surface); border-top: 1px solid var(--stone-200); position: relative; }
.start-band::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 3px; background: linear-gradient(90deg, var(--blue-700), var(--sky-500)); }
.start-band .wrap { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 880px) { .start-band .wrap { grid-template-columns: minmax(0, 7fr) auto; gap: 3rem; } .start-band { padding: 3.75rem 0; } }
.start-band .eyebrow { color: var(--blue-600); }
.start-band h2 { margin: 0 0 0.4rem; }
.start-band p { margin: 0; color: var(--ink-2); max-width: 58ch; }
.start-band .actions { margin-top: 0; }
.vet-acts { display: flex; flex-wrap: wrap; gap: 0.6rem; }

html[data-calm] .intro .lede .more { display: none; }
@media (prefers-reduced-motion: reduce) {
  .intro .lede .more { display: none; }
  .stage-frame { transform: none; }
  .stage-state i, .sh-top .live i { animation: none; }
}

/* Phones, one section per screen (after the December rules so these win) */
@media (max-width: 879px) and (orientation: portrait) and (min-height: 560px) and (hover: none) and (pointer: coarse) {
  /* The opening: the headline, the two buttons, and the stage, on one screen */
  .intro h1 { margin-bottom: 0.55rem; max-width: none; font-size: clamp(1.5rem, 6.6vw, 2rem); }
  .intro .eyebrow { margin-bottom: 0.45rem; font-size: 0.66rem; }
  .intro .lede { font-size: 0.95rem; line-height: 1.45; }
  .intro-actions { margin-top: 0.8rem; gap: 0.5rem; }
  .intro-actions .btn { padding: 0.6em 1em; font-size: 0.95rem; }
  .intro-links { display: none; }
  .intro-grid { gap: 0.9rem; }
  .stage-controls { margin-top: 0.55rem; gap: 0.4rem; }
  .stage-tabs { gap: 0.3rem; }
  .stage-tab { padding: 0.45rem 0.4rem; text-align: center; }
  .stage-tab .mlabel, .stage-tab b { display: none; }
  .stage-tab small { font-size: 0.74rem; opacity: 1; }
  .stage-acts { justify-content: space-between; }

  /* What we build */
  .svc-card { padding: 1rem 1.05rem; }

  /* How a build goes */
  .how-copy h2 { margin-bottom: 0.6rem; font-size: 1.35rem; }
  .how-steps { gap: 0.4rem; margin-bottom: 0.4rem; }
  .how-steps li { font-size: 0.93rem; padding-left: 2.1rem; }
  .how-steps b { font-size: 1rem; display: inline; }
  .how-steps li::before { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
  .how-grid { gap: 0.6rem; }
  .how .paper, .how .shipped { font-size: 0.7rem; }
  .intro .lede { font-size: 0.93rem; }
}
@media (max-width: 879px) and (orientation: portrait) and (min-height: 560px) and (max-height: 700px) and (hover: none) and (pointer: coarse) {
  .intro .lede .more { display: none; }
  .stage-tab { padding: 0.4rem 0.15rem; }
  .stage-tab small { font-size: clamp(0.64rem, 2.9vw, 0.74rem); }
  .how-steps li { font-size: 0.86rem; }
  .how-copy .how-buy { display: none; }
  #products .fam-apps li { padding-block: 0.18rem; }
  #products .fam-card-head p { font-size: 0.88rem; line-height: 1.4; }
  .cust .shot > img { aspect-ratio: 2.8 / 1; }
  .built-head h2 { font-size: 1.3rem; }
  .cust-actions { gap: 0.5rem; }
  .cust-actions .btn { padding: 0.55em 0.85em; font-size: 0.9rem; }
}
@media (max-width: 879px) and (orientation: portrait) and (min-height: 560px) and (max-height: 640px) and (hover: none) and (pointer: coarse) {
  .intro .lede { display: none; }
  .intro-actions { margin-top: 0.6rem; }
  .stage-controls { margin-top: 0.4rem; gap: 0.3rem; }
  .stage-pause { min-height: 32px; padding: 0.2em 0.7em; }
}


/* ======================================================================
   December 2026, second pass: one dark world on the home page.
   The opening fills a phone screen and takes the visitor's own name; the six
   systems are tiles with drawn marks; How a build goes can be dragged through;
   the sample apps drift past; and on a phone each section arrives once.
   ====================================================================== */

/* ---------- The opening ---------- */
body.dark .intro { background: none; }
.stage { position: relative; isolation: isolate; }
.stage::before {
  content: ""; position: absolute; z-index: -1; left: -16%; right: -16%; top: -12%; height: 86%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(41, 185, 239, 0.3), rgba(42, 120, 194, 0.12) 46%, transparent 72%);
}
.stage-frame { border-color: rgba(132, 213, 245, 0.38); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.62), 0 0 80px -14px rgba(41, 185, 239, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.03); }
/* When a system goes live, the frame catches a green light once */
.stage-frame::before { content: ""; position: absolute; inset: 0; z-index: 7; border-radius: inherit; pointer-events: none; opacity: 0; box-shadow: inset 0 0 0 1.5px rgba(139, 232, 180, 0.95), inset 0 0 30px rgba(61, 220, 132, 0.4); }
.stage.is-live .stage-frame::before { animation: live-ring 1.5s ease-out 1; }
@keyframes live-ring { 0% { opacity: 0; } 14% { opacity: 1; } 100% { opacity: 0; } }
/* The shield arrives in its own light */
.stage-shield::before { content: ""; position: absolute; inset: -55%; background: radial-gradient(closest-side, rgba(41, 185, 239, 0.5), rgba(41, 185, 239, 0.12) 55%, transparent); opacity: 0; }
.stage-shield.run::before { animation: sh-light 1.9s ease-out both; }
@keyframes sh-light { 0% { opacity: 0; transform: scale(0.6); } 45% { opacity: 1; transform: scale(1); } 100% { opacity: 0.2; transform: scale(1.1); } }
.stage[data-tall] .stage-shield { width: 140px; height: 172px; margin: -86px 0 0 -70px; }

/* The second line of the headline is brushed metal, like the shield */
.intro h1 em .w, .intro h1:not(.words) em {
  background: linear-gradient(100deg, #84d5f5 0%, #29b9ef 34%, #eaf8ff 50%, #29b9ef 66%, #84d5f5 100%) 0 0 / 240% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
}
.intro h1.words em .w { animation: word-in 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both, sheen 2.6s ease-in-out 1.3s 1 both; animation-delay: calc(var(--i) * 80ms), 1.3s; }
@keyframes sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* Put your name on it */
.stage-name { display: grid; gap: 0.35rem; min-width: 0; }
.stage-name .mlabel { color: var(--sky-300); font-size: 0.66rem; }
.sn-row { display: flex; gap: 0.45rem; }
.sn-row input { flex: 1; min-width: 0; height: 44px; padding: 0 0.85rem; font: inherit; font-size: 1rem; color: #fff; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(132, 213, 245, 0.36); border-radius: 10px; }
.sn-row input::placeholder { color: #8fa1b3; opacity: 1; }
.sn-row input:focus { border-color: var(--sky-400); background: rgba(41, 185, 239, 0.09); box-shadow: 0 0 0 3px rgba(41, 185, 239, 0.25); outline: none; }
.sn-row .btn { border-radius: 10px; white-space: nowrap; }
.sn-note { margin: 0; font-size: 0.86rem; line-height: 1.4; color: var(--muted-on-dark); }
.sn-note b { color: #fff; }
.app.named .a-top b { flex: 1 1 auto; min-width: 0; }
.stage[data-size="narrow"] .app.named .a-who { display: none; }

/* The phone canvas: 340 wide and as tall as the first screen has room for (stage.js sets --ch).
   Lists inside run on past the bottom edge, the way a real app's would. */
.stage[data-size="narrow"] .stage-screen { aspect-ratio: 340 / var(--ch, 230); }
.stage[data-size="narrow"] .stage-canvas { height: calc(var(--ch, 230) * 1px); }
.n-row, .n-list { display: none; }
.stage[data-size="narrow"] .a-main { overflow: hidden; }
.stage[data-size="narrow"] .a-cols { display: flex; flex-direction: column; flex: 1 1 0; min-height: 0; overflow: hidden; gap: 6px; }
.stage[data-size="narrow"] .a-cols .a-col { display: flex; flex: none; }
.stage[data-size="narrow"] .a-tbl { flex: 1 1 0; min-height: 0; overflow: hidden; align-content: start; }
.stage[data-size="narrow"] [data-clip] { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 18px), transparent); }
.stage[data-size="narrow"] .n-row { display: grid; }
.stage[data-size="narrow"][data-tall] .n-list { display: flex; }
.a-list { flex-direction: column; gap: 4px; flex: 1 1 0; min-height: 0; overflow: hidden; }
.a-li { flex: none; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 8px; align-items: center; background: #fff; border: 1px solid rgba(22, 29, 38, 0.08); border-radius: 6px; padding: 5px 8px; }
.a-li b { grid-area: 1 / 1; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a-li span:not(.pill) { grid-area: 2 / 1; font-size: 8.5px; color: #5a6574; }
.a-li small { grid-area: 2 / 2; font-size: 8.5px; color: #5a6574; text-align: right; }
.a-li .pill { grid-area: 1 / 2; }

/* Phones: the headline, then the stage, then the controls within reach of a thumb */
@media (max-width: 879px) {
  .intro { padding: 1rem 0 1.1rem; }
  .intro-grid { gap: 0.7rem; }
  .intro-copy { display: contents; }
  .intro .eyebrow { order: 1; margin: 0; font-size: 0.64rem; }
  .intro h1 { order: 2; margin: 0; max-width: none; font-size: clamp(1.25rem, 5.95vw, 2.4rem); letter-spacing: -0.02em; }
  .intro .lede { order: 3; margin: 0; font-size: 0.95rem; line-height: 1.45; }
  .intro .lede .more { display: none; }
  .stage { order: 4; }
  .intro-actions { order: 5; margin-top: 0.15rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .intro-actions .btn { text-align: center; padding: 0.72em 0.5em; font-size: 0.95rem; }
  .intro-links { display: none; }
  .stage-controls { margin-top: 0.55rem; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5rem 0.4rem; align-items: center; }
  .stage-tabs { grid-column: 1; display: flex; gap: 0.3rem; min-width: 0; }
  .stage-tab { flex: 1 1 auto; padding: 0.5rem 0.3rem; text-align: center; min-height: 36px; }
  .stage-tab .mlabel, .stage-tab b { display: none; }
  .stage-tab small { font-size: clamp(0.62rem, 2.75vw, 0.74rem); opacity: 1; overflow: visible; }
  .stage-acts { display: contents; }
  .stage-pause { grid-column: 2; grid-row: 1; width: 36px; min-height: 36px; padding: 0; justify-content: center; border-radius: 10px; }
  .stage-pause span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stage-name { grid-column: 1 / -1; grid-row: 2; }
  .band-dark a.stage-use { grid-column: 1 / -1; grid-row: 2; justify-self: end; align-self: start; font-size: 0.72rem; line-height: 1.5; font-weight: 600; z-index: 1; }
}
@media (max-width: 879px) and (max-height: 739px) { .intro .lede { display: none; } }
@media (max-width: 879px) and (max-height: 619px) { .intro .eyebrow { display: none; } }

/* ---------- 01 What we build: six tiles, each with a mark that draws itself ---------- */
body.dark .svc-home { background: none; }
.svc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
@media (min-width: 880px) { .svc-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; } }
body.dark .svc-card { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.3rem 0.6rem; padding: 0.95rem 0.9rem 1rem; background: linear-gradient(180deg, rgba(132, 213, 245, 0.085), rgba(132, 213, 245, 0.025)); border-color: rgba(132, 213, 245, 0.17); }
body.dark .svc-card:hover { background: linear-gradient(180deg, rgba(132, 213, 245, 0.14), rgba(132, 213, 245, 0.05)); border-color: var(--sky-400); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 30px -10px rgba(41, 185, 239, 0.5); }
.svc-glyph { grid-column: 1; width: 30px; height: 30px; fill: none; stroke: var(--sky-300); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.svc-glyph * { stroke-dasharray: 130; stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(0.4, 0, 0.2, 1); }
.svc-card .mlabel { grid-column: 2; justify-self: end; padding: 0; font-size: 0.64rem; }
.svc-card strong, .svc-card .sc-p, .svc-card .sc-go { grid-column: 1 / -1; }
.svc-card strong { font-size: 1.02rem; margin-top: 0.25rem; }
.svc-card .sc-go { margin-top: 0.1rem; font-size: 0.78rem; }
@media (max-width: 879px) { .svc-card .sc-p { display: none; } .svc-home .cust-actions { margin-top: 1rem; } body.dark .svc-card { align-content: center; min-height: clamp(92px, 15svh, 150px); } }
@media (max-width: 879px) and (max-height: 739px) { .svc-card .sc-go { display: none; } body.dark .svc-card { padding: 0.75rem 0.8rem 0.8rem; min-height: 0; } .svc-card strong { font-size: 0.95rem; } }
@media (min-width: 880px) { body.dark .svc-card { padding: 1.2rem 1.25rem 1.3rem; } .svc-glyph { width: 36px; height: 36px; } .svc-card strong { font-size: 1.15rem; } .svc-card .sc-go { font-size: 0.85rem; } }
/* the marks draw as the tile comes in: with the site's fade-in on a desktop, on arrival on a phone */
.svc-card.rv:not(.in) .svc-glyph *, html.js-arrive section:not(.arrived) .svc-glyph * { stroke-dashoffset: 130; }

/* ---------- 02 How a build goes, dragged through (phones and narrow screens) ---------- */
body.dark .how { background: rgba(132, 213, 245, 0.035); }
body.dark .how-live .how-desk::before { color: rgba(132, 213, 245, 0.075); }
body.dark .how-live[data-phase="4"] .how-desk::before { color: rgba(88, 208, 147, 0.1); }
body.dark .how .paper, body.dark .how .shipped { box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5); }
.how-scrub.how-live { padding: 2.25rem 0 2.5rem; }
.how-scrub .how-track { height: auto; }
.how-scrub .how-pin { position: static; height: auto; min-height: 0; display: block; overflow: visible; }
.how-scrub .how-grid { grid-template-columns: minmax(0, 1fr); gap: 0.7rem; }
.how-scrub .how-copy h2 { font-size: clamp(1.35rem, 5.6vw, 1.9rem); max-width: none; margin-bottom: 0.7rem; }
.how-scrub .how-steps { gap: 0.45rem; margin-bottom: 0.2rem; }
.how-scrub .how-steps li { font-size: 0.9rem; padding-left: 2.1rem; }
.how-scrub .how-steps b { font-size: 1rem; display: inline; }
.how-scrub .how-steps li::before { width: 1.5rem; height: 1.5rem; font-size: 0.75rem; }
.how-scrub .how-buy { display: none; }
.how-scrub .how-desk.swipe { display: block; position: relative; overflow: hidden; height: clamp(200px, 34svh, 400px); padding: 0; margin: 0; scroll-snap-type: none; border-radius: 14px; background: radial-gradient(80% 90% at 50% 40%, rgba(132, 213, 245, 0.07), rgba(132, 213, 245, 0.02)); box-shadow: inset 0 0 0 1px rgba(132, 213, 245, 0.13); }
.how-scrub .how-desk + .swipe-dots { display: none; }
.how-scrub .how-desk::before { right: 4%; font-size: clamp(6rem, 34vw, 11rem); }
.how-scrub[data-phase="4"] .how-desk::before { font-size: clamp(4rem, 22vw, 8rem); }
.how-scrub .how-desk > * { width: min(330px, 78%); flex: none; }
.how-scrub .paper { font-size: clamp(0.78rem, 1.7svh, 0.96rem); padding: 0.85rem 1rem; }
.how-scrub .paper .ph { font-size: 1.1em; margin-bottom: 0.3rem; }
.how-scrub .paper .row { padding: 0.22rem 0; }
.how-scrub .paper .note { font-size: 0.68rem; }
.how-scrub .p-charter { padding-bottom: 2.4rem !important; }
.how-scrub .shipped { width: min(310px, 74%); }
.how-scrub .sh-body { font-size: 0.8rem; padding: 0.8rem; gap: 0.45rem; }
.how-scrub .sh-row i { height: 20px; }
.how-scrub[data-phase="2"] .p-call, .how-scrub[data-phase="3"] .p-call, .how-scrub[data-phase="4"] .p-call { transform: translate(-103%, -92%) rotate(-7deg) scale(0.5); }
.how-scrub[data-phase="3"] .p-charter, .how-scrub[data-phase="4"] .p-charter { transform: translate(3%, -97%) rotate(6deg) scale(0.5); }
.how-scrub[data-phase="4"] .p-update { transform: translate(-104%, -12%) rotate(-5deg) scale(0.5); }
@media (max-width: 879px) and (max-height: 659px) { .how-scrub.how-live { padding: 1.3rem 0 1.4rem; } .how-scrub .how-steps li { font-size: 0.84rem; } .how-scrub .how-copy h2 { margin-bottom: 0.5rem; } .how-scrub .how-grid { gap: 0.5rem; } .how-scrub .how-desk.swipe { height: clamp(190px, 32.5svh, 400px); } }
.how-slider { display: grid; gap: 0.15rem; }
.how-slider input { -webkit-appearance: none; appearance: none; width: 100%; height: 40px; margin: 0; padding: 0; background: transparent; border: 0; touch-action: pan-y; cursor: grab; }
.how-slider input:focus { outline: none; box-shadow: none; }
.how-slider input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--sky-400) var(--p, 0%), rgba(132, 213, 245, 0.2) var(--p, 0%)); }
.how-slider input::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(132, 213, 245, 0.2); }
.how-slider input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--sky-400); }
.how-slider input::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 28px; height: 28px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--sky-400); box-shadow: 0 0 0 6px rgba(41, 185, 239, 0.18), 0 6px 14px rgba(0, 0, 0, 0.45); }
.how-slider input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--sky-400); box-shadow: 0 0 0 6px rgba(41, 185, 239, 0.18); }
.how-slider input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(41, 185, 239, 0.45), 0 6px 14px rgba(0, 0, 0, 0.45); }
.how-ticks { position: relative; height: 1.1rem; font: 600 0.62rem/1 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.how-ticks span { position: absolute; top: 0; transition: color 0.25s ease; }
.how-ticks span:nth-child(1) { left: 0; }
.how-ticks span:nth-child(2) { left: 26%; }
.how-ticks span:nth-child(3) { left: 54%; }
.how-ticks span:nth-child(4) { right: 0; }
.how[data-phase="1"] .how-ticks span:nth-child(1), .how[data-phase="2"] .how-ticks span:nth-child(2), .how[data-phase="3"] .how-ticks span:nth-child(3) { color: #fff; }
.how[data-phase="4"] .how-ticks span:nth-child(4) { color: var(--ok-ink); }

/* ---------- 03 and 04: the cards sit on the dark ground ---------- */
body.dark .built { background: none; }
body.dark .fam-card, body.dark .mini-prod, body.dark .cust .prod { box-shadow: 0 0 0 1px rgba(132, 213, 245, 0.1), 0 22px 50px rgba(0, 0, 0, 0.45); }

/* ---------- 05 Try it: the eleven sample apps drift past ---------- */
body.dark .try-teaser { background: none; }
.wall { margin: 1.1rem calc(var(--gutter) * -1) 1.25rem; display: grid; gap: 0.6rem; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.wall-row { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.wall-row::-webkit-scrollbar { display: none; }
.wall-run { display: flex; gap: 0.6rem; width: max-content; padding: 0 var(--gutter); }
.wall.run .wall-run { animation: wall-drift 52s linear infinite; will-change: transform; }
.wall.run .r2 .wall-run { animation-duration: 60s; animation-direction: reverse; }
.wall:hover .wall-run, .wall:focus-within .wall-run { animation-play-state: paused; }
@keyframes wall-drift { to { transform: translate3d(calc(-50% - 0.3rem + var(--gutter)), 0, 0); } }
.band-dark a.wall-app, .wall-app { flex: none; width: 122px; display: grid; border-radius: 12px; overflow: hidden; background: #0e141b; border: 1px solid rgba(132, 213, 245, 0.2); color: var(--muted-on-dark); text-decoration: none; box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4); }
.wall-app img { display: block; width: 100%; height: auto; aspect-ratio: 300 / 372; object-fit: cover; object-position: top; }
.wall-app span { display: grid; gap: 0.05rem; padding: 0.38rem 0.55rem 0.48rem; font-size: 0.68rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wall-app span b { color: #fff; font-size: 0.74rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.band-dark a.wall-app:hover { border-color: var(--sky-400); color: #fff; }
@media (max-width: 879px) and (max-height: 739px) { .wall .r2 { display: none; } .wall { margin-top: 0.8rem; margin-bottom: 1rem; } }
@media (min-width: 880px) { .wall-app, .band-dark a.wall-app { width: 164px; } .wall { gap: 0.8rem; margin-top: 1.6rem; margin-bottom: 1.8rem; } .wall-run { gap: 0.8rem; } @keyframes wall-drift { to { transform: translate3d(calc(-50% - 0.4rem + var(--gutter)), 0, 0); } } }

/* ---------- The veteran band and the closing sheet ---------- */
body.dark .vet { background: rgba(132, 213, 245, 0.04); border-top: 1px solid rgba(132, 213, 245, 0.12); }
body.dark .start-band { background: #f7f8fa; }

/* ---------- On a phone each section arrives once, as it lands ---------- */
html.js-arrive:not([data-calm]) body.home main > section :is(.sec-label, .built-head, .how-copy h2, .how-steps li, .how-desk, .how-slider, .svc-card, .fam-card, .mini-prod, .cust .prod, .cust-actions, .try-teaser h2, .try-teaser p, .wall, .try-teaser .btn, .vet p, .vet-acts, .start-band-copy, .start-band .actions, .prod-group-head) {
  transition: opacity 0.5s ease, translate 0.65s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: calc(var(--ai, 0) * 70ms);
}
html.js-arrive:not([data-calm]) body.home main > section:not(.arrived) :is(.sec-label, .built-head, .how-copy h2, .how-steps li, .how-desk, .how-slider, .svc-card, .fam-card, .mini-prod, .cust .prod, .cust-actions, .try-teaser h2, .try-teaser p, .wall, .try-teaser .btn, .vet p, .vet-acts, .start-band-copy, .start-band .actions, .prod-group-head) {
  opacity: 0; translate: 0 18px;
}
html.js-arrive .built-head, html.js-arrive .how-copy h2, html.js-arrive .try-teaser h2 { --ai: 1; }
html.js-arrive .svc-card:nth-child(1), html.js-arrive .how-steps li:nth-child(1), html.js-arrive .try-teaser p, html.js-arrive .fam-card:nth-child(1), html.js-arrive .cust .prod:nth-child(1) { --ai: 2; }
html.js-arrive .svc-card:nth-child(2), html.js-arrive .how-steps li:nth-child(2), html.js-arrive .wall { --ai: 3; }
html.js-arrive .svc-card:nth-child(3), html.js-arrive .how-steps li:nth-child(3) { --ai: 4; }
html.js-arrive .svc-card:nth-child(4), html.js-arrive .how-desk { --ai: 5; }
html.js-arrive .svc-card:nth-child(5), html.js-arrive .how-slider, html.js-arrive .try-teaser .btn { --ai: 6; }
html.js-arrive .svc-card:nth-child(6) { --ai: 7; }
html.js-arrive .cust-actions, html.js-arrive .vet-acts, html.js-arrive .start-band .actions { --ai: 8; }
html.js-arrive .svc-card .svc-glyph * { transition-delay: calc(var(--ai, 0) * 70ms + 200ms); }

/* The narrowest phones (320 wide): the family cards hold their rows and buttons inside the card */
@media (max-width: 345px) {
  #products .fam-card { padding-inline: 0.75rem; }
  #products .fam-apps li { padding-inline: 0.5rem; gap: 0.35rem; min-width: 0; }
  #products .fam-apps a { min-width: 0; }
  #products .fam-apps strong { font-size: 0.86rem; }
  #products .fam-apps .badge { flex: none; font-size: 0.56rem; letter-spacing: 0.02em; padding-inline: 0.45em; white-space: nowrap; }
  #products .fam-card .actions { gap: 0.3rem; }
  #products .fam-card .actions .btn { font-size: 0.74rem; padding-inline: 0.2rem; }
}
