/* ======================================================================
   Casentra — Brand blue #1D68FF + Deep Navy #0A1B3D on white
   ====================================================================== */

:root {
  --bg: #FFFFFF;
  --bg-2: #F7F8FB;
  --bg-3: #EDF0F7;
  --surface: #FFFFFF;
  --surface-2: #F7F8FB;

  --ink: #0A1330;
  --ink-2: #1F2942;
  --ink-3: #5A6478;
  --ink-4: #98A0B3;

  --primary: #1D68FF;
  --primary-2: #0A1B3D;
  --primary-soft: #4B8BFF;
  --primary-glow: rgba(29, 104, 255, 0.16);
  --primary-tint: rgba(29, 104, 255, 0.05);

  --accent: #1D68FF;
  --accent-2: #0A1B3D;
  --accent-soft: #4B8BFF;

  --line: rgba(29, 104, 255, 0.12);
  --line-strong: rgba(29, 104, 255, 0.24);
  --hairline: rgba(10, 19, 48, 0.08);

  /* Default (Traditional-first) — covers EN + zh-Hant + falls back to SC fonts
     for simplified-only codepoints if any leak through. */
  --serif: "Cormorant Garamond", "Source Han Serif TC", "Noto Serif TC", "Source Han Serif SC", "Noto Serif SC", "Songti TC", "Songti SC", "PingFang TC", "PingFang SC", serif;
  --sans: "Inter", "Noto Sans TC", "Noto Sans SC", "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

/* Simplified-Chinese mode: SC-only stack. No TC fallback — the SC families
   cover the entire CJK Unified Ideographs range, and mixing in TC fonts only
   produces glyph-style inconsistency for divergent codepoints. */
:lang(zh-Hans) {
  --serif: "Cormorant Garamond", "Source Han Serif SC", "Noto Serif SC", "Songti SC", "PingFang SC", serif;
  --sans: "Inter", "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

/* === Reset === */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
::selection { background: var(--primary); color: #fff; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

/* === Type === */
.serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary);
}
.eyebrow::before {
  content: ""; display: block;
  width: 24px; height: 1px;
  background: var(--primary);
}

/* === Background ornaments === */
.gold-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent) 20%, var(--accent) 80%, transparent);
  opacity: 0.4;
}

/* ======================================================================
   NAVBAR
   ====================================================================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 24px;
}
.logo { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 1px solid var(--primary);
  border-radius: 2px;
  position: relative;
  background: var(--surface);
}
.logo-mark::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px solid color-mix(in srgb, var(--primary) 40%, transparent);
  border-radius: 1px;
}
.logo-mark svg { color: var(--primary); position: relative; z-index: 1; }
.logo-mark-letter {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  color: var(--primary);
  position: relative;
  z-index: 1;
  /* Optical centering — italic glyph leans right, nudge left to balance */
  margin-right: 1px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; }
.logo-text .name { font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.logo-text .sub { font-size: 10px; letter-spacing: 0.22em; color: var(--ink-3); margin-top: 5px; text-transform: uppercase; }
@media (max-width: 760px) { .logo-text .sub { display: none; } }

.nav-links { display: flex; gap: 4px; }
@media (max-width: 980px) { .nav-links { display: none; } }
.nav-links a, .nav-links button {
  padding: 10px 14px; font-size: 13px; color: var(--ink-2);
  background: transparent; border: 0;
  cursor: pointer;
  transition: color .2s;
  position: relative;
  font-weight: 500;
}
.nav-links a:hover, .nav-links button:hover { color: var(--primary); }
.nav-links a.active, .nav-links button.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after, .nav-links button.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 1px; background: var(--primary);
}

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

/* === Lang menu (button + popover) === */
.lang-menu { position: relative; display: inline-block; }
.lang-menu-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit; font-weight: 600;
  font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-2);
  transition: border-color .15s, color .15s;
}
.lang-menu-btn:hover { border-color: var(--line); color: var(--primary); }
.lang-menu-btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-menu-btn[aria-expanded="true"] {
  border-color: var(--primary);
  color: var(--primary);
}
.lang-menu-btn svg { transition: transform .15s; opacity: 0.7; }
.lang-menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); opacity: 1; }
.lang-menu-label { line-height: 1; }

.lang-menu-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  margin: 0; padding: 4px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  box-shadow: 0 10px 30px -16px rgba(10,19,48,0.32);
  z-index: 60;
}
.lang-menu-pop li { margin: 0; }
.lang-menu-pop button {
  display: flex; align-items: baseline; gap: 10px;
  width: 100%;
  padding: 9px 12px;
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: var(--ink-2);
  transition: background .12s, color .12s;
}
.lang-menu-pop button:hover { background: var(--bg-2); color: var(--primary); }
.lang-menu-pop button.active { color: var(--primary); background: var(--primary-tint); font-weight: 600; }
.lang-menu-pop .opt-short {
  font-weight: 600; font-size: 13px;
  min-width: 18px;
  letter-spacing: 0.02em;
}
.lang-menu-pop .opt-full {
  font-size: 12px; color: var(--ink-3);
  letter-spacing: 0.02em;
}
.lang-menu-pop button.active .opt-full { color: var(--primary); }

/* In the drawer foot, anchor the popover to open ABOVE the button (no room below) */
.lang-menu-drawer { align-self: center; }
.lang-menu-drawer .lang-menu-pop {
  top: auto;
  bottom: calc(100% + 6px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
}

/* === Mobile drawer === */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.nav-burger:hover { color: var(--primary); border-color: var(--line); }
.nav-burger:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
@media (max-width: 980px) {
  .nav-burger { display: inline-flex; }
  .nav-cta-desktop, .nav-desktop-only { display: none; }
}

.nav-drawer {
  position: fixed; inset: 0;
  z-index: 100;
  pointer-events: none;
  visibility: hidden;
}
.nav-drawer.open { pointer-events: auto; visibility: visible; }
.nav-drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(10, 19, 48, 0.42);
  opacity: 0;
  transition: opacity .25s ease;
}
.nav-drawer.open .nav-drawer-scrim { opacity: 1; }
/* Full-screen menu — the web-native mobile nav (Apple / Linear / Stripe style) */
.nav-drawer-panel {
  position: absolute; inset: 0;
  width: 100%; height: 100dvh;
  background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.nav-drawer.open .nav-drawer-panel { transform: translateX(0); }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--hairline);
}
.nav-drawer-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.nav-drawer-logo { display: inline-flex; align-items: center; }
.nav-drawer-logo img { height: 26px; width: auto; display: block; }
.nav-drawer-close {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  color: var(--ink-2);
  cursor: pointer;
}
.nav-drawer-close:hover { color: var(--primary); border-color: var(--line); }
.nav-drawer-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.nav-drawer-links {
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px 0;
  flex: 1;                  /* fill the screen; nav sits centred, CTAs pinned below */
  overflow-y: auto;
}
/* top-level items (定價 / 支援 / 下載 / 關於) */
.nav-drawer-links > a {
  display: flex; align-items: center;
  padding: 12px 32px;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink);
  transition: color .15s;
}
.nav-drawer-links > a.active { color: var(--primary); }
.nav-drawer-links a:hover { color: var(--primary); }
.nav-drawer-foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--hairline);
}
.nav-drawer-foot .btn { width: 100%; justify-content: center; }
@media (prefers-reduced-motion: reduce) {
  .nav-drawer-panel, .nav-drawer-scrim { transition: none; }
}

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13px;
  border-radius: 2px; transition: all .2s;
  border: 0; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff;   /* brand blue #1D68FF */
  padding: 11px 20px;
  box-shadow: 0 4px 16px var(--primary-glow);
  position: relative; overflow: hidden;
}
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); box-shadow: 0 8px 24px var(--primary-glow); }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }
.btn-ghost {
  background: var(--surface); color: var(--ink);
  padding: 11px 20px; border: 1px solid var(--line-strong);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-lg { padding: 14px 26px; font-size: 14px; }

/* ======================================================================
   PAGE FADE
   ====================================================================== */
.page-fade {
  animation: pageIn .4s cubic-bezier(.2,.7,.2,1);
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ======================================================================
   HERO
   ====================================================================== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 800px 500px at 20% 0%, var(--primary-tint), transparent 60%),
    radial-gradient(ellipse 600px 400px at 90% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 1080px) { .hero-inner { grid-template-columns: 1fr; gap: 48px; } }

.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px;
  background: var(--primary-tint);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary);
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: 0 0 12px var(--primary-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 24px 0 0;
  color: var(--ink);
}
.hero h1 .accent {
  font-style: italic; color: var(--primary);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 em { font-style: italic; color: var(--accent); }

.hero-sub {
  margin-top: 28px;
  font-size: 17px; line-height: 1.7;
  color: var(--ink-3);
  max-width: 540px;
}

.hero-cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 40px;
  display: grid; grid-template-columns: repeat(3, auto);
  gap: 0;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
  max-width: 540px;
}
@media (max-width: 540px) {
  /* three short stats stay on one row, not an awkward 2 + 1 stack */
  .hero-trust { grid-template-columns: repeat(3, 1fr); }
  .hero-trust > div { padding: 0 8px !important; }
  .hero-trust > div:first-child { padding-left: 0 !important; }
  .hero-trust > div:last-child { padding-right: 0 !important; }
}
.hero-trust > div { padding-right: 24px; border-right: 1px solid var(--hairline); }
.hero-trust > div:last-child { border-right: 0; padding-left: 24px; padding-right: 0; }
.hero-trust > div:not(:first-child) { padding-left: 24px; }
.hero-trust .num {
  font-family: var(--serif); font-size: 28px; color: var(--primary);
  font-weight: 500; line-height: 1;
}
.hero-trust .lbl {
  font-size: 11px; color: var(--ink-3); margin-top: 6px;
  letter-spacing: 0.05em;
}

/* === Hero demo dashboard === */
.hero-demo {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.02),
    0 30px 80px -20px rgba(0, 0, 0, 0.12),
    0 0 60px -20px var(--primary-glow);
  overflow: hidden;
}
.hero-demo::before {
  content: ""; position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--primary) 50%, transparent);
}

.demo-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.demo-chrome .tl {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-3);
}
.demo-chrome .url {
  margin-left: 12px; flex: 1;
  font-size: 11px; color: var(--ink-3);
  font-family: var(--mono);
}
.demo-chrome .badge {
  font-size: 10px; padding: 3px 8px;
  border-radius: 2px; border: 1px solid var(--line-strong);
  color: var(--primary); letter-spacing: 0.1em;
  background: var(--primary-tint);
}

.demo-body { padding: 24px; }

.chat-msg-user {
  display: flex; gap: 12px; margin-bottom: 18px;
  animation: fadeUp .5s ease;
}
.chat-msg-ai {
  display: flex; gap: 12px;
  animation: fadeUp .5s ease .2s backwards;
}
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  font-size: 12px; font-weight: 600;
}
.avatar.user { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--hairline); }
.avatar.ai {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  color: #fff;
  box-shadow: 0 0 16px var(--primary-glow);
}
.bubble {
  flex: 1;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 14px; line-height: 1.6;
}
.bubble.user {
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.bubble.ai {
  background: var(--primary-tint);
  border: 1px solid var(--line);
  color: var(--ink);
  position: relative;
}
.bubble.ai .label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 6px; font-weight: 600;
}
.typing-dot {
  display: inline-block;
  width: 6px; height: 14px;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.chat-tags {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px dashed var(--hairline);
  animation: fadeIn .6s ease 1.5s backwards;
}
.chat-tag {
  font-size: 10px; padding: 3px 8px;
  border-radius: 2px;
  display: inline-flex; align-items: center; gap: 5px;
  letter-spacing: 0.05em;
}
.chat-tag.src { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent-2); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.chat-tag.warn { background: color-mix(in srgb, var(--primary-2) 10%, transparent); color: var(--primary-2); border: 1px solid color-mix(in srgb, var(--primary-2) 22%, transparent); }
.chat-tag.ok { background: var(--primary-tint); color: var(--primary); border: 1px solid var(--line); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.float-chip {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
}
.float-chip.fc-1 {
  top: -18px; left: -28px;
  animation: floatY 6s ease-in-out infinite;
}
.float-chip.fc-2 {
  bottom: -18px; right: -32px;
  animation: floatY 6s ease-in-out infinite 3s;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float-chip .icon {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 2px;
  background: var(--primary-tint); color: var(--primary);
}
.float-chip .lbl { color: var(--ink-3); font-size: 10px; letter-spacing: 0.05em; }
.float-chip .val { color: var(--ink); font-weight: 600; }

@media (max-width: 1080px) {
  .float-chip.fc-1, .float-chip.fc-2 { display: none; }
}

/* ======================================================================
   SECTIONS — common
   ====================================================================== */
section { padding: 100px 0; position: relative; }
@media (max-width: 720px) { section { padding: 64px 0; } }

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .eyebrow::after {
  content: ""; display: block; width: 24px; height: 1px;
  background: var(--primary); margin-left: 8px;
}

.sec-title {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
  color: var(--ink);
  font-weight: 500;
  text-wrap: balance;   /* balance big headers — no lone orphan character on its own line */
}
.hero h1, .page-hero h1, .sigil-title { text-wrap: balance; }
/* Keep the blue accents ("最可靠" / "下一步") from splitting mid-phrase on mobile. */
.hero h1 em, .hero h1 .accent { white-space: nowrap; }
/* "更多能力" header on one line (desktop-only section; font scales with vw so it fits) */
#capabilities .sec-title { white-space: nowrap; }
.sec-title em { font-style: italic; color: var(--primary); }
/* Italic serif headings: the slanted last glyph (especially synthesized CJK
   oblique) overhangs its advance box and collides with the next upright
   character. Give the italic span a little breathing room on both sides. */
/* Italic serif accents: the slant overhangs the glyph box. Use PADDING (not
   margin) so gradient-clipped text (.accent uses background-clip:text) still
   paints the overhanging strokes instead of cutting them off, and so the
   slanted last glyph clears the next upright character. */
.hero h1 em, .hero h1 .accent, .sec-title em, .page-hero h1 em, .page-hero h1 .accent,
.sigil-title em, .payback-leadin em {
  padding-right: 0.14em;
  padding-left: 0.08em;
}
.sec-sub {
  font-size: 16px; line-height: 1.7;
  color: var(--ink-3);
  max-width: 600px;
}
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }

/* ======================================================================
   PILLARS
   ====================================================================== */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 36px;
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: 0 16px 40px -16px var(--primary-glow);
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 36px; right: 36px;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
}
.pillar-num {
  font-family: var(--serif);
  font-size: 14px; color: var(--primary);
  font-style: italic;
  letter-spacing: 0.05em;
}
.pillar h3 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 500;
  margin: 12px 0 16px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pillar p { color: var(--ink-3); font-size: 15px; line-height: 1.7; }
.pillar-list {
  margin-top: 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px;
  list-style: none; padding: 0;
}
.pillar-list li {
  font-size: 13px; color: var(--ink-2);
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5;
}
.pillar-list li::before {
  content: ""; width: 4px; height: 4px;
  margin-top: 7px;
  background: var(--primary); border-radius: 50%;
  flex-shrink: 0;
}

/* ======================================================================
   KNOWLEDGE Q&A
   ====================================================================== */
.kqa-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 32px; }
@media (max-width: 1000px) { .kqa-grid { grid-template-columns: 1fr; } }

.kqa-list {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
}
.kqa-list-head {
  padding: 16px 20px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary); border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
  font-weight: 600;
}
.kqa-q {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px; color: var(--ink-2);
  cursor: pointer;
  transition: all .2s;
  display: flex; align-items: center; gap: 12px;
}
.kqa-q:last-child { border-bottom: 0; }
.kqa-q:hover, .kqa-q.active {
  background: var(--primary-tint);
  color: var(--primary);
  padding-left: 26px;
}
.kqa-q .num { font-family: var(--mono); font-size: 10px; color: var(--ink-4); flex-shrink: 0; }
.kqa-q.active .num { color: var(--primary); }

