/* Header — MWG: sticky nav, scroll shadow via .is-scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 3.75rem;
  border-bottom: 1px solid transparent;
  background: color-mix(in oklch, var(--color-surface-elevated) 92%, transparent);
  backdrop-filter: blur(12px);
  transition:
    box-shadow var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.site-header.is-scrolled {
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.85rem;
}

.site-nav {
  display: none;
  gap: var(--space-lg);
}

.site-nav a {
  font-size: var(--text-ui);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

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

@media (min-width: 48rem) {
  .site-nav {
    display: flex;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-text);
}

.brand__icon {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.brand__icon img {
  width: 1.15rem;
  height: 1.15rem;
}

.brand__wordmark {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

[data-theme='dark'] .brand {
  color: var(--color-text);
}

[data-theme='dark'] .brand__icon {
  background: color-mix(in oklch, var(--color-primary) 22%, var(--color-surface));
  color: var(--color-primary);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.site-header__cta {
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: var(--text-ui);
  font-weight: 600;
  text-decoration: none;
  transition:
    background var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    border-color var(--duration) var(--ease-out);
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn--primary:hover {
  background: var(--color-primary-hover);
}

.btn--ghost {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn--ghost:hover {
  border-color: var(--color-primary);
}

.btn--on-dark.btn--primary {
  background: var(--color-text-inverse);
  color: var(--color-primary);
}

.btn--on-dark.btn--primary:hover {
  background: var(--color-bg);
}

.btn--on-dark.btn--ghost {
  border-color: color-mix(in oklch, var(--color-text-inverse) 35%, transparent);
  color: var(--color-text-inverse);
}

.btn--on-dark.btn--ghost:hover {
  border-color: var(--color-text-inverse);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  color: var(--color-text);
}

.icon-btn:hover {
  border-color: var(--color-primary);
}

.icon-btn svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* Hero — startup SaaS spotlight */
.hero--dark {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 2.5rem + 4vw, 5.5rem) clamp(2.75rem, 2rem + 3vw, 4rem);
  background: var(--color-hero-bg);
  color: var(--color-hero-text);
  contain: layout style;
  border-bottom: 1px solid color-mix(in oklch, var(--color-text-inverse) 8%, transparent);
}

.hero--dark::before {
  content: '';
  position: absolute;
  inset: -20% 10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse 55% 70% at 50% 50%, var(--color-primary-glow), transparent 70%);
  pointer-events: none;
}

.hero--dark::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in oklch, var(--color-text-inverse) 18%, transparent),
    transparent
  );
}

.hero__grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    gap: clamp(2rem, 3vw, 3.5rem);
  }
}

.hero__badge {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
}

.hero__badge-item {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  border: 1px solid oklch(0.55 0.04 250 / 0.35);
  background: oklch(0.28 0.03 250 / 0.55);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-hero-muted);
}

.hero h1 {
  position: relative;
  z-index: 1;
  color: var(--color-hero-text);
  max-width: 14em;
  line-height: 1.06;
  letter-spacing: -0.03em;
}

.hero .text-gradient {
  background: linear-gradient(135deg, oklch(0.88 0.1 192), oklch(0.78 0.12 75));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subline {
  position: relative;
  z-index: 1;
  margin-top: var(--space-lg);
  max-width: 32rem;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.65;
  color: var(--color-hero-muted);
}

.hero__proof {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
}

.hero__proof li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

@media (min-width: 36rem) {
  .hero__proof li:not(:last-child) {
    padding-right: var(--space-lg);
    border-right: 1px solid color-mix(in oklch, var(--color-text-inverse) 14%, transparent);
  }
}

.hero__proof strong {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-hero-text);
}

.hero__proof span {
  font-size: var(--text-small);
  color: var(--color-hero-muted);
}

.btn--lg {
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
}

.hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2rem);
}

.hero__actions .btn {
  min-width: 10.5rem;
}

.hero__visual {
  margin: 0;
}

/* Product preview frame (Lazyweb: Intercom / Replit hero patterns) */
.hero-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid color-mix(in oklch, var(--color-text-inverse) 12%, transparent);
  box-shadow:
    0 32px 64px -24px oklch(0.05 0.02 250 / 0.65),
    0 0 0 1px color-mix(in oklch, var(--color-primary) 22%, transparent) inset;
  background: oklch(0.12 0.02 250);
}

