/* Pocodo V3.0 Warm Paper Flagship — Marketing & Compliance Pages */
:root {
  color-scheme: light dark;
  --rail: #f1f1ee;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --ink: #222220;
  --muted: #5d5d57;
  --faint: #8c8b84;
  --line: rgba(24, 24, 22, 0.08);
  --border: rgba(24, 24, 22, 0.075);
  --accent: #181818;
  --accent-hover: #2d2d2a;
  --accent-fg: #ffffff;
  --pill: rgba(24, 24, 22, 0.045);
  --gold: #b9852f;
  --gold-soft: rgba(185, 133, 47, 0.11);
  --coral: #c95443;
  --sage: #4e8467;
  --shadow-ground: 0 1px 2px rgba(20, 20, 18, 0.04), 0 4px 14px rgba(20, 20, 18, 0.03);
  --shadow-float: 0 12px 32px rgba(20, 20, 18, 0.08), 0 2px 6px rgba(20, 20, 18, 0.04);
  --top-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --ambient: radial-gradient(760px 420px at 14% 0%, rgba(185, 133, 47, 0.04), transparent 72%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --rail: #141414;
    --bg: #181817;
    --surface: #222221;
    --ink: #ededeb;
    --muted: #a2a19b;
    --faint: #75746e;
    --line: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.085);
    --accent: #f2f2ef;
    --accent-hover: #ffffff;
    --accent-fg: #141414;
    --pill: rgba(255, 255, 255, 0.06);
    --gold: #d9a752;
    --gold-soft: rgba(217, 167, 82, 0.13);
    --coral: #df7768;
    --sage: #6faa89;
    --shadow-ground: 0 1px 3px rgba(0, 0, 0, 0.28);
    --shadow-float: 0 18px 42px rgba(0, 0, 0, 0.42);
    --top-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --ambient: radial-gradient(760px 420px at 12% 0%, rgba(255, 248, 232, 0.024), transparent 72%);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", "PingFang TC", "Microsoft JhengHei", "PingFang SC", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image: var(--ambient);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  width: 100%;
  background: color-mix(in srgb, var(--rail) 84%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 660;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.brand-link svg {
  color: var(--accent);
  flex: none;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
}

.site-nav a {
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: background 140ms ease, color 140ms ease;
}

.site-nav a:hover {
  background: var(--pill);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--surface);
  color: var(--ink);
  font-weight: 580;
  box-shadow: var(--shadow-ground);
}

.page-shell {
  flex: 1 1 auto;
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  padding: 44px 24px 72px;
}

.page-shell-wide {
  max-width: 1020px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  padding: 18px 0 38px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-ground);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 560;
  margin-bottom: 18px;
}

.hero-badge-spark {
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(2.1rem, 4.8vw, 3.1rem);
  font-weight: 680;
  line-height: 1.14;
  letter-spacing: -0.032em;
  margin: 0 0 18px;
  color: var(--ink);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 650px;
  margin: 0 0 28px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 580;
  font-size: 0.94rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: transform 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: var(--shadow-ground);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-ground);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-float);
}

/* Curated Skins Preview Strip */
.skin-swatch-strip {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--faint);
}

.skin-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}

.skin-pill-btn {
  font: inherit;
  cursor: pointer;
  padding: 5px 12px;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

.skin-pill-btn:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-ground);
}

.skin-pill-btn.is-active {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: var(--shadow-ground);
}

.skin-pill-btn.is-active .skin-dot {
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.72);
}

.skin-strip-label {
  margin-right: 4px;
}

