@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #0b0d13;
  --bg-gradient: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(59, 130, 246, 0.08), transparent 60%);
  --surface: #12151e;
  --surface-hover: #171b27;
  --surface-elevated: #1b202e;
  --surface-card: rgba(18, 21, 30, 0.9);
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(59, 130, 246, 0.28);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-subtle: rgba(59, 130, 246, 0.1);
  --amber: #d97706;
  --amber-surface: rgba(217, 119, 6, 0.08);
  --amber-border: rgba(217, 119, 6, 0.25);

  /* Expansive desktop width */
  --max: 1360px;

  /* Typography Stacks */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration 0.15s ease;
}

a:hover {
  color: #93c5fd;
  text-decoration: underline;
}

.wrap {
  width: min(calc(100% - 64px), var(--max));
  margin: 0 auto;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 19, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: border-color 0.2s ease;
}

.nav {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
  text-decoration: none !important;
  flex-shrink: 0;
}

.brand img {
  height: 34px;
  width: 34px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.brand-title {
  color: var(--text);
}

.links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 4px;
  transition: color 0.15s ease;
  position: relative;
  display: inline-flex;
  align-items: center;
}

.links a:hover,
.links a[aria-current="page"] {
  color: #ffffff;
}

.links a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
  text-decoration: none !important;
  transform: translateY(-1px);
}

/* ==========================================================================
   Typography
   ========================================================================== */

main {
  padding: 48px 0 96px;
}

.hero-category,
.doc-category,
.section-label {
  font-family: var(--font-body);
  font-size: clamp(12px, 1.2vw, 13px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  display: block;
}

h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: #ffffff;
}

h1 span.highlight {
  background: linear-gradient(180deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: #ffffff;
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
  color: #ffffff;
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.8vw, 19px);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 65ch;
}

p, li {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--text-muted);
  max-width: 65ch;
}

.status-badge,
.prompt-hint,
.updated,
.footer,
.kpi-label,
.small {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
}

/* ==========================================================================
   Hero Section (Wide Screen Split)
   ========================================================================== */

.hero {
  padding: 32px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 1.05fr;
  gap: 56px;
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: 0;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.15s ease;
  min-height: 44px;
}

.btn:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: #ffffff;
  color: #0b0d13;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.btn.primary:hover {
  background: #e2e8f0;
  color: #0b0d13;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.12);
}

.btn-icon {
  width: 15px;
  height: 15px;
}

/* Hero Stat Cards Strip */
.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2px;
}

.hero-stat-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.35;
}

/* Status Notice */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
}

.status-badge .badge-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--text-dim);
}

/* ==========================================================================
   Hero Preview / Terminal Mockup
   ========================================================================== */

.hero-preview {
  position: relative;
  width: 100%;
}

.terminal-window {
  position: relative;
  z-index: 1;
  background: #0f121a;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  width: 100%;
}

.terminal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #141822;
  border-bottom: 1px solid var(--border);
}

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

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.terminal-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}

.terminal-tag {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 500;
}

.terminal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 13px;
}

.chat-bubble-user {
  background: #191e2b;
  border: 1px solid var(--border);
  border-radius: 8px 8px 2px 8px;
  padding: 12px 16px;
  align-self: flex-end;
  max-width: 90%;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.chat-bubble-assistant {
  background: #121620;
  border: 1px solid var(--border);
  border-radius: 2px 8px 8px 8px;
  padding: 16px;
  align-self: flex-start;
  width: 100%;
}

.assistant-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi-chip {
  background: #171b26;
  border: 1px solid var(--border);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  text-align: center;
}

.kpi-label {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 3px;
}

.kpi-value {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.kpi-value.warning {
  color: #fbbf24;
}

.task-list-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.task-item-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #171b26;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  font-size: 12px;
}

.task-item-preview.alert {
  border-left-color: var(--amber);
}

.task-info {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.task-id {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 11px;
  flex-shrink: 0;
}

.task-title {
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.task-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* ==========================================================================
   Active Card Architecture: Workflow Phases (3 Step Cards)
   ========================================================================== */

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 36px 0 72px;
}

.workflow-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.workflow-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.workflow-phase {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #60a5fa;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.workflow-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
}

.workflow-card p {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--text-muted);
}

/* ==========================================================================
   Section Headers & Bento Grid (Wide Viewport)
   ========================================================================== */

.section {
  padding: 72px 0 32px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 52px;
}

.section-header p {
  margin: 0 auto;
}

/* Bento Grid (Expanded to 12 columns with full width utilization) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.bento-card.col-7 { grid-column: span 7; }
.bento-card.col-5 { grid-column: span 5; }
.bento-card.col-4 { grid-column: span 4; }
.bento-card.col-6 { grid-column: span 6; }
.bento-card.col-8 { grid-column: span 8; }
.bento-card.col-12 { grid-column: span 12; }

.bento-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid var(--border-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 22px;
}

.bento-icon-wrapper svg {
  width: 22px;
  height: 22px;
}

.bento-visual {
  margin-top: 24px;
  padding: 16px;
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
}

/* ==========================================================================
   Prompt Playbook Section: Side-by-Side Interactive Cards
   ========================================================================== */

.playbook-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.playbook-tabs {
  display: flex;
  background: #0d1017;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.playbook-tabs::-webkit-scrollbar {
  display: none;
}

.playbook-tab {
  padding: 16px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  min-height: 48px;
}

.playbook-tab:hover {
  color: #ffffff;
}

.playbook-tab.active {
  color: #ffffff;
  border-bottom-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
}

.playbook-content {
  padding: 32px;
}

.playbook-panel {
  display: none;
}

.playbook-panel.active {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}

.prompt-box {
  background: #0b0d13;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  position: relative;
}

.prompt-text {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  color: #e2e8f0;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.prompt-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.0;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 38px;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-hover);
}

.btn-copy.copied {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--accent);
  color: #93c5fd;
}