.hero-frame__chrome {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid color-mix(in oklch, var(--color-text-inverse) 8%, transparent);
  background: oklch(0.1 0.02 250);
}

.hero-frame__dots {
  display: inline-flex;
  gap: 0.35rem;
}

.hero-frame__dots i {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: oklch(0.38 0.03 250);
}

.hero-frame__dots i:nth-child(1) {
  background: oklch(0.62 0.14 25);
}

.hero-frame__dots i:nth-child(2) {
  background: oklch(0.72 0.12 85);
}

.hero-frame__dots i:nth-child(3) {
  background: oklch(0.55 0.1 145);
}

.hero-frame__title {
  flex: 1;
  min-width: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: color-mix(in oklch, var(--color-text-inverse) 50%, transparent);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hero product mockup — chat + CRM (SaaS onboarding pattern) */
.hero-mockup {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg);
  border-radius: 0;
  background: oklch(0.14 0.02 250);
  border: none;
}

@media (min-width: 44rem) {
  .hero-mockup {
    grid-template-columns: 1fr auto 0.95fr;
    align-items: stretch;
    gap: var(--space-sm);
  }
}

.hero-mockup__chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: var(--radius-md);
  background: oklch(0.2 0.02 250);
  border: 1px solid oklch(0.32 0.02 250);
  overflow: hidden;
}

.hero-mockup__chat-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid oklch(0.28 0.02 250);
}

.hero-mockup__avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: oklch(0.38 0.04 250);
  font-size: 0.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.hero-mockup__chat-bar strong {
  display: block;
  font-size: 0.8125rem;
  color: #f1f5f9;
}

.hero-mockup__chat-bar span {
  font-size: 0.6875rem;
  color: #94a3b8;
}

.hero-mockup__thread {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
}

.hero-mockup__msg {
  max-width: 92%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.85rem;
  font-size: 0.75rem;
  line-height: 1.45;
}

.hero-mockup__msg p {
  margin: 0;
}

.hero-mockup__msg time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.625rem;
  opacity: 0.65;
}

.hero-mockup__msg--in {
  align-self: flex-start;
  background: oklch(0.32 0.02 250);
  color: #f1f5f9;
  border-bottom-left-radius: 0.2rem;
}

.hero-mockup__msg--out {
  align-self: flex-end;
  background: var(--color-primary);
  color: #f8fafc;
  border-bottom-right-radius: 0.2rem;
}

.hero-mockup__msg-label {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.625rem;
  font-weight: 700;
  opacity: 0.9;
}

.hero-mockup__bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding-inline: 0.25rem;
}

.hero-mockup__bridge-line {
  display: block;
  width: 2px;
  flex: 1;
  min-height: 2rem;
  background: linear-gradient(180deg, transparent, var(--color-primary), transparent);
}

.hero-mockup__bridge-label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in oklch, var(--color-text-inverse) 55%, transparent);
}

@media (max-width: 43.99rem) {
  .hero-mockup__bridge {
    flex-direction: row;
    padding-block: 0.25rem;
  }

  .hero-mockup__bridge-line {
    width: auto;
    height: 2px;
    flex: 1;
    min-height: 0;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  }
}

.hero-mockup__crm {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
}

.hero-mockup__crm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.hero-mockup__crm-head span {
  font-size: 0.6875rem;
  color: #64748b;
}

.hero-mockup__crm-head strong {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-pill);
  background: #ecfdf5;
  color: var(--color-primary);
}

.hero-mockup__crm-fields {
  display: grid;
  gap: 0.45rem;
  margin: 0;
}

.hero-mockup__crm-fields div {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.35rem;
  font-size: 0.6875rem;
}

.hero-mockup__crm-fields dt {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}

.hero-mockup__crm-fields dd {
  margin: 0;
  font-weight: 600;
}

.hero-mockup__crm-task {
  margin: 0;
  margin-top: auto;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.6875rem;
  font-weight: 600;
}

@media (max-width: 55.99rem) {
  .hero__copy {
    order: 1;
  }

  .hero__visual {
    order: 2;
  }
}

/* Logo strip — Ask-AI / Trello integrations row */
.logo-strip {
  background: var(--color-bg);
  color: var(--color-text-muted);
}

.logo-strip__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding-block: var(--space-lg);
  text-align: center;
}