.skin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.skin-dot-ink { background: #181818; }
.skin-dot-slate { background: #1e3a5f; }
.skin-dot-linen { background: #6e4b2e; }
.skin-dot-celadon { background: #2e5a44; }
.skin-dot-mauve { background: #8a3d52; }

/* Section Intros */
.section-intro {
  margin-bottom: 22px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-intro h2 {
  font-size: clamp(1.42rem, 3vw, 1.92rem);
  font-weight: 660;
  line-height: 1.22;
  letter-spacing: -0.024em;
  margin: 0 0 8px;
  color: var(--ink);
}

.section-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 660px;
}

/* Interactive Micro-Workspace Demo (5 Curated Skins × Light/Dark, Zero Inline Styles) */
.demo-section {
  margin: 12px 0 60px;
}

.demo-window {
  --d-rail: #f1f1ee;
  --d-bg: #f6f6f3;
  --d-surface: #ffffff;
  --d-ink: #222220;
  --d-muted: #5d5d57;
  --d-faint: #8c8b84;
  --d-line: rgba(24, 24, 22, 0.085);
  --d-accent: #181818;
  --d-accent-fg: #ffffff;
  --d-gold: #b9852f;
  --d-gold-soft: rgba(185, 133, 47, 0.12);
  --d-pill: rgba(24, 24, 22, 0.05);
  --d-heat-0: #e8e7e2;
  --d-heat-1: #e6d7b8;
  --d-heat-2: #d3b273;
  --d-heat-3: #b9852f;
  --d-heat-4: #875d19;

  border-radius: 18px;
  border: 1px solid var(--d-line);
  background: var(--d-bg);
  color: var(--d-ink);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.demo-window[data-demo-skin="ink"][data-demo-theme="dark"] {
  --d-rail: #141414;
  --d-bg: #181817;
  --d-surface: #222221;
  --d-ink: #ededeb;
  --d-muted: #a6a59e;
  --d-faint: #787770;
  --d-line: rgba(255, 255, 255, 0.09);
  --d-accent: #f2f2ef;
  --d-accent-fg: #141414;
  --d-gold: #d9a752;
  --d-gold-soft: rgba(217, 167, 82, 0.15);
  --d-pill: rgba(255, 255, 255, 0.07);
  --d-heat-0: #292927;
  --d-heat-1: #4b3d25;
  --d-heat-2: #765c2d;
  --d-heat-3: #a87f39;
  --d-heat-4: #d9a752;
}

.demo-window[data-demo-skin="mistBlue"][data-demo-theme="light"] {
  --d-rail: #ebf0f6;
  --d-bg: #f4f7fb;
  --d-surface: #ffffff;
  --d-ink: #1a2433;
  --d-muted: #4f6078;
  --d-faint: #7c8da3;
  --d-line: rgba(26, 36, 51, 0.09);
  --d-accent: #1e3a5f;
  --d-accent-fg: #ffffff;
  --d-gold: #3f6ea6;
  --d-gold-soft: rgba(63, 110, 166, 0.12);
  --d-pill: rgba(30, 58, 95, 0.06);
  --d-heat-0: #e2e9f2;
  --d-heat-1: #c3d5ea;
  --d-heat-2: #8fb1d9;
  --d-heat-3: #4f7bb0;
  --d-heat-4: #1e3a5f;
}

.demo-window[data-demo-skin="mistBlue"][data-demo-theme="dark"] {
  --d-rail: #10161f;
  --d-bg: #151c27;
  --d-surface: #1d2635;
  --d-ink: #e8eff8;
  --d-muted: #9eb0c8;
  --d-faint: #71849e;
  --d-line: rgba(206, 224, 248, 0.1);
  --d-accent: #8fb3df;
  --d-accent-fg: #0f1722;
  --d-gold: #8fb3df;
  --d-gold-soft: rgba(143, 179, 223, 0.15);
  --d-pill: rgba(206, 224, 248, 0.08);
  --d-heat-0: #212c3c;
  --d-heat-1: #283f5b;
  --d-heat-2: #3b5f8a;
  --d-heat-3: #5f8cc0;
  --d-heat-4: #8fb3df;
}

.demo-window[data-demo-skin="warmPaper"][data-demo-theme="light"] {
  --d-rail: #efeae1;
  --d-bg: #f7f4ec;
  --d-surface: #fffdf9;
  --d-ink: #2a2118;
  --d-muted: #665747;
  --d-faint: #938372;
  --d-line: rgba(64, 44, 24, 0.095);
  --d-accent: #6e4b2e;
  --d-accent-fg: #ffffff;
  --d-gold: #b9852f;
  --d-gold-soft: rgba(185, 133, 47, 0.13);
  --d-pill: rgba(110, 75, 46, 0.065);
  --d-heat-0: #eae2d5;
  --d-heat-1: #dfc9ad;
  --d-heat-2: #c9a279;
  --d-heat-3: #9c6e43;
  --d-heat-4: #6e4b2e;
}

.demo-window[data-demo-skin="warmPaper"][data-demo-theme="dark"] {
  --d-rail: #1a1612;
  --d-bg: #211c17;
  --d-surface: #2b241e;
  --d-ink: #f3ece2;
  --d-muted: #baa996;
  --d-faint: #8b7b69;
  --d-line: rgba(243, 230, 212, 0.1);
  --d-accent: #dfc3a6;
  --d-accent-fg: #1d1610;
  --d-gold: #d9a752;
  --d-gold-soft: rgba(217, 167, 82, 0.15);
  --d-pill: rgba(243, 230, 212, 0.08);
  --d-heat-0: #312921;
  --d-heat-1: #4f3d2d;
  --d-heat-2: #7a5c3f;
  --d-heat-3: #ae845b;
  --d-heat-4: #dfc3a6;
}

.demo-window[data-demo-skin="sage"][data-demo-theme="light"] {
  --d-rail: #e9f0eb;
  --d-bg: #f2f6f3;
  --d-surface: #ffffff;
  --d-ink: #1b2821;
  --d-muted: #4f6458;
  --d-faint: #7c9185;
  --d-line: rgba(27, 40, 33, 0.09);
  --d-accent: #2e5a44;
  --d-accent-fg: #ffffff;
  --d-gold: #4e8467;
  --d-gold-soft: rgba(78, 132, 103, 0.13);
  --d-pill: rgba(46, 90, 68, 0.065);
  --d-heat-0: #e0eae3;
  --d-heat-1: #c1dac9;
  --d-heat-2: #8fbca1;
  --d-heat-3: #578f6f;
  --d-heat-4: #2e5a44;
}

.demo-window[data-demo-skin="sage"][data-demo-theme="dark"] {
  --d-rail: #111814;
  --d-bg: #161f1a;
  --d-surface: #1e2a24;
  --d-ink: #e8f1ec;
  --d-muted: #9eb5a8;
  --d-faint: #70887b;
  --d-line: rgba(214, 240, 226, 0.1);
  --d-accent: #93c5a9;
  --d-accent-fg: #101b15;
  --d-gold: #7eb898;
  --d-gold-soft: rgba(126, 184, 152, 0.15);
  --d-pill: rgba(214, 240, 226, 0.08);
  --d-heat-0: #223028;
  --d-heat-1: #2b4738;
  --d-heat-2: #3d6b52;
  --d-heat-3: #639a7c;
  --d-heat-4: #93c5a9;
}

.demo-window[data-demo-skin="terracotta"][data-demo-theme="light"] {
  --d-rail: #f3ebee;
  --d-bg: #f8f3f5;
  --d-surface: #ffffff;
  --d-ink: #2b1d22;
  --d-muted: #695059;
  --d-faint: #967c85;
  --d-line: rgba(58, 28, 39, 0.09);
  --d-accent: #8a3d52;
  --d-accent-fg: #ffffff;
  --d-gold: #b06753;
  --d-gold-soft: rgba(176, 103, 83, 0.13);
  --d-pill: rgba(138, 61, 82, 0.065);
  --d-heat-0: #ece1e5;
  --d-heat-1: #dfbfc9;
  --d-heat-2: #c98fa1;
  --d-heat-3: #aa5f75;
  --d-heat-4: #8a3d52;
}

.demo-window[data-demo-skin="terracotta"][data-demo-theme="dark"] {
  --d-rail: #191316;
  --d-bg: #20181c;
  --d-surface: #2a2025;
  --d-ink: #f4eaee;
  --d-muted: #bda4ae;
  --d-faint: #8c737d;
  --d-line: rgba(244, 222, 230, 0.1);
  --d-accent: #e3a6b6;
  --d-accent-fg: #1b1115;
  --d-gold: #dfa585;
  --d-gold-soft: rgba(223, 165, 133, 0.15);
  --d-pill: rgba(244, 222, 230, 0.08);
  --d-heat-0: #31252b;
  --d-heat-1: #523440;
  --d-heat-2: #7e4b5f;
  --d-heat-3: #b37389;
  --d-heat-4: #e3a6b6;
}

.demo-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--d-rail);
  border-bottom: 1px solid var(--d-line);
}

.demo-topbar-left {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.demo-lights {
  display: inline-flex;
  gap: 6px;
}

.demo-light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--d-faint) 42%, transparent);
}

.demo-crumb {
  font-size: 0.83rem;
  color: var(--d-muted);
  white-space: nowrap;
}

.demo-crumb strong {
  color: var(--d-ink);
  font-weight: 620;
}

.demo-mode-tabs {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--d-pill);
  border: 1px solid var(--d-line);
  gap: 2px;
}

.demo-mode-tab {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 580;
  border: 0;
  background: transparent;
  color: var(--d-muted);
  padding: 5px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

.demo-mode-tab.is-active {
  background: var(--d-surface);
  color: var(--d-ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.demo-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.demo-swatch-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.demo-swatch-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: var(--d-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease;
}

.demo-swatch-btn:hover {
  transform: scale(1.08);
}

.demo-swatch-btn.is-active {
  border-color: var(--d-accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--d-accent) 22%, transparent);
}

.demo-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--d-line);
  background: var(--d-surface);
  color: var(--d-ink);
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease;
}

.demo-theme-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--d-gold);
}

