@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap");

/* =====================================================================
   Ascend design system core
   Tokens, base, chrome (header/footer), kit primitives, hero.
   Section variants live in sections.css (bundled from css/sections/).
   ===================================================================== */

/* 1. Tokens ----------------------------------------------------------- */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --card: #ffffff;
  --ink: #18181b;
  --muted: #6b6b70;
  --faint: #76767b;
  --surface: #f5f5f7;
  --surface-2: #efeff1;
  --border: #e2e3e8;
  --border-strong: #cfd0d8;
  --dot: #d4d5dd;
  --accent: #60a5fa;
  --accent-ink: #0e1524;
  --accent-soft: #e8f1fe;
  --primary: #0a0a0a;
  --primary-ink: #ffffff;
  --green: #2f855a;
  --green-soft: #e7f2ec;
  --violet: #a78bfa;
  --metric-blue: #60a5fa;
  --metric-red: #f87171;
  --metric-green: #2f855a;
  --invert-bg: #17181b;
  --invert-ink: #ffffff;
  --invert-btn-bg: #f5f5f7;
  --invert-btn-ink: #17181b;
  --glass: rgba(17, 18, 21, 0.58);
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow-soft: 0 18px 48px rgba(25, 27, 31, 0.1);
  --shadow-deep: 0 29px 70px rgba(25, 27, 31, 0.16);
  --shell-max: 1240px;
  --shell-gap: 24px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #16171d;
  --card: #1d1f26;
  --ink: #ffffff;
  --muted: #989ba3;
  --faint: #7d818a;
  --surface: #272a32;
  --surface-2: #31353f;
  --border: #2d3039;
  --border-strong: #3b3f49;
  --dot: #272a31;
  --accent: #60a5fa;
  --accent-ink: #0e1524;
  --accent-soft: #1c2635;
  --primary: #60a5fa;
  --primary-ink: #0e1524;
  --green: #2f855a;
  --green-soft: #16241d;
  --invert-bg: #0d0e12;
  --invert-ink: #ffffff;
  --invert-btn-bg: #60a5fa;
  --invert-btn-ink: #0e1524;
  --header-bg: rgba(22, 23, 29, 0.92);
  --shadow-soft: 0 18px 48px rgba(0, 0, 0, 0.4);
  --shadow-deep: 0 29px 70px rgba(0, 0, 0, 0.55);
}

/* 2. Base ------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Figtree", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 180ms ease, color 180ms ease;
}

button,
textarea,
input,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
  cursor: pointer;
  background: transparent;
}

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

img,
video,
svg {
  display: block;
  max-width: 100%;
}

.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;
}

/* 3. Cross-document view transitions ---------------------------------- */

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 220ms;
}

.site-header {
  view-transition-name: main-header;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-group(main-header) {
    animation: none;
  }
}

/* 4. Shell: the one container law ------------------------------------- */

.shell {
  width: min(100% - var(--shell-gap) * 2, var(--shell-max));
  margin-inline: auto;
}

.sec {
  padding-block: clamp(104px, 11vw, 172px);
}

.sec.tint {
  background: var(--surface);
}

.sec.card-band {
  background: var(--card);
  border-block: 1px solid var(--border);
}

.sec.dots {
  background-image: radial-gradient(circle, var(--dot) 0.9px, transparent 1px);
  background-size: 22px 22px;
}

.sec.invert {
  background: var(--invert-bg);
  color: var(--invert-ink);
}

/* 5. Header ----------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.nav-shell {
  display: flex;
  width: min(100% - var(--shell-gap) * 2, var(--shell-max));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.wordmark,
.brand-logo {
  width: 118px;
  min-width: 118px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
}

.brand-logo-dark {
  display: none;
}

html[data-theme="dark"] .brand-logo-light {
  display: none;
}

html[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.site-nav > a {
  transition: color 150ms ease;
}

.site-nav > a:hover,
.site-nav > a[aria-current="page"] {
  color: var(--ink);
}

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

.nav-actions .login-link {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.nav-actions .login-link:hover {
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--ink);
}

.menu-toggle svg {
  width: 15px;
  height: 15px;
}

/* Pages switcher dropdown (injected by ascend.js) */