.kqa-answer {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.kqa-answer::before {
  content: ""; position: absolute;
  top: 0; left: 28px; right: 28px;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
}
.kqa-q-display {
  font-family: var(--serif); font-size: 22px;
  font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--hairline);
  margin-bottom: 20px;
}
.kqa-q-display::before {
  content: "Q"; font-style: italic; color: var(--primary);
  margin-right: 12px;
}
.kqa-a-text {
  font-size: 15px; line-height: 1.8;
  color: var(--ink-2);
}
.kqa-a-text::before {
  content: "A"; font-family: var(--serif); font-style: italic;
  color: var(--primary); font-size: 22px; margin-right: 12px;
  vertical-align: -2px;
}
.kqa-meta {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
@media (max-width: 600px) { .kqa-meta { grid-template-columns: 1fr; } }
.kqa-meta h5 {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 10px;
  font-weight: 600;
}
.src-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; margin: 0 4px 4px 0;
  border: 1px solid var(--hairline); border-radius: 2px;
  font-size: 11px; color: var(--ink-2);
  background: var(--surface-2);
}
.src-chip svg { color: var(--primary); }

/* ======================================================================
   CASE WORKFLOW
   ====================================================================== */
.case-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; }
@media (max-width: 980px) {
  .case-grid { grid-template-columns: 1fr; }
  /* Stacked layout: the demo card auto-rotates through steps of different
     heights, which was jolting the page. Pin it to the tallest step so the
     height stays constant across rotations. */
  .case-side { position: static; }
  .case-card { min-height: 348px; }
}

.steps { list-style: none; padding: 0; margin: 0; position: relative; }
.steps::before {
  content: ""; position: absolute;
  left: 19px; top: 12px; bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--primary) 0%, var(--line) 100%);
  opacity: 0.4;
}
.step {
  display: grid; grid-template-columns: 40px 1fr;
  gap: 20px; padding: 14px 0;
  position: relative;
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 14px;
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  position: relative; z-index: 1;
  transition: all .3s;
}
.step.active .step-num {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 6px var(--primary-tint), 0 0 20px var(--primary-glow);
}
.step.done .step-num {
  background: var(--surface-2);
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}
.step h4 {
  font-family: var(--serif); font-size: 19px;
  font-weight: 500; margin: 6px 0 4px;
  color: var(--ink);
}
.step p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.6; }

.case-side { position: sticky; top: 100px; }
.case-card {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -12px rgba(0,0,0,0.08);
}
.case-card::before {
  content: ""; position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent);
}
.case-card-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--hairline);
}
.case-id {
  font-family: var(--mono); font-size: 11px;
  color: var(--primary);
  padding: 3px 8px; border-radius: 2px;
  background: var(--primary-tint);
  border: 1px solid var(--line);
}
.case-stage { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); }
.case-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  display: grid; grid-template-columns: 80px 1fr; gap: 12px;
  align-items: center;
}
.case-row:last-child { border-bottom: 0; }
.case-row .lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.case-row .val { font-size: 13px; color: var(--ink-2); }
.case-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 2px; font-size: 10px;
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent);
}
.missing-bar {
  margin-top: 16px;
  background: color-mix(in srgb, var(--primary-2) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-2) 24%, transparent);
  border-radius: 3px;
  padding: 14px;
}
.missing-bar .head {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-2); font-weight: 600; margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
}
.missing-bar ul { list-style: none; padding: 0; margin: 0; }
.missing-bar li {
  font-size: 12px; color: var(--ink-2);
  padding: 4px 0;
  display: flex; align-items: center; gap: 8px;
}
.missing-bar li::before {
  content: ""; width: 5px; height: 5px;
  background: var(--primary-2); border-radius: 50%;
}
.missing-bar li.m-row { justify-content: space-between; }
.missing-bar li.m-row::before { display: none; }
.missing-bar li.m-row > span:first-child { display: flex; align-items: center; gap: 8px; }
.missing-bar li.m-row > span:first-child::before {
  content: ""; width: 5px; height: 5px;
  background: var(--primary-2); border-radius: 50%;
}
.missing-bar li.m-row .m-st {
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary-2);
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--primary-2) 30%, transparent);
  border-radius: 2px;
}

/* Stage-specific animations inside case-card. Re-mount via key={active}
   triggers fade-in on every step change. */
.case-card .stage-anim {
  animation: stageFade 0.4s ease-out;
}
@keyframes stageFade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* — Stage 1: upload zone — */
.upload-zone {
  margin-top: 8px;
  border: 1px dashed color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: 4px;
  padding: 18px 16px;
  background: color-mix(in srgb, var(--primary) 4%, transparent);
  text-align: center;
}
.upload-icon {
  width: 36px; height: 36px;
  margin: 0 auto 8px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  animation: uploadBob 1.6s ease-in-out infinite;
}
@keyframes uploadBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.upload-text {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 12px;
}
.upload-files { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.upload-file {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--ink-2);
  padding: 6px 8px;
  background: var(--bg-1, #fff);
  border: 1px solid var(--hairline);
  border-radius: 3px;
}
.upload-file > span:nth-child(2) { flex: 1; }
.upload-file .prog {
  font-size: 10px; color: var(--primary); font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.upload-file .prog.dot-blink { animation: dotBlink 1.2s ease-in-out infinite; }
@keyframes dotBlink {
  0%, 100% { opacity: 0.3; } 50% { opacity: 1; }
}

/* — Stage 2: extraction tags — */
.extract-grid {
  margin-top: 8px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
}
.ex-tag {
  font-size: 11px; color: var(--ink-2);
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-1, #fff);
  opacity: 0;
  animation: tagPop 0.4s ease-out forwards;
}
.ex-tag:nth-child(1) { animation-delay: 0.05s; }
.ex-tag:nth-child(2) { animation-delay: 0.20s; }
.ex-tag:nth-child(3) { animation-delay: 0.35s; }
.ex-tag:nth-child(4) { animation-delay: 0.50s; }
@keyframes tagPop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.ex-tag .dt { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.ex-tag.confirmed .dt { background: var(--primary, #2d6a4f); }
.ex-tag.inferred .dt { background: var(--primary); }
.ex-tag.risk .dt { background: var(--primary-2); }
.ex-tag.obj .dt { background: color-mix(in srgb, var(--ink-2) 60%, transparent); }
.ex-progress {
  margin-top: 12px;
  height: 2px; background: var(--hairline); border-radius: 2px; overflow: hidden;
}
.ex-bar {
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  width: 40%;
  animation: exSlide 1.6s ease-in-out infinite;
}
@keyframes exSlide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(350%); }
}
.ex-note {
  margin-top: 8px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); text-align: center;
}

/* — Stage 4: plan list — */
.plan-list {
  margin-top: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.plan-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--bg-1, #fff);
  transition: all 0.3s;
}
.plan-item.active {
  border-color: color-mix(in srgb, var(--primary, #2d6a4f) 50%, transparent);
  background: color-mix(in srgb, var(--primary, #2d6a4f) 6%, transparent);
}
.plan-tag {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  border-radius: 2px;
  font-family: var(--font-serif, Georgia, serif);
  font-size: 12px; font-weight: 600;
  background: color-mix(in srgb, var(--ink-2) 8%, transparent);
  color: var(--ink-2);
  flex-shrink: 0;
}
.plan-item.active .plan-tag {
  background: var(--primary, #2d6a4f);
  color: #fff;
}
.plan-item > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.plan-item b { font-size: 13px; color: var(--ink-1); font-weight: 500; }
.plan-item span { font-size: 11px; color: var(--ink-3); }
.plan-item.active > svg { color: var(--primary, #2d6a4f); }

/* — Stage 6: meeting card — */
.meet-card {
  margin-top: 8px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--bg-1, #fff);
  overflow: hidden;
}
.meet-head {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--primary) 6%, transparent);
  border-bottom: 1px solid var(--hairline);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary); font-weight: 600;
}
.meet-list {
  list-style: none; padding: 12px 14px; margin: 0;
  counter-reset: meet;
}
.meet-list li {
  counter-increment: meet;
  font-size: 12px; color: var(--ink-2);
  padding: 5px 0 5px 24px;
  position: relative;
}
.meet-list li::before {
  content: counter(meet, decimal-leading-zero);
  position: absolute; left: 0; top: 5px;
  font-size: 10px; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
}
.meet-foot {
  padding: 8px 12px;
  border-top: 1px solid var(--hairline);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3); text-align: right;
}

/* — Stage 7: memo card — */
.memo-card {
  margin-top: 8px;
  border-left: 2px solid var(--primary, #2d6a4f);
  padding: 4px 0 4px 14px;
}
.memo-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dashed var(--hairline);
}
.memo-row:last-child { border-bottom: 0; }
.memo-row .lbl {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.memo-row .val { font-size: 13px; color: var(--ink-1); }

/* ======================================================================
   CAPABILITIES
   ====================================================================== */
.cap-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px; overflow: hidden;
}
@media (max-width: 880px) { .cap-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .cap-grid { grid-template-columns: 1fr; } }
.cap {
  padding: 32px;
  background: var(--surface);
  position: relative;
  transition: background .3s;
}
.cap:hover { background: var(--surface-2); }
.cap-icon {
  width: 44px; height: 44px;
  border-radius: 2px;
  display: grid; place-items: center;
  background: var(--primary-tint);
  border: 1px solid var(--line);
  color: var(--primary);
  margin-bottom: 20px;
}
.cap h4 {
  font-family: var(--serif); font-size: 22px;
  font-weight: 500; margin: 0 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.cap p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); }
.cap-num {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); letter-spacing: 0.1em;
}

/* ======================================================================
   PATH DIAGRAM
   ====================================================================== */
/* === Paths v2 === */
.paths-v2 {
  position: relative;
  display: grid;
  gap: 0;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(10,19,48,0.02), 0 24px 60px -32px rgba(10,19,48,0.18);
}

.track {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 0;
  position: relative;
  padding: 36px 36px 36px 0;
}
@media (max-width: 880px) {
  .track { grid-template-columns: 1fr; padding: 28px 24px; }
}

.track-a {
  background: var(--ink);
  color: #fff;
  background-image:
    radial-gradient(ellipse 360px 220px at 12% 30%, rgba(59,130,246,0.18), transparent 70%);
}
.track-b {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
}

.track-letter-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border-right: 1px dashed rgba(255,255,255,0.12);
}
.track-b .track-letter-col {
  border-right: 1px dashed var(--line);
}
@media (max-width: 880px) {
  .track-letter-col {
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    border-right: 0;
    padding: 0 0 14px 0;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 18px;
  }
  .track-b .track-letter-col { border-bottom: 1px dashed var(--line); }
}
.track-letter {
  font-family: var(--serif);
  font-size: 120px; line-height: 0.9;
  font-weight: 500;
  letter-spacing: -0.04em;
}
.track-a .track-letter { color: #fff; }
.track-b .track-letter { color: var(--primary); }
.track-scope {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  text-align: center;
}
.track-a .track-scope { color: rgba(255,255,255,0.55); }
.track-b .track-scope { color: var(--ink-3); }

.track-body { padding: 0 0 0 32px; min-width: 0; }
@media (max-width: 880px) { .track-body { padding: 0; } }

.track-head-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.track-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.track-a .track-icon { background: rgba(255,255,255,0.10); color: #fff; }
.track-b .track-icon { background: var(--primary-tint); color: var(--primary); }
.track-name {
  font-family: var(--serif);
  font-size: 30px; line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
}
.track-a .track-name { color: #fff; }
.track-b .track-name { color: var(--ink); }
.track-kicker {
  margin-left: auto;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}
.track-a .track-kicker {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
}
.track-b .track-kicker {
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--line);
}

.track-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  position: relative;
}
.flow-node {
  flex: 1 1 auto;
  min-width: 150px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 4px;
  position: relative;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.track-a .flow-node {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
}
.track-b .flow-node {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink);
}
.flow-node:hover { transform: translateY(-1px); }
.track-a .flow-node:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.28); }
.track-b .flow-node:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px -8px rgba(10,19,48,0.18); }
.flow-text { flex: 1; }
.flow-tag {
  flex-shrink: 0;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 2px;
}
.track-a .flow-tag { background: #fff; color: var(--ink); }
.track-b .flow-tag { background: var(--primary); color: #fff; }
.flow-node.role-in,
.flow-node.role-out { font-weight: 600; }
.track-a .flow-node.role-in,
.track-a .flow-node.role-out {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.30);
}
.track-b .flow-node.role-in,
.track-b .flow-node.role-out {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

/* arrow between nodes */
.flow-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -20px; top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
  width: 14px;
  text-align: center;
  transition: color .3s, transform .3s;
}
.track-a .flow-node:not(:last-child)::after { color: rgba(255,255,255,0.40); }
.track-b .flow-node:not(:last-child)::after { color: var(--ink-4); }
@media (max-width: 720px) {
  .flow-node:not(:last-child)::after { display: none; }
  .flow-node { flex: 1 1 100%; }
}

/* === Flow pulse animation: each node lights up in sequence, then loops === */
@keyframes flow-pulse-dark {
  0%,   8%  { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: none; }
  12%, 22%  { background: rgba(255,255,255,0.20); border-color: rgba(255,255,255,0.55); box-shadow: 0 0 0 4px rgba(59,130,246,0.18), 0 6px 20px -6px rgba(59,130,246,0.35); }
  32%, 100% { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); box-shadow: none; }
}
@keyframes flow-pulse-light {
  0%,   8%  { background: var(--surface); border-color: var(--hairline); box-shadow: none; }
  12%, 22%  { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint), 0 6px 18px -6px var(--primary-glow); }
  32%, 100% { background: var(--surface); border-color: var(--hairline); box-shadow: none; }
}
@keyframes flow-arrow-pulse-dark {
  0%,   8%  { color: rgba(255,255,255,0.40); transform: translateY(-50%) translateX(0); }
  12%, 22%  { color: #fff; transform: translateY(-50%) translateX(3px); }
  32%, 100% { color: rgba(255,255,255,0.40); transform: translateY(-50%) translateX(0); }
}
@keyframes flow-arrow-pulse-light {
  0%,   8%  { color: var(--ink-4); transform: translateY(-50%) translateX(0); }
  12%, 22%  { color: var(--primary); transform: translateY(-50%) translateX(3px); }
  32%, 100% { color: var(--ink-4); transform: translateY(-50%) translateX(0); }
}

/* total cycle = (nodes * 0.6s stagger) + 2.4s tail. Use a generous 8s loop. */
.track-a .flow-node {
  animation: flow-pulse-dark 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--flow-delay, 0s);
}
.track-b .flow-node {
  animation: flow-pulse-light 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--flow-delay, 0s);
}
.track-a .flow-node:not(:last-child)::after {
  animation: flow-arrow-pulse-dark 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--flow-delay, 0s);
}
.track-b .flow-node:not(:last-child)::after {
  animation: flow-arrow-pulse-light 6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  animation-delay: var(--flow-delay, 0s);
}

/* Keep role-in / role-out static highlight, but still let the pulse pass over them */
.track-a .flow-node.role-in,
.track-a .flow-node.role-out { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16); }
.track-b .flow-node.role-in,
.track-b .flow-node.role-out { box-shadow: 0 0 0 2px var(--primary-tint); }

@media (prefers-reduced-motion: reduce) {
  .track-a .flow-node,
  .track-b .flow-node,
  .flow-node:not(:last-child)::after { animation: none; }
}

/* Boundary band between A and B */
.track-boundary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px;
  background: var(--surface);
  border-top: 1px dashed var(--line-strong);
  border-bottom: 1px dashed var(--line-strong);
  position: relative;
}
.track-boundary .bd-dash {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(90deg, var(--line-strong) 50%, transparent 50%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
}
.track-boundary .bd-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
  flex-shrink: 0;
}
.track-boundary .bd-pill svg { color: #fff; opacity: 0.9; }

.paths-footnote {
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid var(--hairline);
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
}
.paths-footnote .dot-link {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}
.paths-footnote .accent {
  color: var(--primary);
  font-weight: 600;
  font-style: normal;
  padding: 0 2px;
}

/* === legacy paths (kept for backwards compat, unused) === */
.paths { display: grid; gap: 20px; }
.path-row {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 24px;
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.path-row.path-a { background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 6%, var(--surface)), var(--surface)); }
.path-row.path-b { background: linear-gradient(180deg, var(--primary-tint), var(--surface)); }