.demo-body {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  min-height: 410px;
}

.demo-sidebar {
  background: var(--d-rail);
  border-right: 1px solid var(--d-line);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.demo-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.demo-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 540;
  color: var(--d-muted);
  background: transparent;
  border: 0;
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 140ms ease, color 140ms ease;
}

.demo-nav-item:hover {
  background: var(--d-pill);
  color: var(--d-ink);
}

.demo-nav-item.is-active {
  background: var(--d-surface);
  color: var(--d-ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.demo-nav-count {
  font-size: 0.76rem;
  color: var(--d-faint);
  font-variant-numeric: tabular-nums;
}

.demo-mini-heat {
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  border-radius: 12px;
  padding: 11px;
}

.demo-mini-heat-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--d-faint);
  margin-bottom: 8px;
}

.demo-heat-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.dh {
  aspect-ratio: 1 / 1;
  border-radius: 3px;
  display: block;
}

.dh-0 { background: var(--d-heat-0); }
.dh-1 { background: var(--d-heat-1); }
.dh-2 { background: var(--d-heat-2); }
.dh-3 { background: var(--d-heat-3); }
.dh-4 { background: var(--d-heat-4); }

.demo-stage {
  padding: 20px 24px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.demo-pane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.demo-pane-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 650;
  color: var(--d-ink);
  letter-spacing: -0.015em;
}