.pages-switcher {
  position: relative;
}

.pages-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  color: inherit;
}

.pages-toggle svg {
  width: 9px;
  transition: transform 160ms ease;
}

.pages-switcher.is-open .pages-toggle {
  color: var(--ink);
}

.pages-switcher.is-open .pages-toggle svg {
  transform: rotate(180deg);
}

.pages-dropdown {
  position: absolute;
  z-index: 100;
  top: calc(100% + 11px);
  left: 50%;
  display: none;
  width: min(560px, calc(100vw - 26px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--card) 97%, transparent);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
}

.pages-switcher.is-open .pages-dropdown {
  display: grid;
}

.pages-group {
  min-width: 0;
  padding: 6px;
}

.pages-group p {
  margin: 0 0 5px;
  padding: 0 7px 6px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav .pages-group a {
  display: block;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

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

.site-nav .pages-group a[aria-current="page"] {
  background: var(--primary);
  color: var(--primary-ink);
}

/* Theme toggle (injected by ascend.js) */

.theme-toggle {
  position: relative;
  display: inline-flex;
  width: 54px;
  min-width: 54px;
  height: 30px;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.theme-toggle span {
  font-size: 11px;
  line-height: 1;
}

.theme-toggle::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  content: "";
  transition: transform 180ms ease;
}

html[data-theme="dark"] .theme-toggle::after {
  transform: translateX(24px);
}

/* 6. Buttons, kickers, headings --------------------------------------- */

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  transition: transform 150ms ease, background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.button.primary {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.button.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.button.small {
  min-height: 36px;
  padding: 0 15px;
  font-size: 12px;
}

.button.large {
  min-height: 52px;
  padding: 0 26px;
  font-size: 15px;
}

.button.block {
  width: 100%;
}

.button.ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.button.ghost:hover {
  color: var(--ink);
}

.sec.invert .button.primary,
.k-panel.invert .button.primary {
  border-color: var(--invert-btn-bg);
  background: var(--invert-btn-bg);
  color: var(--invert-btn-ink);
}

.g-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--card);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: border-color 150ms ease, transform 150ms ease;
}

.g-btn:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.g-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.g-btn .g-mark {
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.g-btn.large {
  min-height: 52px;
  padding: 0 30px;
}

.text-action {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

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

.k-google-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 150ms ease;
}

.k-google-btn:hover {
  border-color: var(--ink);
}

.k-google-btn svg {
  width: 17px;
  height: 17px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.kicker::before {
  width: 18px;
  height: 1px;
  background: currentColor;
  content: "";
}

.kicker.accent {
  color: var(--accent);
}

.kicker.pill {
  gap: 0;
  padding: 7px 13px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--accent));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, var(--surface));
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.015em;
  text-transform: none;
}

.kicker.pill::before {
  display: none;
}

.sec-head {
  max-width: 800px;
  margin-bottom: clamp(52px, 6vw, 84px);
}

.sec-head.center {
  margin-inline: auto;
  text-align: center;
}