.path-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
}
.path-head .label-a { color: var(--primary); }
.path-head .label-b { color: var(--primary); }
.path-head .icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 2px;
  border: 1px solid var(--hairline);
  background: var(--surface);
}

.path-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.path-node {
  flex: 1 1 140px;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: var(--surface);
  font-size: 12px; color: var(--ink-2);
  min-width: 0;
  display: flex; align-items: center; gap: 8px;
  position: relative;
  transition: all .3s;
}
.path-node:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.path-node .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.path-a .path-node .dot { background: var(--primary); }
.path-b .path-node .dot { background: var(--primary); }

.path-arrow { color: var(--ink-4); flex-shrink: 0; }
@media (max-width: 720px) {
  .path-arrow { display: none; }
  .path-node { flex: 1 1 100%; }
}

.path-row.animated::after {
  content: "";
  position: absolute; bottom: 0; left: 0;
  width: 80px; height: 2px;
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  animation: flow 4s linear infinite;
  pointer-events: none; opacity: 0.5;
}
@keyframes flow {
  0% { left: -80px; }
  100% { left: 100%; }
}

.path-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px; color: var(--ink-3);
  padding: 16px 24px;
  border: 1px dashed var(--hairline);
  border-radius: 3px;
  font-style: italic;
  background: var(--surface);
}
.path-note .accent { color: var(--primary); font-weight: 600; font-style: normal; }

/* ======================================================================
   SECURITY
   ====================================================================== */
.security {
  background: var(--surface-2);
  position: relative;
}
.security::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, var(--primary-tint), transparent 40%),
    radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 40%);
  pointer-events: none;
}
.security .wrap { position: relative; }

