/* 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;
}

/* ---------- Header merges with the dark top ---------- */
body.home .site-header { background: var(--steel-950); border-bottom-color: var(--table-rule); }
body.home .site-header .brand { color: var(--text-on-dark); }
body.home .site-header .brand-name { color: #fff; }
/* On the dark home header the shield takes its brighter set (defined in the header's inline SVG) */
body.home .site-header .mark .m1 { fill: url(#hd-m1); }
body.home .site-header .mark .m2 { fill: url(#hd-m2); }
body.home .site-header .mark .m3 { fill: url(#hd-m3); }
body.home .site-nav a { color: var(--text-on-dark); }
body.home .site-nav a[aria-current="page"] { color: #fff; }
body.home .site-nav.is-open { background: var(--steel-950); border-bottom-color: var(--table-rule); }
body.home .site-nav a:not(.btn) { border-bottom-color: var(--table-rule); }
body.home .nav-toggle { color: var(--text-on-dark); border-color: rgba(243, 244, 238, 0.35); }
body.home .site-nav li.nav-cta .btn-primary { background: var(--sky-400); border-color: var(--sky-400); color: var(--ink); }
body.home .site-nav li.nav-cta .btn-primary:hover { background: var(--sky-300); border-color: var(--sky-300); color: var(--ink); }

/* ---------- 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(--ink); }
.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(--ink); }
.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(--ink); }
.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(--ink); }
.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: var(--muted); }
.fontbtn[aria-expanded="true"] b { color: var(--ink); }
.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: var(--ink); 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(--blue-700); color: #fff; 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, #products, .also, .cust, .how, .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, #products, .also, .cust, .how, .try-teaser) > .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; }

  /* How a build goes */
  .how-head { margin-bottom: 0.9rem; }
}
/* 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; }
  .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; }
}
