/* ==========================================================================
   Cece (cece.to) — Liquid Glass & Atmospheric Haze Design System
   2 selectable WCAG-AA themes via [data-palette] on <html>:
     1. forest (Forest Glass — default)
     2. cobalt (Cece Cobalt)
   ========================================================================== */

:root,
[data-palette="forest"] {
  color-scheme: light;
  --bg-canvas: #f5f7f4;
  --bg-canvas-2: #edf2ec;
  --ink-primary: #131815;
  --ink-secondary: #48524c;
  --ink-muted: #6c7670;
  --ink-on-accent: #ffffff;

  --accent: #1c4c3a;
  --accent-hover: #143a2c;
  --accent-soft: rgba(28, 76, 58, 0.10);
  --accent-line: rgba(28, 76, 58, 0.24);
  --logo-bg-1: #25654d;
  --logo-bg-2: #123326;
  --logo-c2: #8ce4bc;
  --warm: #b44f2a;
  --warm-soft: rgba(180, 79, 42, 0.11);

  /* Liquid Glass Surfaces */
  --glass-bg: rgba(255, 255, 255, 0.60);
  --glass-bg-strong: rgba(255, 255, 255, 0.80);
  --glass-nav: rgba(255, 255, 255, 0.50);
  --glass-nav-scrolled: rgba(255, 255, 255, 0.68);
  --glass-inset: rgba(255, 255, 255, 0.46);
  --glass-border: rgba(255, 255, 255, 0.78);
  --glass-edge: rgba(19, 24, 21, 0.085);
  --glass-highlight: rgba(255, 255, 255, 0.94);
  --glass-sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.68) 0%, rgba(255, 255, 255, 0.12) 44%, rgba(255, 255, 255, 0) 62%);
  --glass-shadow: 0 1px 2px rgba(19, 24, 21, 0.04), 0 14px 36px -10px rgba(19, 24, 21, 0.13);
  --glass-shadow-lg: 0 2px 6px rgba(19, 24, 21, 0.05), 0 28px 64px -18px rgba(19, 24, 21, 0.20);

  /* Ambient Atmospheric Haze Orbs */
  --haze-1: rgba(28, 108, 76, 0.24);
  --haze-2: rgba(92, 174, 134, 0.20);
  --haze-3: rgba(214, 154, 96, 0.17);
  --haze-4: rgba(62, 148, 136, 0.15);

  /* Dark Contrast Inspector & Privacy Band */
  --panel-dark-bg: rgba(18, 25, 22, 0.86);
  --panel-dark-card: rgba(28, 38, 33, 0.72);
  --panel-dark-border: rgba(255, 255, 255, 0.10);
  --panel-dark-ink: #f2f5f3;
  --panel-dark-muted: #a4b1aa;
  --panel-dark-accent: #77d4a8;
  --panel-dark-accent-2: #e7b892;

  /* Chat Bubbles */
  --bubble-user-bg: #17231e;
  --bubble-user-ink: #f6f8f5;
  --bubble-bot-bg: rgba(255, 255, 255, 0.74);

  --line-subtle: rgba(19, 24, 21, 0.09);
  --line-strong: rgba(19, 24, 21, 0.17);

  /* Typography */
  --font-display: "Instrument Serif", Georgia, "Iowan Old Style", serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --container-max: 1180px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Theme 2: Cece Cobalt */
