/* 用芯照顧｜統一介紹站 — warm sage + cream · SPA panels */
:root {
  --sage: #006E63;
  --sage-soft: #338B82;
  --sage-deep: #00564e;
  --clay: #CF8F74;
  --clay-soft: #e8c4b4;
  --clay-deep: #b8735a;
  --ink: #010101;
  --text: #545454;
  --text-strong: #2a2a2a;
  --line: #e5e0db;
  --line-soft: #efeae5;
  --bg: #ffffff;
  --bg-warm: #f7f4f0;
  --bg-sage-tint: #f0f7f5;
  --bg-cream: #faf7f2;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 12px 40px rgba(1, 1, 1, 0.08);
  --shadow-soft: 0 4px 18px rgba(1, 1, 1, 0.06);
  --nav-h: 90px;
  --footer-h: 36px;
  --wrap: 1080px;
  --font: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", "Segoe UI", system-ui, sans-serif;
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.25 0 0 0 0 0.22 0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > header.nav,
body > .nav { flex: 0 0 auto; }
body > main#main,
body > main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
@media (min-width: 901px) {
  html, body { height: 100%; overflow: hidden; }
  /* Content scrolls inside main; copyright stays below main, never overlays */
  body > main#main,
  body > main { overflow-x: hidden; overflow-y: auto; }
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-deep); }
strong { color: var(--text-strong); font-weight: 600; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 0.55em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--sage); color: #fff; padding: 8px 12px; z-index: 1000;
}
.skip:focus { left: 12px; top: 12px; }

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 0.95rem;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
}
.btn-primary {
  background: var(--sage); color: #fff;
  box-shadow: 0 6px 18px rgba(0, 110, 99, 0.22);
}
.btn-primary:hover { background: var(--sage-deep); color: #fff; }
.btn-secondary {
  background: #fff; color: var(--sage); border-color: var(--sage-soft);
}
.btn-secondary:hover { background: var(--bg-sage-tint); color: var(--sage-deep); }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,252,248,.94);
  backdrop-filter: blur(12px) saturate(1.15);
  border-bottom: 1px solid var(--line-soft);
  overflow: visible;
}
.nav-inner {
  display: flex; align-items: center; gap: 16px;
  min-height: var(--nav-h);
  overflow: visible;
}
.nav-inner > nav { overflow: visible; margin-left: auto; }
.brand {
  display: flex; align-items: center; gap: 10px;
  color: inherit; flex-shrink: 0;
}
.brand:hover { color: inherit; }
.brand-logo {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; color: var(--ink); font-size: 1.38rem; white-space: nowrap; }
.brand-sub { font-size: 0.88rem; color: var(--sage-soft); }
.nav-links {
  display: flex; gap: 2px; margin-left: 0; flex-wrap: wrap; justify-content: flex-end;
  align-items: center; overflow: visible;
}
.nav-links a {
  display: block; padding: 8px 10px;
  color: var(--text); font-weight: 500; font-size: 0.86rem;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--sage); background: var(--bg-sage-tint); }
.nav-links a.is-active {
  color: var(--sage-deep);
  background: var(--bg-sage-tint);
  font-weight: 600;
}
.btn-login {
  background: transparent; color: var(--sage); border-color: var(--line);
  min-height: 40px; padding: 0 14px; font-size: 0.88rem;
}
.btn-login:hover { border-color: var(--sage-soft); background: var(--bg-sage-tint); color: var(--sage-deep); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; flex-shrink: 0; }
.nav-actions .btn-primary { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.nav-toggle {
  display: none; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-panel {
  border-top: 1px solid var(--line-soft);
  background: #fff; padding: 12px 0 20px;
}
.nav-panel .nav-links { flex-direction: column; margin: 0; gap: 0; align-items: stretch; justify-content: flex-start; }
.nav-panel .nav-links a { padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
.panel-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.panel-actions .btn { width: 100%; }

/* Product hover flyout — v13 light rounded under 產品 */
.nav-item-product { position: static; list-style: none; }
.nav-product-anchor {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.product-flyout {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(920px, calc(100vw - 24px));
  z-index: 200;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 2px 4px;
  padding: 8px 12px;
  background: #f7fbf9;
  border: 1px solid rgba(0,110,99,.14);
  border-radius: 14px;
  box-shadow: 0 10px 24px rgba(0,70,60,.10);
  white-space: nowrap;
  box-sizing: border-box;
}
.product-flyout::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -12px;
  height: 12px;
}
.nav-item-product:hover .product-flyout,
.nav-item-product:focus-within .product-flyout {
  display: flex;
}
.product-flyout a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--sage);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.2;
  background: transparent;
}
.product-flyout a:hover,
.product-flyout a:focus-visible {
  background: rgba(0,110,99,.10);
  color: var(--ink);
  outline: none;
}
.product-flyout a.is-active {
  background: rgba(0,110,99,.12);
  color: var(--sage-deep);
}
.product-flyout-dot {
  color: rgba(0,110,99,.35);
  font-weight: 700;
  user-select: none;
  padding: 0 1px;
}
.nav-product-trigger[aria-expanded="true"] {
  color: var(--sage);
  background: var(--bg-sage-tint);
}
.product-flyout-mobile {
  list-style: none;
  margin: 0;
  padding: 0 0 8px 12px;
}
.product-flyout-mobile a {
  display: block;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--text);
  border-bottom: 1px solid var(--line-soft);
}

