/* AnyVideo Design System — Light Editorial + Functional Utility.
   Porcelain canvas, Carbon Ink typography, Transcription Cobalt primary,
   Signal Amber accents, Transcript Green positive states.
   Content is visible by default; accessible; anti-slop compliant. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/newsreader-variable.woff2") format("woff2");
}

:root {
  --canvas: #f7f8f4;
  --paper: #ffffff;
  --surface-muted: #ecefea;
  --ink: #0e1722;
  --muted: #556475;
  --fog: #8795a5;
  --border: #d0d7de;
  --border-subtle: #e4e9ed;
  --border-strong: #b5bfc9;

  --primary: #1a56ba;
  --primary-hover: #144496;
  --primary-active: #0f3475;
  --primary-tint: #ebf2fd;
  --primary-border: #b6d0f7;

  /* Aliases for backwards compatibility and semantic utility */
  --accent: var(--primary);
  --accent-subtle: var(--primary-tint);
  --porcelain: var(--canvas);
  --paper-warm: var(--surface-muted);

  --signal-amber: #e8a228;
  --signal-tint: #fef7eb;
  --signal-border: #f7d99e;

  --success: #166534;
  --success-tint: #dcfce7;
  --success-border: #86efac;

  --danger: #b42318;
  --danger-tint: #fef3f2;
  --danger-border: #fecdca;

  --mono: ui-monospace, "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --disp: "Newsreader", Georgia, "Times New Roman", serif;
  --body:
    "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;

  --shadow-card:
    0 1px 3px rgba(14, 23, 34, 0.05), 0 14px 30px -12px rgba(14, 23, 34, 0.08);
  --shadow-hover: 0 4px 14px rgba(14, 23, 34, 0.08);
  --shadow-subtle: 0 1px 2px rgba(14, 23, 34, 0.04);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font: 400 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main,
.nav,
.foot {
  position: relative;
  z-index: 1;
}

.mono {
  font-family: var(--mono);
}

.dim {
  color: var(--muted);
}

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

a,
button,
summary {
  touch-action: manipulation;
}

a:hover {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Accessibility skip link -------------------------------------------- */

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  font-weight: 600;
  border-radius: 4px;
}
.skip:focus {
  left: 16px;
}

/* --- Navigation --------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
}

.brand-title {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.brand-arrow {
  color: var(--primary);
  margin: 0 1px;
}

.brand-badge {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fog);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  font-weight: 500;
}

.nav nav a {
  color: var(--muted);
  white-space: nowrap;
  transition: color 150ms ease;
}

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

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

.auth-guest-slot {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-user-slot {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* --- User Account Header & Dropdown ------------------------------------- */

.user-account-menu {
  position: relative;
}

.user-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 6px 14px;
  font-family: var(--body);
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease;
  box-shadow: var(--shadow-subtle);
  user-select: none;
}

.user-pill-btn:hover {
  border-color: var(--border-strong);
  background: var(--paper-warm);
}

.user-pill-btn[aria-expanded="true"] {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #166534;
  box-shadow: 0 0 0 2px rgba(22, 101, 52, 0.2);
  flex-shrink: 0;
}

.user-email-text {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-quota-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  padding: 1.5px 6px;
  border-radius: 4px;
  background: var(--porcelain);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
}

.user-chevron {
  color: var(--fog);
  transition: transform 180ms ease;
  flex-shrink: 0;
}