[data-palette="cobalt"] {
  color-scheme: light;
  --bg-canvas: #f4f7fc;
  --bg-canvas-2: #ebf0f9;
  --ink-primary: #0b1020;
  --ink-secondary: #3d4558;
  --ink-muted: #5d667b;
  --ink-on-accent: #ffffff;

  --accent: #2b5fd0;
  --accent-hover: #1f4fbf;
  --accent-soft: rgba(43, 95, 208, 0.10);
  --accent-line: rgba(43, 95, 208, 0.25);
  --logo-bg-1: #3c73eb;
  --logo-bg-2: #183a8f;
  --logo-c2: #9dc8ff;
  --warm: #b0431d;
  --warm-soft: rgba(176, 67, 29, 0.10);

  --glass-bg: rgba(255, 255, 255, 0.62);
  --glass-bg-strong: rgba(255, 255, 255, 0.82);
  --glass-nav: rgba(255, 255, 255, 0.62);
  --glass-inset: rgba(255, 255, 255, 0.50);
  --glass-edge: rgba(16, 24, 48, 0.085);
  --glass-shadow: 0 1px 2px rgba(16, 24, 48, 0.04), 0 14px 36px -10px rgba(16, 24, 48, 0.14);
  --glass-shadow-lg: 0 2px 6px rgba(16, 24, 48, 0.05), 0 28px 64px -18px rgba(16, 24, 48, 0.22);

  --haze-1: rgba(43, 95, 208, 0.28);
  --haze-2: rgba(99, 128, 255, 0.22);
  --haze-3: rgba(56, 182, 240, 0.22);
  --haze-4: rgba(126, 118, 246, 0.16);

  --panel-dark-bg: rgba(14, 19, 34, 0.88);
  --panel-dark-card: rgba(24, 31, 52, 0.74);
  --panel-dark-ink: #eef2fa;
  --panel-dark-muted: #9ea8c2;
  --panel-dark-accent: #86afff;
  --panel-dark-accent-2: #f0b28c;

  --bubble-user-bg: #152142;
  --bubble-user-ink: #f4f7fc;
  --line-subtle: rgba(16, 24, 48, 0.09);
  --line-strong: rgba(16, 24, 48, 0.18);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-canvas);
  color: var(--ink-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease-out), color 0.3s ease;
}

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

button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ink-on-accent);
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Atmospheric Luminous Haze Background (cece.to signature aurora backdrop)
   ========================================================================== */
.ambient-haze {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.haze-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(84px);
  opacity: 0.95;
  will-change: transform;
  transition: background 0.5s var(--ease-out);
}

.haze-orb-1 {
  width: 56vw;
  height: 48vw;
  max-width: 780px;
  max-height: 640px;
  top: -16%;
  left: -8%;
  background: radial-gradient(circle, var(--haze-1) 0%, transparent 72%);
  animation: hazeDrift1 22s ease-in-out infinite alternate;
}

.haze-orb-2 {
  width: 52vw;
  height: 46vw;
  max-width: 740px;
  max-height: 620px;
  top: -10%;
  right: -10%;
  background: radial-gradient(circle, var(--haze-2) 0%, transparent 72%);
  animation: hazeDrift2 26s ease-in-out infinite alternate;
}

.haze-orb-3 {
  width: 44vw;
  height: 44vw;
  max-width: 640px;
  max-height: 640px;
  top: 38%;
  left: 26%;
  background: radial-gradient(circle, var(--haze-3) 0%, transparent 72%);
  animation: hazeDrift3 28s ease-in-out infinite alternate;
}

.haze-orb-4 {
  width: 48vw;
  height: 42vw;
  max-width: 680px;
  max-height: 580px;
  bottom: -14%;
  right: 8%;
  background: radial-gradient(circle, var(--haze-4) 0%, transparent 72%);
  animation: hazeDrift1 30s ease-in-out infinite alternate-reverse;
}

@keyframes hazeDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(4%, 6%, 0) scale(1.08); }
}
@keyframes hazeDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-5%, 5%, 0) scale(1.06); }
}
@keyframes hazeDrift3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(3%, -6%, 0) scale(1.10); }
}

@media (prefers-reduced-motion: reduce) {
  .haze-orb { animation: none; }
}

/* ==========================================================================
   Reusable Liquid Glass Surface Mixin
   ========================================================================== */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(22px) saturate(165%);
  -webkit-backdrop-filter: blur(22px) saturate(165%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 1px var(--glass-edge),
    var(--glass-shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.25s var(--ease-out), transform 0.22s var(--ease-out);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-sheen);
  pointer-events: none;
}
.glass > * {
  position: relative;
  z-index: 1;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Floating Liquid-Glass Capsule Navigation & Minimal Theme Icon
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 55;
  padding: 16px 24px 0;
  pointer-events: none;
}

.nav-shell {
  pointer-events: auto;
  position: relative;
  z-index: 0;
  max-width: 1140px;
  margin: 0 auto;
  padding: 8px 10px 8px 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: max-width 0.45s var(--ease-out), padding 0.35s var(--ease-out);
}

.nav-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: var(--glass-nav);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 0.5px var(--glass-edge),
    var(--glass-shadow);
  transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