.demo-pane-sub {
  margin: 2px 0 0;
  font-size: 0.83rem;
  color: var(--d-faint);
}

.demo-pane-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.demo-counter-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--d-muted);
  background: var(--d-pill);
  border: 1px solid var(--d-line);
  border-radius: 999px;
  padding: 4px 10px;
  font-variant-numeric: tabular-nums;
}

.demo-reset-btn {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--d-ink);
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  border-radius: 8px;
  padding: 4px 10px;
  cursor: pointer;
}

.demo-task-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.demo-task-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--d-surface);
  border: 1px solid var(--d-line);
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease;
}

@keyframes demoCheckPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.012); }
  100% { transform: scale(1); }
}

.demo-task-row.is-pop {
  animation: demoCheckPop 260ms cubic-bezier(0.22, 1.4, 0.36, 1);
}

.demo-task-row.is-done {
  opacity: 0.62;
  background: color-mix(in srgb, var(--d-surface) 72%, var(--d-bg));
}

.demo-check-btn {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.8px solid var(--d-faint);
  background: transparent;
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  transition: transform 200ms cubic-bezier(0.22, 1.5, 0.36, 1), background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.demo-check-btn:hover {
  transform: scale(1.1);
  border-color: var(--d-accent);
}

.demo-check-btn.demo-prio-1 {
  border-color: var(--coral);
}

.demo-check-btn.demo-prio-2 {
  border-color: var(--d-gold);
}

.demo-task-row.is-done .demo-check-btn {
  background: var(--d-accent);
  border-color: var(--d-accent);
  color: var(--d-accent-fg);
  transform: scale(1);
}

.demo-check-glyph {
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.demo-task-body {
  min-width: 0;
  flex: 1 1 auto;
}

.demo-task-title {
  font-size: 0.93rem;
  font-weight: 560;
  color: var(--d-ink);
  line-height: 1.38;
  word-break: break-word;
}

.demo-task-row.is-done .demo-task-title {
  text-decoration: line-through;
  color: var(--d-faint);
}

.demo-task-meta,
.demo-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.demo-meta-chip {
  font-size: 0.74rem;
  font-weight: 580;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--d-pill);
  color: var(--d-muted);
}

.demo-meta-due {
  background: var(--d-gold-soft);
  color: var(--d-gold);
}

.demo-meta-project {
  color: var(--d-ink);
}

.demo-note-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-note-card {
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--d-surface);
  border: 1px solid var(--d-line);
}

