@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('assets/noto-tc-regular.woff') format('woff');
}
@font-face {
  font-family: 'Noto Sans TC';
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url('assets/noto-tc-semibold.woff') format('woff');
}

:root {
  --paper: #FAF8F5;
  --paper-warm: #F4F0E8;
  --soft: #F3EFE9;
  --forest: #1A382F;
  --forest-deep: #122821;
  --forest-mid: #244B3F;
  --forest-light: #EDF3F1;
  --gold: #8F6C19;
  --gold-bright: #C59B27;
  --gold-soft: #F9F4E8;
  --ink: #1E1C18;
  --muted: #655E52;
  --line: #E2DBD0;
  --line-strong: #D0C7B8;
  --white: #FFFFFF;
  --shadow-sm: 0 4px 14px -4px rgba(26, 56, 47, 0.06);
  --shadow-md: 0 14px 34px -12px rgba(26, 56, 47, 0.10);
  --shadow-lg: 0 24px 52px -18px rgba(26, 56, 47, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  background-color: var(--paper);
  color: var(--ink);
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

button, a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  flex-shrink: 0;
}

p, h1, h2, h3, h4, h5 {
  margin: 0;
}

pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  margin: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

[hidden], .hidden {
  display: none !important;
}

.icon {
  width: 22px;
  height: 22px;
}

.icon-small {
  width: 17px;
  height: 17px;
}

.container {
  width: min(1240px, calc(100% - 56px));
  margin-inline: auto;
}

main {
  padding-top: 80px;
}

section[id] {
  scroll-margin-top: 96px;
}

:focus-visible {
  outline: 3px solid #B09551;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(250, 248, 245, 0.98);
  box-shadow: 0 8px 28px -8px rgba(26, 56, 47, 0.08);
}

.header-inner {
  display: flex;
  height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  flex-shrink: 0;
}

.brand-wordmark {
  display: block;
  white-space: nowrap;
}

.site-brand strong {
  display: block;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  color: var(--forest-deep);
}

.site-brand small {
  display: block;
  font: 600 9px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.22em;
  color: var(--gold);
  margin-top: 3px;
}

.brand-mark {
  display: block;
  width: 68px;
  height: 64px;
  flex: 0 0 68px;
}

.brand-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #4A463D;
}

.nav-link {
  position: relative;
  padding-block: 8px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--forest);
}

.nav-link.active-nav {
  color: var(--forest);
  font-weight: 700;
}

.nav-link.active-nav::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  border-radius: 2px;
  background: var(--gold-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid var(--forest);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.primary-btn {
  background: var(--forest);
  color: #fff;
  box-shadow: 0 4px 14px -4px rgba(26, 56, 47, 0.28);
}

.primary-btn:hover {
  background: var(--forest-mid);
  border-color: var(--forest-mid);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(26, 56, 47, 0.35);
}

.secondary-btn {
  background: #fff;
  color: var(--forest);
  border-color: var(--line-strong);
}

.secondary-btn:hover {
  background: var(--soft);
  border-color: #9BA89C;
}

.header-cta {
  min-height: 42px;
  padding: 9px 16px;
  font-size: 13.5px;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--forest);
}

.mobile-nav {
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  max-height: calc(100dvh - 80px);
  overflow: auto;
}

.mobile-nav a {
  display: block;
  padding: 13px 6px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(226, 219, 208, 0.5);
}

.mobile-nav a:last-child {
  border-bottom: 0;
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--forest);
  color: #fff;
  text-align: center;
  border-radius: 10px;
}

/* =========================================
   COMMON SECTION & TYPOGRAPHY
   ========================================= */