.user-pill-btn[aria-expanded="true"] .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow-hover);
  z-index: 100;
  animation: dropdownPop 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownPop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-header {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.dropdown-email {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
  word-break: break-all;
}

.dropdown-plan-badge {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 3px;
  font-weight: 500;
}

.dropdown-stats {
  padding: 8px 10px;
  font-size: 12.5px;
  background: var(--porcelain);
  border-radius: 6px;
  margin: 8px 0;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-label {
  color: var(--fog);
}

.stat-val {
  color: var(--ink);
  font-family: var(--mono);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  font-family: var(--body);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  border: none;
  background: transparent;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 120ms ease;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background: var(--porcelain);
}

.dropdown-item .item-icon {
  font-size: 14px;
}

.dropdown-item.text-danger {
  color: #dc2626;
}

.dropdown-item.text-danger:hover {
  background: rgba(220, 38, 38, 0.08);
}

/* --- Auth Modal Dialog -------------------------------------------------- */

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 23, 34, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: modalFadeIn 0.15s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.auth-modal-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 410px;
  padding: 32px 28px;
  box-shadow: 0 16px 40px -10px rgba(14, 23, 34, 0.22);
  position: relative;
  animation: modalSlideUp 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--porcelain);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.auth-modal-close:hover {
  color: var(--ink);
  background: var(--paper-warm);
  border-color: var(--border-strong);
}

.auth-modal-header {
  margin-bottom: 22px;
}

.auth-modal-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.auth-modal-header h2 {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
}

.auth-modal-sub {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.form-input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: var(--body);
  font-size: 14.5px;
  background: var(--paper);
  color: var(--ink);
  box-sizing: border-box;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.code-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-link-sm {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.code-dest-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 6px;
}

.code-input {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-align: center;
  padding: 10px;
}

.auth-status {
  font-size: 12.5px;
  margin: 0;
  line-height: 1.4;
}

.auth-status.status-error {
  color: #dc2626;
}

.auth-status.status-success {
  color: var(--success);
}

.auth-status.status-info {
  color: var(--muted);
}

.auth-btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.auth-modal-footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.auth-guarantee-note {
  font-size: 12px;
  color: var(--fog);
  line-height: 1.5;
  margin: 0 0 12px;
  text-align: center;
}

.auth-dev-preview {
  text-align: center;
}

.btn-dev-preview {
  background: var(--porcelain);
  border: 1px dashed var(--border-strong);
  color: var(--muted);
  font-size: 11.5px;
  font-family: var(--mono);
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition:
    background-color 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.btn-dev-preview:hover {
  background: var(--paper-warm);
  color: var(--ink);
  border-color: var(--accent);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.2;
  padding: 11px 20px;
  border-radius: 7px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    transform 120ms ease,
    box-shadow 150ms ease;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

.btn-cta {
  padding: 13px 22px;
}

.btn-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  line-height: 1.15;
}

.btn-title {
  font-size: 15px;
  font-weight: 600;
}

.btn-subtitle {
  font-size: 11px;
  font-weight: 450;
  opacity: 0.88;
  letter-spacing: 0.01em;
  margin-top: 2px;
}

.btn-primary {
  background: linear-gradient(180deg, #2264ce 0%, #174ea6 100%);
  color: #ffffff;
  border: 1px solid #144496;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 2px 4px rgba(20, 68, 150, 0.16),
    0 8px 18px -4px rgba(20, 68, 150, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #2b70dc 0%, #1954b3 100%);
  border-color: #113c84;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 4px 8px rgba(20, 68, 150, 0.2),
    0 12px 24px -6px rgba(20, 68, 150, 0.35);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.2),
    0 1px 2px rgba(20, 68, 150, 0.2);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(14, 23, 34, 0.06);
}

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

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:active {
  background: var(--porcelain);
  transform: translateY(1px);
}

.chrome-icon {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

.text-link {
  color: var(--primary);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.text-link:hover {
  color: var(--primary-hover);
}

/* --- Hero Section ------------------------------------------------------- */

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}

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

.hero-copy {
  max-width: 600px;
  min-width: 0;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 20px;
  box-shadow: var(--shadow-subtle);
}

.badge-store-title {
  font-weight: 600;
  color: var(--ink);
}

.badge-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 2px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal-amber);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(232, 162, 40, 0.5);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(232, 162, 40, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(232, 162, 40, 0);
  }
}

.rotating-word-line {
  display: block;
  white-space: nowrap;
  color: var(--primary);
  height: 1.22em;
  line-height: 1.22em;
  margin: 4px 0;
  overflow: visible;
}

.rotating-word {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-style: italic;
  white-space: nowrap;
  position: relative;
  transition:
    transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.28s ease;
  transform: translateY(0);
  opacity: 1;
}

.rotating-word.fade-out {
  transform: translateY(-8px);
  opacity: 0;
}

.rotating-word.fade-in {
  animation: wordSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

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

.eyebrow-red {
  color: #e11d48;
}

h1 {
  font-family: var(--disp);
  font-weight: 450;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--ink);
}

.lede {
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-proof-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 16px 0 0;
  margin: 0;
  border-top: 1px solid var(--border-subtle);
  color: var(--muted);
  font-size: 13px;
}

.hero-proof-list li {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-proof-list span {
  color: var(--success);
  font-weight: 600;
}

/* --- Hero Visual (Mockup Frame + Console) ------------------------------- */

.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  min-width: 0;
}

.hero-product-frame {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero-img-caption {
  padding: 8px 14px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  color: var(--fog);
  font-family: var(--mono);
}

.hero-console-wrap {
  width: 100%;
}

.console {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-amber);
  flex: 0 0 auto;
}

.console-title {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.console-badge {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 7px;
}

.console-source {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--paper);
  border-bottom: 1px solid var(--border-subtle);
}

.console-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--fog);
  flex: 0 0 auto;
}

.console-url {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-stages {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0;
  padding: 8px 14px;
  background: var(--canvas);
  border-bottom: 1px solid var(--border-subtle);
}

.console-stages li {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.console-stages li.done {
  color: var(--ink);
}

.console-stages li.done::before {
  content: "✓ ";
  color: var(--success);
  font-weight: 600;
}

.console-text {
  padding: 14px 16px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 160px;
}

.console-text p {
  margin: 0 0 10px;
}

.console-text p:last-child {
  margin-bottom: 0;
}

.ts {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--signal-amber);
  margin-right: 8px;
  font-weight: 500;
}

.live-text {
  color: var(--ink);
}

.caret {
  display: inline-block;
  width: 7px;
  height: 14px;
  margin-left: 3px;
  background: var(--signal-amber);
  vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.console-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px 14px;
  background: var(--canvas);
  border-top: 1px solid var(--border-subtle);
}

.console-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 550;
  padding: 7px 10px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--border);
  text-align: center;
}