.nav-shell::after {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(50% 140% at 20% -40%, var(--glass-spec, rgba(255, 255, 255, 0.38)), transparent 60%),
    var(--glass-sheen);
  pointer-events: none;
}

.site-header.is-scrolled .nav-shell {
  max-width: 1000px;
  padding: 6px 8px 6px 12px;
}

.site-header.is-scrolled .nav-shell::before {
  background: var(--glass-nav-scrolled);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 0.5px var(--glass-edge),
    var(--glass-shadow-lg);
}

.nav-shell .btn-primary {
  border-radius: 999px;
  padding: 9px 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-primary);
}
.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 6px var(--accent-line));
  transition: transform 0.25s var(--ease-out);
}
.brand:hover .brand-mark {
  transform: scale(1.06);
}
.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.brand-tld {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-secondary);
}
.nav-links a {
  transition: color 0.16s ease;
}
.nav-links a:hover,
.nav-links a.is-current {
  color: var(--ink-primary);
}
.nav-links a.is-current {
  font-weight: 600;
  color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Minimal Theme Switch Icon (Forest Glass <-> Cece Cobalt) */
.theme-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--glass-inset);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.25s var(--ease-out), box-shadow 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--accent-line);
  background: var(--glass-bg-strong);
  box-shadow: 0 4px 12px -4px var(--accent-line);
  transform: scale(1.06);
}
.theme-toggle:active {
  transform: scale(0.95);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.theme-orb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1c4c3a 0% 50%, #2b5fd0 50% 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.72), 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.45s var(--ease-out);
}
[data-palette="cobalt"] .theme-orb {
  transform: rotate(180deg);
}
.nav-mobile-link {
  display: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-secondary);
  padding: 6px 10px;
  border-radius: 999px;
  transition: color 0.16s ease, background-color 0.16s ease;
}
.nav-mobile-link:hover {
  color: var(--ink-primary);
  background: var(--glass-inset);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.16s var(--ease-out), background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: var(--ink-on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px -6px var(--accent-line);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-secondary {
  background: var(--glass-bg-strong);
  color: var(--ink-primary);
  border-color: var(--line-strong);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover {
  background: var(--glass-bg);
  border-color: var(--accent-line);
}
.btn-lg {
  padding: 13px 23px;
  font-size: 15px;
  border-radius: 12px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 58px 0 86px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.90fr) minmax(0, 1.10fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(50px, 5.8vw, 76px);
  font-weight: 400;
  line-height: 1.01;
  letter-spacing: -0.025em;
  margin: 0 0 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}

.hero-lead {
  font-size: 17.5px;
  line-height: 1.64;
  color: var(--ink-secondary);
  margin: 0 0 28px;
  max-width: 470px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-subtle);
  font-size: 13px;
  color: var(--ink-muted);
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.proof-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ---------- Liquid Glass Hero Simulator ---------- */
.sim-shell {
  border-radius: var(--radius-lg);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 1px var(--glass-edge),
    var(--glass-shadow-lg);
  overflow: hidden;
}

.sim-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--glass-inset);
  border-bottom: 1px solid var(--line-subtle);
  flex-wrap: wrap;
}

.sim-tabs {
  display: inline-flex;
  gap: 3px;
  background: var(--line-subtle);
  padding: 3px;
  border-radius: 10px;
}

.sim-tab {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  padding: 5px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.sim-tab[aria-selected="true"] {
  background: var(--glass-bg-strong);
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

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

.sim-status {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  white-space: nowrap;
}

.sim-replay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  border: 1px solid var(--line-subtle);
  background: var(--glass-bg-strong);
  color: var(--ink-muted);
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.25s var(--ease-out);
}
.sim-replay-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  transform: rotate(-45deg);
}
.sim-replay-btn:active {
  transform: rotate(-160deg);
}

.sim-body {
  padding: 18px 20px 16px;
  min-height: 472px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.sim-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.sim-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  animation: fadeSlide 0.28s var(--ease-out);
}
.sim-panel.is-active {
  display: flex;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Animated Manual-Input Chat Steps */
.sim-step.is-hidden {
  display: none !important;
}
.sim-step.is-entered {
  animation: msgPopIn 0.34s var(--ease-out) both;
}
@keyframes msgPopIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cece Typing Indicator */
.sim-typing-row {
  display: none;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 13px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  background: var(--bubble-bot-bg);
  border: 1px solid var(--line-subtle);
  font-size: 12px;
  color: var(--ink-muted);
  animation: msgPopIn 0.22s var(--ease-out) both;
}
.sim-typing-row.is-visible {
  display: inline-flex;
}
.typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.typing-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.4;
  animation: dotBounce 1.1s ease-in-out infinite;
}
.typing-dots i:nth-child(2) { animation-delay: 0.16s; }
.typing-dots i:nth-child(3) { animation-delay: 0.32s; }
@keyframes dotBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-3px); opacity: 1; }
}