@media (min-width: 40rem) {
  .logo-strip__inner {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-xl);
  }
}

.logo-strip__label {
  margin: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.logo-strip__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-strip__pill {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface-elevated);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text);
}

.logo-strip__pill--muted {
  color: var(--color-text-muted);
  background: transparent;
}

/* Trust bar */
.trust-bar {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.trust-bar__grid {
  display: grid;
  gap: var(--space-lg);
  padding-block: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  margin: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md) var(--space-xl);
  }
}

@media (min-width: 56rem) {
  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
  }

  .trust-bar__item:not(:last-child) {
    border-right: 1px solid var(--color-border);
    padding-right: var(--space-lg);
    margin-right: var(--space-lg);
  }
}

.trust-bar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  text-align: center;
}

.trust-bar__icon {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius-sm);
  background: var(--color-primary-soft);
  box-shadow: var(--shadow-xs);
}

.trust-bar__icon--speed {
  background: var(--color-primary-soft);
}

.trust-bar__icon--link::after,
.trust-bar__icon--ru::after,
.trust-bar__icon--lock::after,
.trust-bar__icon--speed::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  margin: auto;
  background: var(--color-primary);
  mask: no-repeat center / 55%;
}

.trust-bar__icon--speed::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M13 2L3 14h7l-1 8 10-12h-7l1-8z'/%3E%3C/svg%3E");
}

.trust-bar__icon--link::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M10 13a5 5 0 007.54.54l3-3a5 5 0 00-7.07-7.07l-1.72 1.71M14 11a5 5 0 00-7.54-.54l-3 3a5 5 0 007.07 7.07l1.71-1.71' stroke='black' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.trust-bar__icon--ru::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M4 6h16v4H4zm0 6h16v4H4z'/%3E%3C/svg%3E");
}

.trust-bar__icon--lock::after {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M7 11V8a5 5 0 0110 0v3h2v10H5V11h2zm2 0h6V8a3 3 0 00-6 0v3z'/%3E%3C/svg%3E");
}

.trust-bar__item strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-ui);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.25;
}

.trust-bar__item span {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* Problem — UserGuiding illustrated cards + DemandScience «Challenge» */
.problem .section__lead {
  max-width: 34rem;
}

.pain-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 40rem) {
  .pain-grid--governance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (min-width: 64rem) {
  .pain-grid--governance {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.problem-sales {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.problem-sales__title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-text-muted);
}

.pain-card--soft {
  border-inline-start: 3px solid color-mix(in oklch, var(--color-primary) 45%, var(--color-border));
}

.pain-grid > li {
  display: flex;
  min-height: 100%;
}

.pain-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  padding: var(--space-xl);
}

.pain-card--emphasis {
  border-color: color-mix(in oklch, var(--color-primary) 40%, var(--color-border));
}

.pain-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.pain-card__icon-wrap {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.pain-card__icon-wrap--loss {
  background: oklch(0.94 0.04 25);
}

.pain-card__icon-wrap--night {
  background: oklch(0.92 0.04 250);
}

.pain-card__icon-wrap--manual {
  background: oklch(0.94 0.03 95);
}

.pain-card__icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--color-primary);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.pain-card__icon-wrap--loss .pain-card__icon {
  background: oklch(0.5 0.16 25);
}

.pain-card__icon-wrap--night .pain-card__icon {
  background: oklch(0.45 0.08 250);
}

.pain-card__icon-wrap--manual .pain-card__icon {
  background: oklch(0.48 0.06 95);
}

.pain-card__icon--loss {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z'/%3E%3Cline x1='12' y1='9' x2='12' y2='13'/%3E%3Cline x1='12' y1='17' x2='12.01' y2='17'/%3E%3C/svg%3E");
}

.pain-card__icon--night {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E");
}

.pain-card__icon--manual {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
}

.pain-card__metric {
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-inset);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.pain-card--emphasis .pain-card__metric {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.pain-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.pain-card p {
  flex: 1;
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: var(--text-small);
}

/* Solution — equal-height cards */
.scenario-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 48rem) {
  .scenario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.scenario-grid > li {
  display: flex;
  min-height: 100%;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 100%;
  padding: var(--space-xl);
}

.scenario-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-primary);
  mask-size: 1.35rem;
  mask-repeat: no-repeat;
  mask-position: center;
}

.scenario-card__icon--chat {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}