.sec-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 720px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-card {
  background: var(--surface);
  padding: 32px;
  display: flex; gap: 20px;
  align-items: flex-start;
}
.sec-card-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid var(--primary);
  border-radius: 2px;
  position: relative;
  background: var(--surface);
}
.sec-card-icon::before {
  content: ""; position: absolute; inset: 4px;
  border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent);
}
.sec-card-icon svg { color: var(--primary); position: relative; z-index: 1; }
.sec-card h4 {
  font-family: var(--serif); font-size: 22px;
  font-weight: 500; margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sec-card p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

/* ===== COMPLIANCE SECTION ===== */
.compliance { background: var(--surface-2, #f7f4ec); }
.cmp-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 960px) { .cmp-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cmp-cards { grid-template-columns: 1fr; } }
.cmp-card {
  background: var(--surface);
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.cmp-card-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--primary, #2d6a4f) 30%, transparent);
  background: color-mix(in srgb, var(--primary, #2d6a4f) 6%, transparent);
  color: var(--primary, #2d6a4f);
  border-radius: 2px;
}
.cmp-card h4 {
  font-family: var(--serif); font-size: 17px;
  font-weight: 500; margin: 0; color: var(--ink);
}
.cmp-card p {
  margin: 0; font-size: 12.5px; line-height: 1.65; color: var(--ink-3);
}

/* Audit badges band */
.audit-band {
  margin-top: 40px;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  position: relative;
}
.audit-band::before {
  content: ""; position: absolute;
  top: 0; left: 32px; right: 32px;
  height: 2px;
  background: linear-gradient(to right, var(--primary, #2d6a4f), transparent);
}
.audit-band-head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.audit-eyebrow {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary, #2d6a4f); font-weight: 600;
}
.audit-disclaimer {
  font-size: 11px; color: var(--ink-3); font-style: italic; max-width: 540px;
}
.audit-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
@media (max-width: 880px) { .audit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .audit-grid { grid-template-columns: 1fr; } }
.audit-badge {
  background: var(--surface);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
}
.audit-badge.aligned { color: var(--primary, #2d6a4f); }
.audit-badge.ready   { color: var(--accent, #c9a961); }
.audit-badge-mark {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.audit-badge-code {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--mono, monospace);
  font-size: 9px; letter-spacing: 0.04em;
  color: currentColor; font-weight: 700;
  text-align: center;
  line-height: 1.1;
}
.audit-badge-body { flex: 1; min-width: 0; }
.audit-badge-full {
  font-family: var(--serif, Georgia, serif);
  font-size: 14px; color: var(--ink); font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.3;
}
.audit-badge-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: currentColor;
  font-family: var(--mono, monospace);
}
.audit-badge-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* Legal-tone statement */
.legal-statement {
  margin: 40px 0 0;
  padding: 32px 36px 28px;
  background: var(--ink, #1a1a1a);
  color: color-mix(in srgb, var(--surface) 88%, transparent);
  border-radius: 4px;
  position: relative;
  font-family: var(--serif, Georgia, serif);
}
.legal-statement .legal-mark {
  position: absolute;
  top: 18px; left: 18px;
  font-size: 28px; line-height: 1;
  color: color-mix(in srgb, var(--accent, #c9a961) 70%, transparent);
  font-style: italic;
}
.legal-statement p {
  margin: 0 0 16px 28px;
  font-size: 14px; line-height: 1.85;
  color: color-mix(in srgb, var(--surface) 82%, transparent);
}
.legal-sig {
  margin-left: 28px;
  display: flex; gap: 24px; flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid color-mix(in srgb, var(--surface) 12%, transparent);
  font-family: var(--mono, monospace);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: color-mix(in srgb, var(--surface) 50%, transparent);
}

/* ======================================================================
   COMPARISON
   ====================================================================== */
.cmp-table {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}
.cmp-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr;
  border-bottom: 1px solid var(--hairline);
}
.cmp-row:last-child { border-bottom: 0; }
.cmp-row.head {
  background: var(--surface-2);
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 11px; font-weight: 600;
}
.cmp-cell {
  padding: 18px 22px;
  font-size: 13px; color: var(--ink-2);
  border-right: 1px solid var(--hairline);
  display: flex; align-items: center; gap: 8px;
}
.cmp-cell:last-child { border-right: 0; }
.cmp-cell.lbl { color: var(--ink-3); font-size: 12px; }
.cmp-row.head .cmp-cell.shared { color: var(--primary); }
.cmp-row.head .cmp-cell.priv { color: var(--primary); }
.cmp-cell-tag { display: none; }
@media (max-width: 720px) {
  .cmp-table { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .cmp-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--hairline); border-radius: 12px;
    background: var(--surface); margin-bottom: 12px; overflow: hidden;
  }
  .cmp-row:last-child { margin-bottom: 0; border-bottom: 1px solid var(--hairline); }
  .cmp-row.head { display: none; }
  .cmp-cell {
    border-right: 0; border-bottom: 1px solid var(--hairline);
    padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 5px;
  }
  .cmp-row > .cmp-cell:last-child { border-bottom: 0; }
  .cmp-cell.lbl {
    font-family: var(--sans); font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em; text-transform: none; color: var(--ink);
    background: var(--surface-2);
  }
  .cmp-cell-tag {
    display: inline-block; font-family: var(--mono);
    font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .cmp-val-shared .cmp-cell-tag { color: var(--accent); }
  .cmp-val-priv .cmp-cell-tag { color: var(--ink-3); }
}

/* ======================================================================
   USE CASES
   ====================================================================== */
.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .uc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .uc-grid { grid-template-columns: 1fr; } }
.uc {
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 28px;
  background: var(--surface);
  position: relative;
  transition: all .3s;
}
.uc:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 12px 28px -16px var(--primary-glow);
}
.uc::before {
  content: ""; position: absolute; top: 0; left: 28px;
  width: 40px; height: 1px;
  background: var(--primary);
}
.uc-tag { font-family: var(--mono); font-size: 10px; color: var(--ink-4); letter-spacing: 0.1em; }
.uc h4 {
  font-family: var(--serif); font-size: 21px;
  font-weight: 500; margin: 8px 0 10px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.uc p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--ink-3); }

/* ======================================================================
   FAQ
   ====================================================================== */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 22px 4px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--serif); font-size: 21px;
  font-weight: 500; color: var(--ink);
  letter-spacing: -0.01em;
  transition: color .2s;
}
.faq summary:hover { color: var(--primary); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--serif); font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform .3s;
  font-weight: 300;
}
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { color: var(--primary); }
.faq-body {
  padding: 0 4px 22px;
  font-size: 14px; line-height: 1.8;
  color: var(--ink-3);
  max-width: 720px;
}

/* ======================================================================
   DEMO FORM
   ====================================================================== */
.form-shell {
  max-width: 760px; margin: 0 auto;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--surface);
  padding: 44px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,0.12);
}
.form-shell::before {
  content: ""; position: absolute;
  top: 0; left: 44px; right: 44px;
  height: 1px;
  background: linear-gradient(to right, var(--primary), transparent 60%);
}
@media (max-width: 600px) { .form-shell { padding: 28px; } }

.form-shell h3 {
  font-family: var(--serif); font-size: 28px;
  font-weight: 500; margin: 0 0 24px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-3);
}
.field input, .field select, .field textarea {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  padding: 10px 12px;
  font-family: inherit; font-size: 14px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.field textarea { resize: vertical; min-height: 100px; }
.field.full { grid-column: 1 / -1; }

.form-note { margin-top: 16px; font-size: 11px; color: var(--ink-4); font-style: italic; }

/* ======================================================================
   FOOTER
   ====================================================================== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 64px 0 36px;
  background: var(--bg);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 760px) {
  /* Mobile: the 產品 / 公司 link columns duplicate the nav drawer — drop them.
     Keep brand + contacts + legal links + the compliance disclaimer. */
  .foot-grid { grid-template-columns: 1fr; gap: 30px; margin-bottom: 36px; }
  .foot-grid > .foot-col:nth-child(2),
  .foot-grid > .foot-col:nth-child(3) { display: none; }
}
.foot-col h5 {
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { padding: 5px 0; }
.foot-col a, .foot-col button {
  font-size: 13px; color: var(--ink-3);
  background: transparent; border: 0; padding: 0;
  cursor: pointer; font-family: inherit;
  transition: color .2s;
}
.foot-col a:hover, .foot-col button:hover { color: var(--primary); }
.foot-contact { margin-top: 22px; }
.foot-contact li { padding: 5px 0; font-size: 13px; }
.foot-contact-role {
  color: var(--ink-3); opacity: .7;
}

/* ===== Mobile: lean the page (desktop untouched) =====
   Cut low-value / desktop-exploration sections on phones so the page is a
   short, decision-focused journey instead of an endless scroll:
   - #testimonials      → closed-beta placeholder, no real content yet
   - #vs-carrier-copilot → niche comparison
   - #use-cases         → mood photos, redundant with the rest
   - #modality-matrix   → abstract radial ("dossier") that doesn't read on mobile */
@media (max-width: 760px) {
  #testimonials, #vs-carrier-copilot, #use-cases, #modality-matrix { display: none; }
  /* Home: three "what it does" sections are redundant on mobile — keep the core
     "two pillars" (#workflows) + "why not generic AI"; cut the extra capability
     grid and the decorative workflow visualization. */
  #capabilities, #workflow { display: none; }
  /* Capabilities: the three long research/narrative sections are desktop
     exploration; on mobile the page reads hero → architecture → real product
     → why-not-generic-AI. (Desktop keeps them all.) */
  #research-foundation, #design-choices, #capability-by-role { display: none; }
  /* Per-page deep-dives (kept on desktop): ROI math, work-rhythm, troubleshooting,
     question taxonomy, answer-construction, dossier anatomy, case lifecycle. */
  #pricing-leverage,
  .work-rhythm, .troubleshoot,
  .taxonomy, .how-built,
  .anatomy, .lifecycle { display: none; }
}

/* Mobile: dense card rows → swipe carousels; the case timeline cycles one step. */
@media (max-width: 760px) {
  .quick-start .qs-row,
  .inputs .in-grid,
  .sec-grid, .cmp-cards, .audit-grid {
    display: flex; grid-template-columns: none; overflow-x: auto; gap: 14px;
    padding: 4px 7vw 12px; scroll-snap-type: x mandatory;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .quick-start .qs-row::-webkit-scrollbar,
  .inputs .in-grid::-webkit-scrollbar,
  .sec-grid::-webkit-scrollbar, .cmp-cards::-webkit-scrollbar,
  .audit-grid::-webkit-scrollbar { display: none; }
  .quick-start .qs-step,
  .inputs .in-card,
  .sec-card, .cmp-card, .audit-grid > * { flex: 0 0 auto; width: 86vw; scroll-snap-align: center; margin: 0; }
  .quick-start .qs-arrow { display: none; }

  /* case workflow: show one lifecycle step at a time (it already auto-advances) */
  #case .steps { display: block; }
  #case .steps .step { display: none; }
  #case .steps .step.active { display: grid; }
}

/* Demo disclaimer under the knowledge-page example/live sections */
.demo-note {
  margin: 20px auto 0; max-width: 58ch; text-align: center;
  font-size: 12px; line-height: 1.6; color: var(--ink-4);
}

/* ===== Carousel dots (JS-injected under mobile swipe carousels) ===== */
.carousel-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.carousel-dot {
  width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
  background: var(--ink); opacity: .22; cursor: pointer;
  transition: opacity .2s, transform .2s, background .2s;
}
.carousel-dot.active { opacity: 1; background: var(--primary); transform: scale(1.3); }
@media (min-width: 761px) { .carousel-dots { display: none; } }

/* ===== Scroll reveal (JS adds .reveal to below-fold blocks, then .is-revealed) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  filter: blur(3px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1),
              transform .7s cubic-bezier(.2,.7,.2,1),
              filter .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-revealed { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ===== Product showcase — real iOS screens ===== */
.product-showcase { padding: 100px 0 104px; background: var(--surface-2); overflow: hidden; }
.ps-rail {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 26px; margin-top: 48px;
}
.ps-phone { flex: 0 0 auto; width: 208px; margin: 0; text-align: center; }
.ps-phone img {
  width: 100%; height: auto; display: block;
  filter: drop-shadow(0 26px 46px rgba(18, 28, 58, .20));
}
.ps-phone figcaption { margin-top: 22px; }
.ps-phone .ps-label { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.ps-phone .ps-desc  { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; line-height: 1.5; }
@media (max-width: 980px) {
  /* centered carousel — one phone centered per swipe, a peek of the neighbours */
  .ps-rail {
    justify-content: flex-start; align-items: flex-start;
    overflow-x: auto; gap: 16px;
    /* side padding = half the viewport minus half a phone → each snapped phone is dead-centre */
    padding: 8px calc(50% - 115px) 16px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .ps-rail::-webkit-scrollbar { display: none; }
  .ps-phone { width: 230px; scroll-snap-align: center; }
}

/* ===== Isolation constellation (capabilities) ===== */
.iso-viz-section {
  position: relative; overflow: hidden; padding: 100px 0 108px;
  background:
    radial-gradient(70% 60% at 50% 46%, rgba(30,58,120,.24) 0%, rgba(8,12,26,0) 62%),
    linear-gradient(180deg, #04060c 0%, #060912 60%, #070b16 100%);
  color: #eef2f9;
}
.iso-viz-head { max-width: 640px; margin: 0 auto; text-align: center; }
.iso-viz-head .eyebrow { color: #8fb2ff; }
.iso-viz-head .sec-title { color: #eef2f9; }
.iso-viz-head .sec-title em { color: #8fb2ff; font-style: normal; }
.iso-viz-head .sec-sub { color: #8290a8; }
.iso-viz-stage {
  position: relative; width: 100%; height: min(58vh, 520px);
  margin-top: 28px;
}
.iso-viz-stage canvas { position: absolute; inset: 0; }
.iso-node-label {
  position: absolute; transform: translate(-50%, -100%); white-space: nowrap;
  font-size: 11px; letter-spacing: .01em; color: #eef2f9; font-weight: 500;
  text-align: center; pointer-events: none; transition: opacity .5s;
}
.iso-node-label small {
  display: block; font-size: 9px; letter-spacing: .07em; color: #8290a8;
  font-weight: 500; margin-top: 2px;
}
@media (max-width: 640px) {
  .iso-viz-section { padding: 68px 0 76px; }
  .iso-viz-stage { height: min(50vh, 430px); }
}
.foot-disclaimer {
  font-size: 11px; line-height: 1.7;
  color: var(--ink-4);
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 20px;
}
.foot-bottom {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-4);
}

/* CTA banner */
.cta-banner {
  margin: 80px 0 0;
  padding: 56px 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%);
  border-radius: 4px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at right, black, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at right, black, transparent 70%);
}
.cta-banner > * { position: relative; }
@media (max-width: 720px) {
  .cta-banner { grid-template-columns: 1fr; padding: 40px 28px; }
}
.cta-banner h3 {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  margin: 0; letter-spacing: -0.01em;
}
.cta-banner p { font-size: 14px; opacity: 0.85; margin: 8px 0 0; }
.cta-banner .btn {
  background: #fff; color: var(--primary);
  padding: 12px 24px; font-weight: 600;
}
.cta-banner .btn:hover { background: var(--bg); }

/* page-hero compact (for inner pages) */
.page-hero {
  padding: 64px 0 24px;
  border-bottom: 1px solid var(--hairline);
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}
.page-hero .breadcrumb {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 12px;
}
.page-hero h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px);
  font-weight: 500; margin: 0;
  letter-spacing: -0.02em; line-height: 1.05;
  color: var(--ink);
}
.page-hero h1 em { font-style: italic; color: var(--primary); white-space: nowrap; }
.page-hero p {
  margin: 16px 0 0;
  font-size: 16px; line-height: 1.7;
  color: var(--ink-3); max-width: 640px;
}

/* ======================================================================
   VISUALS — pillars, capabilities, use-cases, security, hero skyline
   ====================================================================== */

/* Pillar visual — top illustration */
.pillar-visual {
  margin: -36px -36px 24px;
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(180deg, var(--bg-2) 0%, var(--surface) 100%);
  display: flex; align-items: center; justify-content: center;
  height: 200px;
  overflow: hidden;
}
.pillar-visual svg { width: 100%; height: 100%; display: block; }

/* Capability scene — small thumbnail strip */
.cap { padding-top: 0 !important; }
.cap-scene {
  margin: 0 -32px 20px;
  border-bottom: 1px solid var(--hairline);
  height: 110px;
  overflow: hidden;
  background: var(--bg-2);
}
.cap-scene svg { width: 100%; height: 100%; display: block; }
.cap { padding: 0 32px 32px !important; padding-top: 0 !important; }
.cap > .cap-num { display: inline-block; margin-top: 0; }

/* Use-case thumbnails */
.uc { padding-top: 0 !important; overflow: hidden; }
.uc-thumb {
  margin: 0 -28px 18px;
  border-bottom: 1px solid var(--hairline);
}
.uc { padding: 0 28px 28px !important; }

/* Image placeholder (striped) */
.v-img-ph {
  position: relative;
  width: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  overflow: hidden;
}
.v-img-stripes {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.v-img-label {
  position: relative;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface);
  padding: 4px 10px;
  border: 1px solid var(--hairline);
  border-radius: 1px;
}

/* Editorial photo block */
.v-photo {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-3);
}
.v-photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.02);
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}
.uc:hover .v-photo img { transform: scale(1.04); }

/* Security illustration banner */
.security-illus {
  margin: 0 0 32px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background:
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  padding: 16px;
  overflow: hidden;
}
.security-illus svg { width: 100%; height: auto; display: block; }

/* Hero skyline — bottom decoration */
.hero-skyline {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.hero-skyline svg { width: 100%; height: 100%; display: block; }
.hero .wrap { position: relative; z-index: 1; }

/* Reset cap rule in mobile if needed */
@media (max-width: 580px) {
  .pillar-visual { height: 160px; }
  .cap-scene { height: 90px; }
}

/* ======================================================================
   NEW SECTIONS — appended
   ====================================================================== */

/* Capabilities slim grid (4 cols on home) */
.cap-grid-4 { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 1100px) { .cap-grid-4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 600px)  { .cap-grid-4 { grid-template-columns: 1fr !important; } }

/* ===== SECURITY TEASER (home) ===== */
.sec-teaser { padding: 80px 0; }
.sec-teaser-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  padding: 36px 40px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  align-items: center;
  position: relative;
}
.sec-teaser-card::before {
  content: ""; position: absolute;
  top: 0; left: 40px; right: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--primary, #2d6a4f), transparent);
}
@media (max-width: 880px) { .sec-teaser-card { grid-template-columns: 1fr; } }
.sec-teaser-left h3 {
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  margin: 8px 0 12px; color: var(--ink);
}
.sec-teaser-left p {
  margin: 0 0 16px; font-size: 13px; line-height: 1.7; color: var(--ink-3);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--primary, #2d6a4f); font-weight: 600;
  text-decoration: none;
  transition: gap .2s;
}
.link-arrow:hover { gap: 10px; }
.sec-teaser-right { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-size: 11px; color: var(--ink-2);
  background: var(--surface-2);
  font-family: var(--mono, monospace);
}
.trust-pill svg { color: var(--primary, #2d6a4f); }

/* ===== VS GENERAL AI — live side-by-side answer comparison ===== */
.vs-compare { max-width: 940px; margin: 0 auto 52px; }
.vs-compare-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
.vs-compare-tab {
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--hairline); background: var(--surface);
  cursor: pointer; transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.vs-compare-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.vs-compare-tab.active { color: #fff; background: var(--accent); border-color: var(--accent); }
/* Stack all tab panels in one grid cell so the block sizes to the tallest —
   switching tabs never changes height, no layout shift. */
.vs-compare-stage { display: grid; }
.vs-compare-slide { grid-area: 1 / 1; visibility: hidden; }
.vs-compare-slide.active { visibility: visible; }
.vs-compare-q {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 12px; padding: 16px 20px; margin-bottom: 18px;
}
.vs-compare-q-tag {
  flex-shrink: 0; font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); background: rgba(29,104,255,0.08);
  padding: 5px 9px; border-radius: 6px;
}
.vs-compare-q p { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.vs-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.vs-panel {
  border: 1px solid var(--hairline); border-radius: 14px;
  background: var(--surface); display: flex; flex-direction: column; overflow: hidden;
}
.vs-panel-us { border-color: rgba(29,104,255,0.35); box-shadow: 0 10px 34px rgba(29,104,255,0.08); }
.vs-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--hairline);
}
.vs-panel-name { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink); }
.vs-panel-them .vs-panel-name { color: var(--ink-3); }
.vs-panel-them .vs-panel-name svg { color: var(--ink-4); }
.vs-panel-us .vs-panel-name svg { color: var(--accent); }
.vs-panel-badge { font-size: 10px; padding: 4px 9px; border-radius: 20px; font-weight: 600; }
.vs-panel-badge.warn { color: #B45309; background: rgba(245,158,11,0.12); }
.vs-panel-badge.ok { color: var(--accent); background: rgba(29,104,255,0.10); }
.vs-panel-body { padding: 16px; flex: 1; }
.vs-panel-body > p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--ink-2); }
.vs-panel-them .vs-panel-body > p { color: var(--ink-3); }
.vs-panel-flags { display: flex; flex-direction: column; gap: 7px; padding: 0 16px 16px; }
.vs-panel-flags span { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-4); }
.vs-panel-flags svg { color: #CBD5E1; flex-shrink: 0; }
.vs-src {
  margin-top: 14px; border-left: 2px solid rgba(29,104,255,0.30);
  padding: 10px 0 10px 12px; background: rgba(29,104,255,0.03);
  border-radius: 0 8px 8px 0;
}
.vs-src-head { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.vs-src-row { display: flex; gap: 10px; font-size: 12px; margin-bottom: 5px; }
.vs-src-row:last-child { margin-bottom: 0; }
.vs-src-code { font-family: var(--mono); font-weight: 600; color: var(--ink); flex-shrink: 0; }
.vs-src-row span:last-child { color: var(--ink-3); }
.vs-panel-risk, .vs-panel-confirm {
  display: flex; align-items: flex-start; gap: 7px; font-size: 12px; line-height: 1.5;
  margin-top: 10px; padding: 9px 11px; border-radius: 8px;
}
.vs-panel-risk { color: #B45309; background: rgba(245,158,11,0.08); }
.vs-panel-confirm { color: var(--accent); background: rgba(29,104,255,0.06); }
.vs-panel-risk svg, .vs-panel-confirm svg { flex-shrink: 0; margin-top: 2px; }
@media (max-width: 760px) {
  .vs-compare-grid { grid-template-columns: 1fr; }
  .vs-compare-q { flex-direction: column; align-items: flex-start; gap: 9px; }
}

.vs-table {
  border: 1px solid var(--hairline);
  border-radius: 4px; overflow: hidden;
  background: var(--surface);
}
.vs-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}
.vs-row:last-child { border-bottom: 0; }
.vs-row.vs-head { background: var(--surface-2); }
.vs-cell {
  padding: 16px 20px; font-size: 13px; color: var(--ink-2);
  display: flex; align-items: center;
  border-right: 1px solid var(--hairline);
  line-height: 1.5;
}
.vs-cell:last-child { border-right: 0; }
.vs-cell.vs-lbl {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-family: var(--mono, monospace);
}
.vs-cell.vs-them { color: var(--ink-3); }
.vs-cell.vs-us {
  color: var(--ink);
  background: color-mix(in srgb, var(--primary, #2d6a4f) 5%, transparent);
}
.vs-row.vs-head .vs-cell.vs-them,
.vs-row.vs-head .vs-cell.vs-us {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600;
}
.vs-row.vs-head .vs-cell.vs-us { color: var(--primary, #2d6a4f); }
.vs-cell-tag { display: none; }
/* Mobile: each row becomes a self-labeled card (title bar + 通用AI / Casentra
   tagged values) so it's clear which value belongs to which side. */
@media (max-width: 720px) {
  .vs-table { border: 0; border-radius: 0; background: transparent; overflow: visible; }
  .vs-row {
    grid-template-columns: 1fr;
    border: 1px solid var(--hairline); border-radius: 12px;
    background: var(--surface); margin-bottom: 12px; overflow: hidden;
  }
  .vs-row:last-child { margin-bottom: 0; border-bottom: 1px solid var(--hairline); }
  .vs-row.vs-head { display: none; }
  .vs-cell { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 12px 16px; }
  .vs-row > .vs-cell:last-child { border-bottom: 0; }
  .vs-cell.vs-lbl {
    font-family: var(--sans); font-size: 13px; font-weight: 600;
    letter-spacing: 0.02em; text-transform: none; color: var(--ink);
    background: var(--surface-2);
  }
  .vs-cell.vs-them, .vs-cell.vs-us { flex-direction: column; align-items: flex-start; gap: 5px; }
  .vs-cell-tag {
    display: inline-block; font-family: var(--mono);
    font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  }
  .vs-cell.vs-them .vs-cell-tag { color: var(--ink-4); }
  .vs-cell.vs-us .vs-cell-tag { color: var(--accent); }
}

/* ===== TESTIMONIALS placeholder ===== */
.testimonials { padding: 80px 0; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .t-grid { grid-template-columns: 1fr; } }
.t-card {
  padding: 28px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 4px;
  position: relative;
  min-height: 220px;
}
.t-card.placeholder { opacity: 0.85; }
.t-quote-mark {
  font-family: var(--serif); font-size: 48px;
  color: color-mix(in srgb, var(--primary, #2d6a4f) 25%, transparent);
  line-height: 1; margin-bottom: 8px;
}
.t-lines { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.t-lines span {
  height: 8px; background: var(--hairline); border-radius: 2px;
}
.t-lines span:nth-child(2) { width: 92%; }
.t-lines span:nth-child(3) { width: 78%; }
.t-meta { display: flex; align-items: center; gap: 10px; }
.t-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--hairline); }
.t-name-line { width: 80px; height: 8px; background: var(--hairline); border-radius: 2px; margin-bottom: 4px; }
.t-role-line { width: 110px; height: 6px; background: var(--hairline); border-radius: 2px; opacity: 0.6; }
.t-stamp {
  position: absolute; top: 16px; right: 16px;
  font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary, #2d6a4f); font-family: var(--mono, monospace);
  padding: 3px 7px;
  border: 1px solid color-mix(in srgb, var(--primary, #2d6a4f) 30%, transparent);
  border-radius: 2px;
}

/* ===== STILL QUESTIONS (FAQ page) ===== */
.still-q { padding: 40px 0 80px; }
.still-q-card {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
  padding: 32px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.still-q-card h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  margin: 0 0 6px; color: var(--ink);
}
.still-q-card p { margin: 0; font-size: 13px; color: var(--ink-3); }
.still-q-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--ink-2);
}
.btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* ======================================================================
   DEEP PAGE SECTIONS
   ====================================================================== */

/* Live demo */
.kqa-live { padding: 80px 0; background: var(--surface-2); }
.live-demo {
  max-width: 880px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 6px; overflow: hidden;
}
.live-demo-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.ld-tag {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); font-family: var(--mono, monospace);
}
.ld-replay {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 11px;
  background: transparent; border: 1px solid var(--hairline);
  color: var(--ink-2); border-radius: 999px; cursor: pointer;
  font-family: var(--mono, monospace);
}
.ld-replay:hover { color: var(--primary, #2d6a4f); border-color: var(--primary, #2d6a4f); }
.live-demo-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.ld-msg { display: flex; gap: 12px; transition: opacity .5s, transform .5s; }
.ld-hidden { opacity: 0; transform: translateY(8px); pointer-events: none; height: 0; overflow: hidden; }
.ld-shown { opacity: 1; transform: translateY(0); }
.ld-avatar {
  flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--hairline);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  font-family: var(--mono, monospace);
}
.ld-user .ld-avatar { background: color-mix(in srgb, var(--primary, #2d6a4f) 12%, transparent); color: var(--primary, #2d6a4f); border-color: color-mix(in srgb, var(--primary, #2d6a4f) 30%, transparent); }
.ld-bubble { flex: 1; }
.ld-meta {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 6px; font-family: var(--mono, monospace);
}
.ld-text { font-size: 14px; line-height: 1.65; color: var(--ink-1); }
.ld-sources {
  margin-top: 12px; padding: 12px 14px;
  background: var(--surface-2); border-radius: 4px;
  border-left: 2px solid var(--primary, #2d6a4f);
}
.ld-sources-head {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary, #2d6a4f); margin-bottom: 8px;
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono, monospace);
}
.ld-source-row {
  display: flex; gap: 12px; padding: 4px 0;
  font-size: 12px; line-height: 1.5;
}
.ld-source-code { color: var(--ink-1); font-weight: 600; flex-shrink: 0; min-width: 140px; font-family: var(--mono, monospace); font-size: 11px; }
.ld-source-note { color: var(--ink-3); }
.ld-risk, .ld-confirm {
  margin-top: 10px; padding: 8px 12px;
  font-size: 12px; line-height: 1.5;
  display: flex; align-items: flex-start; gap: 8px;
  border-radius: 3px;
}
.ld-risk { background: color-mix(in srgb, var(--primary) 8%, transparent); color: var(--primary); }
.ld-confirm { background: color-mix(in srgb, var(--primary, #2d6a4f) 8%, transparent); color: var(--primary, #2d6a4f); }
.ld-input-row {
  display: flex; gap: 8px;
  padding-top: 12px; border-top: 1px dashed var(--hairline); margin-top: 4px;
}
.ld-input {
  flex: 1; padding: 10px 14px;
  border: 1px solid var(--hairline); border-radius: 4px;
  background: var(--surface-2); font-size: 13px; color: var(--ink-3);
}
.ld-send {
  width: 40px; height: 40px;
  border: 1px solid var(--hairline); background: var(--surface-2);
  border-radius: 4px; cursor: not-allowed; color: var(--ink-3);
  display: grid; place-items: center;
}

/* Taxonomy grid */
.taxonomy { padding: 80px 0; }
.tax-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: 4px; overflow: hidden;
}
@media (max-width: 1100px) { .tax-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .tax-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .tax-grid { grid-template-columns: 1fr; } }
.tax-card {
  background: var(--surface); padding: 24px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .2s;
}
.tax-card:hover { background: var(--surface-2); }
.tax-icon {
  width: 32px; height: 32px; border-radius: 3px;
  background: var(--primary-tint, color-mix(in srgb, var(--primary, #2d6a4f) 10%, transparent));
  color: var(--primary, #2d6a4f);
  display: grid; place-items: center; margin-bottom: 4px;
}
.tax-card h4 { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); margin: 0; }
.tax-card p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--ink-3); }

/* How answers built */
.how-built { padding: 80px 0; background: var(--surface-2); }
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .how-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .how-grid { grid-template-columns: 1fr; } }
.how-step {
  padding: 28px 24px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 4px;
  position: relative;
}
.how-num {
  font-family: var(--mono, monospace); font-size: 11px;
  color: var(--primary, #2d6a4f); letter-spacing: 0.15em; margin-bottom: 14px;
}
.how-step h4 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0 0 8px; color: var(--ink); }
.how-step p { margin: 0; font-size: 12px; line-height: 1.65; color: var(--ink-3); }

/* Boundaries */
.boundaries { padding: 80px 0; }
.bnd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .bnd-grid { grid-template-columns: 1fr; } }
.bnd-col {
  padding: 32px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 4px;
}
.bnd-col-head {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 600; padding-bottom: 16px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 16px; font-family: var(--mono, monospace);
}
.bnd-can .bnd-col-head { color: var(--primary, #2d6a4f); }
.bnd-cannot .bnd-col-head { color: var(--ink-3); }
.bnd-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.bnd-col li {
  font-size: 13px; line-height: 1.6; color: var(--ink-2);
  padding-left: 20px; position: relative;
}
.bnd-can li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--primary, #2d6a4f); font-weight: 700;
}
.bnd-cannot li::before {
  content: "—"; position: absolute; left: 0; top: 0;
  color: var(--ink-3); font-weight: 700;
}

/* Lifecycle */
.lifecycle { padding: 80px 0; background: var(--surface-2); }
.lc-track { max-width: 720px; margin: 0 auto; }
.lc-step { display: flex; gap: 20px; padding-bottom: 8px; }
.lc-marker {
  flex-shrink: 0; width: 16px;
  display: flex; flex-direction: column; align-items: center;
}
.lc-dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--primary, #2d6a4f);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--primary, #2d6a4f);
  margin-top: 6px;
}
.lc-line {
  flex: 1; width: 1px; min-height: 32px;
  background: var(--hairline); margin: 4px 0;
}
.lc-content { flex: 1; padding-bottom: 28px; }
.lc-day {
  font-family: var(--mono, monospace); font-size: 11px;
  color: var(--primary, #2d6a4f); letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 4px;
}
.lc-content h4 { font-family: var(--serif); font-size: 19px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.lc-content p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--ink-3); }

/* Inputs supported */
.inputs { padding: 80px 0; }
.in-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 4px; overflow: hidden; }
@media (max-width: 880px) { .in-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .in-grid { grid-template-columns: 1fr; } }
.in-card {
  padding: 24px; background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
}
.in-icon {
  width: 32px; height: 32px; border-radius: 3px;
  background: var(--primary-tint, color-mix(in srgb, var(--primary, #2d6a4f) 10%, transparent));
  color: var(--primary, #2d6a4f);
  display: grid; place-items: center; margin-bottom: 4px;
}
.in-card h4 { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ink); margin: 0 0 8px; }
.in-meta { display: flex; flex-direction: column; gap: 6px; }
.in-row { display: flex; justify-content: space-between; font-size: 11px; }
.in-lbl { color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; font-family: var(--mono, monospace); }
.in-val { color: var(--ink-1); font-family: var(--mono, monospace); }

/* Anatomy */
.anatomy { padding: 80px 0; background: var(--surface-2); }
.ana-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .ana-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ana-grid { grid-template-columns: 1fr; } }
.ana-card {
  padding: 24px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: 4px;
}
.ana-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
.ana-icon {
  width: 30px; height: 30px; border-radius: 3px;
  border: 1px solid currentColor;
  display: grid; place-items: center;
}
.ana-card h4 { font-family: var(--serif); font-size: 18px; font-weight: 500; margin: 0; color: var(--ink); }
.ana-examples { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ana-examples li {
  font-size: 12px; line-height: 1.5; color: var(--ink-2);
  padding: 8px 12px;
  background: var(--surface-2);
  border-radius: 3px;
  font-family: var(--mono, monospace);
}

/* ===== SIGIL HEADER (capabilities page) ===== */
.sigil-head {
  display: grid;
  grid-template-columns: auto auto 1fr;
  grid-template-rows: auto auto auto;
  align-items: center;
  column-gap: 18px;
  margin-bottom: 64px;
  max-width: 920px;
}
.sigil-num {
  grid-row: 1; grid-column: 1;
  font-family: var(--mono, monospace);
  font-size: 12px; letter-spacing: 0.12em;
  color: var(--ink-3);
  font-weight: 600;
}
.sigil-line {
  grid-row: 1; grid-column: 2 / 4;
  height: 1px; background: var(--hairline); width: 100%;
}
.sigil-eyebrow {
  grid-row: 2; grid-column: 1 / 4;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary, #2d6a4f);
  font-family: var(--mono, monospace);
  font-weight: 600;
  margin-top: 18px;
}
.sigil-title {
  grid-row: 3; grid-column: 1 / 4;
  font-family: var(--serif);
  font-size: clamp(32px, 4.4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin: 12px 0 16px 0;
}
.sigil-title em { font-style: italic; color: var(--primary, #2d6a4f); font-weight: 500; }
.sigil-sub {
  grid-row: 4; grid-column: 1 / 4;
  font-size: 14px; line-height: 1.6;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0;
}
.sigil-light .sigil-num { color: rgba(255,255,255,0.5); }
.sigil-light .sigil-line { background: rgba(255,255,255,0.15); }
.sigil-light .sigil-eyebrow { color: #8fdab4; }
.sigil-light .sigil-title { color: #fff; }
.sigil-light .sigil-title em { color: #8fdab4; }
.sigil-light .sigil-sub { color: rgba(255,255,255,0.72); }

/* ===== CAPABILITIES PAGE: 1. RESEARCH FOUNDATION ===== */
.research-foundation { padding: 112px 0 96px; }

.rf-fieldwork {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  padding: 28px 32px 0;
  margin-bottom: 64px;
  overflow: hidden;
}
.rf-fw-track {
  position: relative;
  height: 140px;
  margin-bottom: 8px;
}
.rf-fw-line {
  position: absolute; left: 0; right: 0; bottom: 28px;
  height: 1px; background: var(--hairline);
}
.rf-fw-tick {
  position: absolute; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--mono, monospace);
  font-size: 10px; color: var(--ink-3); letter-spacing: 0.06em;
}
.rf-fw-tick:nth-child(1) { left: 5.5%; }
.rf-fw-tick:nth-child(2) { left: 16.6%; }
.rf-fw-tick:nth-child(3) { left: 27.7%; }
.rf-fw-tick:nth-child(4) { left: 38.8%; }
.rf-fw-tick:nth-child(5) { left: 50%; }
.rf-fw-tick:nth-child(6) { left: 61.1%; }
.rf-fw-tick:nth-child(7) { left: 72.2%; }
.rf-fw-tick:nth-child(8) { left: 83.3%; }
.rf-fw-tick:nth-child(9) { left: 94.4%; }
.rf-fw-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
  box-shadow: 0 0 0 3px var(--surface);
  margin-bottom: -3px;
}
.rf-fw-band {
  position: absolute;
  height: 26px;
  border-radius: 13px;
  display: flex; align-items: center; padding: 0 14px;
  font-size: 11px; letter-spacing: 0.06em;
  font-family: var(--mono, monospace);
  font-weight: 600;
  white-space: nowrap;
  animation: rfBand 1s ease-out both;
  transform-origin: left center;
}
@keyframes rfBand { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
.rf-fw-b1 { top: 18px; background: color-mix(in srgb, var(--primary, #2d6a4f) 14%, transparent); color: var(--primary, #2d6a4f); animation-delay: .1s; }
.rf-fw-b2 { top: 56px; background: color-mix(in srgb, var(--ivory, #f3ecdc) 60%, var(--primary, #2d6a4f) 8%); color: var(--ink); border: 1px solid color-mix(in srgb, var(--primary, #2d6a4f) 18%, transparent); animation-delay: .35s; }
.rf-fw-b3 { top: 92px; background: var(--ink); color: #fff; animation-delay: .6s; }

.rf-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  margin: 0 -32px;
}
.rf-stat {
  padding: 32px 28px;
  border-right: 1px solid var(--hairline);
  display: flex; flex-direction: column; gap: 8px;
}
.rf-stat:last-child { border-right: 0; }
.rf-stat-n {
  font-family: var(--serif);
  font-size: 60px; line-height: 1;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.rf-stat-lbl { font-size: 13px; color: var(--ink); font-weight: 600; margin-top: 4px; }
.rf-stat-sub {
  font-size: 11px; color: var(--ink-3);
  font-family: var(--mono, monospace);
  letter-spacing: 0.04em; line-height: 1.5;
}
@media (max-width: 880px) {
  .rf-stats { grid-template-columns: repeat(2, 1fr); }
  .rf-stat { border-bottom: 1px solid var(--hairline); }
  .rf-stat:nth-child(2n) { border-right: 0; }
  .rf-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .rf-fw-track { height: 130px; font-size: 9px; }
}

.rf-insights { display: flex; flex-direction: column; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 6px; overflow: hidden; }
.rf-insight {
  display: grid;
  grid-template-columns: 100px 1fr 40px 1fr;
  gap: 24px;
  padding: 28px 32px;
  background: var(--surface);
  align-items: start;
  transition: background .25s ease;
}
.rf-insight:hover { background: color-mix(in srgb, var(--primary, #2d6a4f) 3%, var(--surface)); }
.rf-num {
  font-family: var(--mono, monospace);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 4px;
}
.rf-find, .rf-resp { display: flex; flex-direction: column; gap: 6px; }
.rf-side-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-family: var(--mono, monospace);
}
.rf-side-label-resp { color: var(--primary, #2d6a4f); }
.rf-find h4, .rf-resp h4 {
  font-family: var(--serif);
  font-size: 19px; font-weight: 500;
  margin: 0; color: var(--ink); line-height: 1.35;
}
.rf-find p, .rf-resp p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.rf-arrow {
  display: flex; align-items: center; justify-content: center;
  color: var(--primary, #2d6a4f);
  padding-top: 28px;
}
@media (max-width: 880px) {
  .rf-insight { grid-template-columns: 1fr; gap: 12px; }
  .rf-arrow { display: none; }
}

/* ===== CAPABILITIES PAGE: 2. MODALITY MATRIX ===== */
.modality-matrix { padding: 112px 0 96px; }
.mm-radial {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 1 / 1;
  margin: 0 auto 48px;
}
.mm-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mm-core-bg { fill: var(--ink); }
.mm-ring { fill: none; stroke: var(--hairline); stroke-dasharray: 2 4; }
.mm-ring-2 { stroke: color-mix(in srgb, var(--primary, #2d6a4f) 20%, transparent); }
.mm-spoke { stroke: var(--hairline); stroke-width: 1; transition: stroke .3s; }
.mm-spoke-on { stroke: var(--primary, #2d6a4f); stroke-width: 2; }
.mm-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 116px; height: 116px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}
.mm-core-inner { text-align: center; }
.mm-core-eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-family: var(--mono, monospace);
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.mm-core-label {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  font-style: italic;
}
.mm-core-hint { display: none; }
/* zh label is now a Chinese word ("檔案") — serif+italic would faux-slant CJK; render clean sans upright */
:lang(zh) .mm-core-label { font-family: var(--sans); font-style: normal; font-weight: 600; }
.mm-sat {
  position: absolute; top: 50%; left: 50%;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 16px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 8px;
  cursor: pointer;
  transition: all .25s ease;
  font-size: 13px; color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.mm-sat:hover, .mm-sat-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translate(var(--tx, 0), var(--ty, 0)) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.mm-sat-on { color: #fff; }
.mm-sat svg { color: var(--primary, #2d6a4f); }
.mm-sat-on svg { color: #fff; }
.mm-detail {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 6px;
  padding: 28px 32px;
  max-width: 920px; margin: 0 auto;
}
.mm-detail-tag {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary, #2d6a4f); font-family: var(--mono, monospace);
  font-weight: 600; margin-bottom: 6px;
}
.mm-detail h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  margin: 0 0 18px 0; color: var(--ink);
}
.mm-detail-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.mm-detail-lbl {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); font-family: var(--mono, monospace);
  margin-bottom: 6px;
}
.mm-detail p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 720px) {
  .mm-sat { font-size: 11px; padding: 8px 10px; }
  .mm-detail-row { grid-template-columns: 1fr; }
}
/* Narrow screens: the fixed-radius radial can't fit — collapse to a stacked
   layout (core becomes a header chip, modalities become a 2-col grid). */
@media (max-width: 520px) {
  .mm-radial {
    aspect-ratio: auto; max-width: 100%; height: auto; margin: 0 auto 28px;
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  }
  .mm-svg { display: none; }
  .mm-core {
    position: static; transform: none; width: 100%; height: auto;
    border-radius: 14px; padding: 18px 20px; box-shadow: none; margin-bottom: 4px;
    text-align: left;
  }
  .mm-core-inner { text-align: left; display: flex; flex-direction: column; gap: 2px; }
  .mm-core-eyebrow { margin-bottom: 0; }
  .mm-core-label { font-size: 20px; }
  .mm-core-hint {
    display: block; margin-top: 6px;
    font-size: 12px; line-height: 1.5; font-style: normal;
    color: rgba(255,255,255,0.62);
  }
  .mm-sat {
    position: static !important; transform: none !important;
    flex-direction: row; gap: 8px; width: calc(50% - 5px); justify-content: center;
  }
  .mm-sat:hover, .mm-sat-on { transform: none !important; }
}

/* ===== CAPABILITIES PAGE: 3. DESIGN CHOICES (TINTED) ===== */
.design-choices {
  position: relative;
  padding: 112px 0 96px;
  background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--primary, #2d6a4f) 6%, var(--surface)) 50%, var(--surface) 100%);
  overflow: hidden;
}
.dc-bg { position: absolute; inset: 0; pointer-events: none; }
.dc-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--primary, #2d6a4f) 10%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--primary, #2d6a4f) 10%, transparent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}
.dc-bg-glow {
  position: absolute;
  width: 800px; height: 800px;
  top: -200px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--primary, #2d6a4f) 14%, transparent) 0%, transparent 60%);
  filter: blur(40px);
}
.design-choices .wrap { position: relative; z-index: 1; }

/* sigil on tinted bg keeps default colors */
.design-choices .sigil-light .sigil-num { color: var(--ink-3); }
.design-choices .sigil-light .sigil-line { background: var(--hairline); }
.design-choices .sigil-light .sigil-eyebrow { color: var(--primary, #2d6a4f); }
.design-choices .sigil-light .sigil-title { color: var(--ink); }
.design-choices .sigil-light .sigil-title em { color: var(--primary, #2d6a4f); }
.design-choices .sigil-light .sigil-sub { color: var(--ink-2); }

.dc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.dc-card {
  border: 1px solid var(--hairline);
  background: var(--surface);
  border-radius: 8px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: all .3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.dc-card:hover {
  border-color: color-mix(in srgb, var(--primary, #2d6a4f) 35%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.06);
}
.dc-num {
  font-family: var(--mono, monospace);
  font-size: 11px; letter-spacing: 0.14em;
  color: var(--ink-3);
}
.dc-pair { display: grid; grid-template-columns: 1fr 32px 1fr; gap: 12px; align-items: stretch; }
.dc-we, .dc-them { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 6px; }
.dc-we {
  background: color-mix(in srgb, var(--primary, #2d6a4f) 8%, transparent);
  border-left: 2px solid var(--primary, #2d6a4f);
}
.dc-them {
  background: var(--surface-2);
  border-left: 2px solid var(--ink-3);
  opacity: 0.85;
}
.dc-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  font-family: var(--mono, monospace); font-weight: 600;
}
.dc-tag-we { color: var(--primary, #2d6a4f); }
.dc-tag-them { color: var(--ink-3); }
.dc-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary, #2d6a4f);
  box-shadow: 0 0 6px color-mix(in srgb, var(--primary, #2d6a4f) 60%, transparent);
  animation: dcPulse 2s ease-in-out infinite;
}
@keyframes dcPulse { 50% { opacity: 0.4; } }
.dc-we h4, .dc-them h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  margin: 0; color: var(--ink); line-height: 1.35;
}
.dc-we p, .dc-them p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.dc-vs {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono, monospace); font-size: 11px; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.dc-why {
  display: flex; gap: 12px; align-items: baseline;
  padding-top: 16px;
  border-top: 1px solid var(--hairline);
  font-size: 13px; line-height: 1.55; color: var(--ink-2);
  font-style: italic;
}
.dc-why-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary, #2d6a4f); font-family: var(--mono, monospace);
  flex-shrink: 0; font-style: normal; font-weight: 600;
}
@media (max-width: 880px) {
  .dc-grid { grid-template-columns: 1fr; }
  .dc-pair { grid-template-columns: 1fr; gap: 8px; }
  .dc-vs { padding: 4px 0; }
}

/* ===== CAPABILITIES PAGE: 4. CAPABILITY BY ROLE ===== */
.capability-by-role { padding: 112px 0 96px; }
.cbr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cbr-col {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 24px;
}
.cbr-col-head {
  display: flex; flex-direction: column; gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--hairline);
  position: relative;
}
.cbr-col-tag {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--primary, #2d6a4f);
  font-family: var(--mono, monospace); font-weight: 600;
}
.cbr-col-tag-manager { color: var(--ink-3); }
.cbr-col-head h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  margin: 0; color: var(--ink);
}
.cbr-status {
  position: absolute; top: 0; right: 0;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
  font-family: var(--mono, monospace);
  padding: 4px 10px;
  border: 1px dashed var(--hairline);
  border-radius: 12px;
}

.cbr-clock-wrap { display: flex; justify-content: center; padding: 8px 0 4px; }
.cbr-clock { width: 100%; max-width: 280px; height: auto; }
.cbr-clock-ring { fill: none; stroke: var(--hairline); stroke-width: 1; }
.cbr-clock-ring-inner { stroke-dasharray: 2 4; }
.cbr-tick { stroke: var(--ink-3); stroke-width: 1; opacity: 0.4; }
.cbr-pt {
  fill: var(--surface);
  stroke: var(--primary, #2d6a4f);
  stroke-width: 2;
  transition: all .3s;
}
.cbr-pt-on {
  fill: var(--primary, #2d6a4f);
  filter: drop-shadow(0 0 6px rgba(45,106,79,0.5));
}
.cbr-clock-c1 {
  text-anchor: middle;
  font-family: var(--serif); font-size: 12px; fill: var(--ink-3);
}
.cbr-clock-c2 {
  text-anchor: middle;
  font-family: var(--mono, monospace); font-size: 9px; fill: var(--ink-3);
  letter-spacing: 0.06em;
}

.cbr-timeline { display: flex; flex-direction: column; gap: 4px; }
.cbr-moment {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  padding: 14px 12px;
  border-radius: 4px;
  border: none; background: transparent;
  text-align: left; cursor: pointer;
  transition: all .25s;
  border-bottom: 1px dashed var(--hairline);
}
.cbr-moment:last-child { border-bottom: 0; }
.cbr-moment:hover, .cbr-moment-on {
  background: color-mix(in srgb, var(--primary, #2d6a4f) 5%, transparent);
}
.cbr-time {
  font-family: var(--mono, monospace);
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-3); padding-top: 4px;
}
.cbr-moment-on .cbr-time { color: var(--primary, #2d6a4f); font-weight: 600; }
.cbr-act { display: flex; flex-direction: column; gap: 8px; }
.cbr-act h4 {
  font-family: var(--serif); font-size: 16px; font-weight: 500;
  margin: 0; color: var(--ink); line-height: 1.4;
}
.cbr-cap-pill {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--primary, #2d6a4f) 8%, transparent);
  color: var(--primary, #2d6a4f);
  border-radius: 12px;
  font-size: 10px; letter-spacing: 0.06em;
  font-family: var(--mono, monospace);
}

.cbr-col-manager { opacity: 0.85; }
.cbr-mgr-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cbr-mgr-card {
  padding: 14px;
  background: var(--surface-2);
  border-radius: 4px;
  border: 1px dashed var(--hairline);
  display: flex; flex-direction: column; gap: 4px;
}
.cbr-mgr-num {
  font-family: var(--mono, monospace);
  font-size: 10px; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.cbr-mgr-card h4 {
  font-family: var(--serif); font-size: 14px; font-weight: 500;
  margin: 0; color: var(--ink-2); line-height: 1.35;
}
.cbr-mgr-card p { margin: 0; font-size: 11px; line-height: 1.45; color: var(--ink-3); }
.cbr-mgr-note {
  font-size: 12px; line-height: 1.5; color: var(--ink-3);
  padding: 12px 14px;
  background: var(--surface-2);
  border-left: 2px solid var(--ink-3);
  border-radius: 3px;
  font-style: italic;
}
@media (max-width: 880px) {
  .cbr-cols { grid-template-columns: 1fr; }
  .cbr-mgr-grid { grid-template-columns: 1fr; }
  .cbr-moment { grid-template-columns: 1fr; gap: 4px; }
}


/* ======================================================================
   FAQ / Operate page
   ====================================================================== */

/* === 30-second Quick Start === */
.quick-start { padding: 80px 0 60px; }
.qs-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  margin-top: 40px;
}
@media (max-width: 880px) {
  .qs-row { grid-template-columns: 1fr; gap: 12px; }
  .qs-arrow { display: none; }
}
.qs-step {
  position: relative;
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.qs-step:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px -16px rgba(10,19,48,0.18);
  border-color: var(--line-strong);
}
.qs-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-4);
  margin-bottom: 16px;
}
.qs-icon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--primary-tint);
  color: var(--primary);
  margin-bottom: 18px;
}
.qs-step h4 {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.2;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}
.qs-step p {
  font-size: 14px; line-height: 1.6;
  color: var(--ink-3);
  margin: 0;
}
.qs-arrow {
  display: grid; place-items: center;
  color: var(--ink-4);
  padding: 0 12px;
}

/* === Usage Guide (placeholder) === */
.usage-guide { padding: 60px 0; background: var(--surface-2); }
.ug-mobile-note {
  display: none;
  margin: 4px 0 0; padding: 14px 20px 0;
  font-size: 13px; line-height: 1.6; color: var(--ink-3);
  border-top: 1px solid var(--hairline);
}
.ug-mobile-note a { color: var(--primary); font-weight: 500; }
.ug-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
@media (max-width: 880px) {
  /* Mobile: nobody browses 11 tutorials on a phone. Show just the overview
     video; point power users to the full guide on desktop. */
  .ug-shell {
    display: block;
    border: 1px solid var(--hairline); border-radius: 12px;
    background: var(--surface); overflow: hidden;
  }
  .ug-toc { display: none; }
  .ug-chapter-foot { display: none; }
  .ug-chapter-meta { display: none; }
  .ug-mobile-note { display: block; }
}
.ug-toc {
  background: var(--surface-2);
  border-right: 1px solid var(--hairline);
  padding: 24px 0;
}
.ug-toc-head {
  padding: 0 24px 14px;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 8px;
}
.ug-toc-list {
  list-style: none; padding: 0; margin: 0;
}
.ug-toc-list li {
  margin: 0;
}
.ug-toc-btn {
  display: flex; gap: 12px; align-items: baseline;
  width: 100%;
  padding: 11px 24px;
  font-size: 13px; color: var(--ink-3);
  border: none; background: transparent;
  border-left: 2px solid transparent;
  cursor: pointer;
  line-height: 1.45;
  text-align: left;
  font-family: inherit;
  transition: background 140ms ease, color 140ms ease;
}
.ug-toc-btn:hover {
  background: rgba(0, 0, 0, 0.025);
  color: var(--ink);
}
.ug-toc-btn.active {
  background: var(--surface);
  border-left-color: var(--primary);
  color: var(--ink);
  font-weight: 500;
}
.ug-toc-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
}
.ug-toc-n {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  flex-shrink: 0;
}
.ug-toc-btn.active .ug-toc-n { color: var(--primary); }
.ug-toc-t { flex: 1; }

.ug-body {
  padding: 48px 56px;
  min-height: 460px;
}
@media (max-width: 720px) {
  .ug-body { padding: 32px 24px; }
}

/* Per-chapter view */
.ug-chapter {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ug-chapter-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.ug-chapter-n {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ug-chapter-of {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
}
.ug-chapter-tag {
  margin-left: auto;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.ug-chapter-title {
  font-family: var(--serif);
  font-size: 28px; line-height: 1.25;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink);
}
.ug-chapter-blurb {
  font-size: 14.5px; line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 28px;
  text-wrap: pretty;
}
.ug-chapter-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.ug-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 12px;
  font-family: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 140ms ease;
}
.ug-nav-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.ug-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ug-nav-btn:first-child svg { transform: rotate(180deg); }
.ug-nav-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.ug-nav-btn.primary:hover:not(:disabled) {
  background: var(--primary-deep, var(--primary));
  color: #fff;
}
.ug-nav-btn.primary:disabled {
  background: var(--ink-5, #e5e7eb);
  color: var(--ink-4);
  border-color: var(--line);
}
.ug-placeholder {
  max-width: 540px;
  text-align: center;
}
.ug-placeholder-icon {
  width: 64px; height: 64px;
  border-radius: 4px;
  background: var(--primary-tint);
  color: var(--primary);
  display: grid; place-items: center;
  margin: 0 auto 20px;
}
.ug-placeholder-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 16px;
}
.ug-placeholder h3 {
  font-family: var(--serif);
  font-size: 26px; line-height: 1.2;
  font-weight: 500;
  margin: 0 0 12px;
}
.ug-placeholder p {
  font-size: 14px; line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 28px;
}
.ug-placeholder-skeleton {
  display: flex; flex-direction: column; gap: 10px;
  align-items: stretch;
  text-align: left;
  margin-top: 8px;
}
.sk-line {
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--bg-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 2.4s ease infinite;
}
.sk-block {
  height: 60px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--bg-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 2.4s ease infinite;
  margin: 6px 0;
}
.sk-line.w-60 { width: 60%; }
.sk-line.w-70 { width: 70%; }
.sk-line.w-80 { width: 80%; }
.sk-line.w-85 { width: 85%; }
.sk-line.w-90 { width: 90%; }
.sk-line.w-95 { width: 95%; }
@keyframes sk-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === Work Rhythm cards === */
.work-rhythm { padding: 80px 0; }
.wr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 980px) { .wr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wr-grid { grid-template-columns: 1fr; } }
.wr-card {
  position: relative;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.wr-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(10,19,48,0.16);
  border-color: var(--line-strong);
}
.wr-tag {
  display: inline-block;
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--line);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.wr-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  margin-bottom: 14px;
}
.wr-card h4 {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.2;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}
.wr-card p {
  font-size: 14px; line-height: 1.65;
  color: var(--ink-3);
  margin: 0;
}

/* === Grouped FAQ === */
.faq-grouped { padding: 80px 0 60px; }
.fg-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 880px) {
  .fg-shell { grid-template-columns: 1fr; }
}
.fg-nav {
  display: flex; flex-direction: column;
  gap: 8px;
  position: sticky;
  top: 90px;
  align-self: start;
}
@media (max-width: 880px) { .fg-nav { position: static; } }
.fg-nav-btn {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.fg-nav-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.fg-nav-btn.active {
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--primary-tint);
}
.fg-nav-icon {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  flex-shrink: 0;
}
.fg-nav-btn.active .fg-nav-icon {
  background: var(--primary-tint);
  color: var(--primary);
}
.fg-nav-text { flex: 1; min-width: 0; }
.fg-nav-title {
  display: block;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.fg-nav-blurb {
  display: block;
  font-size: 12px; line-height: 1.5;
  color: var(--ink-3);
}
.fg-nav-count {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-4);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 8px;
  flex-shrink: 0;
  align-self: center;
}
.fg-nav-btn.active .fg-nav-count {
  color: var(--primary);
  background: var(--primary-tint);
  border-color: var(--line);
}

.fg-panel {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
}
.fg-panel-head {
  display: flex; align-items: center; gap: 14px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-2);
}
.fg-panel-icon {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border-radius: 4px;
  background: var(--primary-tint);
  color: var(--primary);
  flex-shrink: 0;
}
.fg-panel-head h3 {
  font-family: var(--serif);
  font-size: 22px; line-height: 1.2;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}
.fg-panel-head p {
  font-size: 13px; color: var(--ink-3);
  margin: 0;
}
.fg-list { padding: 0; }
.fg-item { border-bottom: 1px solid var(--hairline); }
.fg-item:last-child { border-bottom: 0; }
.fg-q {
  width: 100%;
  display: flex; align-items: center; gap: 14px;
  background: transparent;
  border: 0;
  padding: 18px 28px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background .2s;
}
.fg-q:hover { background: var(--surface-2); }
.fg-item.open .fg-q { background: var(--surface-2); }
.fg-q-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-4);
  flex-shrink: 0;
}
.fg-q-text {
  flex: 1;
  font-size: 14px; line-height: 1.5;
  color: var(--ink);
  font-weight: 500;
}
.fg-q-chev {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink-3);
  flex-shrink: 0;
}
.fg-item.open .fg-q-chev {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.fg-a {
  padding: 0 28px 22px 70px;
  font-size: 14px; line-height: 1.75;
  color: var(--ink-2);
  background: var(--surface-2);
  border-top: 1px dashed var(--hairline);
  padding-top: 18px;
}

/* === Troubleshooting === */
.troubleshoot { padding: 60px 0 100px; background: var(--surface-2); }
.ts-list {
  display: flex; flex-direction: column;
  gap: 0;
  margin-top: 40px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
}
.ts-row {
  display: grid;
  grid-template-columns: 60px 1fr 28px 1.4fr;
  gap: 16px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--hairline);
  transition: background .2s;
}
.ts-row:last-child { border-bottom: 0; }
.ts-row:hover { background: var(--surface-2); }
@media (max-width: 720px) {
  .ts-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 20px;
  }
  .ts-arrow { display: none; }
}
.ts-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-4);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 4px 8px;
  text-align: center;
  font-weight: 500;
}
.ts-if, .ts-then {
  display: flex; flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.ts-label {
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-4);
}
.ts-if .ts-label { color: var(--ink-3); }
.ts-then .ts-label { color: var(--primary); }
.ts-text {
  font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
}
.ts-then .ts-text { color: var(--ink); font-weight: 500; }
.ts-arrow {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  flex-shrink: 0;
}

/* ======================================================================
   PRICING — Founding Team banner (dark editorial card, before tiers)
   ====================================================================== */
.founding-team-section { padding-top: 0; }
.founding-team-card {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px -32px rgba(10,19,48,0.32);
  position: relative;
  background-image:
    radial-gradient(ellipse 480px 280px at 8% 20%, rgba(59,130,246,0.18), transparent 70%),
    radial-gradient(ellipse 360px 220px at 90% 90%, rgba(29,104,255,0.32), transparent 65%);
}
@media (max-width: 880px) { .founding-team-card { grid-template-columns: 1fr; } }
.founding-team-left {
  padding: 44px 48px;
}
@media (max-width: 720px) { .founding-team-left { padding: 32px 24px; } }
.founding-team-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 18px;
}
.founding-team-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary-soft);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18);
  animation: ft-pulse 2.4s ease-in-out infinite;
}
@keyframes ft-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(59,130,246,0.16); }
  50%      { box-shadow: 0 0 0 8px rgba(59,130,246,0.04); }
}
@media (prefers-reduced-motion: reduce) { .founding-team-dot { animation: none; } }
.founding-team-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: #fff;
}
.founding-team-title em {
  font-style: italic;
  color: var(--primary-soft);
}
.founding-team-blurb {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,0.75);
  margin: 0 0 22px;
  max-width: 56ch;
}
.founding-team-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}
.founding-team-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.55;
  color: rgba(255,255,255,0.88);
}
.founding-team-list li svg {
  color: var(--primary-soft);
  flex-shrink: 0;
  margin-top: 3px;
}
.founding-team-list li strong { color: #fff; font-weight: 600; }
.founding-team-cta {
  background: var(--primary-soft);
  color: #fff;
  border: 0;
}
.founding-team-cta:hover {
  background: #fff;
  color: var(--primary);
}
.founding-team-fineprint {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.5);
  max-width: 56ch;
  line-height: 1.5;
}

.founding-team-right {
  display: flex; align-items: center; justify-content: space-around;
  padding: 44px 32px;
  border-left: 1px solid rgba(255,255,255,0.10);
  position: relative;
}
@media (max-width: 880px) {
  .founding-team-right {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
    padding: 32px 24px;
  }
}
.founding-team-counter {
  text-align: center;
  flex: 1;
}
.founding-team-counter-num {
  font-family: var(--serif);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
.founding-team-counter-pct {
  font-size: 0.45em;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
  font-weight: 400;
}
.founding-team-counter-lbl {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.founding-team-counter-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.10);
  margin: 14px 0;
}
@media (max-width: 880px) {
  .founding-team-counter-divider {
    width: auto; height: 1px;
    margin: 0 14px;
  }
}

/* ======================================================================
   PRICING — tier cards, billing toggle, feature matrix
   ====================================================================== */
.pricing-billing-toggle {
  display: inline-flex;
  margin: 0 auto 36px;
  padding: 4px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  align-items: center;
  gap: 4px;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.pricing-billing-toggle button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 20px;
  background: transparent;
  border: 0; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.pricing-billing-toggle button:hover { color: var(--primary); }
.pricing-billing-toggle button.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(10,19,48,0.06);
}
.pricing-discount-pill {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.04em; font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--line);
  padding: 2px 7px;
  border-radius: 999px;
}

.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
@media (max-width: 1000px) and (min-width: 621px) { .pricing-tier-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
/* Phones: swipe between the three plans as centered cards (billing toggle stays above) */
@media (max-width: 620px) {
  .pricing-tier-grid {
    display: flex; grid-template-columns: none; gap: 14px; max-width: none;
    overflow-x: auto; scroll-snap-type: x mandatory;
    padding: 20px 7vw 16px;
    margin-left: 0; margin-right: 0; scrollbar-width: none;
  }
  .pricing-tier-grid::-webkit-scrollbar { display: none; }
  .pricing-tier { flex: 0 0 auto; width: 86vw; scroll-snap-align: center; }
}

.pricing-tier {
  position: relative;
  display: flex; flex-direction: column;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pricing-tier:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -22px rgba(10,19,48,0.18);
}
.pricing-tier-primary {
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-tint) 0%, var(--surface) 30%);
  box-shadow: 0 18px 40px -22px rgba(29,104,255,0.25);
}
.pricing-tier-primary:hover {
  border-color: var(--primary);
  box-shadow: 0 22px 50px -22px rgba(29,104,255,0.35);
}
.pricing-tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.pricing-tier-name {
  font-family: var(--serif);
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 6px;
}
.pricing-tier-seats {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 22px;
}
.pricing-tier-price {
  display: flex; align-items: baseline; gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 6px;
}
.pricing-tier-currency {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--ink-3);
}
.pricing-tier-amount {
  font-family: var(--serif);
  font-size: 56px; line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.pricing-tier-amount-text {
  font-size: 28px;
  letter-spacing: -0.01em;
}
.pricing-tier-per {
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.pricing-tier-annual-note {
  font-family: var(--mono); font-size: 11px;
  color: var(--primary);
  letter-spacing: 0.04em;
  margin: 4px 0 18px;
  min-height: 16px;
}
.pricing-tier-annual-note-monthly {
  color: var(--ink-4);
}
.pricing-tier-blurb {
  font-size: 13px; line-height: 1.65;
  color: var(--ink-3);
  margin: 14px 0 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--hairline);
}
.pricing-tier-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}
.pricing-tier-features li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 8px 0;
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-2);
  border-bottom: 1px dashed var(--hairline);
}
.pricing-tier-features li:last-child { border-bottom: 0; }
.pricing-tier-features li svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 3px;
}
.pricing-tier-cta {
  width: 100%;
  justify-content: center;
}

.pricing-trial-line {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 32px;
  padding: 14px 24px;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-trial-line svg { color: var(--primary); flex-shrink: 0; }

/* === Pricing feature matrix === */
.pricing-matrix {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  margin-top: 32px;
}
.pricing-matrix-head, .pricing-matrix-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--hairline);
}
.pricing-matrix-row:last-child { border-bottom: 0; }
.pricing-matrix-head {
  background: var(--bg-3);
}
.pricing-matrix-head .pricing-matrix-cell {
  padding: 16px 20px;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-2);
  text-align: center;
}
.pricing-matrix-head .pricing-matrix-cell-lbl { text-align: left; }
.pricing-matrix-head .pricing-matrix-cell-mid { color: var(--primary); }

.pricing-matrix-group {
  grid-column: 1 / -1;
  padding: 14px 20px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-3);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.pricing-matrix-row .pricing-matrix-cell {
  padding: 14px 20px;
  font-size: 13.5px;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--hairline);
}
.pricing-matrix-row .pricing-matrix-cell:last-child { border-right: 0; }
.pricing-matrix-row .pricing-matrix-cell-lbl {
  justify-content: flex-start;
  color: var(--ink);
  font-weight: 500;
  background: var(--surface);
}
.pricing-matrix-row .pricing-matrix-cell-mid {
  background: color-mix(in srgb, var(--primary-tint) 60%, transparent);
}
.pricing-matrix-cell svg { color: var(--primary); }
.pricing-matrix-no { color: var(--ink-4); font-family: var(--mono); }
.pricing-matrix-text { font-family: var(--mono); font-size: 12px; color: var(--ink-2); letter-spacing: 0.02em; }

@media (max-width: 760px) {
  .pricing-matrix-head, .pricing-matrix-row { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .pricing-matrix-head .pricing-matrix-cell, .pricing-matrix-row .pricing-matrix-cell { padding: 12px 10px; font-size: 12px; }
  .pricing-matrix-row .pricing-matrix-cell-lbl { font-size: 12.5px; }
}

/* ======================================================================
   PRICING — Calculator
   ====================================================================== */
.calc-shell {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 0;
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 880px) { .calc-shell { grid-template-columns: 1fr; } }

.calc-input {
  padding: 36px 36px 32px;
  background: var(--surface-2);
  border-right: 1px solid var(--hairline);
}
@media (max-width: 880px) {
  .calc-input { border-right: 0; border-bottom: 1px solid var(--hairline); padding: 28px 24px; }
}
.calc-input-head {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 22px;
}
.calc-input-num {
  font-family: var(--serif);
  font-size: 64px; line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--primary);
}
.calc-input-lbl { font-size: 13px; color: var(--ink-3); }

.calc-slider {
  width: 100%;
  -webkit-appearance: none; appearance: none;
  height: 4px;
  background: var(--hairline);
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  margin: 4px 0 14px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--primary), 0 4px 10px -2px rgba(29,104,255,0.3);
  cursor: grab;
}
.calc-slider::-webkit-slider-thumb:active { cursor: grabbing; }
.calc-slider::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 0 0 1px var(--primary);
  cursor: grab;
}
.calc-slider:focus-visible { box-shadow: 0 0 0 3px var(--primary-tint); }
.calc-input-scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-4);
  margin-bottom: 22px;
}
.calc-input-tier {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.calc-input-tier-lbl {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.calc-input-tier-val {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
}

.calc-output {
  padding: 36px 36px 32px;
  display: flex; flex-direction: column;
  justify-content: center;
}
@media (max-width: 880px) { .calc-output { padding: 28px 24px; } }
.calc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.calc-row-top { margin-bottom: 4px; }
.calc-cell {
  padding: 18px;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  background: var(--bg-2);
}
.calc-cell-primary {
  background: var(--primary-tint);
  border-color: var(--line);
}
.calc-cell-lbl {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.calc-cell-val {
  display: flex; align-items: baseline; gap: 4px;
  font-family: var(--serif);
  font-size: 32px; line-height: 1;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.calc-cell-primary .calc-cell-val { color: var(--primary); }
.calc-cur {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 600;
}
.calc-cell-primary .calc-cur { color: var(--primary); opacity: 0.7; }
.calc-cell-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 8px;
}
.calc-divider { height: 1px; background: var(--hairline); margin: 20px 0; }
.calc-stat { padding: 4px 6px; }
.calc-stat-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.calc-stat-lbl {
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.5;
}

.calc-enterprise {
  text-align: center;
  padding: 16px 8px;
}
.calc-enterprise-icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--line);
}
.calc-enterprise h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.calc-enterprise p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-3);
  max-width: 50ch;
  margin: 0 auto 22px;
}

/* ======================================================================
   PRICING — Comparison bar chart
   ====================================================================== */
.compare-table {
  margin-top: 32px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
}
.compare-group + .compare-group { border-top: 1px solid var(--hairline); }
.compare-group-lbl {
  padding: 12px 24px;
  background: var(--bg-2);
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
}
.compare-row {
  display: grid;
  grid-template-columns: 220px 1fr 110px;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px dashed var(--hairline);
}
.compare-row:last-child { border-bottom: 0; }
@media (max-width: 720px) {
  .compare-row { grid-template-columns: 1fr; gap: 6px; padding: 14px 18px; }
}
.compare-name { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.compare-bar-wrap {
  position: relative;
  height: 12px;
  background: var(--bg-2);
  border-radius: 999px;
  overflow: hidden;
}
.compare-bar {
  height: 100%;
  background: var(--ink-4);
  border-radius: 999px;
  transition: width .3s ease;
  position: relative;
}
.compare-row-generic  .compare-bar { background: var(--ink-4); opacity: 0.55; }
.compare-row-vertical .compare-bar { background: var(--ink-3); opacity: 0.70; }
.compare-row-us       .compare-bar { background: var(--primary); }
.compare-row-us       { background: var(--primary-tint); }
.compare-row-us       .compare-name { color: var(--primary); font-weight: 600; }
.compare-row-us       .compare-price { color: var(--primary); font-weight: 600; }
.compare-bar-cap {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}
.compare-price {
  text-align: right;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.02em;
}
.compare-footnote {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-3);
  line-height: 1.6;
  max-width: 720px;
  font-style: italic;
}

/* ======================================================================
   PRICING — Rationale (4 numbered editorial entries)
   ====================================================================== */
.rationale-list {
  max-width: 880px;
  margin: 32px auto 0;
}
.rationale-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px dashed var(--hairline);
}
.rationale-row:last-child { border-bottom: 0; }
@media (max-width: 720px) { .rationale-row { grid-template-columns: 1fr; gap: 12px; } }
.rationale-num {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding-top: 6px;
}
.rationale-body h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--ink);
}
.rationale-body p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  margin: 0;
  max-width: 64ch;
}

/* ======================================================================
   PRICING — Payback / decision math
   ====================================================================== */
.payback-leadin {
  max-width: 880px;
  margin: 32px auto 40px;
  padding: 24px 28px;
  border-left: 3px solid var(--primary);
  background: var(--primary-tint);
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.payback-leadin em {
  font-style: italic;
  color: var(--primary);
}

.payback-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 56px;
}
@media (max-width: 1000px) { .payback-frames { grid-template-columns: 1fr; } }

.payback-frame {
  display: flex; flex-direction: column;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.payback-frame-num {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.payback-frame-angle {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}
.payback-frame-headline {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--ink);
}
.payback-frame-body {
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-3);
  margin: 0 0 22px;
  flex: 1;
}
.payback-frame-table {
  border-top: 1px dashed var(--hairline);
  padding-top: 10px;
}
.payback-frame-row {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--hairline);
}
.payback-frame-row:last-child { border-bottom: 0; }
.payback-frame-row span:first-child { color: var(--ink-3); }
.payback-frame-row span:last-child {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--ink-2);
}
.payback-frame-row.primary {
  margin-top: 4px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--primary);
  border-bottom: 0;
}
.payback-frame-row.primary span:first-child {
  color: var(--ink);
  font-weight: 600;
}
.payback-frame-row.primary span:last-child {
  color: var(--primary);
  font-size: 16px;
}

/* === Payback interactive === */
.payback-calc {
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 36px 40px;
  position: relative;
  background-image:
    radial-gradient(ellipse 480px 280px at 95% 5%, rgba(59,130,246,0.18), transparent 65%),
    radial-gradient(ellipse 360px 220px at 0% 95%, rgba(29,104,255,0.28), transparent 60%);
  box-shadow: 0 24px 60px -32px rgba(10,19,48,0.32);
}
@media (max-width: 720px) { .payback-calc { padding: 28px 24px; } }

.payback-calc-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.payback-calc-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 600;
  color: var(--primary-soft);
  margin-bottom: 8px;
}
.payback-calc-title {
  font-family: var(--serif);
  font-size: 26px; font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: #fff;
}
.payback-calc-net {
  text-align: right;
  min-width: 220px;
}
.payback-calc-net-lbl {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 6px;
}
.payback-calc-net-val {
  font-family: var(--serif);
  font-size: 44px; line-height: 1;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
}
.payback-calc-net-val.pos { color: var(--primary-soft); }
.payback-calc-net-val.neg { color: #f97070; }
.payback-calc-net-cur {
  font-family: var(--mono);
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  font-weight: 600;
  margin-right: 4px;
}
.payback-calc-net-ratio {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

.payback-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}
@media (max-width: 720px) { .payback-calc-grid { grid-template-columns: 1fr; } }
.payback-slider-row { padding: 6px 0; }
.payback-slider-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.payback-slider-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
}
.payback-slider-val {
  font-family: var(--serif);
  font-size: 18px; font-weight: 500;
  letter-spacing: -0.005em;
  color: #fff;
}
.payback-calc .calc-slider {
  background: rgba(255,255,255,0.12);
  margin: 4px 0 6px;
}
.payback-calc .calc-slider::-webkit-slider-thumb {
  background: var(--primary-soft);
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--primary-soft), 0 4px 10px -2px rgba(59,130,246,0.5);
}
.payback-calc .calc-slider::-moz-range-thumb {
  background: var(--primary-soft);
  border-color: var(--ink);
}
.payback-slider-scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.45);
}

.payback-calc-breakdown {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; flex-direction: column;
  gap: 10px;
}
.payback-bd-row {
  display: flex; justify-content: space-between;
  font-family: var(--mono);
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.02em;
}
.payback-bd-row span:last-child { color: #fff; font-weight: 600; }
.payback-bd-row-cost span:last-child { color: rgba(255,255,255,0.55); }

/* === Disclaimer + risk reversal === */
.payback-disclaimer {
  margin: 32px auto;
  max-width: 720px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-3);
  line-height: 1.7;
  text-align: center;
}

.payback-risk-bar {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 24px 40px;
  padding: 24px 28px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  margin-top: 8px;
}
.payback-risk-item {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.payback-risk-item svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}
.payback-risk-item strong { color: var(--ink); font-weight: 600; }

/* ======================================================================
   CJK overrides for editorial small-cap labels
   ----------------------------------------------------------------------
   Uppercase tracked Latin at 10-11px reads fine ("/ 01 · SCENE"). The same
   spec on Hanzi ("/ 01 · 場景") is illegible: text-transform: uppercase is
   a no-op for CJK, 0.16-0.22em letter-spacing visually shatters Hanzi
   strokes, and 9-11px isn't enough pixels per glyph. Selector hooks on
   <html lang="zh-Hant"> set by i18n.jsx.
   ====================================================================== */
:lang(zh) .eyebrow,
:lang(zh) .uc-tag,
:lang(zh) .t-stamp,
:lang(zh) .ld-meta,
:lang(zh) .ld-sources-head,
:lang(zh) .bubble.ai .label,
:lang(zh) .kqa-list-head,
:lang(zh) .kqa-meta h5,
:lang(zh) .case-stage,
:lang(zh) .case-row .lbl,
:lang(zh) .missing-bar .head,
:lang(zh) .missing-bar li.m-row .m-st,
:lang(zh) .upload-text,
:lang(zh) .ex-note,
:lang(zh) .memo-row .lbl,
:lang(zh) .track-scope,
:lang(zh) .track-kicker,
:lang(zh) .flow-tag,
:lang(zh) .audit-eyebrow,
:lang(zh) .audit-badge-status,
:lang(zh) .foot-col h5,
:lang(zh) .page-hero .breadcrumb,
:lang(zh) .field label,
:lang(zh) .cap-num,
:lang(zh) .demo-chrome .badge,
:lang(zh) .cmp-row.head .cmp-cell,
:lang(zh) .cbr-status,
:lang(zh) .cbr-cap-pill,
:lang(zh) .wr-tag,
:lang(zh) .ts-label,
:lang(zh) .nav-drawer-eyebrow,
:lang(zh) .hero-tag,
:lang(zh) .hero-trust .lbl,
:lang(zh) .meet-head,
:lang(zh) .meet-foot,
:lang(zh) .track-boundary .bd-pill,
:lang(zh) .path-head,
:lang(zh) .legal-sig,
:lang(zh) .rf-side-label,
:lang(zh) .mm-detail-tag,
:lang(zh) .mm-detail-lbl,
:lang(zh) .mm-core-eyebrow,
:lang(zh) .dc-tag,
:lang(zh) .dc-why-label,
:lang(zh) .cbr-col-tag,
:lang(zh) .cbr-time,
:lang(zh) .ug-toc-head,
:lang(zh) .ug-chapter-tag,
:lang(zh) .ug-placeholder-tag,
:lang(zh) .sigil-eyebrow,
:lang(zh) .rf-num,
:lang(zh) .ld-tag,
:lang(zh) .bnd-col-head,
:lang(zh) .link-arrow,
:lang(zh) .vs-cell.vs-lbl,
:lang(zh) .vs-row.vs-head .vs-cell.vs-them,
:lang(zh) .vs-row.vs-head .vs-cell.vs-us,
:lang(zh) .v-img-label,
:lang(zh) .rf-stat-sub,
:lang(zh) .ld-replay,
:lang(zh) .trust-pill,
:lang(zh) .demo-chrome .url,
:lang(zh) .pricing-tier-seats,
:lang(zh) .pricing-tier-badge,
:lang(zh) .pricing-tier-annual-note,
:lang(zh) .pricing-discount-pill,
:lang(zh) .pricing-matrix-head .pricing-matrix-cell,
:lang(zh) .pricing-matrix-group,
:lang(zh) .pricing-matrix-text,
:lang(zh) .founding-team-kicker,
:lang(zh) .founding-team-counter-lbl,
:lang(zh) .founding-team-fineprint,
:lang(zh) .calc-input-tier-lbl,
:lang(zh) .calc-input-scale,
:lang(zh) .calc-cell-lbl,
:lang(zh) .calc-cur,
:lang(zh) .compare-group-lbl,
:lang(zh) .compare-price,
:lang(zh) .rationale-num,
:lang(zh) .payback-frame-num,
:lang(zh) .payback-frame-angle,
:lang(zh) .payback-calc-eyebrow,
:lang(zh) .payback-calc-net-lbl,
:lang(zh) .payback-calc-net-ratio,
:lang(zh) .payback-slider-scale,
:lang(zh) .payback-bd-row {
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: none;
}

/* Same idea, but the .logo-text .sub is Latin-only ("AI WORKSPACE") — leave
   it alone. Likewise .demo-chrome .url is a synthetic URL. */

/* ======================================================================
   AUTH / ACCOUNT / DOWNLOAD / ABOUT — added pages (login, register, reset,
   account, download, about). Restrained styles consistent with the site:
   10px radii on custom cards, brand-blue focus, existing tokens only.
   ====================================================================== */
/* Nav desktop CTAs (Sign in / Book a demo) must stay hidden on mobile — the
   base `.nav-cta-desktop { display:none }` is overridden by `.btn`'s later
   source order, so we re-hide at higher specificity. The drawer carries them. */
@media (max-width: 980px) { .nav-actions .nav-cta-desktop { display: none; } }

.auth-wrap { max-width: 1080px; margin: 0 auto; padding: 48px 32px 96px; }
@media (max-width: 720px) { .auth-wrap { padding: 32px 20px 72px; } }

.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; gap: 32px; } }

.auth-brand { padding-top: 8px; }
.auth-brand .eyebrow { margin-bottom: 20px; }
.auth-taglabel {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--primary); margin-bottom: 14px;
}
.auth-tagline {
  font-family: var(--serif); font-size: 30px; font-weight: 500;
  line-height: 1.2; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 26px;
}
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.auth-points li svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }

.auth-card { margin: 0; }
.auth-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 12.5px; flex-wrap: wrap; }
.auth-links a { color: var(--primary); }
.auth-links a:hover { text-decoration: underline; }
.auth-alt { margin-top: 20px; font-size: 13px; color: var(--ink-3); text-align: center; }
.auth-alt a { color: var(--primary); margin-left: 4px; }
.auth-alt a:hover { text-decoration: underline; }
.auth-notice {
  margin-top: 16px; padding: 11px 14px;
  border: 1px solid var(--line); background: var(--primary-tint);
  border-radius: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.6;
}
.auth-notice.err { border-color: var(--accent); color: var(--accent); background: transparent; }

.field-err, .field-hint { font-size: 12px; line-height: 1.5; }
.field-err { color: var(--accent); }
.field-hint { color: var(--ink-4); }
.field-hint.err { color: var(--accent); }

/* Register stepper + option rows */
.step-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.stepper { display: flex; gap: 8px; margin-bottom: 26px; }
.stepper .step { flex: 1; height: 4px; border-radius: 2px; background: var(--bg-3); transition: background .2s; }
.stepper .step.active { background: var(--primary); }

.opt-stack { display: flex; flex-direction: column; gap: 10px; }
.opt-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border: 1px solid var(--hairline);
  border-radius: 10px; cursor: pointer; font-size: 14px; color: var(--ink-2);
  transition: border-color .2s, background .2s;
}
.opt-row:hover { border-color: var(--line-strong); }
.opt-row.sel { border-color: var(--primary); background: var(--primary-tint); }
.opt-row input { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }

.consent-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 13px; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.consent-row input { margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }

/* PICS notice sidebar */
.pics-note { font-size: 12.5px; line-height: 1.75; color: var(--ink-3); padding-top: 8px; }
.pics-note h4 { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; }
.pics-note ul { padding-left: 18px; margin: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.pics-note p { margin: 10px 0; }

/* Account */
.acct-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 860px) { .acct-grid { grid-template-columns: 1fr; } }
.acct-card { border: 1px solid var(--hairline); border-radius: 12px; padding: 28px; background: var(--surface); }
.acct-status { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; padding: 6px 12px; border-radius: 999px; background: var(--primary-tint); color: var(--primary); }
.acct-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--hairline); font-size: 14px; color: var(--ink-2); }
.acct-row:last-of-type { border-bottom: 0; }
.acct-signout { display: block; width: 100%; margin-top: 20px; padding: 10px; background: transparent; border: 0; color: var(--ink-4); font-size: 13px; cursor: pointer; font-family: inherit; }
.acct-signout:hover { color: var(--accent); }

/* Download */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 8px; }
@media (max-width: 860px) { .dl-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; } }
.dl-icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary-tint); color: var(--primary); margin-bottom: 18px;
}
.dl-waitlist { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-waitlist input {
  flex: 1; min-width: 0;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: 8px; padding: 11px 14px; font-family: inherit; font-size: 14px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.dl-waitlist input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-tint); }