.console-btn-green {
  background: var(--success-tint);
  color: var(--success);
  border-color: var(--success-border);
}

.console-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 14px;
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--fog);
}

/* --- Section Layouts (Bands) -------------------------------------------- */

.band {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px;
}

.section-intro {
  max-width: 720px;
  margin-bottom: 36px;
}

h2 {
  font-family: var(--disp);
  font-weight: 450;
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--ink);
}

.section-intro p {
  color: var(--muted);
  font-size: 16.5px;
  margin: 0;
  line-height: 1.6;
}

/* --- Pain Section ------------------------------------------------------- */

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

.pain-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary-border);
}

.pain-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-family: var(--disp);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}

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

/* --- Solution Section --------------------------------------------------- */

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

.solution-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-top: 3px solid var(--primary);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.solution-tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  padding: 2px 7px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 14px;
}

.solution-card h3 {
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0 0 10px;
  color: var(--ink);
}

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

/* --- Proof: Before vs After Comparison ---------------------------------- */

.comparison-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.comparison-col {
  display: flex;
  flex-direction: column;
}

.comparison-badge {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px 4px 0 0;
  width: fit-content;
}

.comparison-badge-before {
  background: #e5e7eb;
  color: #4b5563;
}

.comparison-badge-after {
  background: var(--primary);
  color: #ffffff;
}

.comparison-box {
  flex: 1 1 auto;
  border-radius: 0 8px 8px 8px;
  padding: 22px;
  border: 1px solid var(--border);
}

.comparison-before .comparison-box {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 13.5px;
  line-height: 1.75;
  border-top-left-radius: 0;
}

.comparison-after .comparison-box {
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
  box-shadow: var(--shadow-card);
  border-color: var(--primary-border);
}

.comparison-box h4 {
  font-family: var(--disp);
  font-size: 18px;
  font-weight: 550;
  margin: 0 0 12px;
  color: var(--ink);
}

.comparison-box p {
  margin: 0 0 10px;
}

.comparison-box p:last-child {
  margin-bottom: 0;
}

.comparison-note {
  font-size: 12.5px;
  color: var(--fog);
  margin: 8px 0 0;
}

/* --- Productivity ROI Calculator ---------------------------------------- */

.calc-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.calc-controls {
  margin-bottom: 28px;
}

.calc-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  font-size: 15px;
  color: var(--ink);
}

.calc-display-val {
  font-size: 20px;
  color: var(--primary);
  font-family: var(--mono);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-muted);
  outline: none;
  cursor: pointer;
  accent-color: var(--primary);
}

.calc-slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--fog);
  margin-top: 6px;
}