.scenario-card__icon--crm {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E");
}

.scenario-card__icon--log {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

.scenario-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  min-height: 2rem;
  margin-bottom: var(--space-md);
}

.scenario-card__index {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.scenario-card__result {
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
  text-align: right;
}

.scenario-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem);
  font-weight: 700;
  line-height: 1.25;
}

.scenario-card p {
  flex: 1;
  margin-top: var(--space-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: var(--text-small);
}

.scenario-card__list {
  flex: 1;
  margin: var(--space-sm) 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--color-text-muted);
  font-size: var(--text-small);
  line-height: 1.55;
}

.scenario-card__list li + li {
  margin-top: 0.35rem;
}

/* Launch flow — horizontal timeline in panel (Remote / Appcues pattern) */
.flow-panel {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-xl);
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
}

.flow__connector {
  display: none;
}

@media (min-width: 52rem) {
  .flow {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0 var(--space-sm);
    align-items: start;
  }

  .flow__connector {
    display: block;
    align-self: start;
    margin-top: 1.35rem;
    width: 2.5rem;
    height: 2px;
    background: var(--color-border);
    border-radius: var(--radius-pill);
  }
}

.flow__step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

@media (min-width: 52rem) {
  .flow__step {
    grid-template-columns: 1fr;
    text-align: center;
    padding: var(--space-md) var(--space-sm) 0;
  }
}

.flow__marker {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  flex-shrink: 0;
}

@media (min-width: 52rem) {
  .flow__marker {
    margin-inline: auto;
  }
}

.flow__label {
  margin: 0 0 0.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.flow__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-body);
  font-weight: 700;
}

.flow__body p {
  margin-top: var(--space-sm);
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* Quote band — Ask-AI / Ramp testimonial */
.quote-band__inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}

.quote-band__quote {
  margin: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0;
}

.quote-band__quote p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text);
}

.quote-band__quote footer {
  margin-top: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.quote-band__quote cite {
  font-style: normal;
  font-weight: 700;
  color: var(--color-text);
}

/* Pricing — SaaS plan cards (Canva-style billing hint) */
.pricing__disclaimer {
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.pricing-billing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm) var(--space-md);
  margin-top: var(--space-lg);
}

.pricing-billing__label {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-muted);
}

.pricing-billing__toggle {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-inset);
}

.pricing-billing__option {
  border: none;
  cursor: pointer;
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-text-muted);
  background: transparent;
  transition: background var(--duration) var(--ease-out), color var(--duration) var(--ease-out);
}

.pricing-billing__option.is-active {
  background: var(--color-surface-elevated);
  color: var(--color-text);
  box-shadow: var(--shadow-xs);
}

.pricing-billing__save {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--color-primary);
}

.pricing-billing__option:not(.is-active) .pricing-billing__save {
  opacity: 0.9;
}

.pricing-grid {
  position: relative;
  display: grid;
  gap: var(--space-lg);
  align-items: stretch;
}

@media (min-width: 56rem) {
  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-md);
  }
}

.pricing-grid > .plan {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan {
  position: relative;
  padding: var(--space-xl);
}

.plan--featured {
  border-width: 2px;
  border-color: var(--color-primary);
}

@media (min-width: 56rem) {
  .plan--featured {
    margin-block: -0.35rem;
    padding-block: calc(var(--space-xl) + 0.35rem);
    z-index: 1;
  }
}

.plan__badge {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan__header {
  margin-bottom: var(--space-md);
}

.plan__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
}

.plan__desc {
  margin: 0.35rem 0 0;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

.plan__price {
  margin: 0 0 var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.plan__amount {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1.1;
}

.plan--featured .plan__amount {
  color: var(--color-primary);
}

.plan__period {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-muted);
}

.plan__price--custom .plan__amount {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
}

.plan__features {
  flex: 1;
  margin: 0 0 var(--space-lg);
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.plan__features li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--text-small);
  color: var(--color-text-muted);
  line-height: 1.45;
}

.plan__features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.85rem;
  height: 0.85rem;
  background: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

.plan__footer {
  margin-top: auto;
}

.pricing__footer {
  margin-top: var(--space-xl);
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* FAQ */
.faq {
  max-width: 42rem;
  margin-inline: auto;
  display: grid;
  gap: var(--space-sm);
}

.faq details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-elevated);
}