.eyebrow {
  font: 600 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow > span:not(.eyebrow-dot) {
  background: #EAE3D5;
  color: var(--forest);
  border-radius: 6px;
  padding: 3px 8px;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #F0ECE3;
  border: 1px solid #E2DACB;
  font: 600 10.5px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.13em;
  color: var(--forest);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  background: var(--gold-bright);
  border-radius: 50%;
}

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

.soft-section {
  background: var(--paper-warm);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-heading h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.025em;
  margin-top: 14px;
  color: var(--forest-deep);
}

.section-lead {
  font-size: 16.5px;
  color: var(--muted);
  line-height: 1.85;
  margin-top: 14px;
  max-width: 720px;
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading.center .eyebrow {
  justify-content: center;
}

.section-heading.center .section-lead {
  margin-inline: auto;
}

.section-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.75;
}

/* =========================================
   00. HERO SECTION (OVERVIEW)
   ========================================= */
.function-hero {
  padding: 56px 0 64px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(197, 155, 39, 0.07) 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(26, 56, 47, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, #FFFDF9 0%, var(--paper) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  text-align: left;
}

.hero-audience {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 18px;
  letter-spacing: 0.04em;
}

.hero-copy h1 {
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.24;
  margin-top: 12px;
  color: var(--forest-deep);
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero-lead {
  font-size: 17px;
  color: #544E43;
  line-height: 1.85;
  margin-top: 20px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-primary-btn,
.hero-secondary-btn {
  padding: 13px 24px;
  font-size: 15px;
}

.hero-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.hero-pillar-item {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.hero-pillar-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.4;
}

.hero-pillar-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* 右側診所服務接續架構面板（無圖片純 UI 面板） */
.hero-visual {
  display: flex;
  justify-content: stretch;
  position: relative;
}

.hero-arch-panel {
  width: 100%;
  background: #FFFFFF;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.arch-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  background: #F4EFE6;
  border-bottom: 1px solid var(--line);
}

.arch-panel-title-group {
  display: flex;
  align-items: center;
  gap: 9px;
}

.float-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16);
}

.float-card-kicker {
  font: 700 11px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.12em;
  color: var(--forest);
}

.float-card-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: #FFFDF8;
  border: 1px solid #E5D9BF;
  padding: 4px 10px;
  border-radius: 99px;
}

.arch-panel-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.arch-step-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #FAF8F5;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.arch-step-card:hover {
  background: #F5F8F5;
  border-color: #B4C6BA;
}

.arch-step-num {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--forest);
  color: #fff;
  font: 700 12px/1 ui-monospace, SFMono-Regular, monospace;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.arch-step-content {
  flex: 1;
  min-width: 0;
}

.arch-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.arch-step-head strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--forest-deep);
  line-height: 1.4;
}

.arch-step-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--forest);
  background: var(--soft);
  padding: 2px 8px;
  border-radius: 6px;
}

.arch-step-content p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 4px;
}

.arch-step-connector {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 30px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
}

.arch-step-connector::before {
  content: '↓';
  font-weight: 700;
  color: var(--gold-bright);
}

.arch-panel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 22px;
  background: #FAF7F0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}

.arch-panel-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--forest);
  transition: color 0.18s ease;
}

.arch-panel-link:hover {
  color: var(--gold);
}

/* 三段服務工作互動地圖 */
.hero-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: #fff;
  margin-top: 52px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-stage {
  display: flex;
  flex-direction: column;
  padding: 28px 30px;
  transition: background 0.22s ease, transform 0.22s ease;
  position: relative;
}

.hero-stage + .hero-stage {
  border-left: 1px solid var(--line);
}

.hero-stage:hover {
  background: #F8FAF7;
}

.stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--gold);
  margin-bottom: 12px;
}

.stage-index {
  font: 700 11px/1.4 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.12em;
}

.stage-arrow {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-stage:hover .stage-arrow {
  background: var(--forest);
  color: #fff;
  transform: translate(2px, -2px);
}

.stage-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--forest-deep);
}

.stage-description {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 8px;
  flex: 1;
}

.stage-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

.stage-tags > span {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-light);
  border-radius: 6px;
  padding: 3px 9px;
}

/* =========================================
   01. FEATURES WORKSPACE
   ========================================= */
.feature-workspace {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-tab {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 15px 16px;
  text-align: left;
  width: 100%;
  color: var(--forest-deep);
  transition: all 0.18s ease;
  box-shadow: 0 2px 6px rgba(26, 56, 47, 0.03);
}

.feature-tab-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--forest-light);
  color: var(--forest);
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.feature-tab-text {
  flex: 1;
}

.feature-tab strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}

.feature-tab small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.35;
}

.feature-tab-arrow {
  font-size: 15px;
  color: #9BA59B;
  transition: transform 0.18s ease, color 0.18s ease;
}

.feature-tab:hover {
  background: #F5F7F4;
  border-color: #B4C2B6;
}

.feature-tab:hover .feature-tab-arrow {
  transform: translateX(3px);
}

.feature-tab[aria-selected="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  box-shadow: 0 12px 26px -10px rgba(26, 56, 47, 0.42);
}

.feature-tab[aria-selected="true"] small {
  color: #C4D6CE;
}

