@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Source+Sans+3:wght@300;400;500;600;700;800&display=swap');
/* ═══════════════════════════════════════════════════════════
   Knobot — Shared Design Tokens
   Single source of truth across landing, dashboard, and
   onboarding. Imported by each app's esbuild config and
   prepended to the bundled CSS.

   To change the palette site-wide, edit only this file.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* ── Brand scale (indigo) ── */
  --brand-50:  #eef2ff;
  --brand-100: #e0e7ff;
  --brand-200: #c7d2fe;
  --brand-300: #a5b4fc;
  --brand-400: #818cf8;
  --brand-500: #6366f1;
  --brand-600: #4f46e5;  /* === --brand */
  --brand-700: #4338ca;  /* === --brand-hover */
  --brand-800: #3730a3;
  --brand-900: #312e81;

  /* ── Brand (legacy aliases — keep forever) ── */
  --brand:          #4f46e5;
  --brand-hover:    #4338ca;
  --brand-subtle:   #eef2ff;
  --brand-ring:     rgba(79, 70, 229, 0.25);

  /* ── Surfaces ──
     The airy white spine keeps the whole product clean and open. The
     four steps give us hierarchy with a faint cool bias. */
  --page-bg:        #ffffff;  /* page surface — body / full-page wrappers */
  --page-bg-2:      #fafbfc;  /* inset surface — table heads, code blocks, hover wells */
  --page-bg-3:      #f1f3f7;  /* stronger inset / hover well / placeholder mid */
  --page-bg-4:      #e6e8ec;  /* deep placeholder accent */
  --card-bg:        #ffffff;
  --card-shadow:    var(--shadow-card);
  --card-border:    #ecedf1;  /* card & inset edges (also bot avatar borders) */
  --divider:        #ecedf1;  /* section rules */
  --chrome:         #1e1c2a;  /* dark "browser frame" chrome, landing hero only */

  /* ── Text ── */
  --text:           #1a1a2e;
  --text-secondary: #5a5a72;
  --text-tertiary:  #8e8ea0;
  --text-on-brand:  #ffffff;

  /* ── Inputs ── */
  --input-bg:       #ffffff;
  --input-border:   #d4d4dc;
  --input-focus:    var(--brand);
  --input-placeholder: #b0b0be;

  /* ── Feedback ── */
  --success:        #059669;
  --success-bg:     #ecfdf5;
  --success-border: #a7f3d0;
  --success-text:   #065f46;
  --error:          #dc2626;
  --error-bg:       #fef2f2;
  --error-border:   #fecaca;
  --error-text:     #991b1b;
  --warn:           #d97706;
  --warn-bg:        #fffbeb;
  --warn-border:    #fde68a;

  /* ── Shadow vocabulary (replaces ad-hoc box-shadows site-wide) ── */
  --shadow-card:        0 1px 3px rgba(15,18,30,0.04), 0 6px 20px rgba(15,18,30,0.04);
  --shadow-card-hover:  0 4px 12px rgba(15,18,30,0.06), 0 16px 40px rgba(15,18,30,0.06);
  --shadow-float:       0 4px 20px rgba(15,18,30,0.08), 0 1px 3px rgba(15,18,30,0.06);
  --shadow-selected:    0 1px 2px rgba(79,70,229,0.08), 0 4px 14px rgba(79,70,229,0.10);
  --shadow-modal:       0 32px 90px rgba(10,12,30,0.28), 0 8px 24px rgba(0,0,0,0.10);

  /* ── Motion ── */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast:    0.15s;
  --dur-base:    0.2s;
  --dur-slow:    0.35s;

  /* ── Focus ring (single source for every focus state) ── */
  --ring-brand:  0 0 0 3px var(--brand-ring);

  /* ── Spacing ── */
  --radius:         10px;
  --radius-sm:      6px;
  --radius-lg:      14px;

  /* ── Typography ── */
  --font:           'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:      'SF Mono', 'Cascadia Code', 'Fira Code', monospace;

  /* ── Layout ── */
  --navbar-height:  56px;
}

/* ═══════════════════════════════════════════════════════════
   Knobot — Shared Pricing Styles
   Owned here because both apps/landing and apps/dashboard
   render the same pricing cards + plan picker.
   Imported via each app's esbuild config, same pattern as tokens.css.
   ═══════════════════════════════════════════════════════════ */

.pricing-wrap { display: contents; }


.plan-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 22px 26px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
/* The recommended plan uses the same indigo-tinted background as the
   comparison table's premium column. Same border weight as Free — the
   wash is the highlight, not a heavy outline. */
.plan-card-featured {
  background: color-mix(in srgb, var(--brand) 8%, var(--card-bg));
}



.plan-badge-trial {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--card-bg);
  border: 1.5px solid rgba(79, 70, 229, 0.25);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}

.plan-name { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.plan-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  min-height: 42px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
  line-height: 1;
}
.plan-amount { font-size: 34px; font-weight: 700; letter-spacing: -1px; line-height: 1; }
.plan-period { font-size: 14px; color: var(--text-tertiary); font-weight: 500; }

/* Plain-text meta line directly under the price.
   Present on BOTH cards so the CTAs align vertically across the grid. */
.plan-price-meta {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-bottom: 22px;
  min-height: 1.4em;
  letter-spacing: 0.1px;
}


.plan-cta {
  display: block;
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  margin-top: auto;
  margin-bottom: 0;
}
.plan-cta-primary {
  background: var(--brand);
  color: #fff;
}
.plan-cta-primary:hover { background: var(--brand-hover); }
.plan-cta-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.plan-cta-secondary {
  background: var(--card-bg);
  color: var(--brand);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}
.plan-cta-secondary:hover { background: var(--brand-subtle); }
.plan-cta-secondary:disabled {
  color: var(--text-tertiary);
  box-shadow: inset 0 0 0 1.5px var(--card-border);
  background: var(--card-bg);
  cursor: not-allowed;
}

.plan-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-tertiary);
  margin-bottom: 14px;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 22px;
  padding: 0;
}
.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plan-check {
  color: var(--success);
  flex-shrink: 0;
  stroke-width: 2.75;
}


/* CustomSelect — button-trigger + popover listbox. Used by the @knobot/ui
   CustomSelect component (e.g. apps/landing /contact). Lives in shared
   pricing.css because every app that imports @knobot/ui already loads it. */
