/* Kickapps / KickCare marketing site
   Plain CSS, no build step. Tokens first, then layout, components, mockups. */

:root {
  --ink: #0b1530;
  --ink-2: #2c3a55;
  --muted: #5a6780;
  --line: #e3e8f0;
  --line-2: #cfd7e4;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-tint: #eef3fb;

  --blue: #0a5cff;
  --blue-ink: #0846c4;
  --blue-soft: #eaf1ff;

  --night: #0b1530;
  --night-line: rgba(255, 255, 255, 0.12);
  --night-text: #c5cfe2;
  --night-accent: #8fd0ff;

  /* KickCare product tokens (match the real app) */
  --p-alert: #b3261e;
  --p-alert-soft: #fdecea;
  --p-ok: #0b6b47;
  --p-ok-soft: #e6f3ed;
  --p-primary: #0b4f8a;
  --p-primary-soft: #e7eef5;
  --p-muted: #46525d;
  --p-bg: #f3f5f7;
  --p-amber: #8a5a00;
  --p-amber-soft: #fff4dc;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 48, 0.05);
  --shadow: 0 1px 3px rgba(11, 21, 48, 0.06), 0 12px 32px -14px rgba(11, 21, 48, 0.18);
  --shadow-lg: 0 24px 60px -24px rgba(11, 21, 48, 0.35);

  --font: "Plus Jakarta Sans", "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", system-ui, sans-serif;
  --font-cjk: "PingFang HK", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", "Noto Sans CJK TC", sans-serif;

  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 8vw, 104px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang^="zh"] body { line-height: 1.8; letter-spacing: 0.01em; }

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; text-wrap: balance; }
h1 { font-weight: 800; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--bg-tint); }

.eyebrow { display: inline-block; font-size: 14px; font-weight: 700; color: var(--blue-ink); }
.on-night .eyebrow { color: var(--night-accent); }
.new-tag {
  display: inline-block; margin-right: 8px; padding: 2px 9px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px;
}

.h-xl { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.h-lg { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.h-md { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.lead { font-size: clamp(1.06rem, 1.4vw, 1.2rem); color: var(--ink-2); line-height: 1.6; }
html[lang^="zh"] .lead { line-height: 1.85; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 52px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head h2 + .lead, .section-head h2 + p { margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--blue-soft); color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .4); }
.btn-outline-light:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 36px; height: auto; }
.brand-word { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.brand-word span { background: linear-gradient(120deg, #18c6ff, #0a5cff); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.nav a:hover { color: var(--ink); background: var(--bg-soft); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px;
  font-size: 13px; font-weight: 700;
}
.lang a, .lang span { padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--muted); line-height: 1; }
.lang span[aria-current] { background: var(--ink); color: #fff; }
.lang a:hover { color: var(--ink); }

.menu-btn {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--ink);
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .site-header.open { background: #fff; }
  .site-header.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; left: 0; right: 0; top: 68px;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: 0 24px 40px -28px rgba(11, 21, 48, .4);
  }
  .site-header.open .nav a { padding: 14px 12px; font-size: 17px; }
  .site-header.open .nav a[aria-current="page"] { box-shadow: none; background: var(--bg-soft); border-radius: 10px; }
  .site-header.open .nav .nav-cta { display: flex; margin-top: 10px; }
}
.nav .nav-cta { display: none; }

/* ---------- Home hero: headline, then the film ---------- */
.hero { background: var(--night); color: var(--night-text); padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 72px); overflow: hidden; }
.hero h1 { color: #fff; margin-top: 14px; max-width: 15em; }
.hero .lead { color: var(--night-text); max-width: 540px; }
.hero-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px clamp(32px, 5vw, 64px); align-items: end; }
.hero-top .btn-row { margin-top: 24px; }
@media (max-width: 960px) { .hero-top { grid-template-columns: 1fr; } }

.hero-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px;
  margin-top: clamp(28px, 4vw, 40px); padding-top: 22px; border-top: 1px solid var(--night-line);
}
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; list-style: none; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: #fff; }
.hero-points svg { width: 20px; height: 20px; color: #4fd69c; flex: none; }
.hero .status-line { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; color: var(--night-text); }

/* The film: 32 s, silent. site.js plays it muted while it is on screen,
   except with reduced motion or Save-Data, and drives the chapter bars. */
.film { margin: clamp(32px, 5vw, 56px) 0 0; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: #0a1226; border: 1px solid var(--night-line); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .65);
}
.film-video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-btn {
  position: absolute; z-index: 2; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-width: 44px; min-height: 44px; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .28); background: rgba(11, 21, 48, .78); color: #fff;
  font: 700 16px/1 var(--font); transition: background-color .15s ease, opacity .15s ease;
}
.film-btn:hover { background: rgba(11, 21, 48, .95); }
.film-btn:focus-visible { outline-color: var(--night-accent); }
.film-btn svg { width: 20px; height: 20px; flex: none; }
.film-btn[hidden] { display: none; }
.film-play { left: 50%; top: 50%; transform: translate(-50%, -50%); min-height: 56px; padding: 0 24px 0 20px; }
.film-play .i-pause { display: none; }
.film.is-playing .film-play { left: 14px; top: auto; bottom: 14px; transform: none; min-height: 44px; padding: 0; width: 44px; }
.film.is-playing .film-play .i-play, .film.is-playing .film-play-label { display: none; }
.film.is-playing .film-play .i-pause { display: block; }
.film.is-auto:not(.is-playing) .film-play { opacity: 0; pointer-events: none; }
.film-full { right: 14px; bottom: 14px; width: 44px; }
.film.is-playing .film-btn { opacity: .82; }
.film.is-playing .film-btn:hover, .film.is-playing .film-btn:focus-visible { opacity: 1; }
.no-js .film-btn { display: none; }