.feature-tab[aria-selected="true"] .feature-tab-icon {
  color: #EED594;
  background: rgba(255, 255, 255, 0.12);
}

.feature-tab[aria-selected="true"] .feature-tab-arrow {
  color: #EED594;
  transform: translateX(3px);
}

/* 右側功能面板 */
.feature-panel {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 32px 34px;
  box-shadow: var(--shadow-md);
}

.feature-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.panel-index {
  color: var(--gold);
  font: 700 10.5px/1.5 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.12em;
}

.feature-panel-copy h3 {
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--forest-deep);
  margin-top: 6px;
}

.feature-panel-copy > p:last-child {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 10px;
  max-width: 620px;
}

.panel-highlights {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-highlights > span {
  font-size: 12px;
  font-weight: 600;
  color: var(--forest);
  background: var(--forest-light);
  border: 1px solid #D5E3DD;
  border-radius: 99px;
  padding: 5px 12px;
}

/* 擬真控制台視窗 */
.feature-demo {
  background: #F8F6F1;
  border: 1px solid #DFD8CC;
  border-radius: 16px;
  margin-top: 26px;
  overflow: hidden;
}

.console-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: #EFECE4;
  border-bottom: 1px solid #DFD8CC;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #D2C9B8;
}

.console-dots span:nth-child(1) { background: #E5989B; }
.console-dots span:nth-child(2) { background: #E9C46A; }
.console-dots span:nth-child(3) { background: #8AB17D; }

.console-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #4E493F;
}

.demo-badge {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  background: #fff;
  border: 1px solid #D8D0C1;
  border-radius: 6px;
  padding: 3px 9px;
  color: var(--forest);
}

.entry-demo,
.course-preview,
.interactive-demo > :not(.console-topbar) {
  padding-inline: 22px;
}

.entry-demo,
.course-preview {
  padding-block: 22px;
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  padding-bottom: 16px;
}

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.demo-controls button {
  border: 1px solid #C9D2C6;
  border-radius: 9px;
  padding: 7px 15px;
  min-height: 38px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
  color: #465947;
  transition: all 0.15s ease;
}

.demo-controls button:hover {
  border-color: var(--forest);
  background: var(--forest-light);
}

.demo-controls button[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
  box-shadow: 0 4px 10px rgba(26, 56, 47, 0.2);
}

.demo-result-count,
.demo-small-note {
  font-size: 12px;
  font-weight: 600;
  color: #6B705E;
}

/* Panel 01: Entry Demo */
.micro-kicker {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.entry-sources {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.entry-sources > span {
  background: #fff;
  border: 1px solid #D8DFD5;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 12.5px;
  color: var(--muted);
}

.entry-sources > span strong {
  display: block;
  font-size: 13.5px;
  color: var(--forest-deep);
  margin-bottom: 2px;
}

.entry-message {
  background: #fff;
  border: 1px solid #CFE0D6;
  border-left: 4px solid #06C755;
  border-radius: 12px;
  padding: 18px 20px;
  margin-top: 16px;
  box-shadow: var(--shadow-sm);
}

.message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #ECE8DF;
}

.message-title {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest-deep);
}

.line-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06C755;
}

.message-tag {
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 3px 9px;
  border-radius: 99px;
}

.entry-message dl {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.entry-message dl > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  font-size: 13px;
  line-height: 1.65;
  align-items: baseline;
}

.entry-message dt {
  font-weight: 600;
  color: #7D725D;
}

.entry-message dd {
  color: var(--ink);
  font-weight: 500;
  margin: 0;
}

/* Panel 02 & 04: Data Lists */
.demo-data-list {
  background: #fff;
  border: 1px solid #D8DED3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}

.demo-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 18px;
  transition: background 0.15s ease;
}

.demo-data-row:hover {
  background: #FAFBF9;
}

.demo-data-row + .demo-data-row {
  border-top: 1px solid #EAE6DD;
}

.row-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.row-time {
  font: 600 11.5px/1.3 ui-monospace, SFMono-Regular, monospace;
  color: var(--forest);
  background: var(--forest-light);
  padding: 6px 10px;
  border-radius: 8px;
  white-space: nowrap;
}

.client-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #EFECE6;
  color: #5C5549;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.client-badge.member {
  background: var(--forest);
  color: #EED594;
}

.demo-data-row h4 {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--forest-deep);
}