.calc-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.calc-stat {
  background: var(--canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.calc-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 500;
}

.calc-stat-val {
  font-family: var(--disp);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.calc-stat-highlight {
  background: var(--primary-tint);
  border-color: var(--primary-border);
}

.calc-stat-highlight .calc-stat-label {
  color: var(--primary);
  font-weight: 600;
}

.calc-stat-highlight .calc-stat-val {
  color: var(--primary);
}

.calc-yearly {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.calc-yearly strong {
  color: var(--ink);
}

/* --- Pipeline Strip Table ----------------------------------------------- */

.strip {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--paper);
  overflow: hidden;
}

.strip-head,
.strip [role="row"]:not(.strip-head) {
  display: grid;
  grid-template-columns: 220px 1fr 160px;
  gap: 16px;
  padding: 14px 20px;
  align-items: baseline;
}

.strip-head {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
}

.strip [role="row"]:not(.strip-head) {
  border-top: 1px solid var(--border-subtle);
}

.stage {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--primary);
}

.strip [role="cell"]:not(.stage) {
  color: var(--muted);
  font-size: 14.5px;
}

.status-free {
  font-weight: 500;
  color: var(--success) !important;
}

/* --- Supported Platforms ------------------------------------------------ */

.sites-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}

.sites {
  font-size: 15px;
  color: var(--ink);
  margin: 0;
  line-height: 1.8;
}

/* --- Pricing Grid (Parallel Column Alignment) --------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
  align-items: stretch;
}

.pricing-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-subtle);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.pricing-card-featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-card);
}

.pricing-pill-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 12px;
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 12px;
}

.price-save-badge {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--success);
  background: var(--success-tint);
  border: 1px solid var(--success-border);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}

.pricing-head {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.pricing-name {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.pricing-cost {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-val {
  font-family: var(--disp);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}

.price-period {
  font-size: 13.5px;
  color: var(--muted);
}

.pricing-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  flex: 1 1 auto;
}

.pricing-features li {
  position: relative;
  padding-left: 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 8px;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

.pricing-action {
  margin-top: auto;
}

.pricing-action .btn {
  width: 100%;
}

.hint {
  font-size: 13.5px;
  color: var(--fog);
  margin-top: 18px;
}

/* --- FAQ Accordion ------------------------------------------------------ */

.qa-accordion {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.qa-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
  overflow: hidden;
}

.qa-item:hover {
  border-color: var(--border-strong);
}

.qa-item[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-subtle);
}

.qa-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  list-style: none;
}

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

.qa-summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.qa-question {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin: 0;
}

.qa-chevron-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--porcelain);
  color: var(--fog);
  flex-shrink: 0;
  transition:
    transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.15s ease,
    color 0.15s ease;
}

.qa-item:hover .qa-chevron-wrap {
  color: var(--ink);
  background: var(--paper-warm);
}

.qa-item[open] .qa-chevron-wrap {
  transform: rotate(180deg);
  background: var(--accent-subtle);
  color: var(--accent);
}

.qa-chevron-wrap svg {
  display: block;
}

.qa-answer {
  padding: 0 22px 20px;
}

.qa-answer p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
}

/* Fallback for legacy .qa */
.qa {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 14px;
  max-width: 820px;
}

.qa h3 {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}

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

/* --- CTA Banner (Pre-footer) -------------------------------------------- */

.cta-band {
  padding-bottom: 96px;
}

.cta-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 48px 36px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-subtle);
}

.cta-box h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  margin-bottom: 10px;
}

.cta-box p {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 24px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* --- Footer ------------------------------------------------------------- */

.foot {
  background: var(--surface-muted);
  border-top: 1px solid var(--border);
  padding: 48px 24px 36px;
}

.foot-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
}

.foot-brand-col {
  max-width: 440px;
}

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

.foot-line strong {
  color: var(--ink);
  font-weight: 500;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.foot-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.foot-nav-heading {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
  margin-bottom: 4px;
}

.foot-nav-col a {
  font-size: 14px;
  color: var(--muted);
}

.foot-nav-col a:hover {
  color: var(--ink);
}

.foot-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.foot-copy {
  color: var(--fog);
  font-size: 12.5px;
  margin: 0;
}

/* --- Documentation & Legal Pages (/privacy, /terms, /support) ----------- */

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

.doc h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  margin: 8px 0 6px;
  color: var(--ink);
}

.doc-updated {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fog);
  margin-bottom: 24px;
}

.doc h2 {
  font-size: 22px;
  margin: 36px 0 12px;
  color: var(--ink);
}

.doc h3 {
  font-family: var(--body);
  font-size: 16px;
  font-weight: 600;
  margin: 20px 0 6px;
  color: var(--ink);
}

.doc p,
.doc li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

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

/* Two-column editorial doc layout (/privacy, /terms) */
.doc-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  align-items: start;
}