.sec-head h1,
.sec-head h2 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.sec-head .lead {
  max-width: 640px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.sec-head.center .lead {
  margin-inline: auto;
}

.sec-head .caps {
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.sec-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.sec-head.center .sec-actions,
.sec-actions.center {
  justify-content: center;
}

.fine-print {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12px;
}

/* 7. Kit: layout ------------------------------------------------------- */

.k-grid {
  display: grid;
  gap: 16px;
}

.k-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.k-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.k-grid.cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.k-grid.gap-lg {
  gap: 24px;
}

.k-grid.flush {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
}

.k-grid.flush > .k-card {
  border: 0;
  border-radius: 0;
}

.k-grid.flush > .k-card + .k-card {
  border-left: 1px solid var(--border);
}

.k-split {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 110px);
}

.k-split.even {
  grid-template-columns: 1fr 1fr;
}

.k-split.flip > :first-child {
  order: 2;
}

/* 8. Kit: surfaces ----------------------------------------------------- */

.k-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.k-card.inset {
  background: var(--surface);
}

.k-card.raised {
  box-shadow: var(--shadow-soft);
}

.k-card.hover-raise {
  transition: transform 160ms ease, border-color 160ms ease;
}

.k-card.hover-raise:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.k-panel {
  padding: clamp(40px, 5vw, 72px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
}

.k-panel.invert {
  border-color: var(--invert-bg);
  background: var(--invert-bg);
  color: var(--invert-ink);
}

.k-panel.accent {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}

.k-panel.dots {
  background-image: radial-gradient(circle, var(--dot) 0.9px, transparent 1px);
  background-size: 21px 21px;
}

.k-panel.invert.dots {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--invert-ink) 20%, transparent) 0.8px, transparent 1px);
}

.k-panel.accent.dots {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--accent-ink) 23%, transparent) 0.8px, transparent 1px);
}

.k-tile {
  padding: 18px;
  border-radius: 12px;
  background: var(--surface);
}

.k-tile.outline {
  border: 1px solid var(--border-strong);
  background: transparent;
}

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

/* 9. Kit: small parts -------------------------------------------------- */

.k-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.k-chip.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

.k-chip.green {
  background: var(--green-soft);
  color: var(--green);
}

.k-chip.outline {
  border: 1px solid var(--border-strong);
  background: transparent;
}

.k-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.k-badge.neutral {
  background: var(--surface-2);
  color: var(--muted);
}

.k-avatar {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.k-avatar.sm {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.k-avatar.lg {
  width: 52px;
  height: 52px;
  font-size: 15px;
}

.k-avatar.tint-1 { background: var(--accent-soft); color: var(--accent); }
.k-avatar.tint-2 { background: var(--green-soft); color: var(--green); }
.k-avatar.tint-3 { background: var(--surface); color: var(--ink); }

.k-avatar-stack {
  display: inline-flex;
  align-items: center;
}

.k-avatar-stack .k-avatar {
  margin-left: -8px;
  border: 2px solid var(--bg);
}

.k-avatar-stack .k-avatar:first-child {
  margin-left: 0;
}

.k-note {
  color: var(--faint);
  font-size: 12px;
}

.k-num {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 11px;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 12px;
  font-weight: 700;
}

.k-num.accent {
  background: var(--accent);
  color: var(--accent-ink);
}

.k-num.soft {
  background: var(--surface-2);
  color: var(--ink);
}

/* 10. Kit: data -------------------------------------------------------- */

.k-stat strong {
  display: block;
  font-size: clamp(34px, 3.4vw, 46px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.k-stat small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.k-delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
}

.k-delta.up {
  color: var(--green);
}

.k-delta.down {
  color: var(--metric-red);
}

.k-bars {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 120px;
}

.k-bars i {
  flex: 1;
  min-width: 6px;
  border-radius: 6px 6px 2px 2px;
  background: color-mix(in srgb, var(--ink) 16%, transparent);
}

.k-bars i.hot {
  background: var(--accent);
}

.k-bars i.pos {
  background: var(--green);
}

.k-bars.thin {
  gap: 4px;
}

.k-spark {
  color: var(--accent);
}

.k-spark.green {
  color: var(--green);
}

.k-spark svg {
  width: 100%;
  height: auto;
}

.k-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.k-progress i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
}

.k-progress i.pos {
  background: var(--green);
}

.k-progress i.warn {
  background: var(--metric-red);
}

.k-diag-row {
  display: grid;
  grid-template-columns: minmax(90px, 130px) 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  font-size: 12px;
}

.k-diag-row > span:first-child {
  color: var(--muted);
  font-weight: 500;
}

.k-diag-row > span:last-child {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.k-diag-row.stuck > span:first-child,
.k-diag-row.stuck > span:last-child {
  color: var(--metric-red);
  font-weight: 700;
}

.k-metric {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.k-metric.views { color: var(--metric-blue); }
.k-metric.likes { color: var(--metric-red); }
.k-metric.growth { color: var(--metric-green); }

/* 11. Kit: media frames ------------------------------------------------ */

.k-phone {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
}

.k-phone img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.k-phone.shadow {
  box-shadow: var(--shadow-soft);
}

.k-shade {
  position: absolute;
  z-index: 1;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
}

.k-frame-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--glass);
  color: #ffffff;
  font-size: 9px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.k-frame-box {
  position: absolute;
  z-index: 2;
  border: 1.5px dashed var(--metric-blue);
  border-radius: 10px;
  pointer-events: none;
}

.k-frame-box.green {
  border-color: var(--metric-green);
}

.k-frame-box.red {
  border-color: var(--metric-red);
}

.k-window {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}

.k-window.shadow {
  box-shadow: var(--shadow-deep);
}

.k-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  color: var(--faint);
  font-size: 10px;
}

.k-window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
}

.k-window-bar span {
  margin-left: 8px;
}

.k-window-body {
  padding: 20px;
}

.k-window-body.flush {
  padding: 0;
}

.k-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  background: #101115;
  color: #ffffff;
}