/* Playbook Result Card (Active Card Pair) */
.playbook-result-card {
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}

.playbook-result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.playbook-result-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   Architecture & Roadmap Comparison
   ========================================================================== */

.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.roadmap-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}

.roadmap-card.current {
  border-color: rgba(59, 130, 246, 0.25);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, var(--surface-card) 100%);
}

.roadmap-card.planned {
  border-color: var(--border);
}

.roadmap-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.roadmap-tag.active {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
}

.roadmap-tag.future {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.roadmap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.roadmap-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  max-width: 100%;
}

.roadmap-list svg {
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #60a5fa;
}

.roadmap-list .icon-future {
  color: var(--text-dim);
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.faq-item[open] {
  border-color: var(--border-hover);
  background: var(--surface);
}

.faq-summary {
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  list-style: none;
  user-select: none;
  min-height: 52px;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  width: 17px;
  height: 17px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
  color: #ffffff;
}

.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

.faq-body p:first-child {
  margin-top: 0;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Legal & Documentation Pages (.doc)
   ========================================================================== */

.doc {
  max-width: 65ch;
  margin: 0 auto;
  padding: 24px 0 48px;
}

.updated {
  margin-bottom: 28px;
  color: var(--text-dim);
}

.doc h2 {
  font-size: clamp(22px, 2.5vw, 26px);
  margin-top: 36px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
  color: #ffffff;
}

.doc h3 {
  font-size: 18px;
  margin-top: 22px;
  margin-bottom: 8px;
  color: #ffffff;
}

.doc ul {
  padding-left: 22px;
  margin: 14px 0;
}

.doc li {
  margin-bottom: 7px;
}

.callout {
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-sm);
  margin: 24px 0;
  max-width: 65ch;
}

.callout.warning {
  border-color: var(--amber-border);
  background: var(--amber-surface);
}

.callout strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
  font-size: 14px;
}

.callout p {
  color: var(--text-muted);
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

.callout.warning p {
  color: #fde68a;
}

code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: #141724;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 2px 6px;
  color: #cbd5e1;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 48px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footerlinks {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footerlinks a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.15s ease;
}

.footerlinks a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Large Tablets & Small Laptops (<= 1120px) */
@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-preview {
    max-width: 760px;
    margin: 0 auto;
  }

  .playbook-panel.active {
    grid-template-columns: 1fr;
  }

  .workflow-strip {
    grid-template-columns: 1fr;
  }
}