.dl-note { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 10px; background: var(--primary-tint); color: var(--ink-2); font-size: 14px; }

/* About — light narrative, no dark/particles */
.about-letter { max-width: 760px; margin: 0 auto; }

/* Lede manifesto — oversized italic opener with a serif drop cap */
.about-sec-lede { border-top: 0; padding-top: 4px; }
.about-lede { font-family: var(--serif); font-size: clamp(23px, 3.1vw, 29px); line-height: 1.5; color: var(--ink); font-style: italic; margin: 0 0 18px; }
.about-lede::first-letter {
  font-size: 3.4em; line-height: 0.66; float: left;
  font-style: normal; font-weight: 600; color: var(--primary);
  margin: 2px 12px 0 0; padding: 0;
}
.about-sec-lede .about-sec-body p:not(.about-lede) { font-size: 17px; line-height: 1.8; color: var(--ink-2); }

/* Numbered sections — editorial 2-col: big ghosted numeral | body */
.about-sec { padding: 42px 0; border-top: 1px solid var(--hairline); }
.about-sec:not(.about-sec-lede) { display: grid; grid-template-columns: 88px 1fr; gap: 28px; align-items: start; }
.about-sec .num {
  font-family: var(--serif); font-size: 48px; font-weight: 500; line-height: 0.9;
  color: rgba(29, 104, 255, 0.26);
}
.about-sec-body { min-width: 0; }
.about-sec h2 { font-family: var(--serif); font-size: 27px; font-weight: 500; letter-spacing: -0.01em; margin: 2px 0 14px; color: var(--ink); }
.about-sec p { font-size: 16px; line-height: 1.85; color: var(--ink-2); margin: 0 0 14px; }
.about-sec p:last-child { margin-bottom: 0; }