.k-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}

.k-play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(16, 17, 21, 0.62);
  color: #ffffff;
  font-size: 15px;
  transform: translate(-50%, -50%);
  transition: transform 150ms ease;
  backdrop-filter: blur(8px);
}

.k-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.k-play.sm {
  width: 40px;
  height: 40px;
  font-size: 11px;
}

.k-video-hud {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 12px;
  left: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.k-video-hud .k-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
}

.k-video-hud .k-progress i {
  background: #ffffff;
}

.k-shot {
  display: block;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
}

/* Theme-paired screenshots on pages that keep the toggle: give the light
   variant .shot-light and the dark variant .shot-dark. */

.shot-dark {
  display: none;
}

html[data-theme="dark"] .shot-light {
  display: none;
}

html[data-theme="dark"] .shot-dark {
  display: block;
}

.k-shot.raised {
  box-shadow: var(--shadow-deep);
}

.k-avatar-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.k-avatar-img.sm {
  width: 28px;
  height: 28px;
}

.k-avatar-img.lg {
  width: 52px;
  height: 52px;
}

/* 12. Kit: conversation ------------------------------------------------ */

.k-msg {
  display: flex;
  gap: 12px;
  max-width: 560px;
}

.k-msg .k-avatar {
  flex-shrink: 0;
}

.k-msg-bubble {
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  font-size: 13px;
  line-height: 1.55;
}

.k-msg.user {
  margin-left: auto;
  flex-direction: row-reverse;
}

.k-msg.user .k-msg-bubble {
  border-color: var(--border-strong);
  border-bottom-right-radius: 6px;
  background: var(--surface);
}

.k-msg.ai .k-msg-bubble {
  border-bottom-left-radius: 6px;
}

.k-mark {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 11px;
  font-weight: 700;
}

.k-ask {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px 7px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
}

.k-ask input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.k-ask input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.k-ask .k-ask-send {
  display: grid;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--primary-ink);
  font-size: 15px;
  font-weight: 700;
}

/* 13. Kit: lists, accordions, tables ----------------------------------- */

.k-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.k-list.check li::before {
  margin-right: 9px;
  color: var(--green);
  content: "✓";
  font-weight: 700;
}

.k-list.check.ink li::before {
  color: var(--ink);
}

.k-list.cross li::before {
  margin-right: 9px;
  color: var(--faint);
  content: "✕";
}

.k-acc {
  border-bottom: 1px solid var(--border);
}

.k-acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.015em;
  list-style: none;
}

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