.knb-select { position: relative; }
.knb-select-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-family: var(--font); font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
  text-align: left;
}
.knb-select-trigger:hover { border-color: #bcbcc8; }
.knb-select-trigger:focus,
.knb-select.is-open .knb-select-trigger {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--ring-brand);
}
.knb-select-trigger.is-placeholder { color: var(--text-tertiary); }
.knb-select-chevron {
  width: 16px; height: 16px; color: var(--text-tertiary);
  transition: transform var(--dur-fast) ease;
  flex-shrink: 0; margin-left: 8px;
}
.knb-select.is-open .knb-select-chevron { transform: rotate(180deg); }

.knb-select-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 6px;
  z-index: 10;
  display: none;
  max-height: 280px; overflow-y: auto;
}
.knb-select.is-open .knb-select-menu { display: block; }
.knb-select-option {
  padding: 9px 10px;
  font-size: 14px;
  color: var(--text);
  border-radius: 4px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.12s ease, color 0.12s ease;
  user-select: none;
}
.knb-select-option:hover,
.knb-select-option.is-active {
  background: var(--brand-subtle);
  color: var(--brand);
}
.knb-select-option.is-selected { font-weight: 600; }
.knb-select-option-check { width: 14px; height: 14px; opacity: 0; flex-shrink: 0; }
.knb-select-option.is-selected .knb-select-option-check { opacity: 1; color: var(--brand); }

/* Reusable native-select wrapper — kept for any native <select> still
   in use. CustomSelect (.knb-select) above is preferred for new code. */
.select-wrapper { position: relative; display: block; }
.select-wrapper select {
  width: 100%;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: var(--input-bg);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.select-wrapper select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.select-wrapper select:invalid { color: var(--text-tertiary); }
.select-wrapper::after {
  content: '';
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238e8ea0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px;
}

/* ═══════════════════════════════════════════════════════════
   Framed card chassis — shared by /pricing (landing) and
   #upgrade (dashboard). Each app keeps its own .fr-page /
   .fr-wrap since outer chrome and max-widths differ.
   ═══════════════════════════════════════════════════════════ */

.fr-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.fr-card + .fr-card { margin-top: 20px; }

.fr-mark {
  position: absolute;
  top: 18px; right: 18px;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.fr-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% -5%, rgba(79, 70, 229, 0.05), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.fr-content { position: relative; z-index: 1; }

/* Padded inner section inside .fr-card — keeps content away from the card
   edges. Each app keeps its own .fr-page/.fr-wrap for outer layout. */
.fr-section { padding: 48px 32px 40px; }
.fr-section-tight { padding: 28px 32px; }

/* Centered hero block inside .fr-section — used on /pricing and #upgrade. */
.pricing-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
  padding: 0;
}
.pricing-hero h2 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.pricing-hero h2 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand), #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .pricing-hero h2 { font-size: 30px; }
}

@media (max-width: 640px) {
  .fr-mark { top: 12px; right: 12px; }
  .fr-section { padding: 36px 22px 28px; }
  .fr-section-tight { padding: 22px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   Framed page layout + watermark/hero/success primitives —
   shared by /contact (landing) and /billing/success (dashboard).
   ═══════════════════════════════════════════════════════════ */

.fr-page {
  padding: calc(var(--navbar-height) + 56px) 24px 80px;
  min-height: calc(100vh - var(--navbar-height));
  background: var(--page-bg);
}
.fr-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.fr-watermarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.fr-watermark {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
}
.fr-watermark--tl {
  top: -26px;
  left: -34px;
  width: 168px;
  height: 168px;
  transform: rotate(-19deg);
}
.fr-watermark--tr {
  top: 34px;
  right: -22px;
  width: 108px;
  height: 108px;
  transform: rotate(24deg);
  opacity: 0.06;
}
.fr-watermark--br {
  bottom: -18px;
  right: 30%;
  width: 78px;
  height: 78px;
  transform: rotate(-9deg);
  opacity: 0.05;
}

.fr-hero {
  text-align: center;
  padding: 40px 28px 16px;
}
.fr-wordmark {
  display: block;
  margin-bottom: 18px;
}
.fr-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--text);
  text-wrap: balance;
}
.fr-title .accent { color: var(--brand); }

.fr-sub {
  max-width: 420px;
  margin: 10px auto 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}

.fr-body {
  padding: 24px 32px 36px;
}

.fr-success {
  text-align: center;
  padding: 28px 16px 36px;
  max-width: 480px;
  margin: 0 auto;
}
.fr-success-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--text-on-brand);
  display: inline-flex;
  align-items: center; justify-content: center;
  margin-bottom: 18px;
  box-shadow: var(--shadow-selected);
}
.fr-success-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 8px;
}
.fr-success-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 360px;
  margin: 0 auto;
}
.fr-success-actions {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Single-block layout for full-page moment screens (e.g. BillingSuccessPage).
   Narrower wrap + tall card so the card reads as a portrait focal point rather
   than a short bar. Equal top/bottom padding keeps it visually balanced. */
.fr-wrap--solo {
  max-width: 500px;
}
.fr-solo {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 72px 48px;
}
.fr-solo-wordmark {
  margin-bottom: 36px;
}
.fr-solo-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.7px;
  line-height: 1.15;
  color: var(--text);
  text-wrap: balance;
  margin-bottom: 12px;
}
.fr-solo-title .accent { color: var(--brand); }
.fr-solo-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 24px;
}
/* No margin-bottom on sub when there's no button following it */
.fr-solo-sub:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
  .fr-page { padding: calc(var(--navbar-height) + 28px) 16px 56px; }
  .fr-hero { padding: 32px 20px 12px; }
  .fr-body { padding: 16px 20px 28px; }
  .fr-title { font-size: 26px; letter-spacing: -0.6px; }
  .fr-watermark--tl { width: 130px; height: 130px; top: -22px; left: -28px; }
  .fr-watermark--tr { width: 84px; height: 84px; top: 22px; right: -18px; }
  .fr-watermark--br { display: none; }
  .fr-solo { padding: 48px 28px; }
  .fr-solo-title { font-size: 26px; }
}

/* ═══════════════════════════════════════════════════════════
   Plan comparison table — rendered by <PlanCompare/> on both
   /pricing (landing) and #upgrade (dashboard).
   ═══════════════════════════════════════════════════════════ */