/* Pull-quote — a full-width breath mid-letter */
.about-pull {
  margin: 0; padding: 46px 8px; text-align: center;
  border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 3.6vw, 36px); line-height: 1.38; color: var(--primary);
  letter-spacing: -0.01em; text-wrap: balance;
}

/* Sign-off — a signed letter */
.about-signoff { display: flex; align-items: center; gap: 16px; padding: 40px 0 4px; border-top: 1px solid var(--hairline); }
.about-signoff-mark {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary-tint); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 26px; font-style: italic; color: var(--primary);
}
.about-signoff-name { font-family: var(--serif); font-size: 22px; font-style: italic; color: var(--ink); }
.about-signoff-role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-transform: uppercase; margin-top: 4px; }

/* Finale — tagline on a tinted band */
.about-close { text-align: center; padding: 52px 32px; margin-top: 44px; border-radius: 20px; background: var(--primary-tint); }
.about-close .tagline { font-family: var(--serif); font-size: clamp(22px, 3vw, 32px); color: var(--primary); font-style: italic; letter-spacing: -0.01em; }

@media (max-width: 760px) {
  .about-sec:not(.about-sec-lede) { grid-template-columns: 1fr; gap: 6px; }
  .about-sec .num { font-size: 36px; }
  .about-pull { padding: 34px 4px; }
  .about-close { padding: 40px 22px; }
}

/* Usage-guide native video player */
.ug-video { margin: 2px 0 18px; }
.ug-video-el {
  width: 100%; aspect-ratio: 16 / 9; display: block;
  border-radius: 10px; background: #0A1B3D; border: 1px solid var(--line);
  box-shadow: 0 14px 34px -16px rgba(10,27,61,.4);
}

/* Nav — 產品 dropdown (desktop) + drawer group */
.nav-group { position: relative; display: inline-flex; align-items: center; }
.nav-group-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--ink-3); transition: color .15s;
}
.nav-group:hover .nav-group-btn, .nav-group-btn.active { color: var(--ink); }
.nav-sub {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  display: none; min-width: 210px; padding: 6px; z-index: 70;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 46px -22px rgba(10,27,61,.3);
}
.nav-group:hover .nav-sub { display: block; }
.nav-sub > a {
  display: block; padding: 10px 14px; border-radius: 8px;
  color: var(--ink-3); white-space: nowrap; font-size: 14px; transition: background .12s, color .12s;
}
.nav-sub > a:hover, .nav-sub > a.active { background: var(--primary-tint); color: var(--primary); }
.nav-drawer-group { border-bottom: 1px solid var(--hairline); padding-bottom: 14px; margin-bottom: 14px; }
.nav-drawer-group-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3); margin: 0 0 8px; padding: 6px 32px 2px;
}
.nav-drawer-sublink {
  display: flex !important; align-items: center;
  font-size: 19px !important; font-weight: 500 !important;
  color: var(--ink-2) !important; padding: 10px 32px !important;
}
.nav-drawer-sublink.active { color: var(--primary) !important; }

/* ===== Legal pages (terms / privacy / dpa) — restrained document typography ===== */
.legal-noindex-note {
  max-width: 40em; margin: 12px auto -8px; padding: 0 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .02em;
  color: var(--ink-4); text-align: center;
}
.legal-doc { max-width: 40em; margin: 0 auto; color: var(--ink-2); }
.legal-doc .legal-meta { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin: 0 0 6px; }
.legal-doc .legal-meta:last-of-type { margin-bottom: 8px; }
.legal-doc h2 {
  font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink);
  margin: 40px 0 12px; padding-top: 8px; border-top: 1px solid var(--hairline);
  line-height: 1.35;
}
.legal-doc p { font-size: 15.5px; line-height: 1.85; margin: 0 0 14px; }
.legal-doc ul { margin: 0 0 16px; padding-left: 1.4em; }
.legal-doc li { font-size: 15.5px; line-height: 1.8; margin-bottom: 8px; }
.legal-doc strong { color: var(--ink); font-weight: 600; }
.legal-doc .legal-note {
  font-size: 14px; color: var(--ink-3); line-height: 1.75;
  border-left: 2px solid var(--primary-soft); padding: 4px 0 4px 14px; margin: 0 0 18px;
  background: var(--primary-tint);
}
.legal-table-wrap { overflow-x: auto; margin: 0 0 18px; }
.legal-table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-table th, .legal-table td {
  border: 1px solid var(--hairline); padding: 9px 12px; text-align: left;
  vertical-align: top; line-height: 1.65;
}
.legal-table th { background: var(--primary-tint); color: var(--ink); font-weight: 600; }

/* Draft banner — restrained amber notice */
.legal-draft-banner {
  border: 1px solid #E7C86B; background: #FCF6E3; color: #6B4E12;
  border-radius: 6px; padding: 12px 16px; margin: 0 0 28px;
  font-size: 14px; line-height: 1.7;
}

/* Placeholder highlight — yellow, dark ink, for unfilled entity/address/date/etc. */
mark.ph-todo {
  background: #FFE873; color: #5A4600; padding: 0 3px;
  border-radius: 2px; font-weight: 500; font-style: normal;
}

@media (max-width: 720px) {
  .legal-doc { font-size: 15px; }
  .legal-doc h2 { font-size: 19px; }
}

/* Real brand logo (replaces the placeholder C mark) */
.logo-img { height: 30px; width: auto; display: block; }
@media (max-width: 760px) { .logo-img { height: 26px; } }