.doc-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.doc-aside-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-subtle);
}

.doc-aside-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fog);
  margin: 0 0 14px;
}

.doc-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-nav-list a {
  font-size: 13px;
  color: var(--muted);
  display: block;
  padding: 4px 6px;
  border-radius: 4px;
  transition:
    color 0.12s ease,
    background 0.12s ease;
}

.doc-nav-list a:hover {
  color: var(--primary);
  background: var(--primary-tint);
}

.doc-pillar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doc-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink);
}

.doc-pillar-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.doc-pillar-icon-success {
  background: var(--success-tint);
  color: var(--success);
  border-color: var(--success-border);
}

.doc-content {
  min-width: 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 40px 44px;
  box-shadow: var(--shadow-subtle);
}

.doc-content h1 {
  font-size: clamp(30px, 3.8vw, 40px);
  margin: 4px 0 8px;
  color: var(--ink);
}

.doc-content h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink);
}

.doc-content h2:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 24px;
}

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

.doc-content p,
.doc-content li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

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

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.badge-status-green {
  background: var(--success-tint);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-status-amber {
  background: var(--signal-tint);
  color: var(--signal-amber);
  border: 1px solid var(--signal-border);
}

.badge-status-blue {
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.badge-status-gray {
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* --- Guide Hero & Components (/video-to-text) -------------------------- */

.crumb-head {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 0;
}

.crumb {
  font-size: 12px;
  color: var(--fog);
  margin-bottom: 8px;
}

.crumb a {
  color: var(--muted);
}

.crumb a:hover {
  color: var(--primary);
}

.guide-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 24px 40px;
}

.guide-hero h1 {
  font-size: clamp(34px, 4.5vw, 50px);
  margin: 12px 0 16px;
  color: var(--ink);
  line-height: 1.15;
}

.guide-hero .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 28px;
}

.guide-hero .hero-cta-group {
  margin-bottom: 24px;
}

/* 3-Step Walkthrough Grid */
.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.step-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 20px;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  border-color: var(--primary-border);
}

.step-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  padding: 3px 8px;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 14px;
}

.step-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
}

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

/* Artifact Preview Showcase */
.artifact-showcase {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 28px 0 16px;
}

.artifact-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface-muted);
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
}

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

.artifact-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border);
}

.artifact-filename {
  color: var(--ink);
  font-weight: 600;
}

.artifact-meta {
  display: flex;
  gap: 8px;
}

.artifact-pill {
  padding: 2px 7px;
  border-radius: 3px;
  font-size: 11px;
  background: var(--paper);
  border: 1px solid var(--border);
  color: var(--muted);
}

.artifact-body {
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  background: #fbfcf9;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  border-top: none;
}

.artifact-body .frontmatter {
  color: var(--fog);
  display: block;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.artifact-body .h1-line {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
  display: block;
  margin-bottom: 10px;
}

.artifact-body .text-line {
  color: var(--muted);
}

/* Fidelity 4-Card Grid */
.fidelity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.fidelity-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow-subtle);
}

.fidelity-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  margin: 0 0 8px;
  color: var(--ink);
}

.fidelity-icon {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.fidelity-icon-primary {
  background: var(--primary-tint);
  color: var(--primary);
  border: 1px solid var(--primary-border);
}

.fidelity-icon-success {
  background: var(--success-tint);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.fidelity-icon-amber {
  background: var(--signal-tint);
  color: var(--signal-amber);
  border: 1px solid var(--signal-border);
}

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

/* Platform Ecosystem Chips */
.platform-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.platform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow-subtle);
  transition:
    border-color 0.12s ease,
    color 0.12s ease;
}

.platform-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.platform-chip .platform-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal-amber);
}

.fail-closed-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 22px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}

.fail-closed-notice .shield-icon {
  font-size: 18px;
  flex-shrink: 0;
  color: var(--primary);
}

/* Mini Pricing Card */
.mini-pricing-banner {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 28px;
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-subtle);
}

.mini-pricing-info h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}

.mini-pricing-info p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* --- Support Hub (/support) -------------------------------------------- */

.support-hero {
  max-width: 900px;
  margin: 0 auto;
  padding: 44px 24px 20px;
}

.support-hero h1 {
  font-size: clamp(34px, 4.5vw, 48px);
  margin: 10px 0 14px;
  color: var(--ink);
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 28px 0;
}

.support-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow-subtle);
}