.plan-compare-h {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
}
.plan-compare-wrap {
  max-width: 880px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  background: var(--card-bg);
}
.plan-compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.plan-compare thead th {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: 16px 14px;
  border-bottom: 1px solid var(--card-border);
  background: color-mix(in srgb, var(--card-bg) 60%, transparent);
}
.plan-compare thead th.plan-compare-feature-h {
  text-align: left;
  padding-left: 22px;
}
.plan-compare thead th.plan-compare-col-featured {
  color: var(--brand);
}
.plan-compare tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--text);
  padding: 14px 14px 14px 22px;
  border-bottom: 1px solid color-mix(in srgb, var(--card-border) 60%, transparent);
  width: 46%;
}
.plan-compare tbody td {
  text-align: center;
  padding: 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--card-border) 60%, transparent);
  color: var(--text-secondary);
  vertical-align: middle;
}
.plan-compare tbody tr:last-child th,
.plan-compare tbody tr:last-child td { border-bottom: none; }
.plan-compare-col-featured {
  background: color-mix(in srgb, var(--brand) 4%, transparent);
}
.plan-compare-check {
  color: var(--success);
  display: inline-block;
  vertical-align: middle;
}
td.plan-compare-col-featured .plan-compare-check { color: var(--brand); }
.plan-compare-dash {
  color: var(--text-tertiary);
  opacity: 0.5;
}
.plan-compare-text { font-size: 14px; font-weight: 500; color: var(--text); }
.plan-compare-text-accent { color: var(--brand); font-weight: 600; }
.plan-compare-text-muted { color: var(--text-tertiary); font-size: 12.5px; }

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

@media (max-width: 768px) {
  .plan-compare { font-size: 13px; }
  .plan-compare thead th { padding: 12px 8px; font-size: 11px; }
  .plan-compare thead th.plan-compare-feature-h { padding-left: 14px; }
  .plan-compare tbody th { padding: 12px 8px 12px 14px; }
  .plan-compare tbody td { padding: 12px 8px; }
}

/* ═══════════════════════════════════════════════════════════
   Premium page — pricing-page-consolidation 2026-05-30
   Used by packages/ui/src/PremiumPage.tsx on landing /pricing
   and dashboard #upgrade free-state.
   ═══════════════════════════════════════════════════════════ */

.premium-page { display: contents; }

.plan-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 720px;
  margin: 0 auto;
  align-items: stretch;
}

/* Shared Monthly | Annual selector — sits centered above the card grid so
   the two cards share identical structure and prices align. Mirrors the
   dashboard .widget-tabs vocabulary (underline tabs, brand-accent on active)
   instead of a pill so it feels native to the rest of the product. */
.plan-interval-toggle {
  display: flex;
  justify-content: center;
  gap: 0;
  border-bottom: 1px solid var(--card-border);
  margin: 0 auto 16px;
  width: 100%;
  max-width: 720px;
}
.plan-interval-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 10px 22px 11px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  letter-spacing: 0.01em;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.plan-interval-tab:hover { color: var(--text-secondary); }
.plan-interval-tab.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.plan-interval-save {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}
.plan-interval-tab.is-active .plan-interval-save { color: var(--brand); }


.premium-page-wordmark {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

.fr-mark-corner {
  position: absolute;
  bottom: -16px;
  right: -10px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 2;
}

.premium-page-maybe-later {
  display: block;
  margin: 28px auto 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
  text-decoration: none;
}
.premium-page-maybe-later:hover { color: var(--text-secondary); }

/* Headline reads as a single confident color — a two-tone heading looks
   templated. The .accent span is kept in the markup but inherits the heading
   color so the copy stays one cohesive line. */
.plan-compare-h .accent { color: inherit; }
.plan-compare-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 26px;
  text-align: center;
}
.plan-compare thead th.feature-h { text-align: left; padding-left: 20px; }
.plan-compare thead th.featured {
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, var(--card-bg));
}
.plan-compare td.col-featured { background: color-mix(in srgb, var(--brand) 8%, var(--card-bg)); }

/* Centered hero head inside a .fr-card — sits above .fr-section. Used on
   both cards of the premium page (hero + comparison). */
.fr-section-head {
  padding: 42px 32px 0;
  text-align: center;
}
/* Hero subtext → section content: keep this gap tight so the toggle/grid
   reads as part of the same block, not a separate region. */
.fr-section-head ~ .fr-section { padding-top: 8px; }

@media (max-width: 640px) {
  .plan-cards-grid { grid-template-columns: 1fr; max-width: 380px; }
  .fr-section-head { padding: 32px 22px 0; }
  .fr-section-head ~ .fr-section { padding-top: 8px; }
}

/* ═══════════════════════════════════════════════════════════
   Toast Notifications (shared @knobot/ui)
   Consumed by any app that mounts <Toaster /> from @knobot/ui.
   Wire into each app's esbuild bundleCss step (see the esbuild.config.mjs
   under apps, e.g. apps/landing/esbuild.config.mjs).
   ═══════════════════════════════════════════════════════════ */

.knobot-toast-region {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 1000;
  pointer-events: none;
}

.knobot-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 14px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-float);
  font-size: 14px;
  max-width: 360px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.knobot-toast-hidden {
  transform: translateX(120%);
  opacity: 0;
}