/* Realistic Manual-Typing Chat Composer */
.sim-composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--glass-bg-strong);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sim-composer.is-typing {
  border-color: var(--accent-line);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.sim-input-box {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
}
.sim-input-box.is-placeholder {
  color: var(--ink-muted);
}
.sim-caret {
  display: inline-block;
  width: 1.5px;
  height: 14px;
  background: var(--accent);
  margin-left: 1px;
  flex-shrink: 0;
  opacity: 0;
}
.sim-composer.is-typing .sim-caret {
  opacity: 1;
  animation: caretBlink 0.72s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
.sim-send-btn {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 0;
  background: var(--line-subtle);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  pointer-events: none;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.16s var(--ease-out);
}
.sim-composer.is-typing .sim-send-btn {
  background: var(--accent);
  color: var(--ink-on-accent);
}
.sim-composer.is-sending .sim-send-btn {
  background: var(--accent-hover);
  color: var(--ink-on-accent);
  transform: scale(0.86);
}

@media (prefers-reduced-motion: reduce) {
  .sim-step.is-entered,
  .typing-dots i,
  .sim-caret {
    animation: none !important;
  }
}

.msg-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.msg-row.is-user { align-items: flex-end; }
.msg-row.is-cece { align-items: flex-start; }

.msg-meta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tag-vault {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--accent-soft);
  color: var(--accent);
}

.msg-bubble {
  max-width: 92%;
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.5;
}
.msg-row.is-user .msg-bubble {
  background: var(--bubble-user-bg);
  color: var(--bubble-user-ink);
  border-bottom-right-radius: 4px;
}
.msg-row.is-cece .msg-bubble {
  background: var(--bubble-bot-bg);
  border: 1px solid var(--line-subtle);
  color: var(--ink-primary);
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(10px);
}

.macro-line {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
}

.memory-note {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--ink-secondary);
}

.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--glass-bg-strong);
  color: var(--ink-primary);
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.chip-btn.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-on-accent);
}
.chip-btn.is-success {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent);
}
.chip-btn.is-success:hover {
  background: var(--accent);
  color: var(--ink-on-accent);
}

.pod-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pod-pane {
  background: var(--glass-inset);
  border: 1px solid var(--line-subtle);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pod-pane.is-private {
  background: var(--accent-soft);
  border-color: var(--accent-line);
}
.pod-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-subtle);
}
.pod-pane .msg-bubble {
  max-width: 100%;
  font-size: 12.5px;
  padding: 9px 11px;
}

.pod-badge-toast {
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--warm-soft);
  border: 1px solid var(--line-subtle);
  color: var(--warm);
  font-size: 12px;
  font-weight: 500;
  display: none;
  animation: fadeSlide 0.25s var(--ease-out);
}
.pod-badge-toast.is-visible { display: block; }