.kicker {
  display: inline-block;
  margin: 0 0 0.55em;
  color: var(--sage); font-weight: 600; font-size: 0.84rem;
  letter-spacing: 0.04em;
}
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-bottom: 0.4em; }
.section-head p { margin-bottom: 0; color: var(--text); font-size: 0.98rem; }

/* SPA panels */
#main { position: relative; flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.panel {
  display: none;
  width: 100%;
  background: var(--bg);
  padding: 48px 0 48px;
}
.panel.is-active {
  display: flex;
  flex-direction: column;
  /* Tall pages: size to content so main can scroll; short pages: fill main */
  flex: 0 0 auto;
  min-height: 100%;
  height: auto;
}
.panel.panel-hero.is-active,
#screens.panel.is-active {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  padding: 0;
}
.panel[hidden] { display: none !important; }
.panel-inner {
  flex: 1 1 auto;
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
  padding-top: 12px;
  padding-bottom: 24px;
}
.panel-alt { background: var(--bg-warm); }
.panel-sage { background: var(--bg-sage-tint); }
.panel-cream { background: var(--bg-cream); }

.panel-hero {
  background: var(--bg-cream);
  padding: 0;
  /* One-viewport home: fills main; copyright sits under main in flex flow */
  height: 100%;
  max-height: none;
  min-height: 0;
  overflow: hidden;
}
.panel-hero .panel-inner.home-panel {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* Home hero — old-site warm two-column feel (compact for one screen) */
.home-hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(10px, 1.6vh, 22px) 0 clamp(8px, 1.2vh, 16px);
  background:
    radial-gradient(ellipse 60% 75% at 95% 0%, rgba(207,143,116,.32), transparent 55%),
    radial-gradient(ellipse 55% 60% at 5% 95%, rgba(0,110,99,.26), transparent 52%),
    radial-gradient(ellipse 35% 45% at 48% 35%, rgba(255,255,255,.85), transparent 70%),
    linear-gradient(155deg, #efe8df 0%, #dceee9 36%, #f5f1eb 68%, #fafcfa 100%);
  overflow: hidden;
  isolation: isolate;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 280px at 16% 24%, rgba(51,139,130,.28), transparent 70%),
    radial-gradient(circle 320px at 86% 78%, rgba(207,143,116,.22), transparent 68%),
    radial-gradient(circle 180px at 62% 12%, rgba(51,139,130,.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.home-hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    var(--noise),
    radial-gradient(ellipse 100% 80% at 50% 110%, rgba(1,1,1,.06), transparent 50%),
    repeating-linear-gradient(
      -18deg,
      transparent 0 18px,
      rgba(0,110,99,.018) 18px 19px
    );
  background-size: 140px 140px, auto, auto;
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}
.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  /* Give dashboard more width so UI is readable */
  grid-template-columns: minmax(280px, 0.92fr) minmax(340px, 1.18fr);
  gap: clamp(18px, 2.5vw, 32px);
  align-items: center;
  flex: 1 1 auto;
  min-height: 0;
}
.home-hero-grid > div:first-child {
  min-width: 0;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 8px;
  padding: 4px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--sage);
  font-size: 0.76rem;
  font-weight: 600;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay);
}
.tagline {
  margin: 0 0 6px;
  color: var(--clay-deep);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
}
.home-hero h1 {
  font-size: clamp(1.28rem, 2.1vw, 1.85rem);
  margin-bottom: 8px;
  line-height: 1.28;
}
.hero-lead {
  font-size: 0.92rem;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.5;
}
.hero-soon {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #7a7a7a;
  font-weight: 500;
  line-height: 1.45;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.hero-ctas .btn { min-height: 40px; padding: 0 16px; font-size: 0.88rem; }
.hero-note { font-size: 0.78rem; color: #7a7a7a; margin: 0; line-height: 1.4; }
.home-hero-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.home-hero-frame {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 110, 99, 0.08);
  overflow: hidden;
  padding: 6px;
  width: 100%;
  max-height: min(52vh, 520px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-hero-frame img {
  width: 100%;
  height: auto;
  max-height: min(50vh, 500px);
  object-fit: contain;
  object-position: top center;
  border-radius: 8px;
  border: 1px solid var(--line-soft);
  image-rendering: -webkit-optimize-contrast;
  /* Prefer sharp UI screenshot */
  filter: none;
}
/* Floating badge — keep, but don't cover key dashboard UI (park top-left outside) */
.home-hero-float-badge {
  position: absolute;
  left: 10px; top: 10px;
  bottom: auto;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  box-shadow: var(--shadow-soft);
  max-width: 180px;
  pointer-events: none;
  z-index: 2;
}
.home-hero-float-badge strong {
  display: block;
  color: var(--sage);
  font-size: 0.8rem;
  margin-bottom: 1px;
}
.home-hero-float-badge span {
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.35;
}

/* Product-panel pill badge (kept separate from float badge) */
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(0,110,99,.08);
  color: var(--sage-deep); font-size: 0.82rem; font-weight: 600;
}
.hero-points {
  display: grid; gap: 8px; margin: 0 0 1.35em;
}
.hero-points li {
  position: relative;
  padding-left: 1.35em;
  color: var(--text);
}
.hero-points li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

/* Caps — 院舍感應與量測組合 four cards (compact strip under hero) */
.caps {
  position: relative;
  flex: 0 0 auto;
  padding: clamp(4px, 0.8vh, 10px) 0 clamp(4px, 0.8vh, 10px);
  background:
    radial-gradient(ellipse 40% 80% at 100% 50%, rgba(207,143,116,.12), transparent 60%),
    linear-gradient(180deg, #f4faf8 0%, #f7f3ee 100%);
  overflow: hidden;
}
.caps::before {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  right: -70px; top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(207,143,116,.22), transparent 68%);
  pointer-events: none;
}
.caps::after {
  content: "";
  position: absolute;
  width: 240px; height: 240px;
  left: -80px; bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,110,99,.14), transparent 70%);
  pointer-events: none;
}
.caps-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.97) 0%, rgba(247,244,240,.94) 50%, rgba(232,243,239,.95) 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 28px rgba(0,110,99,.06);
  backdrop-filter: blur(6px);
}
.cap {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 12px 8px;
  color: inherit;
  border-radius: 14px;
  border: 1px solid transparent;
}
.caps-row-images {
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 10px;
  width: min(78%, 920px);
  max-width: 920px;
  margin: 0 auto;
}
.cap-card {
  margin: 0;
  padding: 0;
  gap: 6px;
  cursor: default;
  border: 1px solid transparent;
}
.cap-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: clamp(72px, 14vh, 118px);
  object-fit: contain;
  object-position: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  display: block;
}
.cap-card figcaption {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.25;
  text-align: center;
  padding: 0 2px 2px;
}
.caps-cards .caps-gallery-caption {
  position: relative;
  z-index: 1;
  margin: 0 0 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-strong);
  text-align: center;
}
.home-feature-links {
  position: relative;
  z-index: 1;
  margin: 6px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text);
}
.home-feature-links a {
  font-weight: 600;
  margin: 0 4px;
}
.home-feature-links span {
  color: #b0a89f;
  margin: 0 2px;
}
.home-feature-links a.feature-soon {
  font-weight: 500;
  color: var(--text);
}
.soon-label {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-cream);
  color: var(--sage-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
  line-height: 1.3;
  white-space: nowrap;
}
.cap-card.cap-soon {
  opacity: 0.86;
}
.cap-card.cap-soon figcaption {
  color: var(--text);
}
.pov-card.pov-soon {
  opacity: 0.9;
  background: var(--bg-cream);
}