.film-chapters { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px clamp(12px, 2vw, 24px); }
.film-chapters button {
  display: block; width: 100%; padding: 10px 0 6px; margin: 0; border: 0; background: none; cursor: pointer;
  text-align: left; color: var(--night-text); font: inherit; transition: opacity .2s ease;
}
.film-chapters button:focus-visible { outline-color: var(--night-accent); outline-offset: 4px; }
.film-chapters .bar { display: block; height: 3px; border-radius: 3px; background: var(--night-line); overflow: hidden; }
.film-chapters .bar i { display: block; height: 100%; background: var(--night-accent); transform: scaleX(0); transform-origin: left; }
.film-chapters .time { display: block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--night-accent); font-variant-numeric: tabular-nums; }
.film-chapters b { display: block; margin-top: 2px; font-size: 16px; color: #fff; line-height: 1.35; }
.film-chapters .says { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; }
.film.is-playing .film-chapters li:not(.on) button { opacity: .6; }
.film.is-playing .film-chapters li button:hover { opacity: 1; }
.no-js .film-chapters .bar { display: none; }
.film-cap { margin-top: 12px; font-size: 13px; color: #93a0b9; }
@media (max-width: 760px) {
  .film-frame { border-radius: 14px; }
  .film-chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .film-play { min-height: 48px; padding: 0 18px 0 16px; font-size: 15px; }
  .film.is-playing .film-play { left: 10px; bottom: 10px; }
  .film-full { right: 10px; bottom: 10px; }
}

.page-hero { padding: clamp(44px, 7vw, 88px) 0 clamp(44px, 6vw, 72px); }
.page-hero h1 { margin: 14px 0 20px; max-width: 820px; }
.page-hero .lead { max-width: 680px; }
.page-hero .btn-row { margin-top: 28px; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2vw, 22px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.4vw, 28px);
}
.card h3 { font-size: 1.15rem; margin: 16px 0 8px; }
.card p { color: var(--ink-2); font-size: 16px; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue-ink);
}
.icon svg { width: 22px; height: 22px; }
.icon.warm { background: #fff1ec; color: #c2410c; }
.icon.ok { background: var(--p-ok-soft); color: var(--p-ok); }

/* Not / Yes comparison strip */
.contrast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.contrast > div { padding: 22px 24px; }
.contrast > div + div { border-left: 1px solid var(--line); }
.contrast h3 { font-size: 1.05rem; }
.contrast p { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .contrast { grid-template-columns: 1fr; } .contrast > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.contrast-after { margin-top: 22px; max-width: 720px; color: var(--ink-2); }

/* ---------- How it works ---------- */
.how { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.how-steps li {
  display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start;
  padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
}
.how-steps .num {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-weight: 800; font-size: 16px; color: #fff; background: var(--ink);
}
.how-steps h3 { font-size: 1.1rem; margin: 6px 0 4px; }
.how-steps p { color: var(--ink-2); font-size: 16px; }
.how h2 + .how-steps { margin-top: 28px; }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; } }

.illus { border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); padding: 12px; }
.illus svg { width: 100%; height: auto; }