.recall-trace {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.recall-step {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

.sim-footer-note {
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}

/* ---------- Sections ---------- */
.section {
  padding: 84px 0;
}

.section-header {
  max-width: 660px;
  margin-bottom: 44px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.07;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.section-desc {
  font-size: 16.5px;
  color: var(--ink-secondary);
  margin: 0;
}

/* ---------- Pillars ---------- */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pillar {
  border-radius: var(--radius-md);
  padding: 28px;
}
.pillar:hover {
  transform: translateY(-3px);
}
.pillar-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 14px;
}
.pillar h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.pillar p {
  font-size: 14.5px;
  color: var(--ink-secondary);
  margin: 0 0 16px;
}
.pillar-example {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
  background: var(--glass-inset);
  border: 1px solid var(--line-subtle);
  padding: 9px 11px;
  border-radius: 9px;
}

/* ---------- 4-Layer Memory Explorer ---------- */
.memory-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 32px;
  align-items: start;
}

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.memory-btn {
  text-align: left;
  width: 100%;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
}
.memory-btn[aria-selected="true"] {
  background: var(--glass-bg-strong);
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 1px var(--accent-line),
    var(--glass-shadow);
}
.memory-btn-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.memory-btn-title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink-primary);
}
.memory-btn-speed {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}
.memory-btn-sub {
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.memory-inspector {
  background: var(--panel-dark-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--panel-dark-border);
  color: var(--panel-dark-ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--glass-shadow-lg);
  min-height: 368px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.inspector-kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--panel-dark-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.inspector-title {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
  margin: 6px 0 10px;
  line-height: 1.15;
}
.inspector-copy {
  font-size: 14.5px;
  color: var(--panel-dark-muted);
  margin: 0 0 16px;
}
.inspector-cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inspector-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 13.5px;
  line-height: 1.45;
}
.inspector-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--panel-dark-accent);
  flex-shrink: 0;
}
.inspector-row-val {
  color: var(--panel-dark-ink);
  text-align: right;
}
.inspector-foot {
  font-size: 12.5px;
  color: var(--panel-dark-muted);
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* ---------- Privacy Glass Band ---------- */
.privacy-band {
  background: var(--panel-dark-bg);
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
  border: 1px solid var(--panel-dark-border);
  border-radius: 30px;
  padding: 56px 44px;
  color: var(--panel-dark-ink);
  box-shadow: var(--glass-shadow-lg);
}
.privacy-band .eyebrow { color: var(--panel-dark-accent); }
.privacy-band .section-desc { color: var(--panel-dark-muted); }

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-bottom: 28px;
}
.vault-card {
  background: var(--panel-dark-card);
  border: 1px solid var(--panel-dark-border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.vault-card h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--panel-dark-accent);
  margin: 0 0 6px;
}
.vault-card.is-group h3 {
  color: var(--panel-dark-accent-2);
}
.vault-role {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--panel-dark-muted);
  margin-bottom: 14px;
}
.vault-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--panel-dark-ink);
}
.vault-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.vault-list li::before {
  content: "—";
  color: var(--panel-dark-muted);
  flex-shrink: 0;
}

.guarantees-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.guarantee-item {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-dark-border);
}
.guarantee-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
  color: var(--panel-dark-ink);
}
.guarantee-item p {
  margin: 0;
  font-size: 13px;
  color: var(--panel-dark-muted);
  line-height: 1.5;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.price-card {
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card.is-featured {
  background: var(--glass-bg-strong);
  border-color: var(--accent);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 0 0 1px var(--accent-line),
    var(--glass-shadow-lg);
}
.price-tier {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
.price-amount {
  font-family: var(--font-display);
  font-size: 46px;
  line-height: 1;
  margin: 0 0 8px;
}
.price-amount span {
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink-muted);
}
.price-sub {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 22px;
}
.price-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
  font-size: 14px;
}
.price-features li {
  display: flex;
  gap: 9px;
}
.price-features li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 700;
}

/* ---------- FAQ (Centered on Homepage) ---------- */
#faq .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.faq-shell {
  max-width: 820px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 8px 28px;
}
.guide-block .faq-shell {
  max-width: 100%;
  margin: 0;
}
.faq-item {
  border-bottom: 1px solid var(--line-subtle);
}
.faq-item:last-child {
  border-bottom: 0;
}
.faq-item summary {
  list-style: none;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 0.16s ease;
}
.faq-item summary:hover {
  color: var(--accent);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--ink-muted);
  transition: transform 0.2s var(--ease-out), color 0.2s ease;
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--accent);
}
.faq-answer {
  padding: 0 0 20px;
  font-size: 14.5px;
  color: var(--ink-secondary);
  max-width: 720px;
}

/* ---------- Live Macro Meters (Hero Chat Visual) ---------- */
.macro-meters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 4px;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--glass-inset);
  border: 1px solid var(--line-subtle);
}
.macro-meter-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-muted);
  margin-bottom: 5px;
}
.macro-meter-head strong {
  color: var(--ink-primary);
}
.macro-track {
  height: 6px;
  border-radius: 999px;
  background: var(--line-subtle);
  overflow: hidden;
}
.macro-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--logo-c2) 100%);
  transition: width 0.5s var(--ease-out);
}
.macro-fill.is-protein {
  background: linear-gradient(90deg, var(--warm) 0%, var(--accent) 100%);
}