.knobot-toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.knobot-toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.knobot-toast-icon-success { background: #dcfce7; color: #16a34a; }
.knobot-toast-icon-error   { background: #fee2e2; color: #dc2626; }
.knobot-toast-icon-warning { background: #fef3c7; color: #d97706; }
.knobot-toast-icon-info    { background: #dbeafe; color: #2563eb; }

.knobot-toast-text { display: flex; flex-direction: column; }
.knobot-toast-title { font-weight: 600; color: var(--text); }
.knobot-toast-subtitle { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }

.knobot-toast-action {
  background: none;
  border: none;
  color: var(--brand);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  margin-left: 6px;
  flex-shrink: 0;
}
.knobot-toast-action:hover { text-decoration: underline; }

.knobot-toast-close {
  background: none;
  border: none;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
  display: flex;
}
.knobot-toast-close:hover { color: var(--text); }

/* Knobot Landing Page — Base + Components.
   Design tokens are defined once in packages/shared/css/tokens.css
   and prepended to this file by esbuild at build time.

   IMPORTANT: tokens.css is SHARED with dashboard + onboarding. Do NOT edit it.
   Every redesign-specific color/font/treatment below is landing-local: it lives
   in this file (and the font @import) only, so it cannot leak to other apps. */

/* ── Landing-local design vars (do not collide with shared token names) ── */
:root {
  --page: #fafaf8;          /* warm off-white canvas (NOT shared --page-bg) */
  --ink: #1a1a2e;
  --ink-soft: #46465f;
  --ink-mut: #8b8ba7;
  --i50: #eef2ff;
  --i100: #e0e7ff;
  --i400: #818cf8;
  --i500: #6366f1;
  --i600: #4f46e5;
  --i700: #4338ca;
  --iacc: #a5b4fc;
  --bot: #f1f5f9;
  --bot-t: #0f172a;
  --wbord: #e8e8ee;
  --wmut: #64748b;
  --line: #ededf2;
  --fd: 'Bricolage Grotesque', 'Source Sans 3', sans-serif;  /* display */
  --fb: 'Source Sans 3', sans-serif;                          /* body */
}

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

html {
  font-family: var(--fb);
  font-size: 15px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 20px);
}

body { background: var(--page); min-height: 100vh; overflow-x: hidden; }
a { color: var(--i600); text-decoration: none; }
button { font-family: var(--fb); cursor: pointer; }
#app { min-height: 100vh; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; position: relative; z-index: 1; }

/* Section heading shared style */
h2.sec {
  font-family: var(--fd); font-weight: 800;
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.03em; line-height: 1.05;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }

/* ── Watermarks (mono constellation, currentColor) ── */
.wmk { position: absolute; color: var(--i600); opacity: .04; pointer-events: none; z-index: 0; }
.wmk svg { display: block; width: 100%; height: 100%; }

/* ═══════════════════════════════════════════════════════════
   Navigation
   ═══════════════════════════════════════════════════════════ */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--navbar-height);
  background: rgba(250,250,248,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--ink-soft);
  font-size: 14.5px; font-weight: 500;
  transition: color var(--dur-base) var(--ease-out);
}
.nav-links a:hover { color: var(--i600); text-decoration: none; }

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

/* ── Account menu (ported from dashboard AccountMenu — shared tokens only) ── */
.acct-trigger {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid transparent; background: transparent;
  color: var(--text-secondary); display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; padding: 0; flex-shrink: 0;
  transition: background var(--dur-fast), color var(--dur-fast),
    border-color var(--dur-fast);
}
.acct-trigger:hover {
  background: var(--page-bg-2); color: var(--text); border-color: var(--card-border);
}
.acct-menu-wrapper { position: relative; }
.acct-menu-wrapper:has(.acct-dropdown) .acct-trigger {
  background: var(--brand); color: #fff; border-color: var(--brand);
}
.acct-dropdown-head .acct-trigger,
.acct-dropdown-head .acct-trigger:hover {
  background: var(--brand-subtle); color: var(--brand);
  border-color: transparent;
}
.acct-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0; min-width: 248px;
  background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--radius); box-shadow: var(--shadow-card-hover);
  overflow: hidden; z-index: 200;
}
.acct-dropdown-head {
  display: flex; align-items: center; gap: 11px; padding: 14px;
  border-bottom: 1px solid var(--card-border);
}
.acct-dropdown-head .acct-trigger { cursor: default; }
.acct-dropdown-email {
  font-size: 12px; color: var(--text-tertiary); margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; max-width: 170px;
}
.biz-dropdown-info { flex: 1; min-width: 0; }
.biz-dropdown-name { font-weight: 600; font-size: 13px; color: var(--text); }
.biz-dropdown-add {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  cursor: pointer; transition: background 0.12s ease, color 0.12s ease;
  border: none; background: transparent; text-align: left;
  font-family: var(--font); width: 100%; font-size: 13px; color: var(--text-secondary);
}
.biz-dropdown-add:hover { background: var(--hover-bg); color: var(--brand); }
.biz-dropdown-logout {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  cursor: pointer; transition: background 0.12s ease, color 0.12s ease;
  border: none; background: transparent; text-align: left;
  font-family: var(--font); width: 100%; font-size: 13px; color: var(--text-secondary);
}
.biz-dropdown-logout:hover { background: var(--error-bg); color: var(--error-text); }

.nav-cta {
  background: var(--i600); color: #fff !important;
  padding: 9px 20px; border-radius: 8px;
  font-size: 14px; font-weight: 600 !important;
  text-decoration: none !important;
  display: inline-flex; align-items: center;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-spring);
}
.nav-cta:hover { background: var(--i700) !important; transform: translateY(-1px); }