.demo-data-row p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.status-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: #2E6F40;
  background: #E8F5E9;
  border: 1px solid #C8E6C9;
  border-radius: 99px;
  padding: 4px 12px;
  white-space: nowrap;
}

.status-tag.pending {
  background: #FEF3C7;
  border-color: #FDE68A;
  color: #92400E;
}

.neutral-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #6E6555;
  border: 1px solid #E2DBD0;
  border-radius: 99px;
  padding: 4px 12px;
  white-space: nowrap;
  background: #FAF8F5;
}

/* Panel 03 & 06: Tables & Details */
#team-demo-overview,
#team-demo-individual,
#governance-demo-roles,
#governance-demo-audit {
  padding-bottom: 22px;
}

.mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border: 1px solid #D8DED3;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.65;
  text-align: left;
  color: var(--forest-deep);
}

.mini-table th,
.mini-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #EAE6DD;
}

.mini-table thead th {
  font-size: 12px;
  font-weight: 700;
  color: #6E6555;
  background: #F4F1EA;
}

.mini-table tbody th {
  font-weight: 700;
}

.mini-table tr:last-child th,
.mini-table tr:last-child td {
  border-bottom: 0;
}

.staff-overview {
  table-layout: fixed;
  text-align: center;
}

.staff-overview th:first-child {
  width: 34%;
  text-align: left;
}

.schedule-state {
  display: inline-block;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8C8270;
  background: #F3F0E8;
}

.schedule-state.on {
  background: #E8F5E9;
  color: #2E6F40;
}

.staff-detail-heading,
.course-status {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #D8DED3;
  border-radius: 12px;
}

.record-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--forest);
  color: #EED594;
  border-radius: 10px;
  width: 40px;
  height: 40px;
  font-size: 15px;
  font-weight: 700;
}

.staff-detail-heading strong,
.course-status strong {
  display: block;
  font-size: 15px;
  color: var(--forest-deep);
  font-weight: 700;
}

.staff-detail-heading small,
.course-status small {
  display: block;
  font-size: 12px;
  margin-top: 2px;
  color: var(--muted);
}

.staff-detail-heading > .status-tag,
.course-status > .status-tag {
  margin-left: auto;
}

.staff-details {
  margin: 12px 0 0;
  border: 1px solid #D8DED3;
  border-radius: 12px;
  background: #fff;
  padding: 4px 18px;
}

.staff-details > div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  font-size: 13px;
}

.staff-details > div + div {
  border-top: 1px solid #EAE6DD;
}

.staff-details dt {
  font-weight: 600;
  color: #7D725D;
}

.staff-details dd {
  margin: 0;
  font-weight: 600;
  color: var(--forest-deep);
}

/* Panel 05: Course Preview */
.record-groups {
  margin-top: 14px;
  border: 1px solid #D8DED3;
  background: #fff;
  border-radius: 12px;
  padding: 0 18px;
}

.record-groups > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
}

.record-groups > div + div {
  border-top: 1px solid #EAE6DD;
}

.record-group-title strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest-deep);
}

.record-group-title span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
}

.record-group-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Panel 06: Access & Audit */
.access-preview th:first-child {
  width: 34%;
}

.access-chip {
  display: inline-block;
  border: 1px solid #CBE0D4;
  border-radius: 6px;
  background: var(--forest-light);
  color: var(--forest);
  font-size: 12px;
  font-weight: 600;
  margin: 3px 6px 3px 0;
  padding: 4px 10px;
}

.audit-demo-list {
  display: grid;
  gap: 10px;
}

.audit-demo-list article {
  background: #fff;
  border: 1px solid #D8DED3;
  border-left: 4px solid var(--forest);
  border-radius: 10px;
  padding: 14px 18px;
}

.audit-demo-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 4px;
}

.audit-demo-list h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--forest-deep);
}

.audit-demo-list p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.feature-actionbar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
  line-height: 1.7;
  margin-top: 12px;
}

.feedback:empty {
  display: none;
}

/* =========================================
   02. CHANNELS SECTION
   ========================================= */
.channels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.channel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-shadow: var(--shadow-sm);
}

.channel-card:hover {
  transform: translateY(-4px);
  border-color: #CBBBA0;
  box-shadow: var(--shadow-md);
}

.channel-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.channel-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 6px 14px -4px rgba(0, 0, 0, 0.18);
}