/* ---------- Animated Vault Split SVG Visual (Privacy Section) ---------- */
.vault-flow-visual {
  margin-bottom: 26px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--panel-dark-border);
  overflow: hidden;
}
.vault-flow-svg {
  width: 100%;
  height: auto;
  display: block;
}
.flow-path-base {
  fill: none;
  stroke: rgba(255, 255, 255, 0.14);
  stroke-width: 1.75;
}
.flow-path-pulse {
  fill: none;
  stroke: var(--panel-dark-accent);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-dasharray: 28 220;
  animation: flowTravel 3.2s linear infinite;
}
.flow-path-pulse.is-group {
  stroke: var(--panel-dark-accent-2);
  animation-delay: -1.4s;
}
.flow-node-pulse {
  animation: softBeat 3s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes flowTravel {
  from { stroke-dashoffset: 248; }
  to { stroke-dashoffset: 0; }
}
@keyframes softBeat {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* ---------- Scroll-Reveal Choreography ---------- */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}
.js-ready .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Subtle Hero Simulator Float */
.sim-shell {
  animation: simReveal 0.7s var(--ease-out) both;
}
@keyframes simReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-path-pulse,
  .flow-node-pulse,
  .sim-shell {
    animation: none;
  }
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Early Access Card ---------- */
.access-box {
  border-radius: 28px;
  padding: 44px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}
.access-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.field input,
.field select {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--glass-bg-strong);
  color: var(--ink-primary);
  font-size: 14.5px;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-hint {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin: 0;
}
.waitlist-success {
  display: none;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
}
.waitlist-success.is-visible {
  display: block;
  animation: fadeSlide 0.25s var(--ease-out);
}
.waitlist-success h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--accent);
}
.waitlist-success p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 56px 0 44px;
  border-top: 1px solid var(--line-subtle);
  font-size: 14px;
  color: var(--ink-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 34px;
}
.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-muted);
  margin: 0 0 12px;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-col a:hover { color: var(--ink-primary); }
.footer-bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line-subtle);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

/* ==========================================================================
   Product User Guide Sub-Page (/guide/)
   ========================================================================== */
.guide-hero {
  padding: 46px 0 42px;
}

.guide-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 18px;
}
.guide-breadcrumb a {
  color: var(--ink-secondary);
  transition: color 0.16s ease;
}
.guide-breadcrumb a:hover {
  color: var(--accent);
}
.guide-breadcrumb-sep {
  opacity: 0.45;
}

.guide-hero-card {
  border-radius: 28px;
  padding: 42px 44px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: 36px;
  align-items: end;
}

.guide-hero-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 64px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.024em;
  margin: 0 0 16px;
}
.guide-hero-title em {
  font-style: italic;
  color: var(--accent);
}

.guide-hero-lead {
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-secondary);
  margin: 0 0 24px;
  max-width: 580px;
}

.guide-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-jump-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-secondary);
  background: var(--glass-inset);
  border: 1px solid var(--line-subtle);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease, transform 0.16s var(--ease-out);
}
.guide-jump-link:hover {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--glass-bg-strong);
  transform: translateY(-1px);
}

.guide-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: var(--glass-inset);
  border: 1px solid var(--line-subtle);
}
.guide-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 13.5px;
}
.guide-meta-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.guide-meta-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}
.guide-meta-value {
  font-weight: 600;
  color: var(--ink-primary);
  text-align: right;
}

/* Two-Column Guide Layout */
.guide-main-section {
  padding: 18px 0 88px;
}

.guide-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.guide-toc {
  position: sticky;
  top: 86px;
  border-radius: var(--radius-md);
  padding: 20px 18px;
}
.guide-toc-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin: 0 0 12px;
  padding: 0 10px;
}
.guide-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.guide-toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: background-color 0.16s ease, color 0.16s ease;
}
.guide-toc-link:hover {
  color: var(--ink-primary);
  background: var(--glass-inset);
}
.guide-toc-link.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.guide-toc-num {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.72;
  flex-shrink: 0;
}
.guide-toc-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-subtle);
  padding-left: 10px;
  padding-right: 10px;
  font-size: 12.5px;
  color: var(--ink-muted);
}
.guide-toc-foot a {
  color: var(--accent);
  font-weight: 600;
}
.guide-toc-foot a:hover {
  text-decoration: underline;
}