.k-acc summary::after {
  flex-shrink: 0;
  color: var(--faint);
  content: "+";
  font-size: 21px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.k-acc[open] summary::after {
  transform: rotate(45deg);
}

.k-acc p {
  max-width: 680px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.k-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.k-table th {
  padding: 14px 18px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: left;
  text-transform: uppercase;
}

.k-table td {
  padding: 15px 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  line-height: 1.5;
}

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

.k-table .yes {
  color: var(--green);
  font-weight: 700;
}

.k-table .no {
  color: var(--faint);
}

.k-table .col-hero {
  background: var(--surface);
}

/* 14. Kit: controls ---------------------------------------------------- */

.k-seg {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
}

.k-seg button {
  padding: 7px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.k-seg button.active,
.k-seg button[aria-selected="true"] {
  background: var(--primary);
  color: var(--primary-ink);
}

.k-arrows {
  display: flex;
  gap: 5px;
}

.k-arrows button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  transition: color 150ms ease, border-color 150ms ease;
}

.k-arrows button:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.k-capture {
  display: flex;
  max-width: 460px;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--card);
}

.k-capture input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.k-capture input::placeholder {
  color: var(--faint);
  opacity: 1;
}

/* 15. Kit: quotes and logos -------------------------------------------- */

.k-quote {
  margin: 0;
}

.k-quote p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.55;
}

.k-quote.lg p {
  font-size: clamp(21px, 2.2vw, 28px);
  letter-spacing: -0.03em;
  line-height: 1.4;
}

.k-quote-meta {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
}

.k-quote-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.k-quote-meta small {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-size: 11px;
}

.k-logo {
  color: var(--faint);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.k-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px 40px;
}

/* 16. Steps ------------------------------------------------------------ */

.k-step span.idx {
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.k-step h3 {
  margin: 16px 0 10px;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

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

/* 17. Hero (the index base standard) ----------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(64px, 7vw, 96px) clamp(96px, 10vw, 148px);
  background-image: radial-gradient(circle, var(--dot) 0.9px, transparent 1px);
  background-size: 22px 22px;
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: 18px;
  left: 50%;
  width: min(74vw, 900px);
  height: 330px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  filter: blur(32px);
  content: "";
  transform: translateX(-50%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .kicker {
  margin-bottom: 22px;
}

.hero-copy h1 {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(38px, 4.7vw, 66px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-transform: none;
}

.hero-copy h1.long {
  max-width: 1050px;
}

.hero-copy > p:not(.kicker) {
  max-width: 660px;
  margin: 23px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.hero-demo {
  position: relative;
  z-index: 2;
  display: flex;
  max-width: 1120px;
  flex-direction: column;
  margin: clamp(56px, 6vw, 80px) auto 0;
}

.trust-avatars {
  display: inline-flex;
  align-items: center;
  padding-left: 1px;
}

.trust-avatars .k-avatar {
  width: 24px;
  height: 24px;
  margin-left: -7px;
  border: 2px solid color-mix(in srgb, var(--bg) 88%, var(--surface));
  font-size: 8px;
}

.trust-avatars .k-avatar:first-child {
  margin-left: 0;
}

/* Composer */

.composer {
  position: relative;
  z-index: 5;
  order: 2;
  width: min(84%, 850px);
  min-height: 108px;
  margin: -62px auto 0;
  padding: 14px 15px 11px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, var(--accent));
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow-deep);
}