/* Tablets (<= 960px) */
@media (max-width: 960px) {
  .bento-card.col-7,
  .bento-card.col-5,
  .bento-card.col-4,
  .bento-card.col-6,
  .bento-card.col-8 {
    grid-column: span 12;
  }

  .roadmap-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .wrap {
    width: min(calc(100% - 32px), var(--max));
  }

  .nav {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 12px;
  }

  .links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding-bottom: 4px;
  }

  .links::-webkit-scrollbar {
    display: none;
  }

  .links a {
    white-space: nowrap;
    font-size: 14px;
    padding: 6px 0;
  }

  .nav-cta {
    font-size: 13px;
    padding: 7px 12px;
  }

  .hero-stat-strip {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 48px 0 20px;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .playbook-content {
    padding: 20px;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .wrap {
    width: min(calc(100% - 24px), var(--max));
  }

  main {
    padding: 24px 0 64px;
  }

  .hero {
    padding: 12px 0 36px;
    gap: 28px;
  }

  .actions {
    flex-direction: column;
    width: 100%;
  }

  .actions .btn {
    width: 100%;
  }

  .bento-card {
    padding: 20px;
    border-radius: var(--radius-md);
  }

  .terminal-body {
    padding: 14px;
  }

  .assistant-kpis {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .task-item-preview {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .task-meta {
    align-self: flex-start;
  }

  .prompt-box {
    padding: 14px;
  }

  .prompt-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .btn-copy {
    width: 100%;
    justify-content: center;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 0 36px;
  }

  .footerlinks {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* Requested behavior only: retain the existing visual system. */
.faq-summary[aria-expanded="false"] .faq-icon{transform:rotate(0deg)}
.faq-summary[aria-expanded="true"] .faq-icon{transform:rotate(180deg)}
.code-block{position:relative;margin:20px 0;padding:16px;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);overflow-x:auto}
.code-block pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.code-block code{border:0;padding:0;background:none}
.code-block button{display:inline-flex;gap:6px;align-items:center;margin-top:10px;padding:6px 10px;background:var(--surface);color:var(--text);border:1px solid var(--border);border-radius:4px;cursor:pointer}
.code-block button svg{width:14px;height:14px}
.doc section{scroll-margin-top:100px}.doc .document-note{padding:18px 20px;border:1px solid var(--border);border-radius:var(--radius-sm);margin:24px 0}
.doc .button{display:inline-flex;padding:10px 16px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);color:var(--text)}
.doc .icon{width:18px;height:18px;vertical-align:middle}.doc .text-link{display:inline-flex;gap:8px;align-items:center}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.faq-item,.faq-item *{animation:none!important;transition:none!important}}

/* Give the setup guide room on desktop without widening policy pages. */
.doc.doc-guide {
  max-width: 1120px;
}
.doc-guide p,
.doc-guide li {
  max-width: 90ch;
}
/* Focused refinement: keep the original composition, reduce visual noise. */
:root {
  --bg:#0c1117; --bg-gradient:none;
  --surface:#141c25; --surface-card:#141c25; --surface-hover:#1a2530;
  --surface-elevated:#202c37; --border:#293540; --border-subtle:#202b35;
  --border-hover:#425665; --border-accent:#526e83;
  --text:#eef2ef; --text-muted:#a4b1bd; --text-dim:#94a4b2;
  --accent:#9ebdd4; --accent-hover:#b9d1e3; --accent-subtle:#1e2c39;
}
a {color:#aecce1} a:hover {color:#e0edf5}
.topbar {background:rgba(12,17,23,.96)}
.hero {grid-template-columns:1fr 1.06fr; gap:64px; padding:64px 0 80px; min-height:650px}
.hero h1 {font-size:clamp(42px,4.6vw,66px);line-height:1.1;letter-spacing:-.045em;margin:22px 0}
.hero h1 .highlight {background:none;-webkit-text-fill-color:currentColor;color:var(--accent)}
.hero .lead {max-width:44ch;font-size:18px;line-height:1.65}
.hero-category,.section-label,.doc-category {font-family:var(--font-body);letter-spacing:.04em;text-transform:none;color:var(--text-muted);font-size:12px}
.actions {margin-top:30px;gap:12px}
.btn.primary,.btn.primary:hover {background:var(--accent);border-color:var(--accent);color:#101922;box-shadow:none}
.btn {border-radius:6px;min-height:46px}
.preview-note {margin-top:28px;max-width:47ch;font-size:13px;line-height:1.7;color:var(--text-muted)}
.preview-note span {display:block;color:var(--text);margin-bottom:3px}
.terminal-window {box-shadow:0 22px 60px #0003;border:1px solid #3b4b59;border-radius:12px;background:#111922;transform:none}
.terminal-header {background:#1b2630;border-bottom:1px solid var(--border)}
.terminal-tag {color:#b8c9d6;border-color:#3c5162;background:none}
.chat-bubble-user {background:#263a49;border-color:#3c5364;color:#e2edf4;border-radius:8px 8px 2px 8px}
.chat-bubble-assistant {background:transparent;border:0;padding:16px 0 0}
.kpi-chip {background:none;border:0;border-right:1px solid var(--border);border-radius:0}
.kpi-chip:last-child {border-right:0}
.task-item-preview {background:none;border:0;border-bottom:1px solid var(--border);border-radius:0}
.task-item-preview.alert {background:#d8af6810;border-left:2px solid #d8af68}
.section {padding:72px 0 28px;border-top:1px solid var(--border-subtle)}
.section-header {text-align:left;max-width:740px;margin:0 0 40px}
.section-header p {margin:0;max-width:60ch}
.section-header h2 {letter-spacing:-.035em;font-size:clamp(28px,3vw,40px)}
.workflow-strip {gap:0;margin:36px 0 40px}
.workflow-card {background:none;border:0;border-left:1px solid var(--border);border-radius:0;padding:8px 32px 12px}
.workflow-card:first-child {padding-left:0;border-left:0}
.workflow-card:hover,.bento-card:hover {transform:none;border-color:var(--border)}
.workflow-phase {color:var(--text-muted);font-family:var(--font-mono);text-transform:none;margin-bottom:22px}
.workflow-card h3 {font-size:21px;margin-bottom:12px}
.workflow-card p {font-size:15px;line-height:1.75}
.bento-grid {gap:18px}
.bento-card {border-radius:8px;padding:32px;box-shadow:none}
.bento-card h3 {font-size:23px;letter-spacing:-.025em;margin-top:0}
.bento-card p {font-size:15px;line-height:1.75}
.bento-card:nth-child(2) {background:#192630}
.bento-visual {background:transparent;border:0;border-top:1px solid #354451;border-radius:0;padding:20px 0 0;margin-top:auto;min-height:70px}
.bento-card p {margin-bottom:30px}
.bento-visual > div {flex-wrap:wrap;gap:8px}
.bento-visual [style*="background: #141824"] {background:transparent!important;padding:10px 0!important;gap:12px;flex-wrap:wrap}
.playbook-container,.prompt-box,.playbook-result-card,.roadmap-card {border-radius:8px;box-shadow:none}
.playbook-tab.active {background:#263846;color:#e0edf5;border-color:#526e83}
.roadmap-card.current {border-color:#526e83;background:var(--surface)}
.faq-list {max-width:none;margin:0}
.faq-item {border-radius:0;border:0;border-bottom:1px solid var(--border);background:none}
.faq-item[open] {background:#141c25;border-color:var(--border)}
.faq-summary {padding:24px 20px;font-size:17px}
.faq-body {padding:0 20px 24px}
.faq-body p {max-width:78ch}
.doc.doc-layout {max-width:1200px;padding:32px 0 64px}
.doc-header {padding:0 0 48px;border-bottom:1px solid var(--border);margin-bottom:48px}
.doc-back {display:block;font-size:13px;margin-bottom:32px}
.doc-category {display:block;margin-bottom:18px}
.doc-header h1 {max-width:1000px;font-size:clamp(36px,4.3vw,60px);line-height:1.12;letter-spacing:-.04em;margin:0 0 22px}
.doc-header .lead {max-width:68ch;font-size:19px;margin:0}
.effective {font-size:13px;color:var(--text-muted);margin:22px 0 0}
.doc-columns {display:grid;grid-template-columns:230px minmax(0,1fr);gap:80px;align-items:start}
.doc-toc {position:sticky;top:104px;display:grid;gap:4px;border-left:1px solid var(--border);padding-left:20px}
.doc-toc > span {font-size:12px;color:var(--text-muted);margin-bottom:12px}
.doc-toc a {font-size:13px;line-height:1.5;padding:8px 0;color:var(--text-muted)}
.doc-toc a:hover {color:var(--text);text-decoration:underline;text-underline-offset:4px}
.doc-body {min-width:0}
.doc-body section {padding:0 0 40px;margin-bottom:36px;border-bottom:1px solid var(--border-subtle);scroll-margin-top:110px}
.doc-body section:last-child {border-bottom:0;margin-bottom:0}
.doc.doc-layout h2 {border:0;padding:0;margin:0 0 22px;font-size:28px;letter-spacing:-.025em;line-height:1.3}
.doc.doc-layout h3 {font-size:19px;margin-top:26px}
.doc-body p,.doc-body li {max-width:none;font-size:16px;line-height:1.8}
.doc-body p {margin:0 0 18px}
.doc-body code {overflow-wrap:anywhere}
.doc-body .document-note {background:#192630;border:0;border-left:2px solid var(--accent);border-radius:0;padding:22px 24px}
.doc-body .document-note p:last-child {margin:10px 0 0}
.requirements > div,.support-options > div {padding:22px 0;border-top:1px solid var(--border)}
.requirements strong {display:block;color:var(--text);margin-bottom:6px}
.requirements p {margin:0}
.prose-steps {padding-left:24px}
.prose-steps > li {padding-left:10px;margin-bottom:36px}
.doc-body .code-block {background:#10171f;border-color:#3b4b59;padding:22px}
.doc-body .button.primary {background:var(--accent);color:#101922}
.doc-body .faq-item {margin-bottom:0}
.doc-body .faq-summary {font-size:16px}
:focus-visible {outline:2px solid var(--accent);outline-offset:5px}
@media(min-width:1600px){.wrap{width:min(calc(100% - 112px),1360px)}}
@media(max-width:1120px){
 .hero {gap:36px}.hero h1 {font-size:48px}
 .doc-columns {grid-template-columns:200px minmax(0,1fr);gap:40px}
 .links {gap:14px}
}
@media(max-width:960px){.hero{grid-template-columns:1fr;min-height:0;gap:44px}.hero-content{max-width:720px}.hero-preview{max-width:720px;width:100%;margin:0 auto}.hero .lead{max-width:55ch}}
@media(max-width:768px){
 .hero{padding:32px 0 56px}.hero h1{font-size:46px}.section{padding:48px 0 28px}
 .doc.doc-layout{padding-top:16px}.doc-header{padding-bottom:32px;margin-bottom:28px}
 .doc-header h1{font-size:40px}.doc-header .lead{font-size:17px}
 .doc-columns{grid-template-columns:1fr;gap:36px}
 .doc-toc{position:static;display:flex;flex-wrap:wrap;gap:6px 20px;border-left:0;border-bottom:1px solid var(--border);padding:0 0 24px}
 .doc-toc > span{width:100%;margin-bottom:4px}.doc-toc a{padding:8px 0}
 .workflow-strip{grid-template-columns:1fr}.workflow-card,.workflow-card:first-child{padding:24px 0;border-left:0;border-bottom:1px solid var(--border)}
 .workflow-phase{margin-bottom:10px}.bento-card{padding:26px}.section-header{margin-bottom:28px}
 .doc.doc-layout h2{font-size:25px}.doc-body section{padding-bottom:28px;margin-bottom:28px}
 .doc-body p,.doc-body li{font-size:15px}.faq-summary{padding:22px 12px;font-size:16px}
}
@media(max-width:480px){.hero h1{font-size:42px}.hero .lead{font-size:16px}.hero{gap:32px}.bento-card h3{font-size:21px}.doc-header h1{font-size:36px}.doc-back{margin-bottom:26px}.doc-body .code-block{padding:16px}}

@media(max-width:480px){
 .assistant-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
 .kpi-chip{padding:10px 5px}.kpi-label{font-size:9px}.kpi-value{font-size:12px}
 .bento-visual[style*="border-left"]{padding-left:12px}
}

/* Document contents: heading sits outside the section indicator rail. */
.doc-sidebar {position:sticky;top:104px}
.doc.doc-layout .doc-toc-heading {font-family:var(--font-body);font-size:13px;font-weight:600;letter-spacing:0;line-height:1.5;margin:0 0 18px;padding-left:20px;color:var(--text)}
.doc-toc {position:static;gap:0;padding-left:0}
.doc-toc a {padding:10px 16px 10px 20px;border-left:2px solid transparent;margin-left:-1px;transition:color .15s,background .15s,border-color .15s}
.doc-toc a[aria-current="location"] {color:var(--text);border-left-color:var(--accent);background:#9ebdd410;font-weight:600}
/* macOS-style app window, retaining the existing conversation preview. */
.terminal-window {background:#14171c;border-color:#41464e;border-radius:14px;box-shadow:0 30px 70px -20px #000b,0 1px 0 #ffffff12 inset}
.terminal-header {display:grid;grid-template-columns:78px minmax(0,1fr) 78px;gap:8px;min-height:54px;padding:12px 18px;background:linear-gradient(#30343b,#262a31);border-bottom-color:#090b0e;box-shadow:0 1px 0 #ffffff0a inset}
.terminal-dots {gap:8px}
.terminal-dot {width:12px;height:12px;border:1px solid #0002;box-shadow:0 1px 1px #0002}
.terminal-dot:nth-child(1) {background:#ff5f57}
.terminal-dot:nth-child(2) {background:#febc2e}
.terminal-dot:nth-child(3) {background:#28c840}
.terminal-title {justify-content:center;font-family:var(--font-body);font-size:12px;color:#d5d9df;gap:5px;white-space:nowrap}
.terminal-tag {justify-self:end;white-space:nowrap;font-size:10px;background:#15181c;border-color:#484d55;color:#b9c1ca}
.terminal-body {padding:24px;gap:20px}
.chat-bubble-user {background:#283e50;border-color:#3b586d}
.chat-bubble-assistant {background:#1a1f26;border:1px solid #303943;padding:18px;border-radius:10px}
.kpi-chip {background:#232c36;border:1px solid #34414e;border-radius:6px;padding:12px 6px}
.kpi-chip:last-child {border-right:1px solid #34414e}
.assistant-kpis {gap:10px}
@media(max-width:768px){
 .doc-sidebar{position:static}
 .doc.doc-layout .doc-toc-heading{padding-left:0;margin-bottom:12px}
 .doc-toc{border-bottom:0;gap:4px 12px;padding-bottom:24px;border-top:0}
 .doc-toc a{padding:9px 10px;margin-left:0;border-left:0;border-bottom:2px solid transparent}
 .doc-toc a[aria-current="location"]{border-bottom-color:var(--accent)}
}
@media(max-width:480px){
 .terminal-header{grid-template-columns:52px minmax(0,1fr) 64px;padding:12px;gap:5px}
 .terminal-dots{gap:5px}.terminal-dot{width:10px;height:10px}
 .terminal-title{font-size:10px;gap:3px}.terminal-tag{font-size:9px;padding:2px 4px}
 .terminal-body{padding:14px}.chat-bubble-assistant{padding:12px}
 .assistant-kpis{gap:5px}.kpi-chip{padding:10px 3px}
}
/* Shared content refinements requested with the phone layout. */
.menu-toggle {display:none}
.tab-label-short {display:none}
.feature-demo {margin-top:auto;padding-top:24px;border-top:1px solid var(--border);font-size:13px;line-height:1.5}
.demo-heading {display:flex;justify-content:space-between;gap:12px;margin-bottom:16px;font-size:12px;color:var(--text-muted)}
.demo-heading > span:last-child {text-align:right}
.demo-task {display:grid;grid-template-columns:16px minmax(0,1fr) auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #ffffff08;color:var(--text)}
.demo-task:last-child {border-bottom:0;padding-bottom:0}
.task-check {width:14px;height:14px;border:1px solid #667d8e;border-radius:4px}
.demo-status {font-size:11px;color:var(--text-muted)}
.time-total {display:flex;align-items:baseline;gap:14px;margin:8px 0 18px;color:var(--text-muted)}
.time-total strong {font-family:var(--font-heading);font-size:48px;letter-spacing:-.03em;line-height:1.15;color:var(--text)}
.time-total strong span {font-size:24px;margin-left:3px;color:var(--accent)}
.time-segments {display:grid;grid-template-columns:repeat(8,1fr);gap:5px;height:12px;margin-bottom:14px}
.time-segments span {background:var(--accent);border-radius:2px}
.time-segments span:last-child {background:#30414e}
.time-caption {display:flex;justify-content:space-between;gap:12px;font-size:12px;color:var(--text-muted)}
.time-caption span:first-child {max-width:22ch}
.receipt-demo {background:#1b2a34;border:1px solid #415c6f;border-radius:8px;padding:20px;margin-top:auto}
.receipt-status {display:inline-flex;align-items:center;gap:5px;color:#b6d8c7}
.receipt-record {display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding-bottom:18px;border-bottom:1px solid #ffffff12}
.receipt-record > span {color:var(--text-muted)}
.receipt-record strong {color:var(--text);font-size:16px}
.receipt-flow {display:flex;justify-content:space-between;gap:8px;padding-top:16px;color:var(--text-muted);font-size:12px}
.receipt-flow span[aria-hidden] {color:#708a9b}
.mapping-row {display:flex;align-items:center;gap:16px;padding:14px 0}
.mapping-row > span:first-child {min-width:80px;color:var(--text-muted)}
.mapping-rule {height:1px;background:#425765;flex:1;min-width:12px}
.mapping-row strong {font-size:13px;color:var(--text);font-weight:500}
.bento-card {padding:32px;border-radius:12px;background:linear-gradient(145deg,#19232c,var(--surface) 70%)}
.bento-card:nth-child(2) {background:#1b2b35}
.bento-card p {margin-bottom:30px}
.playbook-content {padding:0}
.playbook-panel.active {grid-template-columns:1fr 1fr;gap:0;align-items:stretch}
.prompt-box {background:transparent;border:0;border-radius:0;padding:32px;display:flex;flex-direction:column}
.prompt-actions {margin-top:auto;padding-top:24px;border:0}
.prompt-text {margin-bottom:24px;font-family:var(--font-body);font-size:16px;line-height:1.75}
.playbook-result-card {background:#101820;border:0;border-left:1px solid var(--border);border-radius:0;padding:32px}
.playbook-result-header {text-transform:none;letter-spacing:0;font-size:12px;gap:12px;line-height:1.5;align-items:flex-start;padding-bottom:16px;margin-bottom:18px}
.playbook-result-header span:last-child {text-align:right;flex-shrink:0;color:var(--accent)!important}
.playbook-result-body p {font-size:15px;line-height:1.75;margin:0 0 16px}
.playbook-result-body p:last-child {margin-bottom:0}
.btn-copy,.code-block button {min-height:44px}
.doc-contents-summary {list-style:none;pointer-events:none}
.doc-contents-summary::-webkit-details-marker {display:none}
.doc-contents-summary > svg {display:none}
@media (max-width:1120px) and (min-width:769px){
 .playbook-tab {padding:16px 18px;font-size:13px}
 .prompt-box,.playbook-result-card {padding:24px}
}
@media (max-width:768px){
 .wrap {width:calc(100% - 40px)}
 .nav {min-height:68px;padding:10px 0;gap:0;justify-content:space-between;align-items:center}
 .brand {font-size:16px;min-height:44px;gap:10px}
 .brand img {width:30px;height:30px}
 .js .menu-toggle {display:inline-flex;align-items:center;justify-content:center;gap:12px;min-width:88px;min-height:44px;padding:8px 12px;background:transparent;color:var(--text);font:500 14px var(--font-body);border:1px solid var(--border);border-radius:6px;cursor:pointer}
 .menu-toggle-icon {display:grid;gap:5px;width:17px}
 .menu-toggle-icon > span {height:1px;background:currentColor;transition:transform .18s ease}
 .menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:first-child {transform:translateY(3px) rotate(45deg)}
 .menu-toggle[aria-expanded="true"] .menu-toggle-icon > span:last-child {transform:translateY(-3px) rotate(-45deg)}
 .links {width:100%;overflow:visible;display:grid;grid-template-columns:1fr;gap:0;padding:12px 0 8px;order:3;max-height:calc(100dvh - 68px);overflow-y:auto;border-top:1px solid var(--border);margin-top:10px}
 .js .links {display:none}
 .js .topbar.menu-open .links {display:grid}
 .links a {white-space:normal;padding:14px 12px;font-size:16px;min-height:48px;border-radius:4px}
 .links a:hover {background:var(--surface)}
 .links .nav-cta {margin-top:8px;justify-content:center;background:var(--surface);font-size:15px}
 .links a[aria-current="page"]::after {display:none}
 main {padding:0 0 56px}
 .hero {padding:36px 0 44px;gap:32px;min-height:0}
 .hero-category {font-size:11px;letter-spacing:.015em}
 .hero h1 {font-size:clamp(36px,10.5vw,48px);line-height:1.1;letter-spacing:-.035em;margin:16px 0 18px;text-wrap:balance}
 .hero .lead {font-size:16px;line-height:1.65;margin:0}
 .actions {margin-top:24px;gap:10px}
 .actions .btn {min-height:48px;padding:12px 16px}
 .hero .actions .btn:not(.primary) {background:transparent;border-color:transparent;min-height:44px;padding:8px 12px}
 .preview-note {margin:18px 0 0;font-size:12px;line-height:1.65;max-width:none}
 .terminal-body {padding:16px;gap:14px}
 .chat-bubble-user {max-width:95%;font-size:12px;padding:10px 12px}
 .chat-bubble-assistant {padding:12px;border-radius:8px}
 .assistant-kpis {grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:10px}
 .kpi-chip {padding:10px 3px}
 .kpi-label {font-family:var(--font-body);font-size:9px;text-transform:none;letter-spacing:0}
 .kpi-value {font-size:12px}
 .task-item-preview {gap:5px;padding:10px 8px;flex-direction:column;align-items:flex-start}
 .task-title {font-size:11px;white-space:normal;overflow:visible;text-overflow:clip}
 .task-info {flex-wrap:wrap;gap:5px}
 .task-meta {font-size:10px;align-self:flex-start}
 .section {padding:40px 0 28px}
 .section-header {margin-bottom:24px}
 .section-header h2 {font-size:28px;line-height:1.2;margin:12px 0 16px;letter-spacing:-.025em;text-wrap:balance}
 .section-header p {font-size:16px;line-height:1.7}
 .workflow-strip {margin:8px 0 12px}
 .workflow-card,.workflow-card:first-child {padding:24px 0}
 .workflow-card h3 {font-size:20px;margin-bottom:10px}
 .workflow-card p {font-size:15px;line-height:1.7}
 .bento-grid {gap:16px}
 .bento-card {padding:24px;min-width:0}
 .bento-card h3 {font-size:22px;line-height:1.3;margin-bottom:14px}
 .bento-card p {font-size:15px;line-height:1.75;margin-top:0;margin-bottom:24px}
 .feature-demo {padding-top:20px}
 .receipt-demo {padding:18px}
 .demo-task {gap:8px;font-size:12px;grid-template-columns:14px minmax(0,1fr)}
 .demo-status {grid-column:2;font-size:11px;margin-top:-7px}
 .demo-heading {font-size:11px;gap:8px}
 .time-total strong {font-size:44px}
 .time-caption {font-size:11px}
 .mapping-row {gap:10px;font-size:12px}
 .mapping-row > span:first-child {min-width:66px}
 .mapping-row strong {font-size:12px}
 .tab-label-full {display:none}.tab-label-short {display:inline}
 .playbook-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding:6px;gap:4px;background:#101820}
 .playbook-tab {padding:12px 8px;min-height:48px;white-space:normal;line-height:1.3;font-size:13px;border:1px solid transparent;border-radius:5px;text-align:left}
 .playbook-tab.active {border-color:#526e83;background:#263846}
 .playbook-panel.active {grid-template-columns:1fr}
 .prompt-box {padding:22px 20px}
 .prompt-text {font-size:15px;line-height:1.75;margin-bottom:20px}
 .prompt-actions {padding-top:0;gap:16px;align-items:stretch;flex-direction:column}
 .prompt-hint {font-size:12px;line-height:1.6}
 .btn-copy {width:100%;justify-content:center;min-height:46px}
 .playbook-result-card {padding:22px 20px;border-left:0;border-top:1px solid var(--border)}
 .playbook-result-header {font-size:11px;gap:8px;flex-wrap:wrap}
 .playbook-result-body p {font-size:15px;line-height:1.75}
 .roadmap-card {padding:24px}
 .roadmap-card h3 {font-size:22px;line-height:1.35}
 .roadmap-list li {font-size:14px;line-height:1.7}
 .roadmap-tag {white-space:normal;line-height:1.5}
 .faq-summary {padding:20px 12px;gap:16px;min-height:64px;font-size:16px;line-height:1.5}
 .faq-icon {flex-shrink:0}
 .faq-body {padding:0 12px 22px}
 .faq-body p {font-size:15px;line-height:1.8}
 .doc.doc-layout {padding:28px 0 40px}
 .doc-header {padding-bottom:28px;margin-bottom:24px}
 .doc-back {margin-bottom:24px;display:inline-flex;align-items:center;min-height:44px}
 .doc-category {margin-bottom:14px}
 .doc-header h1 {font-size:36px;letter-spacing:-.03em;text-wrap:balance}
 .doc-header .lead {font-size:17px;line-height:1.65}
 .doc-columns {gap:28px}
 .doc-contents {border:1px solid var(--border);border-radius:8px;background:var(--surface)}
 .doc-contents-summary {display:flex;justify-content:space-between;gap:16px;align-items:center;min-height:52px;padding:14px 16px;cursor:pointer;pointer-events:auto}
 .doc.doc-layout .doc-toc-heading {padding:0;margin:0;font-size:14px}
 .doc-contents-summary > svg {display:block;flex-shrink:0;transition:transform .15s}
 .doc-contents[open] .doc-contents-summary > svg {transform:rotate(180deg)}
 .doc-toc {display:grid;grid-template-columns:1fr;gap:0;padding:0 8px 8px;border:0}
 .doc-toc a {padding:12px 10px;margin:0;min-height:46px;font-size:14px;line-height:1.55;border:0;border-radius:4px}
 .doc-toc a[aria-current="location"] {border:0;background:#9ebdd418}
 .doc-body p,.doc-body li {font-size:16px;line-height:1.75}
 .doc.doc-layout h2 {font-size:25px;line-height:1.3}
 .doc-body .document-note {padding:18px}
 .code-block {padding:16px}
 .code-block button {font-size:13px;padding:10px 14px}
 .footer {padding:24px 0 32px;gap:20px}
 .footerlinks {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:4px 16px}
 .footerlinks a {display:flex;align-items:center;min-height:44px;padding:8px 0;font-size:13px}
 .footer-left {gap:8px}
}
@media(max-width:360px){
 .wrap{width:calc(100% - 32px)}
 .bento-card,.roadmap-card {padding:20px}
 .hero h1 {font-size:36px}
 .terminal-header {grid-template-columns:45px minmax(0,1fr) 60px;padding:10px;gap:4px}
 .terminal-title {font-size:9px}
 .terminal-body {padding:10px}
 .chat-bubble-assistant {padding:10px}
 .kpi-value {font-size:10px}.kpi-label {font-size:8px}
 .mapping-row {gap:8px}.mapping-row strong{font-size:11px}
 .receipt-demo {padding:16px}.receipt-flow {font-size:11px}
 .demo-heading {font-size:10px}
}
@media(prefers-reduced-motion:reduce){.menu-toggle-icon > span,.doc-contents-summary > svg{transition:none}}
/* Keep tab focus inside the clipped frame and improve time-card text contrast. */
.playbook-tab:focus-visible {outline:2px solid var(--accent);outline-offset:-4px;transition:none}
.btn:focus-visible {transition:none}
.bento-card:nth-child(2) p {color:#b5c2cc}

/* Contact follows the existing document layout and restrained blue palette. */
.contact-layout{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr);gap:clamp(32px,6vw,96px);align-items:start}
.contact-context h2{font-size:24px;line-height:1.35;margin:0 0 20px}.contact-context p{color:var(--text-muted);line-height:1.75;margin-bottom:20px}.contact-context a{display:inline-block;line-height:1.7}
.contact-form{min-width:0}.contact-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px}.form-field{display:flex;flex-direction:column;gap:10px;margin-bottom:24px}.form-field label{font-size:14px;font-weight:600}
.form-field input,.form-field textarea{box-sizing:border-box;width:100%;min-height:48px;padding:13px 15px;background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font:inherit;line-height:1.6}.form-field textarea{resize:vertical;min-height:180px}.form-field :focus-visible{outline:2px solid var(--accent);outline-offset:3px}.form-field [aria-invalid=true]{border-color:#e9a19a}.field-error{color:#e9a19a;font-size:13px;min-height:0}.field-error:empty{display:none}.contact-privacy,#contact-status{font-size:14px;line-height:1.7;color:var(--text-muted);margin:0 0 24px}#contact-status{margin-top:20px;max-width:60ch}.contact-form button{min-height:48px}.contact-form button:disabled{opacity:.55;cursor:not-allowed}.contact-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:767px){.contact-layout{grid-template-columns:1fr;gap:32px}.contact-fields{grid-template-columns:1fr;gap:0}.contact-context{border-bottom:1px solid var(--border);padding-bottom:24px}.contact-form button{width:100%}.contact-context h2{font-size:23px}}
@media(min-width:769px) and (max-width:1120px){.nav{flex-wrap:wrap;gap:4px;padding:12px 0 6px}.links{flex-basis:100%;width:100%;gap:8px;justify-content:space-between;font-size:13px}.links a{min-height:44px;padding:8px 2px}.doc-sidebar{top:140px}.doc-body section{scroll-margin-top:150px}}