.guide-content {
  display: flex;
  flex-direction: column;
  gap: 64px;
  min-width: 0;
}

.guide-block {
  scroll-margin-top: 96px;
}
.guide-block-header {
  margin-bottom: 24px;
}
.guide-block-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 400;
  line-height: 1.09;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.guide-block-desc {
  font-size: 15.5px;
  color: var(--ink-secondary);
  margin: 0;
  max-width: 680px;
}

/* Inline Code Styling */
code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}

/* Quick Start Steps */
.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.step-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.step-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.step-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0;
}

/* Copyable Prompt Pill */
.copy-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px 9px 12px;
  border-radius: 10px;
  background: var(--glass-inset);
  border: 1px solid var(--line-subtle);
}
.copy-pill-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-primary);
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.copy-btn {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid var(--line-strong);
  background: var(--glass-bg-strong);
  color: var(--ink-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.copy-btn:hover {
  color: var(--accent);
  border-color: var(--accent-line);
}
.copy-btn.is-copied {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-on-accent);
}

/* 3-Part Reply Anatomy + Interactive Scenario Playground */
.anatomy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 20px;
  align-items: stretch;
}
.scenario-shell {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.scenario-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  background: var(--glass-inset);
  border-bottom: 1px solid var(--line-subtle);
  flex-wrap: wrap;
}
.scenario-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--line-subtle);
  padding: 3px;
  border-radius: 10px;
}
.scenario-tab {
  border: 0;
  background: transparent;
  color: var(--ink-secondary);
  padding: 6px 11px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease;
}
.scenario-tab[aria-selected="true"] {
  background: var(--glass-bg-strong);
  color: var(--ink-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.scenario-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.scenario-panel {
  display: none;
  flex-direction: column;
  gap: 14px;
  animation: fadeSlide 0.25s var(--ease-out);
}
.scenario-panel.is-active {
  display: flex;
}

.embed-card {
  border-radius: 14px;
  background: var(--bubble-bot-bg);
  border: 1px solid var(--line-subtle);
  border-left: 3px solid var(--accent);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13.5px;
}
.embed-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-primary);
}
.embed-part {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.embed-part-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.embed-part-body {
  color: var(--ink-secondary);
  line-height: 1.5;
}
.embed-part-body strong {
  color: var(--ink-primary);
}
.embed-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}
.embed-action-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--glass-inset);
  border: 1px solid var(--line-strong);
  color: var(--ink-secondary);
}

.anatomy-card {
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.anatomy-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
}
.anatomy-card > div > p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 18px;
}
.anatomy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.anatomy-list li {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--glass-inset);
  border: 1px solid var(--line-subtle);
}
.anatomy-list strong {
  display: block;
  font-size: 14px;
  color: var(--ink-primary);
  margin-bottom: 3px;
}
.anatomy-list span {
  font-size: 13.5px;
  color: var(--ink-secondary);
  display: block;
}
.anatomy-tip {
  font-size: 13px;
  color: var(--ink-muted);
  padding-top: 12px;
  border-top: 1px solid var(--line-subtle);
}

/* 3 Spaces Comparison Grid */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.space-card {
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.space-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 6px;
}
.space-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
}
.space-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0 0 14px;
}
.space-specs {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-subtle);
  font-size: 13px;
}
.space-spec {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.space-spec-k {
  color: var(--ink-muted);
}
.space-spec-v {
  font-weight: 600;
  color: var(--ink-primary);
  text-align: right;
}

/* Guide Callout Banner */
.guide-callout {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guide-callout strong {
  font-size: 14px;
  color: var(--accent);
}
.guide-callout p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-secondary);
}

/* Memory & Profile 2x2 Grid */
.guide-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.guide-card {
  border-radius: var(--radius-md);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}
.guide-card h3 {
  font-size: 17.5px;
  font-weight: 700;
  margin: 0 0 8px;
}
.guide-card p {
  font-size: 14px;
  color: var(--ink-secondary);
  margin: 0;
}