.product-panel h1 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  margin-bottom: 0.4em;
}
.product-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 36px;
}
.hero-visual-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 18px 18px 12px;
  width: min(100%, 420px);
  margin: 0 auto;
}
.hero-visual-card img {
  margin-inline: auto;
  max-height: 360px;
  width: auto;
  object-fit: contain;
}

#fall .hero-visual-card {
  width: 100%;
}
#fall .hero-visual-card img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  display: block;
}
.hero-visual-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text);
}

.compact-block { margin-bottom: 32px; }
.compact-block .kicker { margin-bottom: 12px; }

.feature-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 1.2em;
}
.feature-chips li {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(0,110,99,.08);
  color: var(--sage-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow-soft);
}
.card h3 { font-size: 1.12rem; margin-bottom: 0.55em; }
.card ul { display: grid; gap: 8px; }
.card li {
  position: relative;
  padding-left: 1.2em;
  font-size: 0.95rem;
}
.card li::before {
  content: "·";
  position: absolute; left: 0; top: 0;
  color: var(--sage); font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 10px;
  border-radius: 50%;
  background: var(--sage); color: #fff;
  font-size: 0.82rem; font-weight: 700;
}
.step h3 { font-size: 1rem; margin-bottom: 0.4em; }
.step p { margin: 0; font-size: 0.9rem; color: var(--text); }

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.card.benefit { padding-top: 16px; }
.card.benefit-home { border-top: 3px solid var(--clay); }
.card.benefit-facility { border-top: 3px solid var(--sage); }
.card.benefit ul { display: grid; gap: 8px; margin-top: 4px; }
.card.benefit li {
  position: relative;
  padding-left: 1.15em;
  font-size: 0.9rem;
}
.card.benefit li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage-soft);
}
.card.benefit-home li::before { background: var(--clay); }