.demo-note-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.demo-note-time {
  font-size: 0.76rem;
  font-weight: 560;
  color: var(--d-faint);
}

.demo-note-promote {
  font: inherit;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--d-ink);
  background: var(--d-pill);
  border: 1px solid var(--d-line);
  border-radius: 8px;
  padding: 3px 9px;
  cursor: pointer;
  transition: background 140ms ease, opacity 140ms ease;
}

.demo-note-promote:hover:not(:disabled) {
  background: var(--d-accent);
  color: var(--d-accent-fg);
  border-color: var(--d-accent);
}

.demo-note-promote:disabled {
  opacity: 0.65;
  cursor: default;
}

.demo-quote-ribbon {
  border-left: 2px solid var(--d-gold);
  background: var(--d-gold-soft);
  border-radius: 0 8px 8px 0;
  padding: 7px 10px;
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-quote-label {
  font-size: 0.72rem;
  font-weight: 650;
  color: var(--d-gold);
}

.demo-quote-text {
  font-size: 0.81rem;
  color: var(--d-muted);
  line-height: 1.44;
}

.demo-note-body {
  margin: 0;
  font-size: 0.9rem;
  color: var(--d-ink);
  line-height: 1.54;
}

.demo-composer {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.demo-composer-input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 0.88rem;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--d-line);
  background: var(--d-surface);
  color: var(--d-ink);
}

.demo-composer-input::placeholder {
  color: var(--d-faint);
}

.demo-composer-submit {
  flex: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 10px;
  border: 1px solid var(--d-accent);
  background: var(--d-accent);
  color: var(--d-accent-fg);
  cursor: pointer;
}

.demo-status-bar {
  font-size: 0.8rem;
  color: var(--d-muted);
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--d-pill);
  border: 1px solid var(--d-line);
  transition: color 180ms ease;
}

.demo-status-bar.is-visible {
  color: var(--d-ink);
}

/* 3 Core Differentiators */
.pillars-section {
  margin: 0 0 60px;
}

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

.pillar-card {
  display: flex;
  flex-direction: column;
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--pill);
  border: 1px solid var(--border);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.pillar-card code,
.platform-card code,
.hero-lead code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--pill);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