.support-card-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: var(--surface-muted);
  color: var(--muted);
  border: 1px solid var(--border-subtle);
}

.support-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--ink);
}

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

.support-contact-box {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  margin: 32px 0;
  box-shadow: var(--shadow-subtle);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.support-contact-copy h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--ink);
}

.support-contact-copy p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 12px;
}

.support-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.support-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.support-checklist .check-icon {
  color: var(--success);
  font-weight: 700;
}

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

.roadmap-item {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px;
  box-shadow: var(--shadow-subtle);
}

.roadmap-item .roadmap-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 8px;
}

.roadmap-item h4 {
  font-size: 14px;
  margin: 0 0 4px;
  color: var(--ink);
}

.roadmap-item p {
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* Steps list */
.steps {
  padding-left: 20px;
  color: var(--muted);
  max-width: 720px;
}

.steps li {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.6;
}

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

.ticks {
  list-style: none;
  padding: 0;
  max-width: 720px;
  color: var(--muted);
}

.ticks li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.6;
}

.ticks li::before {
  content: "•";
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-size: 18px;
  line-height: 1;
}

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

/* Simple retention table in docs */
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.table-scroll:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

table.price {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.price th,
.price td {
  text-align: left;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}

.price thead th {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fog);
  background: var(--surface-muted);
  border-top: none;
}

.price td:first-child {
  color: var(--ink);
  font-weight: 500;
}

.price td {
  color: var(--muted);
}

/* --- Service Pages (/billing/success, /billing/cancelled, 404) ----------- */

.service-layout {
  max-width: 620px;
  margin: 64px auto 80px;
  padding: 0 20px;
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 44px 36px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.service-icon-success {
  background: var(--success-tint);
  color: var(--success);
  border: 2px solid var(--success-border);
}

.service-icon-cancelled {
  background: var(--danger-tint);
  color: var(--danger);
  border: 2px solid var(--danger-border);
}

.service-icon-404 {
  background: var(--primary-tint);
  color: var(--primary);
  border: 2px solid var(--primary-border);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 20px;
}

.service-card h1 {
  font-size: clamp(26px, 3.5vw, 34px);
  margin: 0 0 12px;
  color: var(--ink);
}

.service-card .lede {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 24px;
}

.service-steps {
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 20px;
  text-align: left;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.service-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.service-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 28px;
}

.service-links-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 14px;
  color: var(--muted);
}

.service-links-row a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pay-page {
  max-width: 580px;
  margin: 0 auto;
  padding: 12vh 24px 60px;
  text-align: left;
}

.pay-mark {
  display: inline-block;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--paper);
  margin-bottom: 16px;
}

.pay-mark-success {
  color: var(--success);
  background: var(--success-tint);
  border-color: var(--success-border);
}

.pay-mark-cancelled {
  color: var(--danger);
  background: var(--danger-tint);
  border-color: var(--danger-border);
}

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1024px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-container {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .doc-sidebar {
    position: static;
  }
  .step-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roadmap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 16px;
  }
  .nav nav {
    flex-wrap: wrap;
    gap: 14px;
    font-size: 14px;
  }
  .nav-action {
    width: 100%;
  }
  .nav-action .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .pain-grid {
    grid-template-columns: 1fr;
  }
  .solution-grid {
    grid-template-columns: 1fr;
  }
  .step-grid {
    grid-template-columns: 1fr;
  }
  .fidelity-grid {
    grid-template-columns: 1fr;
  }
  .support-grid {
    grid-template-columns: 1fr;
  }
  .support-contact-box {
    grid-template-columns: 1fr;
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .mini-pricing-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .doc-content {
    padding: 28px 20px;
  }
  .service-card {
    padding: 32px 20px;
  }
  .comparison-container {
    grid-template-columns: 1fr;
  }
  .calc-results {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .strip-head,
  .strip [role="row"]:not(.strip-head) {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .foot-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero {
    padding: 36px 16px 48px;
  }
  .hero-pill-badge {
    width: 100%;
    flex-wrap: wrap;
    border-radius: 10px;
  }
  .rotating-word-line {
    display: block;
    white-space: nowrap;
    height: 1.22em;
    line-height: 1.22em;
    margin: 2px 0;
  }
  .band {
    padding: 48px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .caret {
    animation: none;
  }
  .rotating-word {
    animation: none !important;
    transition: none !important;
  }
  * {
    transition: none !important;
    animation: none !important;
  }
}