.nav-hamburger {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: none; background: transparent;
  color: var(--ink-soft); cursor: pointer; border-radius: 8px; padding: 0;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-hamburger:hover { background: var(--i50); color: var(--ink); }

.nav-mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(250,250,248,0.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 8px 20px 16px; gap: 2px;
  box-shadow: 0 18px 40px -24px rgba(20,19,42,.4); z-index: 200;
}
.nav-mobile-menu a {
  padding: 10px 12px; border-radius: 8px; color: var(--ink-soft);
  font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-mobile-menu a:hover { background: var(--i50); color: var(--ink); text-decoration: none; }
.nav-mobile-cta { margin-top: 8px; text-align: center; justify-content: center; }
.nav-mobile-logout {
  padding: 10px 12px; border-radius: 8px; color: var(--ink-soft);
  font-size: 15px; font-weight: 500; text-align: left;
  background: transparent; border: none; font-family: var(--fb);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.nav-mobile-logout:hover { background: var(--i50); color: var(--ink); }

/* ═══════════════════════════════════════════════════════════
   Scattered background watermarks — faint, branded depth.
   Single-color indigo logo (navbar geometry) placed off-grid in
   section backgrounds. Hidden on small screens.
   ═══════════════════════════════════════════════════════════ */

.bgmk { position: absolute; color: var(--i600); pointer-events: none; z-index: 0; }
.bgmk svg { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════
   Shared indigo bleed panel — used by the hero and the final CTA.
   Solid indigo, one soft corner wash, one simple white logo
   watermark (eye punched in panel indigo).
   ═══════════════════════════════════════════════════════════ */

.panel { position: relative; overflow: hidden; background: var(--i600); }
.panel .soft {
  position: absolute; width: 520px; height: 520px; border-radius: 50%; top: -16%; left: -12%;
  background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.12), transparent 60%); pointer-events: none;
}
.panel .mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 360px; max-width: 82%; opacity: .2; pointer-events: none; }
.panel .mark svg { width: 100%; height: auto; display: block; }

/* ═══════════════════════════════════════════════════════════
   Hero — light-tint inset "stage" on the warm canvas: copy left,
   the live widget right, constellation backdrop behind. The warm
   margin frames the stage so the indigo never reads as abrupt.
   ═══════════════════════════════════════════════════════════ */

.hero { position: relative; min-height: 100vh; background: var(--page); overflow: hidden; }
.hero-stage {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; grid-template-columns: 1.06fr .94fr; align-items: center;
}
/* indigo as a disciplined directional light — off the right edge + under the nav */
.hero-bleed {
  position: absolute; inset: 0 0 0 auto; width: 76%; z-index: 0; pointer-events: none;
  background: linear-gradient(106deg, rgba(250,250,248,0) 40%, #ebedfc 70%, #e1e3fb 100%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 84%, transparent);
          mask: linear-gradient(180deg, transparent, #000 18%, #000 84%, transparent);
}
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 64px 56px 64px max(56px, calc(50vw - 600px)); }
.hero h1 {
  font-family: var(--fd); font-weight: 800;
  font-size: clamp(40px, 4.8vw, 70px); line-height: 1.02;
  letter-spacing: -.035em; color: var(--ink); margin-bottom: 22px;
  text-wrap: balance; max-width: 600px;
}
.hero .sub {
  font-size: 19px; color: var(--ink-soft); line-height: 1.6;
  max-width: 480px; margin-bottom: 34px; text-wrap: pretty;
}
.cta { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.b1 {
  background: var(--i600); color: #fff;
  font-size: 15.5px; font-weight: 600; padding: 15px 32px; border-radius: 10px;
  border: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(26,26,46,.10), 0 2px 6px rgba(26,26,46,.07);
  transition: .18s; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.b1:hover { background: var(--i700); transform: translateY(-1px); text-decoration: none; }

/* rotating verticals — seamless stepping loop (a trade is always on screen) */
.vrow { display: inline-flex; align-items: center; gap: 0.25em; font-size: 15px; font-weight: 500; color: var(--ink-mut); }
.vslot { position: relative; height: 22px; overflow: hidden; display: inline-block; width: 120px; }
.vlist { display: flex; flex-direction: column; animation: vscroll 13s infinite; }
.vlist span { height: 22px; line-height: 22px; color: var(--i600); font-weight: 600; white-space: nowrap; }
@keyframes vscroll {
  0%,15%   { transform: translateY(0); }
  20%,35%  { transform: translateY(-22px); }
  40%,55%  { transform: translateY(-44px); }
  60%,75%  { transform: translateY(-66px); }
  80%,95%  { transform: translateY(-88px); }
  100%     { transform: translateY(-110px); }
}

/* constellation backdrop on the hero stage (one large + two scattered) */
.hero-stars { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; color: var(--i600); }
.hero-stars .hmk { position: absolute; }
.hero-stars .hmk svg { width: 100%; height: auto; display: block; }
.hero-stars .hmk.big { width: 640px; top: 50%; left: 78%; transform: translate(-30%, -50%); opacity: .22; }
.hero-stars .hmk.s1 { width: 150px; top: 13%; left: 40%; opacity: .13; transform: rotate(-12deg); }
.hero-stars .hmk.s2 { width: 104px; bottom: 11%; left: 9%; opacity: .08; transform: rotate(9deg); }

/* live widget mounted on the hero stage */
.hero-widget { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 40px; }
.hero-card { position: relative; width: 372px; max-width: 100%; height: min(560px, calc(100vh - 168px)); background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 26px 56px -22px rgba(15,23,42,.26); }
.hero-iframe { display: block; width: 100%; height: 100%; border: none; background: #fff; }
.hero-skeleton { position: absolute; inset: 0; display: flex; flex-direction: column; background: #fff; font-family: 'Source Sans 3', system-ui, sans-serif; font-size: 15px; color: #0f172a; -webkit-font-smoothing: antialiased; }
.hsk-header { background: #fff; border-bottom: 1px solid #e5e7eb; padding: 12px 16px; display: flex; align-items: center; flex-shrink: 0; }
.hsk-id { display: flex; align-items: center; gap: 10px; }
.hsk-wordmark { font-size: 15px; font-weight: 700; letter-spacing: -.3px; color: #0f172a; }
.hsk-wordmark b { color: #6366f1; font-weight: 700; }
.hsk-body { position: relative; flex: 1; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; }
.hsk-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px); background-size: 22px 22px; opacity: .55; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 25%, transparent 100%); mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 25%, transparent 100%); pointer-events: none; }
.hsk-blob { position: absolute; width: 320px; height: 220px; top: -40px; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(79,70,229,.10) 0%, transparent 65%); filter: blur(26px); pointer-events: none; }
.hsk-wm { position: absolute; color: #4f46e5; pointer-events: none; }
.hsk-wm-tr { width: 220px; height: 220px; top: 14px; right: -30px; opacity: .05; }
.hsk-wm-bl { width: 180px; height: 180px; bottom: 8px; left: -26px; opacity: .045; }
.hsk-content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 32px 28px; }
.hsk-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; color: #0f172a; }
.hsk-text { font-size: 13.5px; color: #64748b; line-height: 1.55; }
.hsk-foot { flex-shrink: 0; border-top: 1px solid #eef2f7; padding: 9px 14px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; color: #9aa4b2; font-weight: 500; }
.hsk-foot-mk { width: 13px; height: 13px; opacity: .85; }
.hsk-foot-sep { opacity: .55; }
.hsk-foot-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; transition: color .12s, border-color .12s; }
.hsk-foot-link:hover { color: #4f46e5; border-bottom-color: currentColor; }

/* ═══════════════════════════════════════════════════════════
   Generic band + section head
   ═══════════════════════════════════════════════════════════ */

section.band { position: relative; padding: 104px 0; overflow: hidden; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 56px; position: relative; z-index: 1; }
.sec-head p { font-size: 18px; color: var(--ink-soft); line-height: 1.6; margin-top: 14px; }

/* ═══════════════════════════════════════════════════════════
   Feature rows
   ═══════════════════════════════════════════════════════════ */

.feat { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; margin-bottom: 104px; }
.feat:last-child { margin-bottom: 0; }
.feat.flip .ftext { order: 2; }
.ftext h3 {
  font-family: var(--fd); font-weight: 700; font-size: clamp(26px, 2.6vw, 34px);
  letter-spacing: -.025em; line-height: 1.1; margin-bottom: 16px; color: var(--ink);
}
.ftext p { font-size: 17px; color: var(--ink-soft); line-height: 1.65; max-width: 430px; }
.fvis { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }

/* F1: knowledge graphic — equal-width sources, aligned connectors, real two-tone hub */
.know { position: relative; width: 400px; height: 300px; max-width: 100%; }
.know .src {
  position: absolute; left: 0; width: 200px; background: #fff; border: 1px solid var(--line);
  border-radius: 11px; padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  box-shadow: 0 1px 3px rgba(15,23,42,.05), 0 8px 20px -18px rgba(15,23,42,.16);
  text-align: center;
}
.know .s1 { top: 18px; }
.know .s2 { top: 131px; }
.know .s3 { top: 244px; }
.know svg.links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.know svg.links path { stroke: var(--iacc); stroke-width: 1.6; fill: none; }
.know .hub {
  position: absolute; left: 278px; top: 108px; width: 84px; height: 84px; border-radius: 22px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 12px 28px -18px rgba(15,23,42,.22), 0 0 0 1px var(--line);
}
.know .hub svg { width: 52px; height: 52px; }

/* F2: editorial capture — human quote, then the resolved lead (no card) */
.f2ed { max-width: 432px; }
.f2ed .said { font-size: 22px; line-height: 1.52; color: var(--ink-soft); letter-spacing: -.01em; }
.f2ed .said em {
  font-style: normal; color: var(--i600); font-weight: 700;
  background: linear-gradient(var(--iacc), var(--iacc)) 0 92%/100% 2px no-repeat;
}
.f2ed .f2cap { display: flex; align-items: center; gap: 13px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); }
.f2ed .f2mk { width: 36px; height: 36px; flex-shrink: 0; }
.f2ed .f2mk svg { width: 100%; height: auto; display: block; }
.f2ed .f2nm { font-family: var(--fd); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.05; }
.f2ed .f2ph { font-size: 13px; color: var(--i600); font-weight: 600; margin-top: 1px; }

/* F3: editorial reach-stack — channels as the hero (no email mock, no chips) */
.f3ed { max-width: 430px; }
.f3ed .li { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.5; }
.f3ed .f3hero { font-family: var(--fd); font-weight: 800; font-size: 31px; letter-spacing: -.03em; line-height: 1.08; color: var(--ink); }
.f3ed .f3hero .hl { color: var(--i600); }
.f3ed .s2 { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin-top: 16px; max-width: 380px; }

/* ═══════════════════════════════════════════════════════════
   Steps — own dedicated section, roomy 3-card row (no numbers/eyebrows/rail)
   ═══════════════════════════════════════════════════════════ */

.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
/* Thread spans dot1-center → dot3-center. Dots are centered above each column
   (left: 50%; translateX(-50%)), so the thread sits between 1/6 and 5/6 of the
   grid width — visually centered with the section. */
.steps-thread { position: absolute; top: 7px; left: 16.667%; right: 16.667%; height: 2px; background: var(--iacc); opacity: .6; z-index: 0; }
.step { position: relative; z-index: 1; padding-top: 26px; text-align: center; }
.step::before { content: ""; position: absolute; top: 1px; left: 50%; transform: translateX(-50%); width: 13px; height: 13px; border-radius: 50%; background: var(--page); border: 2px solid var(--i600); box-sizing: border-box; }
.step h4 { font-family: var(--fd); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--ink); }
.step h4 .hl { color: var(--i600); }
.step p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin-top: 8px; max-width: 280px; margin-left: auto; margin-right: auto; }

/* ═══════════════════════════════════════════════════════════
   Install — own section, left/right (copy left, code right)
   ═══════════════════════════════════════════════════════════ */

.codespine { position: relative; z-index: 1; text-align: center; max-width: 840px; margin: 0 auto; }
.codespine h2.sec { margin-bottom: 14px; }
.codespine .lead { font-size: 16px; color: var(--ink-soft); line-height: 1.55; max-width: 680px; margin: 0 auto 24px; }
.codespine .lead code { font-family: 'SF Mono', ui-monospace, monospace; font-size: 13.5px; background: #ececf3; color: var(--i700); padding: 1px 6px; border-radius: 5px; }
.codebar-wrap { display: flex; justify-content: center; }
.codebar { display: inline-flex; align-items: center; max-width: 100%; background: #16152a; border-radius: 12px; padding: 13px 16px; box-shadow: 0 1px 3px rgba(15,23,42,.06), 0 16px 40px -26px rgba(20,19,42,.5); }
.codebar .ln { flex: 0 1 auto; min-width: 0; font-family: 'SF Mono', ui-monospace, monospace; font-size: 13px; line-height: 1.4; white-space: nowrap; overflow-x: auto; color: #e7e7f3; }
.codebar .ln::-webkit-scrollbar { height: 0; }
.codebar .ln .c2 { color: #a5b4fc; }
.codebar .ln .c3 { color: #9ae6b4; }
.platrow { display: flex; align-items: flex-start; justify-content: center; gap: 34px; flex-wrap: wrap; margin-top: 26px; }
.platrow .plat { display: flex; flex-direction: column; align-items: center; gap: 7px; width: 70px; }
.platrow .ic { height: 26px; color: var(--ink-soft); display: flex; align-items: center; justify-content: center; }
.platrow .ic svg { height: 26px; width: auto; display: block; }
.platrow .nm { font-size: 11.5px; color: var(--ink-mut); font-weight: 600; text-align: center; }

/* ═══════════════════════════════════════════════════════════
   Final CTA + footer — one continuous tinted "tail" that fades out
   of the white body into the hero's light-tint, so there is no hard
   color edge. The CTA is a centered text block (no panel).
   ═══════════════════════════════════════════════════════════ */

.tail { position: relative; background: linear-gradient(180deg, var(--page) 0%, #eef0fb 62%, #e8eafb 100%); }
.final-cta { position: relative; max-width: 860px; margin: 0 auto; text-align: center; padding: 98px 24px 72px; }
.final-cta .fmk { position: absolute; top: 40%; left: 50%; transform: translate(-50%,-50%); width: 430px; color: var(--i600); opacity: .09; pointer-events: none; z-index: 0; }
.final-cta .fmk svg { width: 100%; height: auto; display: block; }
.final-cta h2 {
  position: relative; z-index: 1;
  font-family: var(--fd); font-weight: 800; font-size: clamp(32px, 4.2vw, 46px);
  letter-spacing: -.03em; color: var(--ink); margin-bottom: 18px; line-height: 1.03; white-space: nowrap;
}
.final-cta p { position: relative; z-index: 1; font-size: 18px; color: var(--ink-soft); line-height: 1.5; margin: 0 auto 34px; white-space: nowrap; }
@media (max-width: 720px) {
  .final-cta h2, .final-cta p { white-space: normal; }
}

/* ═══════════════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════════════ */

.footer { position: relative; padding: 64px 0 40px; border-top: 1px solid var(--line); margin-top: 96px; overflow: hidden; }
/* inside the tinted tail the footer flows out of the CTA — hairline divider, no big gap */
.tail .footer { border-top-color: rgba(79,70,229,.10); margin-top: 30px; }
.foot-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.foot-brand p { font-size: 14px; color: var(--ink-mut); line-height: 1.6; margin-top: 14px; max-width: 260px; }
.fcol h5 { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mut); margin-bottom: 14px; }
.fcol a { display: block; font-size: 14.5px; color: var(--ink-soft); text-decoration: none; margin-bottom: 10px; }
.fcol a:hover { color: var(--i600); }
.foot-base {
  position: relative; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--ink-mut); border-top: 1px solid var(--line); padding-top: 24px;
}

/* ═══════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-stage { grid-template-columns: 1fr; min-height: 0; padding-top: calc(var(--navbar-height) + 12px); }
  .hero-bleed { display: none; }
  .hero-copy { padding: 48px 36px 8px; }
  .hero-widget { padding: 16px 28px 40px; }
  .hero-card { width: 100%; max-width: 420px; height: 520px; }
  .hero-stars .hmk.big { left: 50%; }
  .feat { grid-template-columns: 1fr; gap: 30px; margin-bottom: 64px; }
  .feat.flip .ftext { order: 0; }
  .fvis { min-height: auto; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .steps-thread { display: none; }
  .final-cta { padding: 72px 24px 44px; }
}

@media (max-width: 880px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .wrap { padding: 0 20px; }
  section.band { padding: 72px 0; }
  .hero-copy { padding: 40px 20px 8px; }
  .hero-widget { padding: 12px 20px 32px; }
  .final-cta { padding: 64px 20px 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .foot-base { flex-direction: column; gap: 10px; }
  .know { width: 100%; }
  .bgmk { display: none; }
}

@media (max-width: 520px) {
  .cta { flex-direction: column; align-items: flex-start; }
  .know { height: 330px; }
  .foot-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   Reduced motion
   ═══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .vlist { animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ═══════════════════════════════════════════════════════════
   Pricing (/pricing route)
   ═══════════════════════════════════════════════════════════ */

/* .pricing-hero, .fr-section, .fr-section-tight are in packages/shared/css/pricing.css */

/* .plan-compare* and .sr-only live in packages/shared/css/pricing.css
   so the dashboard's UpgradePage gets them too. */

/* ═══════════════════════════════════════════════════════════
   /contact page
   ═══════════════════════════════════════════════════════════ */
/* CustomSelect (.knb-select*) styles live in packages/shared/css/pricing.css. */

/* Framed card chassis — ported from MockDPE /upgrade & /pricing.
   One rounded container holds the entire page; faded constellation
   mark sits in the top-right, soft radial brand wash from the top
   edge. All content centered inside. */
.fr-page {
  padding: calc(var(--navbar-height) + 56px) 24px 80px;
  min-height: calc(100vh - var(--navbar-height));
  background: var(--page-bg-2);
}
/* fr-page--marked hosts absolute-positioned background watermarks */
.fr-page--marked { position: relative; overflow: hidden; }

.fr-wrap {
  max-width: 720px;
  margin: 0 auto;
}

/* ─── Pricing-page background watermarks ───────────────────────────────
   Nine constellation marks spread across the full page height using px
   values (not %) so they're evenly distributed even when the page is
   taller than the viewport. Marks bleed off edges; overflow:hidden on
   .fr-page--marked prevents scrollbar bleed. Hidden on narrow screens. */
.pricing-bgmarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.pricing-bgmark {
  position: absolute;
  color: var(--i600);
  pointer-events: none;
}
/* zone 1 — top-left, large */
.pricing-bgmark--1 {
  width: 200px; height: 200px;
  top: 60px; left: -70px;
  opacity: 0.04;
  transform: rotate(-22deg);
}
/* zone 1 — top-right, medium */
.pricing-bgmark--2 {
  width: 130px; height: 130px;
  top: 100px; right: -44px;
  opacity: 0.035;
  transform: rotate(18deg);
}
/* zone 2 — upper-mid left */
.pricing-bgmark--3 {
  width: 150px; height: 150px;
  top: 380px; left: -52px;
  opacity: 0.038;
  transform: rotate(-14deg);
}
/* zone 2 — upper-mid right, small */
.pricing-bgmark--4 {
  width: 100px; height: 100px;
  top: 460px; right: -30px;
  opacity: 0.03;
  transform: rotate(34deg);
}
/* zone 3 — mid-page left, medium (gap between cards) */
.pricing-bgmark--5 {
  width: 170px; height: 170px;
  top: 680px; left: -58px;
  opacity: 0.04;
  transform: rotate(10deg);
}
/* zone 3 — mid-page right */
.pricing-bgmark--6 {
  width: 140px; height: 140px;
  top: 740px; right: -46px;
  opacity: 0.035;
  transform: rotate(-26deg);
}
/* zone 4 — lower-mid left */
.pricing-bgmark--7 {
  width: 110px; height: 110px;
  top: 1040px; left: -34px;
  opacity: 0.032;
  transform: rotate(-8deg);
}
/* zone 4 — lower-mid right, large */
.pricing-bgmark--8 {
  width: 180px; height: 180px;
  top: 1100px; right: -62px;
  opacity: 0.038;
  transform: rotate(22deg);
}
/* zone 5 — bottom, offset left */
.pricing-bgmark--9 {
  width: 150px; height: 150px;
  bottom: 60px; left: 18%;
  opacity: 0.032;
  transform: rotate(-16deg);
}
@media (max-width: 900px) {
  .pricing-bgmark { display: none; }
}

/* .fr-card, .fr-mark, .fr-wash, .fr-content, .fr-card+.fr-card,
   .fr-section, .fr-section-tight, .pricing-hero are defined in
   packages/shared/css/pricing.css */

/* Scattered constellation watermarks on the contact card. Sized,
   rotated, and nudged off-grid on purpose so the cluster reads as
   hand-placed rather than a tidy corner stamp. */
.fr-watermarks {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.fr-watermark {
  position: absolute;
  opacity: 0.07;
  pointer-events: none;
}
.fr-watermark--tl {
  top: -26px;
  left: -34px;
  width: 168px;
  height: 168px;
  transform: rotate(-19deg);
}
.fr-watermark--tr {
  top: 34px;
  right: -22px;
  width: 108px;
  height: 108px;
  transform: rotate(24deg);
  opacity: 0.06;
}
.fr-watermark--br {
  bottom: -18px;
  right: 30%;
  width: 78px;
  height: 78px;
  transform: rotate(-9deg);
  opacity: 0.05;
}

@media (max-width: 640px) {
  .fr-watermark--tl { width: 130px; height: 130px; top: -22px; left: -28px; }
  .fr-watermark--tr { width: 84px; height: 84px; top: 22px; right: -18px; }
  .fr-watermark--br { display: none; }
}

.fr-hero {
  text-align: center;
  padding: 40px 28px 16px;
}
.fr-wordmark {
  display: block;
  margin-bottom: 18px;
}

.fr-title {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--text);
  text-wrap: balance;
}
.fr-title .accent { color: var(--brand); }

.fr-sub {
  max-width: 420px;
  margin: 10px auto 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  text-wrap: pretty;
}

.fr-body {
  padding: 24px 32px 36px;
}

.fr-form { display: grid; gap: 16px; max-width: 480px; margin: 0 auto; }
.fr-form .fg { display: flex; flex-direction: column; gap: 6px; }
.fr-form .fg label { font-size: 13px; font-weight: 600; color: var(--text); }
.fr-form .fg .opt { color: var(--text-tertiary); font-weight: 400; margin-left: 4px; }
.fr-form .fg input,
.fr-form .fg select,
.fr-form .fg textarea {
  width: 100%;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.fr-form .fg input::placeholder,
.fr-form .fg textarea::placeholder { color: var(--input-placeholder); }
.fr-form .fg input:focus,
.fr-form .fg select:focus,
.fr-form .fg textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--ring-brand);
}
.fr-form .fg textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.fr-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.fr-submit {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 10px;
  width: 100%;
  background: var(--brand);
  color: var(--text-on-brand);
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 15px; font-weight: 600;
  font-family: var(--font);
  border: none; cursor: pointer;
  box-shadow: var(--shadow-card-hover);
  transition: all var(--dur-base) var(--ease-spring);
  margin-top: 4px;
}
.fr-submit:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}
.fr-submit[disabled] {
  opacity: 0.6; cursor: not-allowed; transform: none;
  box-shadow: var(--shadow-card-hover);
}

.fr-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.6;
}
.fr-foot a {
  color: var(--text-secondary);
  border-bottom: 1px solid var(--card-border);
}
.fr-foot a:hover { color: var(--brand); border-color: var(--brand); }

.fr-error {
  color: var(--error);
  background: var(--error-bg);
  border: 1px solid var(--error-border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 4px;
}

/* Submitted-state confirmation: wordmark-led, single even vertical rhythm.
   Replaces the whole form hero+body once the message is sent. */
.fr-confirm {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 52px 28px 48px;
  max-width: 460px;
  margin: 0 auto;
}
.fr-confirm .fr-wordmark { margin: 0; }
.fr-confirm-sub {
  margin: 0;
  max-width: 360px;
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-wrap: pretty;
}
.fr-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.fr-confirm .fr-actions { margin-top: 4px; }
.fr-ghost {
  background: none;
  border: none;
  padding: 0;
  font-size: 13.5px;
  font-family: var(--font);
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
}
.fr-ghost span {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.fr-ghost:hover span { color: var(--brand); border-color: var(--brand); }
.fr-link {
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
}
.fr-link span {
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 1px;
  transition: color var(--dur-fast), border-color var(--dur-fast);
}
.fr-link:hover span { color: var(--brand); border-color: var(--brand); }

@media (max-width: 640px) {
  .fr-page { padding: calc(var(--navbar-height) + 28px) 16px 56px; }
  .fr-hero { padding: 32px 20px 12px; }
  .fr-body { padding: 16px 20px 28px; }
  .fr-title { font-size: 26px; letter-spacing: -0.6px; }
  .fr-form .row2 { grid-template-columns: 1fr; }
  .fr-confirm { padding: 40px 20px; }
}

/* ═══════════════════════════════════════════════════════════
   Canonical primitives — shared class vocabulary
   These class names appear in every app's CSS so any markup can
   use them and look consistent across landing/dashboard/onboarding.
   ═══════════════════════════════════════════════════════════ */

/* Canonical .btn system — see apps/dashboard/src/styles.css for the full block.
   Keep these in sync across landing / dashboard / onboarding. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  box-sizing: border-box;
  transition: background var(--dur-fast) ease,
              border-color var(--dur-fast) ease,
              color var(--dur-fast) ease,
              box-shadow var(--dur-fast) ease,
              transform var(--dur-fast) ease;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring-brand); }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-sm { height: 28px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-md { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 42px; padding: 0 20px; font-size: 15px; }

.btn-pill { border-radius: 999px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 28px; }
.btn-icon.btn-lg { width: 42px; }

.btn-primary {
  background: var(--brand-600);
  color: #fff;
  border-color: var(--brand-600);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover:not(:disabled) {
  background: var(--brand-700);
  border-color: var(--brand-700);
  box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text);
  border-color: var(--card-border);
}
.btn-secondary:hover:not(:disabled) {
  background: var(--page-bg-2);
  border-color: var(--text-tertiary);
}

.btn-ghost,
.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--card-border);
}
.btn-ghost:hover:not(:disabled),
.btn-outline:hover:not(:disabled) {
  background: var(--page-bg-2);
  border-color: var(--input-border);
  color: var(--text);
}

.btn-danger,
.btn-danger-outline,
.btn-danger-text {
  background: transparent;
  color: var(--error);
  border-color: var(--error-border);
}
.btn-danger:hover:not(:disabled),
.btn-danger-outline:hover:not(:disabled),
.btn-danger-text:hover:not(:disabled) {
  background: var(--error-bg);
  border-color: var(--error);
  color: var(--error);
}

.btn-danger-solid,
.btn-solid-danger {
  background: var(--error);
  color: #fff;
  border-color: var(--error);
}
.btn-danger-solid:hover:not(:disabled),
.btn-solid-danger:hover:not(:disabled) {
  background: #b91c1c;
  border-color: #b91c1c;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.card-elev {
  transition: box-shadow var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-spring);
}
.card-elev:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.input, .select {
  width: 100%;
  height: 36px;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand-600);
  box-shadow: var(--ring-brand);
}
.input::placeholder, .textarea::placeholder { color: var(--input-placeholder); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.55; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 14, 12, 0.55);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  max-width: 480px;
  width: 100%;
  padding: 28px;
}