.pill {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}
.pill-home { background: rgba(207,143,116,.18); color: var(--clay-deep); }
.pill-facility { background: rgba(0,110,99,.1); color: var(--sage-deep); }

.shot {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  margin: 0 0 16px;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  background: #0b1a18;
}
/* Key UI screenshots: never crop left/right or bake-in cover artifacts */
.shot.shot-key img {
  aspect-ratio: auto;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: top left;
  background: #fff;
}
.shot.shot-phone {
  max-width: 320px;
  margin-inline: auto;
}
.shot.shot-phone img {
  aspect-ratio: 9 / 16;
  object-fit: contain;
  background: #f5f5f5;
}
.shot figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: var(--text-strong);
}

.rehab-screen-row {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.rehab-screen-row .shot { margin: 0; }
.screen-points h3 { font-size: 1.05rem; }
.screen-points ul { gap: 10px; }

.deep-link {
  margin: 20px 0 0;
  font-size: 0.9rem;
  color: var(--text);
}
.deep-link a { font-weight: 600; }

.contact-grid-solo {
  max-width: 560px;
}
.contact-list {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-soft);
}
.contact-list dt {
  font-size: 0.78rem;
  color: var(--sage-soft);
  font-weight: 600;
  margin-top: 14px;
}
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: 2px 0 0; color: var(--text-strong); }
.placeholder {
  color: #9a8f86;
  font-style: italic;
}

.footer-in-panel {
  border-top: 1px solid var(--line-soft);
  padding: 20px 0 28px;
  background: #fff;
  margin-top: auto;
}
/* Home: drop footer out of one-viewport stack (legal note lives on other panels / contact) */
.panel-hero .home-footer-compact {
  display: none;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px;
  align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
}
.footer-brand img {
  width: 34px; height: 34px; border-radius: 50%;
  object-fit: cover; border: 1px solid var(--line);
}
.footer-brand strong { display: block; color: var(--ink); font-size: 0.92rem; }
.footer-brand span { display: block; color: var(--sage-soft); font-size: 0.75rem; }
.footer-meta {
  margin: 0;
  font-size: 0.82rem;
  color: #8a837c;
  max-width: 520px;
}

/* Site-wide copyright — in document flow under main (no overlay) */
.site-footer {
  flex: 0 0 auto;
  position: relative;
  z-index: 20;
  height: var(--footer-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 14px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg-cream);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.35;
  color: #6f6860;
  letter-spacing: 0.01em;
}
.site-footer p {
  margin: 0;
  font-weight: 400;
}