/* Cross-Platform Download Cards */
.platforms-section {
  margin: 0 0 44px;
}

.download-hero {
  padding: 12px 0 30px;
}

.download-hero h1 {
  font-size: clamp(2rem, 4.4vw, 2.75rem);
  font-weight: 680;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

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

.download-grid {
  margin-bottom: 24px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 84px;
}

.site-nav a:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.skin-pill-btn:focus-visible,
.demo-mode-tab:focus-visible,
.demo-swatch-btn:focus-visible,
.demo-theme-btn:focus-visible,
.demo-nav-item:focus-visible,
.demo-check-btn:focus-visible,
.demo-note-promote:focus-visible,
.demo-composer-input:focus-visible,
.demo-composer-submit:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.platform-card-accent {
  border-color: color-mix(in srgb, var(--gold) 36%, var(--border));
}

.platform-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.platform-head .card-kicker {
  margin-bottom: 0;
}

.platform-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--pill);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 9px;
}

.platform-specs {
  list-style: none;
  margin: 14px 0 18px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
  flex: 1 1 auto;
}

.platform-specs li::before {
  content: "✓ ";
  color: var(--sage);
  font-weight: 700;
}

.platform-cta {
  width: 100%;
  margin-top: auto;
}

.craft-grid {
  margin-top: 16px;
}

.download-details {
  margin-top: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  box-shadow: var(--top-highlight), var(--shadow-ground);
}

.card-kicker {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 620;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.doc-article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 40px 42px;
  box-shadow: var(--top-highlight), var(--shadow-ground);
}

.doc-article h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.15rem);
  font-weight: 660;
  line-height: 1.22;
  letter-spacing: -0.026em;
  margin: 0 0 8px;
}

.doc-meta {
  color: var(--faint);
  font-size: 0.88rem;
  margin: 0 0 26px;
}

.doc-article h2 {
  font-size: 1.16rem;
  font-weight: 620;
  margin: 30px 0 10px;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.doc-article h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 20px 0 6px;
  color: var(--ink);
}

.doc-article p,
.doc-article li {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-article strong {
  color: var(--ink);
}

.doc-article a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--ink) 35%, transparent);
}

.doc-article a:hover {
  text-decoration-color: var(--ink);
}

.doc-article a.btn-primary {
  color: var(--accent-fg);
  text-decoration: none;
}

.doc-article a.btn-secondary {
  color: var(--ink);
  text-decoration: none;
}

.doc-article ul,
.doc-article ol {
  padding-left: 22px;
}

.doc-article li {
  margin-bottom: 6px;
}

.doc-article code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--pill);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
}

.callout {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 2.5px solid var(--gold);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 22px 0;
  font-size: 0.94rem;
}

.callout-danger {
  border-left-color: var(--coral);
}

/* External Web Self-Service Account Deletion Console (Wave M3-9) */
.delete-console {
  margin: 26px 0 32px;
  padding: 24px 26px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--coral) 26%, var(--border));
  background: var(--bg);
  box-shadow: var(--shadow-ground);
}

.delete-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.delete-console-title {
  margin: 2px 0 0 !important;
  font-size: 1.18rem;
}