/* Interactive Command & Phrase Reference */
.cmd-shell {
  border-radius: var(--radius-lg);
  padding: 24px;
}
.cmd-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.cmd-search-wrap {
  flex: 1 1 260px;
  max-width: 370px;
}
.cmd-search {
  width: 100%;
  padding: 9px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--glass-bg-strong);
  color: var(--ink-primary);
  font-size: 14px;
}
.cmd-search:focus {
  outline: none;
  border-color: var(--accent);
}
.cmd-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cmd-filter-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--glass-inset);
  color: var(--ink-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cmd-filter-btn:hover {
  color: var(--ink-primary);
  border-color: var(--accent-line);
}
.cmd-filter-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink-on-accent);
}

.cmd-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-subtle);
}
.cmd-row {
  display: grid;
  grid-template-columns: minmax(170px, 0.95fr) minmax(0, 1.55fr) auto;
  gap: 16px;
  align-items: center;
  padding: 15px 6px;
  border-bottom: 1px solid var(--line-subtle);
}
.cmd-row[hidden] {
  display: none;
}
.cmd-syntax {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
.cmd-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
}
.cmd-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cmd-badge.is-group {
  color: var(--warm);
}
.cmd-desc {
  font-size: 14px;
  color: var(--ink-secondary);
  line-height: 1.5;
}
.cmd-desc strong {
  color: var(--ink-primary);
}
.cmd-empty {
  display: none;
  padding: 28px 12px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-muted);
}
.cmd-empty.is-visible {
  display: block;
}

/* Guide Privacy Band Tweaks */
.guide-privacy-band {
  padding: 38px 34px;
  border-radius: 26px;
}
.guide-privacy-band .guarantees-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.privacy-band code {
  background: rgba(255, 255, 255, 0.10);
  color: var(--panel-dark-accent);
}
.privacy-band .guarantee-item p strong {
  display: inline;
  margin: 0;
  font-size: inherit;
  color: var(--panel-dark-ink);
}
.guide-safety-note {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--panel-dark-border);
  font-size: 13.5px;
  color: var(--panel-dark-muted);
  line-height: 1.55;
}
.guide-safety-note strong {
  color: var(--panel-dark-accent-2);
}

/* Guide Bottom CTA */
.guide-cta-card {
  border-radius: 26px;
  padding: 34px 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.guide-cta-card h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  margin: 0 0 6px;
  line-height: 1.1;
}
.guide-cta-card p {
  margin: 0;
  font-size: 15px;
  color: var(--ink-secondary);
  max-width: 520px;
}
.guide-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid,
  .memory-layout,
  .privacy-grid,
  .access-box,
  .pillars-grid,
  .pricing-grid,
  .guide-hero-card,
  .guide-layout,
  .guide-steps,
  .anatomy-grid,
  .spaces-grid {
    grid-template-columns: 1fr;
  }
  .guide-toc {
    position: static;
  }
  .guide-toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .guide-toc-link {
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid var(--line-subtle);
    background: var(--glass-inset);
  }
  .guarantees-row,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .privacy-band {
    padding: 36px 24px;
  }
  .guide-hero-card {
    padding: 30px 26px;
  }
}

@media (max-width: 640px) {
  .site-header { padding: 12px 14px 0; }
  .nav-shell { padding: 6px 8px 6px 10px; gap: 8px; }
  .brand { gap: 7px; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-wordmark { font-size: 22px; }
  .nav-links { display: none; }
  .nav-mobile-link { display: inline-flex; padding: 4px 6px; font-size: 13px; }
  .nav-actions { gap: 6px; }
  .theme-toggle { width: 32px; height: 32px; }
  .theme-orb { width: 16px; height: 16px; }
  .nav-shell .btn-primary {
    white-space: nowrap;
    padding: 8px 13px;
    font-size: 12.5px;
  }
  .pod-split,
  .guarantees-row,
  .footer-grid,
  .guide-two-col,
  .guide-privacy-band .guarantees-row,
  .macro-meters {
    grid-template-columns: 1fr;
  }
  .vault-flow-visual { padding: 14px 12px; }
  .cmd-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
  }
  .access-box { padding: 26px 20px; }
  .guide-hero-card { padding: 24px 20px; }
  .cmd-shell { padding: 18px 16px; }
  .guide-privacy-band { padding: 28px 20px; }
  .guide-cta-card { padding: 26px 22px; }
}