.channel-icon-box.bg-forest { background: var(--forest); }
.channel-icon-box.bg-line { background: #06C755; }
.channel-icon-box.bg-ig { background: linear-gradient(45deg, #F58529, #DD2A7B, #8134AF); }
.channel-icon-box.bg-fb { background: #1877F2; }

.channel-svg {
  width: 24px;
  height: 24px;
}

.channel-svg.text-gold { color: #EED594; }
.channel-svg.fill-white { fill: #fff; }
.channel-svg.text-white { color: #fff; }

.channel-badge {
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--soft);
  color: #5A5244;
  border: 1px solid var(--line);
}

.channel-badge.live {
  background: #ECFDF5;
  color: #047857;
  border-color: #A7F3D0;
}

.channel-card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--forest-deep);
}

.channel-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  margin-top: 10px;
  flex: 1;
}

.channel-card-footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.channel-next {
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 10px;
}

.channel-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--forest);
  transition: color 0.18s ease;
}

.channel-link:hover {
  color: var(--gold);
}

.channel-notice-bar {
  margin-top: 26px;
  padding: 15px 22px;
  background: #EFECE4;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13.5px;
  color: #4D473C;
}

.channel-notice-bar a {
  font-weight: 700;
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================
   03. IMPLEMENTATION SECTION
   ========================================= */
.scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.scope-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 20px;
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.scope-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.scope-card.featured-scope {
  border: 2px solid var(--forest);
  box-shadow: var(--shadow-md);
}

.scope-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.scope-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
  background: var(--forest-light);
  padding: 3px 10px;
  border-radius: 99px;
}

.scope-card h3 {
  font-size: 23px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--forest-deep);
  margin: 14px 0 8px;
}

.scope-card .scope-fit {
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.scope-card > p:not(.panel-index):not(.scope-fit) {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.78;
}

.scope-card ul {
  display: grid;
  gap: 12px;
  list-style: none;
  padding: 22px 0 26px;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  flex: 1;
}

.scope-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: #3E463D;
}

.scope-card li svg {
  color: var(--gold);
}

.scope-card button {
  width: 100%;
  justify-content: space-between;
}

.rollout-wrapper {
  margin-top: 48px;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
}

.rollout-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.rollout-heading h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--forest-deep);
  margin-top: 4px;
}

.rollout-flow-badge {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--forest);
  background: var(--forest-light);
  padding: 6px 14px;
  border-radius: 99px;
}

.rollout-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.rollout-list li {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  padding: 20px 18px;
  position: relative;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--forest);
  color: #EED594;
  font: 700 12px/1 ui-monospace, SFMono-Regular, monospace;
}

.rollout-list h4 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 12px;
  color: var(--forest-deep);
}

.rollout-list p {
  font-size: 13px;
  line-height: 1.75;
  margin-top: 6px;
  color: var(--muted);
}

/* =========================================
   04. CONTACT SECTION
   ========================================= */
.copy-fallback {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  min-height: 120px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}

.contact-heading {
  margin-bottom: 38px;
}

.contact-title-part {
  display: inline-block;
}

.contact-prompts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 960px;
  padding: 0;
  margin: 0 auto 32px;
  list-style: none;
}

.contact-prompt {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--paper);
}

.contact-prompt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.contact-prompt-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #F0ECE3;
  color: var(--forest);
  font: 700 11px/1 ui-monospace, SFMono-Regular, monospace;
}

.contact-prompt-tag {
  padding: 4px 9px;
  border: 1px solid #E5D6B8;
  border-radius: 999px;
  background: #FFFEFB;
  color: var(--gold);
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
}

.contact-prompt h3 {
  color: var(--forest-deep);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
}

.contact-prompt p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.contact-prompt .contact-prompt-example {
  margin-top: 6px;
  font-size: 13px;
  color: #5F6861;
}

/* Contact Panel */
.contact-panel {
  max-width: 960px;
  margin: 0 auto;
  padding: 38px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  align-items: center;
  gap: 40px;
  border: 1px solid #C5D6CC;
  border-radius: 22px;
  background: linear-gradient(135deg, #EDF4F0 0%, #E3EFE9 100%);
  box-shadow: var(--shadow-md);
  scroll-margin-top: 104px;
}

.contact-kicker {
  font: 700 10.5px/1.5 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.15em;
  color: var(--forest);
}

.contact-copy h3 {
  font-size: 28px;
  line-height: 1.35;
  color: var(--forest-deep);
  font-weight: 700;
  margin-top: 8px;
}

.contact-description {
  font-size: 15px;
  line-height: 1.85;
  color: #42544B;
  max-width: 500px;
  margin-top: 10px;
}

.contact-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.7;
}