.demo-dialog {
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  background: #0b1a18;
  color: #fff;
  width: min(960px, calc(100vw - 32px));
  max-width: 960px;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.demo-dialog::backdrop {
  background: rgba(1, 1, 1, 0.62);
  backdrop-filter: blur(2px);
}
.demo-dialog-inner { display: grid; gap: 0; }
.demo-dialog-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px;
  background: #0f2421;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.demo-dialog-bar h2 {
  margin: 0; color: #fff; font-size: 1rem; font-weight: 600;
}
.demo-dialog-close {
  appearance: none; border: 0; background: transparent;
  color: #fff; font-size: 1.6rem; line-height: 1;
  width: 36px; height: 36px; border-radius: 8px; cursor: pointer;
}
.demo-dialog-close:hover { background: rgba(255,255,255,.1); }
.demo-dialog-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
  aspect-ratio: 16 / 9;
  max-height: min(70vh, 540px);
}


/* Product overview cards */
.module-tag {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-sage-tint);
  color: var(--sage);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pov-card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pov-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(0,110,99,.28);
  color: inherit;
}
.pov-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.pov-card p { margin: 0; font-size: 0.92rem; color: var(--text); }
.pov-card-wide { grid-column: 1 / -1; }
@media (max-width: 700px) {
  .product-overview-grid { grid-template-columns: 1fr; }
  .pov-card-wide { grid-column: auto; }
}

/* Screens gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.shot {
  grid-column: span 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.shot:nth-child(1),
.shot:nth-child(2) { grid-column: span 3; }
.shot-frame {
  background: #eef2f1;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.shot-frame img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: top left;
}
.shot figcaption {
  padding: 12px 14px 14px;
  font-size: 0.88rem;
  color: var(--text-strong);
  font-weight: 600;
}
.shot figcaption span {
  display: block;
  margin-top: 2px;
  font-weight: 400;
  color: var(--text);
  font-size: 0.82rem;
}
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .shot, .shot:nth-child(1), .shot:nth-child(2) { grid-column: span 1; }
}
@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Roles */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.role {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.role-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--bg-sage-tint);
  color: var(--sage);
  display: grid; place-items: center;
  margin-bottom: 14px;
}
.role-icon svg { width: 20px; height: 20px; }
.role h3 { font-size: 1.02rem; margin-bottom: 8px; }
.role p { margin: 0; font-size: 0.92rem; }
@media (max-width: 900px) {
  .roles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .roles-grid { grid-template-columns: 1fr; }
}