.composer-topline {
  display: flex;
  min-height: 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.composer-context {
  max-width: 52%;
  overflow: hidden;
  color: var(--green);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-input {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 9px 1px 5px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.composer-input::placeholder {
  color: var(--faint);
  opacity: 1;
}

.composer-tools,
.composer-tools > div {
  display: flex;
  align-items: center;
}

.composer-tools {
  min-height: 31px;
  justify-content: space-between;
}

.composer-tools > div {
  gap: 5px;
}

.composer-tool,
.composer-send {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--ink);
  font-size: 17px;
}

.composer-tool svg {
  width: 15px;
  height: 15px;
}

.composer-mode {
  height: 31px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}

.composer-send {
  border-color: transparent;
  background: var(--surface-2);
  color: var(--faint);
  font-size: 15px;
  font-weight: 700;
}

.composer-send.is-ready {
  background: var(--primary);
  color: var(--primary-ink);
}

.composer-send.is-complete {
  background: var(--green);
  color: #ffffff;
}

.composer-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 1px 0 9px;
}

.composer-suggestions button {
  height: 25px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}

/* Reel wall */

.reel-wall {
  order: 1;
}

.reel-grid {
  display: grid;
  align-items: start;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  perspective: 1000px;
}

.reel-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  aspect-ratio: 9 / 13;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 17px 38px rgba(25, 27, 31, 0.14);
  color: #ffffff;
  text-align: left;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

html[data-theme="dark"] .reel-card {
  box-shadow: 0 17px 38px rgba(0, 0, 0, 0.4);
}

.reel-card:nth-child(odd) {
  transform: translateY(28px) rotate(-1.4deg);
}

.reel-card:nth-child(even) {
  transform: rotate(1.4deg);
}

.reel-card:hover {
  transform: translateY(-3px) rotate(0);
}

.reel-card.is-selected {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent);
}

.reel-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-shade {
  position: absolute;
  z-index: 1;
  inset: 34% 0 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
}

.reel-play,
.reel-check {
  position: absolute;
  z-index: 3;
  top: 10px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  backdrop-filter: blur(8px);
}

.reel-play {
  left: 10px;
  width: 31px;
  height: 31px;
  font-size: 10px;
}

.reel-check {
  right: 10px;
  width: 24px;
  height: 24px;
  font-size: 10px;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 150ms ease, transform 150ms ease;
}

.reel-card.is-selected .reel-check {
  opacity: 1;
  transform: scale(1);
}

.reel-copy {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 10px;
  left: 10px;
}

.reel-copy > span,
.reel-copy strong {
  display: block;
}