.contact-highlights li {
  white-space: nowrap;
}

.contact-highlights li > span {
  margin-right: 3px;
}

.contact-line-button {
  margin-top: 22px;
  background: #06C755;
  border-color: #06C755;
  color: #fff;
  padding: 13px 24px;
  font-size: 15px;
}

.contact-line-button:hover {
  background: #05B04B;
  border-color: #05B04B;
}

.contact-line-icon {
  display: flex;
  align-items: center;
}

.line-brand-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-frame {
  display: block;
  width: 184px;
  background: #fff;
  border: 1px solid #C5D6CC;
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
}

.qr-caption {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--forest);
}

.contact-qr:hover .qr-frame {
  transform: translateY(-2px);
  border-color: var(--forest);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background: #ECE7DD;
  padding: 34px 0;
  border-top: 1px solid var(--line-strong);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--forest-deep);
}

.site-footer p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--forest);
  padding: 8px 14px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
}

.site-footer a:hover {
  background: #fff;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1100px) {
  .channels-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
.feature-workspace {
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 20px;
  }
}

@media (max-width: 1023px) {
  .desktop-nav {
    display: none;
  }
  .menu-btn {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .scope-grid {
    grid-template-columns: 1fr;
  }
  .rollout-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .contact-prompts {
    gap: 14px;
  }
  .contact-prompt {
    padding: 22px 18px;
  }
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .container {
    width: calc(100% - 36px);
  }
  .section {
    padding: 56px 0;
  }
  .function-hero {
    padding: 36px 0 48px;
  }
  .hero-pillars {
    grid-template-columns: 1fr;
  }
  .hero-map {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .hero-stage + .hero-stage {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .feature-workspace {
    grid-template-columns: 1fr;
  }
  .feature-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .feature-tab {
    flex-direction: column;
    text-align: center;
    padding: 12px 8px;
    gap: 8px;
  }
  .feature-tab small,
  .feature-tab-arrow {
    display: none;
  }
  .feature-panel {
    padding: 22px 18px;
  }
  .entry-sources {
    grid-template-columns: 1fr;
  }
  .entry-message dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .channels-grid {
    grid-template-columns: 1fr;
  }
  .rollout-wrapper {
    padding: 22px 18px;
  }
  .rollout-list {
    grid-template-columns: 1fr;
  }
  .contact-prompts {
    grid-template-columns: 1fr;
    margin-bottom: 24px;
  }
  .contact-heading {
    margin-bottom: 28px;
  }
  .contact-panel {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 28px 22px;
  }
  .contact-description {
    margin-inline: auto;
  }
  .contact-copy h3 {
    font-size: 24px;
  }
  .contact-highlights {
    justify-content: center;
    gap: 7px 12px;
  }
  .contact-qr {
    border-top: 1px solid #C5D6CC;
    padding-top: 22px;
  }
}

@media (max-width: 639px) {
  .site-brand {
    gap: 10px;
    min-height: 48px;
  }
  .brand-mark {
    width: 52px;
    height: 52px;
    flex-basis: 52px;
  }
  .site-brand strong {
    font-size: 18px;
    letter-spacing: 0.04em;
  }
  .site-brand small {
    font-size: 8px;
    letter-spacing: 0.14em;
    margin-top: 2px;
  }
  .header-actions {
    display: none;
  }
  .menu-btn {
    margin-left: auto;
  }
  .hero-float-card {
    position: relative;
    left: 0;
    right: 0;
    margin-top: -28px;
  }
  .hero-vertical-tag {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  #mainHeader, .skip-link, button, .hero-map {
    display: none !important;
  }
  main {
    padding-top: 0;
  }
  .container {
    width: 100%;
  }
  .section {
    padding: 24px 0;
  }
  .feature-tabs {
    display: none;
  }
  .feature-workspace {
    display: block;
  }
  .feature-panel[hidden] {
    display: none !important;
  }
  .contact-panel,
  .contact-prompt {
    break-inside: avoid;
  }
}

/* Consultation closing section and phone-friendly LINE action. */
.contact-section { padding-block: 64px; }
@media (max-width: 767px) {
  .contact-section { padding-block: 48px; }
  .contact-line-button { width: 100%; max-width: 320px; padding-inline: 12px; gap: 8px; font-size: 13px; }
  .contact-line-icon .line-brand-icon { width: 19px; height: 19px; }
}