.points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.point {
  background: #fff;
  border-top: 3px solid var(--clay);
  border-radius: 0 0 var(--radius) var(--radius);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
  padding: 22px;
}
.point .num {
  color: var(--sage-soft);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.point h3 { font-size: 1.05rem; margin-bottom: 8px; }
.point p { margin: 0; font-size: 0.94rem; }
@media (max-width: 760px) {
  .points { grid-template-columns: 1fr; }
}

/* Services */
.services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}
.service::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--sage);
}
.service.alt::before { background: var(--clay); }
.service h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service p { margin: 0; }
@media (max-width: 700px) {
  .services { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .product-layout,
  .benefit-grid,
  .steps,
  .rehab-screen-row {
    grid-template-columns: 1fr;
  }
  .home-hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .home-hero-float-badge { left: 8px; top: 8px; bottom: auto; }
  .home-hero-frame,
  .home-hero-frame img { max-height: min(36vh, 320px); }
  .caps-row-images { grid-template-columns: repeat(2, 1fr); width: 100%; }
  .panel { padding: 32px 0 48px; }
  .panel-hero {
    padding: 0;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .panel-hero .panel-inner.home-panel { height: auto; overflow: visible; }
  .panel-hero .home-footer-compact { display: block; padding: 14px 0 18px; }
}

@media (max-width: 880px) {
  .nav-inner > nav { display: none; }
  .nav-actions .btn-login { display: none; }
  .nav-actions .btn-primary { display: none; }
  .nav-toggle { display: inline-flex; }
  .product-flyout { display: none !important; }
  .nav-actions { margin-left: auto; }
}

@media (max-width: 560px) {
  .hero-cta, .hero-ctas { width: 100%; }
  .hero-cta .btn, .hero-ctas .btn { width: 100%; }
  .caps-row-images { grid-template-columns: 1fr; }
}


/* —— System screens panel: one-viewport, no vertical scroll —— */
#screens.panel {
  /* Match home one-screen fit; do not alter .panel-hero */
  height: 100%;
  max-height: none;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
#screens .panel-inner.screens-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(10px, 1.6vh, 18px);
  width: min(100% - 48px, 1120px);
  max-width: 1120px;
  height: 100%;
  min-height: 0;
  margin-inline: auto;
  padding: clamp(16px, 2.4vh, 28px) 0;
  overflow: hidden;
  box-sizing: border-box;
}
.screens-head-compact {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
  flex: 0 0 auto;
}
.screens-head-compact .kicker { margin-bottom: 0.35em; }
.screens-head-compact h2 {
  margin: 0 0 0.35em;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
}
.screens-head-compact p {
  margin: 0;
  font-size: clamp(0.86rem, 1.4vw, 0.95rem);
  line-height: 1.5;
  color: var(--text);
}

.screen-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "prev viewport next"
    "dots dots dots"
    "cap cap cap";
  align-items: center;
  justify-items: center;
  column-gap: clamp(10px, 1.5vw, 18px);
  row-gap: clamp(8px, 1.2vh, 14px);
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.carousel-viewport {
  grid-area: viewport;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #0b1a18;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  touch-action: pan-y;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-viewport:focus-visible {
  box-shadow: 0 0 0 3px rgba(0, 110, 99, 0.35);
}
.carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.35s ease;
  will-change: transform;
}
.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  height: 100%;
  min-height: 0;
  background: #0b1a18;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #0b1a18;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-strong);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  align-self: center;
  justify-self: center;
  flex-shrink: 0;
  z-index: 2;
}
.carousel-btn:hover { background: var(--bg-sage-tint, #eef6f4); }
.carousel-prev { grid-area: prev; }
.carousel-next { grid-area: next; }
.carousel-dots {
  grid-area: dots;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0;
  flex: 0 0 auto;
}
.carousel-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #c5d5d1;
  cursor: pointer;
  padding: 0;
}
.carousel-dot.is-active { background: var(--brand, #006E63); width: 22px; }
.carousel-caption {
  grid-area: cap;
  margin: 0;
  text-align: center;
  font-size: clamp(0.84rem, 1.3vw, 0.95rem);
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
  max-width: 46rem;
  padding: 0 8px;
}


.pov-card.is-focus {
  outline: 2px solid var(--brand, #006E63);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 110, 99, 0.12);
}

@media (max-width: 720px) {
  #screens .panel-inner.screens-panel {
    width: min(100% - 28px, 1120px);
    padding: 14px 0 16px;
    gap: 10px;
  }
  .screen-carousel {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    grid-template-areas:
      "viewport"
      "prevnext"
      "dots"
      "cap";
    column-gap: 0;
  }
  .carousel-prev, .carousel-next { position: static; }
  .carousel-prev { grid-area: prevnext; justify-self: start; }
  .carousel-next { grid-area: prevnext; justify-self: end; }
  .screens-head-compact h2 { font-size: 1.25rem; }
  .screens-head-compact p { font-size: 0.86rem; }
}

/* Wetness product panel: annotated product diagram (not App phone) */
#wetness .hero-visual-card img {
  max-height: 420px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* —— Phone polish (shared; keep visual system identical) —— */
@media (max-width: 880px) {
  :root { --nav-h: 58px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-name { font-size: 0.95rem; }
  .brand-sub { font-size: 0.66rem; }

  .nav-panel .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 4px;
    font-size: 0.95rem;
  }
  .product-flyout-mobile a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .panel-actions .btn { min-height: 48px; }
  .nav {
    padding-top: env(safe-area-inset-top, 0);
  }
  .nav-panel {
    padding-left: max(16px, env(safe-area-inset-left, 0));
    padding-right: max(16px, env(safe-area-inset-right, 0));
    padding-bottom: max(20px, env(safe-area-inset-bottom, 0));
  }
  /* Short phones: allow hero panel content to scroll rather than clip */
  .panel-hero {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0;
  }
  .panel-hero .panel-inner.home-panel {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  #screens.panel {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    padding-bottom: 0;
  }
  #screens .panel-inner.screens-panel {
    height: auto;
    overflow: visible;
    min-height: 0;
  }
  .carousel-viewport {
    min-height: min(52vh, 360px);
    aspect-ratio: 16 / 10;
    height: auto;
  }
}