.reel-topic {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.reel-copy strong {
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reel-metrics {
  display: flex;
  gap: 7px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 7px;
}

.reel-metrics i {
  font-style: normal;
}

/* Result bar */

.result-bar {
  order: 3;
  display: grid;
  width: min(80%, 850px);
  max-height: 0;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  margin: 0 auto;
  padding: 0 16px;
  border: 0 solid var(--border);
  border-radius: 15px;
  background: color-mix(in srgb, var(--card) 95%, var(--surface));
  opacity: 0;
  transform: translateY(8px);
  transition: max-height 300ms ease, margin 300ms ease, padding 300ms ease, border-width 300ms ease, opacity 220ms ease, transform 300ms ease;
}

.hero-demo.is-result .result-bar {
  max-height: 86px;
  margin-top: 20px;
  padding-top: 13px;
  padding-bottom: 13px;
  border-width: 1px;
  opacity: 1;
  transform: translateY(0);
}

.result-bar strong,
.result-bar small {
  display: block;
}

.result-bar strong {
  font-size: 12px;
  font-weight: 600;
}

.result-bar small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.result-bar > span:last-child {
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
}

/* 17a. Plan card (pricing base) ----------------------------------------- */

.plan-name {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-name.accent {
  color: var(--accent);
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin: 0 0 18px;
}

.plan-price strong {
  font-size: 47px;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.plan-price span {
  color: var(--muted);
  font-size: 13px;
}

.plan-card .button {
  width: 100%;
  margin-top: 26px;
}

.fine-print.center {
  text-align: center;
}

/* 17b. Library directory (index) ---------------------------------------- */

.lib-group {
  display: block;
  margin-bottom: 64px;
}

.lib-group:last-child {
  margin-bottom: 0;
}

.lib-group > .kicker {
  margin-bottom: 24px;
}

.library-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}

.library-card .lib-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.library-card h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.library-card .lib-go {
  color: var(--faint);
  font-size: 13px;
  transition: transform 160ms ease, color 160ms ease;
}

.library-card:hover .lib-go {
  color: var(--accent);
  transform: translateX(3px);
}

/* 17c. Scroll reveal (landing pages only; applied by ascend.js) --------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 640ms ease, transform 640ms cubic-bezier(0.16, 1, 0.3, 1);
  }

  .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* 18. Default footer ---------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.site-footer .footer-shell {
  display: grid;
  width: min(100% - var(--shell-gap) * 2, var(--shell-max));
  min-height: 110px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  margin: 0 auto;
  padding-block: 28px;
}

.site-footer .brand-logo {
  width: 105px;
  min-width: 105px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
}

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

/* 19. Mockup preview chrome -------------------------------------------- */

.demo-label {
  display: flex;
  width: min(100% - var(--shell-gap) * 2, var(--shell-max));
  align-items: center;
  gap: 12px;
  margin: 0 auto;
  padding: 60px 0 18px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.demo-label > span:first-child {
  display: inline-grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 10px;
}

.demo-label::after {
  height: 1px;
  flex: 1;
  background: var(--border);
  content: "";
}

.demo-intro {
  padding: clamp(64px, 7vw, 96px) 0 8px;
}

.demo-intro h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.demo-intro .lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* 20. Responsive -------------------------------------------------------- */

@media (max-width: 1040px) {
  .k-grid.cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .k-split,
  .k-split.even {
    grid-template-columns: 1fr;
  }

  .k-split.flip > :first-child {
    order: 0;
  }

  .reel-grid {
    grid-template-columns: repeat(5, 190px);
    justify-content: flex-start;
    overflow-x: auto;
    padding: 3px 3px 12px;
    scrollbar-width: none;
  }
}

@media (max-width: 820px) {
  .nav-shell {
    gap: 16px;
  }

  .site-nav,
  .nav-actions .login-link {
    display: none;
  }

  .menu-toggle {
    display: grid;
  }

  .site-header.menu-open .site-nav {
    position: absolute;
    z-index: 80;
    top: 64px;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    padding: 10px 24px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow-soft);
  }

  .site-header.menu-open .site-nav > a,
  .site-header.menu-open .pages-toggle {
    width: 100%;
    padding: 13px 5px;
    border-bottom: 1px solid var(--border);
  }

  .site-header.menu-open .pages-toggle {
    justify-content: space-between;
    color: var(--muted);
    text-align: left;
  }

  .site-header.menu-open .pages-switcher:not(.is-open) .pages-toggle {
    border-bottom: 0;
  }

  .site-header.menu-open .pages-dropdown {
    position: static;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    max-height: none;
    padding: 8px 0 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
    backdrop-filter: none;
  }

  .k-grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .k-grid.flush {
    grid-template-columns: 1fr;
  }

  .k-grid.flush > .k-card + .k-card {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .site-footer .footer-shell {
    grid-template-columns: 1fr auto;
  }

  .site-footer .footer-shell > p {
    display: none;
  }
}

@media (max-width: 620px) {
  :root {
    --shell-gap: 16px;
  }

  .sec {
    padding-block: clamp(88px, 16vw, 116px);
  }

  .k-grid.cols-2,
  .k-grid.cols-4 {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    font-size: clamp(40px, 11vw, 56px);
  }

  .hero-copy > p:not(.kicker) {
    margin-top: 18px;
    font-size: 14px;
  }

  .hero-demo {
    margin-top: 48px;
  }

  .reel-grid {
    grid-template-columns: repeat(3, 1fr);
    overflow: hidden;
  }

  .reel-card {
    width: 144px;
    min-width: 144px;
  }

  .reel-card:nth-child(n + 4) {
    display: none;
  }

  .composer {
    width: 100%;
    min-height: 100px;
    margin-top: -44px;
    padding: 12px 12px 9px;
  }

  .composer-input {
    min-height: 42px;
    font-size: 14px;
  }

  .result-bar {
    width: 100%;
  }

  .k-panel {
    padding: 28px 22px;
  }

  .site-footer .footer-shell {
    display: block;
    min-height: auto;
  }

  .site-footer .footer-shell nav {
    justify-content: flex-start;
    margin-top: 20px;
  }
}