/* ---------- Room status feature ---------- */
.rooms-feature { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.rooms-feature .lead { margin-top: 16px; }
.rooms-feature .ticks { margin-top: 22px; }
.rooms-feature .fineprint { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .rooms-feature { grid-template-columns: 1fr; } }

.legend3 { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.legend3 li { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: baseline; font-size: 16px; color: var(--ink-2); }
.legend3 .ui { justify-self: start; }

/* Inline app label, e.g. 我去處理 */
.ui {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 7px; margin: 0 1px;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink); font-size: .88em; font-weight: 700;
  font-family: var(--font-cjk); white-space: nowrap; letter-spacing: 0;
}
.ui.occ { background: var(--p-primary-soft); border-color: #cddbea; color: var(--p-primary); }
.ui.unk { border-style: dashed; color: var(--p-muted); background: #fff; }
.on-night .ui { background: rgba(255, 255, 255, .08); border-color: var(--night-line); color: #fff; }

/* ---------- Night story ---------- */
.night { background: var(--night); color: var(--night-text); }
.night h2, .night h3 { color: #fff; }
.night .lead { color: var(--night-text); }
.night-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.night-clock { font-variant-numeric: tabular-nums; font-weight: 800; font-size: clamp(3rem, 7vw, 5.2rem); letter-spacing: -0.04em; color: #fff; line-height: 1; margin: 14px 0 18px; }
.night-clock small { font-size: .3em; font-weight: 700; letter-spacing: 0; color: var(--night-accent); margin-left: 8px; vertical-align: super; }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--night-line); }
.timeline li { position: relative; padding: 0 0 28px 48px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--night); border: 2px solid var(--night-accent); display: grid; place-items: center;
}
.timeline .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--night-accent); }
.timeline li.alert .dot { border-color: #ff7b6e; } .timeline li.alert .dot::after { background: #ff7b6e; }
.timeline li.esc .dot { border-color: #ffb057; } .timeline li.esc .dot::after { background: #ffb057; }
.timeline li.ok .dot { border-color: #4fd69c; } .timeline li.ok .dot::after { background: #4fd69c; }
.timeline .when { font-size: 14px; font-weight: 700; color: var(--night-accent); }
.timeline h3 { font-size: 1.12rem; margin: 2px 0 6px; }
.timeline p { color: var(--night-text); font-size: 16px; }
@media (max-width: 960px) { .night-grid { grid-template-columns: 1fr; } }

/* ---------- Roles ---------- */
.role-card { display: flex; flex-direction: column; }
.role-card h3 { margin-top: 16px; }
.ticks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 28px; color: var(--ink-2); font-size: 16px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--p-ok-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%230b6b47' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.on-night .ticks li { color: var(--night-text); }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.privacy-list { display: grid; gap: 12px; }
.privacy-item { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius-sm); background: #fff; border: 1px solid var(--line); }
.privacy-item .icon { width: 40px; height: 40px; border-radius: 10px; }
.privacy-item .icon svg { width: 20px; height: 20px; }
.privacy-item h3 { font-size: 1.02rem; margin: 1px 0 3px; }
.privacy-item p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- Rollout ---------- */
.rollout { counter-reset: r; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 0; }
.rollout li { counter-increment: r; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px 20px; }
.rollout li::before {
  content: counter(r); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: var(--blue-soft); color: var(--blue-ink); font-weight: 800; font-size: 14px; margin-bottom: 12px;
}
.rollout h3 { font-size: 1.05rem; margin-bottom: 6px; }
.rollout p { font-size: 15px; color: var(--ink-2); }
@media (max-width: 960px) { .rollout { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .rollout { grid-template-columns: 1fr; } }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(1.6rem, 2.8vw, 2.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- Pilot / CTA ---------- */
.cta-band { border-radius: 24px; color: #fff; padding: clamp(32px, 5vw, 60px); background: var(--night); }
.cta-band h2 { color: #fff; max-width: 720px; }
.cta-band .lead { color: var(--night-text); max-width: 600px; margin-top: 14px; }
.cta-band .btn-row { margin-top: 28px; }
.cta-band .eyebrow { color: var(--night-accent); }
.cta-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center; }
.pilot-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pilot-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--night-line); }
.pilot-steps b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: #fff; color: var(--ink); font-weight: 800; }
.pilot-steps strong { display: block; color: #fff; }
.pilot-steps span { display: block; font-size: 15px; color: var(--night-text); }
@media (max-width: 960px) { .cta-grid { grid-template-columns: 1fr; } }

.mail-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; color: var(--night-text); font-size: 15px; }
.mail-line a { color: #fff; font-weight: 700; }
.copy-btn {
  border: 1px solid rgba(255, 255, 255, .4); background: transparent; color: #fff; border-radius: 999px;
  padding: 4px 12px; font: 600 13px/1.4 var(--font); cursor: pointer;
}
.copy-btn:hover { border-color: #fff; }

/* ---------- Company teaser ---------- */
.maker { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(22px, 3.5vw, 36px); border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.maker img { width: 72px; height: auto; }
.maker h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.maker p { color: var(--ink-2); margin-top: 6px; max-width: 640px; }
@media (max-width: 760px) { .maker { grid-template-columns: 1fr; } }

/* ---------- Feature rows (product page) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(64px, 9vw, 112px); }
.feature.flip .feature-copy { order: 2; }
.feature-copy h2 { margin: 12px 0 14px; }
.feature-copy .ticks { margin-top: 20px; }
.feature-visual { position: relative; }
@media (max-width: 960px) { .feature { grid-template-columns: 1fr; } .feature.flip .feature-copy { order: 0; } }

/* ---------- Reliability notes ---------- */
.notes h3 { font-size: 1.1rem; }
.notes p { margin-top: 6px; font-size: 16px; }

/* ---------- Spec table ---------- */
.spec { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 16px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 15px 20px; border-bottom: 1px solid var(--line); }
.spec tr:last-child th, .spec tr:last-child td { border-bottom: 0; }
.spec th { width: 28%; font-weight: 700; color: var(--ink); background: var(--bg-soft); }
.spec td { color: var(--ink-2); }
@media (max-width: 640px) {
  .spec, .spec tbody, .spec tr, .spec th, .spec td { display: block; width: 100%; }
  .spec th { border-bottom: 0; padding-bottom: 2px; background: transparent; }
  .spec td { padding-top: 0; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 840px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 20px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; font-weight: 700; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%230b1530' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.faq details p + p { margin-top: -6px; }

/* ---------- Company page ---------- */
.principle { border-top: 2px solid var(--ink); padding-top: 18px; }
.principle h3 { font-size: 1.15rem; margin-bottom: 6px; }
.principle p { color: var(--ink-2); font-size: 16px; }
.prose { max-width: 720px; }
.prose p + p { margin-top: 16px; }
.on-night .prose p { color: var(--night-text); }
/* Privacy policy */
.policy h2 { margin: 40px 0 12px; }
.policy h2:first-child { margin-top: 0; }
.policy h3 { font-size: 1.05rem; margin: 20px 0 8px; }
.policy ul { padding-left: 1.2em; list-style: disc; }
.policy li { margin-top: 8px; color: var(--ink-2); }
.policy p { color: var(--ink-2); }
.product-card {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: center;
  border-radius: 24px; padding: clamp(26px, 4vw, 44px); background: var(--bg-soft); border: 1px solid var(--line);
}
@media (max-width: 960px) { .product-card { grid-template-columns: 1fr; } }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink-2); }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: #18a865; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-text); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.footer-brand .tile { width: 42px; height: 42px; border-radius: 11px; background: #fff; display: grid; place-items: center; }
.footer-brand .tile img { width: 30px; }
.footer-brand b { font-size: 20px; letter-spacing: -0.03em; }
.site-footer p { margin-top: 14px; font-size: 15px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 14px; color: #93a0b9; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* =====================================================================
   PRODUCT MOCKUPS (built from the real app's tokens and labels)
   ===================================================================== */
.mock-note { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.on-night .mock-note { color: #93a0b9; }

.stage { position: relative; container-type: inline-size; padding-bottom: 12%; }

.mock { font-family: var(--font-cjk); color: #14202b; letter-spacing: 0; line-height: 1.4; }
.mock * { line-height: inherit; }

/* Station (desktop) */
.station {
  width: 100%; font-size: clamp(7.5px, 2cqw, 12.5px);
  background: var(--p-bg); border-radius: 1.3em; overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(11, 21, 48, .1);
}
.station .chrome { display: flex; align-items: center; gap: .5em; padding: .8em 1.1em; background: #e9edf2; }
.station .chrome i { width: .8em; height: .8em; border-radius: 50%; background: #c9d1db; }
.station .chrome span { margin-left: 1em; flex: 1; height: 1.6em; border-radius: .6em; background: #fff; color: #7a8796; font: 500 .85em/1.9em var(--font); padding: 0 .9em; }
.station .bar { display: flex; align-items: center; gap: 1.6em; padding: .9em 1.4em; background: #fff; border-bottom: 1px solid #e1e5ea; }
.station .bar b { font-size: 1.15em; color: var(--p-primary); }
.station .tabs { display: flex; gap: 1.3em; font-size: .95em; color: var(--p-muted); }
.station .tabs span:first-child { font-weight: 700; color: var(--p-primary); box-shadow: inset 0 -2px 0 var(--p-primary); }
.station .body { padding: 1.1em 1.4em 1.4em; display: grid; grid-template-columns: 1.6fr 1fr; gap: 1em; }
.station .banner {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1em; padding: .9em 1.1em; border-radius: .9em;
  background: var(--p-alert); color: #fff; transition: background-color .4s ease;
}
.station .banner .t { flex: 1; }
.station .banner .t b { display: block; font-size: 1.3em; }
.station .banner .t small { font-size: .9em; opacity: .9; }
.station .banner .act { background: #fff; color: var(--p-alert); font-weight: 700; padding: .55em 1.1em; border-radius: .6em; white-space: nowrap; }
.station .counts { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: .7em; }
.station .count { background: #fff; border-radius: .8em; padding: .7em .9em; }
.station .count small { display: block; color: var(--p-muted); font-size: .85em; }
.station .count b { font-size: 1.6em; font-family: var(--font); }
.station .count.red b { color: var(--p-alert); }
.station .rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6em; align-content: start; }
.room { background: #fff; border-radius: .8em; padding: .65em .8em; border: 1.5px solid transparent; transition: border-color .4s ease, background-color .4s ease; }
.room b { display: block; font-size: 1em; }
.room > span { display: block; font-size: .85em; color: var(--p-ok); font-weight: 700; margin-top: .15em; }
.station .events { background: #fff; border-radius: .8em; padding: .8em .9em; }
.station .events h5 { margin: 0 0 .6em; font-size: 1em; font-weight: 700; }
.station .events ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55em; }
.station .events li { display: grid; grid-template-columns: auto 1fr; gap: .2em .6em; font-size: .85em; padding-bottom: .55em; border-bottom: 1px solid #edf0f3; }
.station .events li:last-child { border-bottom: 0; padding-bottom: 0; }
.station .events time { color: var(--p-muted); font-family: var(--font); font-variant-numeric: tabular-nums; }
.station .events .r { color: var(--p-alert); font-weight: 700; }
.station .events .g { color: var(--p-ok); font-weight: 700; }

/* Presence line: 有人・2 人 / 無人 / 未知, with the app's person icons */
.pres { display: flex; align-items: center; gap: .35em; font-style: normal; font-weight: 700; color: var(--p-muted); }
.pres::before {
  content: ""; flex: none; width: 1.15em; height: 1.15em; background: currentColor;
  -webkit-mask: var(--pi) center / contain no-repeat; mask: var(--pi) center / contain no-repeat;
}
.pres, .pres.vac { --pi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6a2 2 0 1 1 0 4 2 2 0 0 1 0-4m0 9c2.7 0 5.8 1.29 6 2v1H6v-.99c.2-.72 3.3-2.01 6-2.01m0-11C9.79 4 8 5.79 8 8s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4m0 9c-2.67 0-8 1.34-8 4v3h16v-3c0-2.66-5.33-4-8-4'/%3E%3C/svg%3E"); }
.pres.occ { color: var(--p-primary); --pi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4'/%3E%3C/svg%3E"); }
.pres.unk { --pi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 18h2v-2h-2zm1-16C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8m0-14c-2.21 0-4 1.79-4 4h2c0-1.1.9-2 2-2s2 .9 2 2c0 2-3 1.75-3 5h2c0-2.25 3-2.5 3-5 0-2.21-1.79-4-4-4'/%3E%3C/svg%3E"); }
.room .pres { font-size: .85em; margin-top: .1em; }

/* Room status board (房間狀況) */
.roomboard { font-size: clamp(11px, 1.35vw, 14px); }
.roomboard h5.title { font-size: 1.3em; margin: 0 0 .7em; }
.segs { display: flex; flex-wrap: wrap; gap: .4em; padding: .3em; border-radius: .9em; background: #e6eaef; width: fit-content; max-width: 100%; }
.segs span { padding: .35em .9em; border-radius: .65em; font-weight: 700; color: var(--p-muted); white-space: nowrap; }
.segs span.on { background: #fff; color: var(--p-primary); box-shadow: 0 1px 2px rgba(11, 21, 48, .12); }
.roomboard .floor { font-weight: 700; font-size: 1.1em; margin: 1em 0 .5em; }
.rgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6em; }
.rtile { background: #fff; border-radius: .9em; padding: .75em .9em; border: 1.5px solid #e1e5ea; }
.rtile b { display: block; font-size: 1.15em; }
.rtile .pres { margin-top: .15em; }
.rtile small { display: block; color: var(--p-muted); font-size: .88em; margin-top: .15em; }
.rtile.occ { background: var(--p-primary-soft); border-color: transparent; }
.rtile.unk { border-style: dashed; border-color: #b8c2cf; background: transparent; }
@media (max-width: 480px) { .rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Phone */
.phone {
  position: absolute; right: -2%; bottom: 0; width: 36%; font-size: clamp(6.5px, 1.9cqw, 11.5px);
  aspect-ratio: 9 / 18.6; border-radius: 3.2em; background: #0d1222; padding: .7em;
  box-shadow: 0 32px 60px -24px rgba(11, 21, 48, .55);
}
.phone .screen { position: relative; height: 100%; border-radius: 2.6em; overflow: hidden; background: #fff; }
.phone .notch { position: absolute; top: .7em; left: 50%; transform: translateX(-50%); width: 30%; height: 1.6em; border-radius: 1em; background: #0d1222; z-index: 3; }
.phone .view { position: absolute; inset: 0; display: flex; flex-direction: column; transition: opacity .45s ease, transform .45s ease; }
.phone .idle { background: var(--p-bg); padding: 3.4em 1.2em 1.2em; }
.phone .idle .top { font-weight: 700; font-size: 1.25em; }
.phone .idle .ok { margin-top: 1em; background: #fff; border-radius: 1em; padding: 1em; }
.phone .idle .ok b { color: var(--p-ok); font-size: 1.15em; display: block; }
.phone .idle .ok small { color: var(--p-muted); }
.phone .idle .mini { margin-top: .7em; display: grid; gap: .5em; }
.phone .idle .mini div { background: #fff; border-radius: .8em; padding: .65em .9em; font-size: .95em; }
.phone .idle .mini b { display: block; }
.phone .idle .mini span { display: flex; justify-content: space-between; gap: .5em; font-size: .9em; margin-top: .1em; }
.phone .idle .mini span > i { font-style: normal; color: var(--p-ok); font-weight: 700; }
.phone .tabbar { margin-top: auto; display: flex; justify-content: space-around; font-size: .8em; color: var(--p-muted); padding-top: .8em; border-top: 1px solid #e1e5ea; }
.phone .tabbar span:first-child { color: var(--p-primary); font-weight: 700; }

.phone .alertv { background: var(--p-alert); color: #fff; padding: 3.6em 1.3em 1.3em; text-align: left; }
.phone .alertv .kind { font-weight: 700; font-size: 1.1em; letter-spacing: .02em; }
.phone .alertv .room { all: unset; display: block; font-weight: 900; font-size: 3.1em; line-height: 1.05; margin-top: .45em; font-family: var(--font-cjk); }
.phone .alertv .bed { font-weight: 700; font-size: 1.8em; margin-top: .1em; }
.phone .alertv .elapsed { margin-top: .8em; font-size: 1em; opacity: .92; font-family: var(--font); font-variant-numeric: tabular-nums; }
.phone .alertv .go { margin-top: auto; background: #fff; color: var(--p-alert); border-radius: 1.1em; text-align: center; font-weight: 900; font-size: 1.45em; padding: .85em 0; }
.phone .alertv .more { margin-top: .6em; text-align: center; border: 1px solid rgba(255, 255, 255, .6); border-radius: 1em; padding: .7em 0; font-size: 1em; }

.phone .takenv { background: #fff; padding: 3.6em 1.3em 1.3em; }
.phone .takenv .kind { font-weight: 700; color: var(--p-primary); }
.phone .takenv .room2 { font-weight: 900; font-size: 2.6em; line-height: 1.1; margin-top: .4em; }
.phone .takenv .by { margin-top: .8em; background: var(--p-bg); border-radius: .9em; padding: .8em .9em; font-size: 1em; }
.phone .takenv .by b { color: var(--p-primary); }
.phone .takenv .steps { margin-top: .9em; display: grid; gap: .45em; font-size: .92em; color: var(--p-muted); }
.phone .takenv .steps div::before { content: "● "; color: var(--p-primary); }
.phone .takenv .done { margin-top: auto; background: var(--p-primary); color: #fff; border-radius: 1em; text-align: center; font-weight: 700; font-size: 1.2em; padding: .8em 0; }

/* Alert demo state machine: data-state = idle | alert | taken | done */
.alert-demo .phone .view { opacity: 0; transform: translateY(6%); pointer-events: none; }
.alert-demo[data-state="idle"] .phone .idle,
.alert-demo[data-state="done"] .phone .idle { opacity: 1; transform: none; }
.alert-demo[data-state="alert"] .phone .alertv { opacity: 1; transform: none; }
.alert-demo[data-state="taken"] .phone .takenv { opacity: 1; transform: none; }

.alert-demo .s-idle, .alert-demo .s-open, .alert-demo .s-taken { display: none; }
.alert-demo[data-state="idle"] .s-idle, .alert-demo[data-state="done"] .s-idle,
.alert-demo[data-state="alert"] .s-open, .alert-demo[data-state="taken"] .s-taken { display: inline; }
.alert-demo .station .banner { background: var(--p-ok-soft); color: var(--p-ok); }
.alert-demo .station .banner .act { display: none; }
.alert-demo[data-state="alert"] .station .banner { background: var(--p-alert); color: #fff; }
.alert-demo[data-state="taken"] .station .banner { background: var(--p-primary); color: #fff; }
.alert-demo[data-state="alert"] .station .banner .act,
.alert-demo[data-state="taken"] .station .banner .act { display: inline-block; }
.alert-demo[data-state="taken"] .station .banner .act { color: var(--p-primary); }
.alert-demo .room[data-watch] > span .s-alert { display: none; }
.alert-demo[data-state="alert"] .room[data-watch],
.alert-demo[data-state="taken"] .room[data-watch] { border-color: var(--p-alert); background: var(--p-alert-soft); }
.alert-demo[data-state="alert"] .room[data-watch] > span,
.alert-demo[data-state="taken"] .room[data-watch] > span { color: var(--p-alert); }
.alert-demo[data-state="alert"] .room[data-watch] > span .s-ok,
.alert-demo[data-state="taken"] .room[data-watch] > span .s-ok { display: none; }
.alert-demo[data-state="alert"] .room[data-watch] > span .s-alert,
.alert-demo[data-state="taken"] .room[data-watch] > span .s-alert { display: inline; }
.alert-demo .count.red b .n1 { display: none; }
.alert-demo[data-state="alert"] .count.red b .n0,
.alert-demo[data-state="taken"] .count.red b .n0 { display: none; }
.alert-demo[data-state="alert"] .count.red b .n1,
.alert-demo[data-state="taken"] .count.red b .n1 { display: inline; }
.alert-demo .events li[data-ev] { display: none; }
.alert-demo[data-state="alert"] .events li[data-ev="fall"],
.alert-demo[data-state="taken"] .events li[data-ev="fall"],
.alert-demo[data-state="taken"] .events li[data-ev="taken"],
.alert-demo[data-state="done"] .events li[data-ev] { display: grid; }

/* Legend under the alert demo */
.demo-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 16px; padding: 0; list-style: none; }
.demo-legend li {
  font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.demo-legend li.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.demo-legend li[data-s="alert"].on { background: var(--p-alert); border-color: var(--p-alert); }
.demo-legend li[data-s="taken"].on { background: var(--p-primary); border-color: var(--p-primary); }
.demo-legend li[data-s="done"].on { background: var(--p-ok); border-color: var(--p-ok); }

/* Standalone phone (feature rows) */
.phone-solo { position: relative; width: min(250px, 64%); margin: 0 auto; container-type: inline-size; }
.phone-solo .phone { position: relative; right: auto; bottom: auto; width: 100%; font-size: clamp(8px, 4.3cqw, 13px); }
.phone-solo .phone .view { opacity: 1; transform: none; }

/* Panel mock (generic white app card) */
.panel {
  font-size: clamp(11px, 1.45vw, 14px); background: var(--p-bg); border-radius: 20px; padding: 16px;
  border: 1px solid rgba(11, 21, 48, .08); box-shadow: var(--shadow);
}
.panel .card-in { background: #fff; border-radius: 14px; padding: 15px 17px; }
.panel .card-in + .card-in { margin-top: 12px; }
.panel h5 { margin: 0 0 10px; font-size: 1.15em; font-weight: 700; }
.panel .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #edf0f3; }
.panel .row:last-child { border-bottom: 0; }
.panel .row .l b { display: block; font-size: 1.02em; }
.panel .row .l small { color: var(--p-muted); font-family: var(--font); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .9em; white-space: nowrap; }
.pill.ok { color: var(--p-ok); background: var(--p-ok-soft); }
.pill.off { color: var(--p-muted); background: #e9edf1; }
.pill.red { color: var(--p-alert); background: var(--p-alert-soft); }
.pill.blue { color: var(--p-primary); background: var(--p-primary-soft); }
.pill.amber { color: var(--p-amber); background: var(--p-amber-soft); }
.wifi { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; margin-right: 6px; }
.wifi i { width: 3px; background: var(--p-ok); border-radius: 1px; }
.wifi i:nth-child(1) { height: 4px; } .wifi i:nth-child(2) { height: 7px; } .wifi i:nth-child(3) { height: 10px; } .wifi i:nth-child(4) { height: 12px; }
.wifi.weak i:nth-child(3), .wifi.weak i:nth-child(4) { background: #cdd4dc; }
.wifi.weak i { background: var(--p-amber); }

/* Alert progress timeline mock */
.prog { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.prog li { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; position: relative; }
.prog li::before { content: ""; position: absolute; left: 10px; top: 30px; bottom: -10px; width: 2px; background: #dde3ea; }
.prog li:last-child::before { display: none; }
.prog .d { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; }
.prog .d.red { background: var(--p-alert); } .prog .d.amber { background: #c77700; } .prog .d.blue { background: var(--p-primary); } .prog .d.ok { background: var(--p-ok); }
.prog b { display: block; }
.prog small { color: var(--p-muted); }
.prog time { color: var(--p-muted); font-family: var(--font); font-variant-numeric: tabular-nums; font-size: .92em; }
.outcomes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.outcomes span { border: 1.5px solid #cfd6de; border-radius: 10px; padding: 6px 12px; font-weight: 700; font-size: .95em; }
.outcomes span.sel { border-color: var(--p-primary); background: var(--p-primary-soft); color: var(--p-primary); }

/* Zone map mock */
.zones { position: relative; aspect-ratio: 4 / 3; background-color: #fff; border-radius: 12px; overflow: hidden;
  background-image: linear-gradient(#edf1f5 1px, transparent 1px), linear-gradient(90deg, #edf1f5 1px, transparent 1px);
  background-size: 8.33% 11.11%; border: 1px solid #e1e5ea; }
.zones .z { position: absolute; border-radius: 8px; display: grid; place-items: center; font-weight: 700; font-size: .95em; border: 2px dashed; }
.zones .bed { left: 8%; top: 40%; width: 34%; height: 46%; background: rgba(11, 79, 138, .1); border-color: var(--p-primary); color: var(--p-primary); }
.zones .door { right: 6%; bottom: 0; width: 18%; height: 14%; background: rgba(11, 107, 71, .1); border-color: var(--p-ok); color: var(--p-ok); border-bottom: 0; border-radius: 8px 8px 0 0; }
.zones .bath { right: 6%; top: 8%; width: 30%; height: 38%; background: rgba(138, 90, 0, .1); border-color: #b07400; color: #8a5a00; }
.zones .radar { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); display: grid; justify-items: center; gap: 2px; font-size: .8em; color: var(--p-muted); font-weight: 700; }
.zones .radar i { width: 22px; height: 22px; border-radius: 50%; background: #14202b; box-shadow: 0 0 0 6px rgba(24, 198, 255, .25), 0 0 0 14px rgba(24, 198, 255, .12); }
.zones .person { position: absolute; left: 52%; top: 62%; width: 18px; height: 18px; border-radius: 50%; background: var(--p-alert); box-shadow: 0 0 0 6px rgba(179, 38, 30, .2); }
.zone-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .92em; }

/* Report mock */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { background: #fff; border-radius: 12px; padding: 12px 14px; }
.kpi small { display: block; color: var(--p-muted); font-size: .88em; }
.kpi b { font-family: var(--font); font-size: 1.7em; letter-spacing: -0.02em; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 110px; padding: 6px 2px 0; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--p-primary); }
.bars-x { display: flex; gap: 6px; font-size: .8em; color: var(--p-muted); margin-top: 6px; font-family: var(--font); }
.bars-x span { flex: 1; text-align: center; }

/* Setup board mock */
.board .row .l small { display: block; }
.progress { height: 8px; border-radius: 8px; background: #e6eaef; overflow: hidden; margin: 6px 0 2px; }
.progress i { display: block; height: 100%; border-radius: 8px; background: var(--p-primary); }

/* Label mock (printable login label) */
.labels { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.label { background: #fff; border: 1.5px dashed #b8c2cf; border-radius: 10px; padding: 10px 12px; font-size: .88em; }
.label b { font-size: 1.15em; display: block; }
.label code { font-family: Menlo, Consolas, monospace; font-size: .92em; color: var(--p-muted); }

/* Illustration motion */
.svg-pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.svg-pulse.d2 { animation-delay: 1.2s; }
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.7); opacity: 0; } }
.svg-waves path { animation: wave 2.4s ease-in-out infinite; }
.svg-waves path:nth-child(2) { animation-delay: .3s; }
.svg-waves path:nth-child(3) { animation-delay: .6s; }
@keyframes wave { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .svg-pulse, .svg-waves path { animation: none; } .svg-pulse.d2 { display: none; } }

/* System flow (product page) */
.flow3 { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 14px; }
.flow-node { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; text-align: center; }
.flow-node .icon { margin: 0 auto 12px; }
.flow-node b { display: block; font-size: 1.02rem; }
.flow-node small { display: block; color: var(--muted); font-size: 14px; margin-top: 4px; }
.flow-node + .flow-node { margin-top: 10px; }
.flow-arrow { width: 40px; height: 2px; background: var(--line-2); position: relative; }
.flow-arrow::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6px solid transparent; border-left: 8px solid var(--line-2); border-right: 0; }
@media (max-width: 860px) {
  .flow3 { grid-template-columns: 1fr; }
  .flow-arrow { width: 2px; height: 28px; margin: 0 auto; }
  .flow-arrow::after { right: -5px; top: auto; bottom: -4px; border: 6px solid transparent; border-top: 8px solid var(--line-2); border-bottom: 0; }
  .flow-node { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; text-align: left; padding: 14px 16px; }
  .flow-node .icon { margin: 0; grid-row: span 2; }
  .flow-node small { margin-top: 0; }
}

.rollout.compact { grid-template-columns: 1fr; gap: 10px; }
.rollout.compact li { display: grid; grid-template-columns: 28px 1fr; column-gap: 14px; padding: 16px 18px; }
.rollout.compact li::before { grid-row: span 2; margin: 0; }
.rollout.compact h3 { margin-bottom: 2px; }

@media (min-width: 961px) { .sticky-col { position: sticky; top: 100px; } }

/* ---------- Availability tags and bedside radar (in testing) ---------- */
.status {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font: 700 12px/1.5 var(--font);
  letter-spacing: 0; white-space: nowrap; vertical-align: 2px;
}
.status.live { background: var(--p-ok-soft); color: var(--p-ok); }
.status.testing { background: var(--p-amber-soft); color: var(--p-amber); }
.eyebrow .status { margin-right: 8px; }
.status-line { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.status-line li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.status-line .status { vertical-align: 0; }

/* Planned items get an open marker: the green tick means it works today. */
.ticks.planned li::before, .ticks li.planned::before { background: none; border: 2px solid var(--line-2); }
.card-link { margin-top: 18px; font-weight: 700; }
.plain-list { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 9px; color: var(--ink-2); font-size: 16px; }
.feature-copy h3 { margin-bottom: 12px; }

.night-note { margin-top: 30px; padding: 20px 22px; border-radius: var(--radius); border: 1px solid var(--night-line); background: rgba(255, 255, 255, .05); }
.night-note h3 { font-size: 1.12rem; margin: 10px 0 6px; }
.night-note p { color: var(--night-text); font-size: 16px; }

.ui.warn { background: var(--p-amber-soft); border-color: #f0dcae; color: var(--p-amber); }
.rtile.out { background: var(--p-amber-soft); border-color: transparent; }
.pres.out { color: var(--p-amber); }

.sleep-sum { font-size: 1em; }
.roomboard .sleep-sum { margin-top: .9em; }
.roomboard .title + .sleep-sum { margin-top: 0; }
.sleepbar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.sleepbar i.deep { background: var(--p-primary); }
.sleepbar i.light { background: #7fa6c9; }
.sleepbar i.awake { background: #d6dde5; }
.sleep-key { display: flex; flex-wrap: wrap; gap: .3em 1em; margin: .6em 0 .9em; font-size: .92em; font-weight: 700; color: var(--p-muted); }
.sleep-key span::before { content: ""; display: inline-block; width: .7em; height: .7em; border-radius: 2px; margin-right: .35em; }
.sleep-key .deep::before { background: var(--p-primary); }
.sleep-key .light::before { background: #7fa6c9; }
.sleep-key .awake::before { background: #d6dde5; }
.sleep-sum .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sleep-sum .kpi { background: var(--p-bg); padding: .7em .8em; }
@media (max-width: 480px) { .sleep-sum .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