.delete-locale-btn {
  flex: none;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.delete-locale-btn:hover {
  background: var(--pill);
}

.delete-console-lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.delete-capability-banner {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.delete-capability-banner.is-ready {
  border-color: color-mix(in srgb, var(--sage) 36%, var(--border));
  color: var(--ink);
}

.delete-capability-banner.is-disabled {
  border-color: color-mix(in srgb, var(--gold) 42%, var(--border));
  background: var(--gold-soft);
  color: var(--ink);
}

.delete-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.delete-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.delete-field label {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.delete-field input[type="email"],
.delete-field input[type="text"] {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 0.93rem;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}

.delete-field input:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.delete-email-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.delete-email-row input {
  flex: 1 1 auto;
}

.delete-send-btn {
  flex: none;
  white-space: nowrap;
  cursor: pointer;
}

.delete-send-btn:disabled,
.btn-danger:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.delete-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.delete-ack-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.87rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.5;
}

.delete-ack-label input[type="checkbox"] {
  margin-top: 4px;
  flex: none;
  width: 16px;
  height: 16px;
  accent-color: var(--coral);
}

.delete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 10px;
  font: inherit;
  font-weight: 620;
  font-size: 0.93rem;
  background: var(--coral);
  color: #ffffff;
  border: 1px solid var(--coral);
  cursor: pointer;
  box-shadow: var(--shadow-ground);
  transition: transform 140ms ease, opacity 140ms ease;
}

.btn-danger:hover:not(:disabled) {
  transform: translateY(-1px);
  opacity: 0.93;
}

.delete-status {
  margin: 0;
  min-height: 1.3em;
  font-size: 0.85rem;
  color: var(--muted);
}

.delete-status.is-error {
  color: var(--coral);
  font-weight: 560;
}

.delete-status.is-ok {
  color: var(--sage);
  font-weight: 560;
}

.delete-receipt {
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--sage) 42%, var(--border));
  background: var(--surface);
}

.delete-receipt-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 660;
  color: var(--sage);
  margin-bottom: 6px;
}

.delete-receipt-sub {
  margin: 0 0 16px;
  font-size: 0.9rem;
  color: var(--muted);
}

.delete-receipt-list {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.delete-receipt-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.87rem;
}

.delete-receipt-row dt {
  color: var(--faint);
  font-weight: 560;
}

.delete-receipt-row dd {
  margin: 0;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.84rem;
  word-break: break-all;
}

.delete-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
}

.site-footer {
  width: 100%;
  border-top: 1px solid var(--line);
  background: var(--rail);
}

.site-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 22px 24px 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--faint);
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  padding: 3px 6px;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 860px) {
  .pillar-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .demo-body {
    grid-template-columns: 1fr;
  }
  .demo-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--d-line);
    padding: 12px;
  }
  .demo-nav-group {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .demo-nav-item {
    width: auto;
    flex: 1 1 120px;
    padding: 6px 10px;
  }
  .demo-mini-heat {
    display: none;
  }
}

@media (max-width: 680px) {
  html,
  body {
    overflow-x: clip;
  }
  .site-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    gap: 8px;
  }
  .site-nav {
    width: 100%;
    gap: 4px;
    font-size: 0.84rem;
  }
  .site-nav a {
    padding: 5px 8px;
  }
  .page-shell {
    padding: 24px 16px 52px;
  }
  .hero,
  .download-hero {
    padding: 8px 0 24px;
  }
  .hero h1,
  .download-hero h1 {
    font-size: 1.85rem;
  }
  .hero-lead {
    font-size: 0.98rem;
  }
  .cta-row {
    flex-direction: column;
    gap: 10px;
  }
  .btn-primary,
  .btn-secondary {
    flex: none;
    width: 100%;
    padding: 11px 16px;
  }
  .demo-topbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .demo-topbar-left {
    width: 100%;
    justify-content: space-between;
  }
  .demo-topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .demo-stage {
    padding: 14px 12px 12px;
  }
  .demo-composer {
    flex-direction: column;
  }
  .demo-composer-submit {
    width: 100%;
  }
  .demo-note-head {
    flex-wrap: wrap;
  }
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .card {
    padding: 18px 16px;
  }
  .doc-article {
    padding: 22px 16px 26px;
    border-radius: 14px;
    overflow-wrap: anywhere;
  }
  .doc-article code {
    word-break: break-word;
  }
  .delete-console {
    padding: 18px 14px;
  }
  .delete-email-row {
    flex-direction: column;
  }
  .delete-send-btn,
  .btn-danger {
    width: 100%;
  }
  .delete-field-grid {
    grid-template-columns: 1fr;
  }
  .delete-receipt-actions {
    flex-direction: column;
  }
  .site-footer-inner {
    padding: 18px 16px 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