.faq summary {
  padding: var(--space-lg);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: '+';
  float: right;
  color: var(--color-primary);
}

.faq details[open] {
  border-color: color-mix(in oklch, var(--color-primary) 40%, var(--color-border));
}

.faq details[open] summary::after {
  content: '−';
}

.faq__body {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--color-text-muted);
  line-height: 1.55;
}

/* CTA — Alyx / Asana split: copy + form card */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--color-hero-bg);
  color: var(--color-hero-text);
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, var(--color-primary-glow), transparent 65%),
    radial-gradient(ellipse 40% 60% at 90% 30%, oklch(0.55 0.1 75 / 0.15), transparent 60%);
  pointer-events: none;
}

.cta__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
  padding-block: var(--space-section);
}

@media (min-width: 56rem) {
  .cta__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: center;
  }
}

.cta__copy {
  text-align: center;
}

@media (min-width: 56rem) {
  .cta__copy {
    text-align: left;
  }
}

.cta h2 {
  color: var(--color-hero-text);
}

.cta__lead {
  margin-top: var(--space-md);
  color: var(--color-hero-muted);
  line-height: 1.6;
}

.cta-benefits {
  margin: var(--space-xl) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
  text-align: left;
  max-width: 22rem;
  margin-inline: auto;
}

@media (min-width: 56rem) {
  .cta-benefits {
    margin-inline: 0;
  }
}

.cta-benefits li {
  position: relative;
  padding-left: 1.35rem;
  font-size: var(--text-small);
  color: var(--color-hero-muted);
  line-height: 1.45;
}

.cta-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 0.65rem;
  height: 0.65rem;
  background: var(--color-primary);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
}

.cta__panel {
  padding: var(--space-xl);
  border-radius: var(--radius-xl);
  color: var(--color-text);
}

.cta__panel-title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
}

.cta-form {
  text-align: left;
}

.cta-form .btn {
  margin-top: var(--space-lg);
}

.cta-form__row {
  display: grid;
  gap: var(--space-md);
}

.cta-form .field label {
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--color-text-muted);
}

.cta-form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text);
}

.cta-form input::placeholder {
  color: var(--color-text-muted);
}

.cta-form .field__error {
  display: none;
  margin-top: 0.35rem;
  font-size: var(--text-small);
  color: var(--color-error);
}

.cta-form .field__error::before {
  content: '⚠ ';
}

.cta-form input:user-invalid {
  border-color: var(--color-error);
}

.cta-form input:user-invalid + .field__error {
  display: block;
}

.cta-form__trust {
  margin-top: var(--space-md);
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-2xl);
  background: var(--color-bg);
}

.site-footer__inner {
  display: grid;
  gap: var(--space-md);
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-text-muted);
}

@media (min-width: 40rem) {
  .site-footer__inner {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    text-align: start;
  }

  .site-footer__brand {
    justify-self: start;
  }

  .site-footer__inner > p:nth-child(2) {
    justify-self: center;
    text-align: center;
  }

  .site-footer__legal {
    justify-self: end;
    text-align: end;
  }
}

.site-footer__brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-text);
}

.site-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

/* Dark theme tweaks for hero header */
[data-theme='dark'] .site-header {
  background: color-mix(in oklch, var(--color-surface) 92%, transparent);
}

[data-theme='dark'] .hero--dark::before,
[data-theme='dark'] .cta::before {
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__copy,
  .hero__visual {
    animation: rise-in 0.7s var(--ease-out) both;
  }

  .hero__visual {
    animation-delay: 0.08s;
  }

  @keyframes rise-in {
    from {
      opacity: 0;
      translate: 0 12px;
    }
    to {
      opacity: 1;
      translate: 0 0;
    }
  }
}

/* Section titles — tighter rhythm on landing */
.problem .section__header,
#solution .section__header,
#how-it-works .section__header,
#pricing .section__header,
#faq .section__header {
  margin-bottom: clamp(2rem, 1.5rem + 2vw, 2.75rem);
}

#problem-title,
#solution-title,
#how-title,
#pricing-title,
#faq-title {
  max-width: 20ch;
  margin-inline: auto;
}

#pricing-title {
  max-width: none;
}

@media (max-width: 23.5rem) {
  .site-header__cta {
    padding-inline: 0.85rem;
    font-size: 0.8125rem;
  }

  .icon-btn {
    display: none;
  }
}
