@import "./tokens.css";

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--color-brand-strong); }

.cb-container { width: var(--container); margin-inline: auto; }
.cb-eyebrow {
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.cb-title {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.cb-title--xl { font-size: clamp(2.5rem, 5.5vw, 3.75rem); }
.cb-title--lg { font-size: clamp(1.875rem, 3.8vw, 2.75rem); }
.cb-title--md { font-size: clamp(1.5rem, 2.8vw, 1.875rem); }
.cb-title--sm { font-size: clamp(1.125rem, 2vw, 1.3125rem); font-weight: 600; }
.cb-lead {
  font-family: var(--font-secondary);
  font-size: clamp(1.0625rem, 2vw, 1.3125rem);
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 42rem;
}
.cb-lead--center { margin-inline: auto; text-align: center; }
.cb-section-head {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}
.cb-story__text { margin: 0; color: var(--muted-foreground); font-size: 0.9375rem; line-height: 1.55; }
.cb-badge {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  background: var(--color-brand-soft);
  color: var(--color-brand-strong);
}
.cb-section {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}
.cb-section--tight {
  padding-top: clamp(2.5rem, 6vw, 4rem);
}
.cb-section--bridge-overlap {
  padding-top: clamp(4rem, 10vw, 6.5rem);
}
/* First content block after interior page hero — do not zero out in HTML */
.cb-page-hero + .cb-section {
  padding-top: var(--section-y-after-hero);
}
.cb-section--muted { background: var(--muted); }
.cb-section--deep {
  background: linear-gradient(160deg, var(--color-brand-deep) 0%, #2a2460 100%);
  color: #fff;
}
.cb-section--deep .cb-lead,
.cb-section--deep .cb-eyebrow { color: rgba(255,255,255,0.78); }
.cb-section--deep .cb-title { color: #fff; }

/* Header */
.cb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.cb-header.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.cb-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
/* logo-1.png is 184×43 — never use square width/height attributes */
.cb-brand img,
.cb-footer__brand img {
  width: auto;
  height: auto;
  max-height: 2.25rem;
  object-fit: contain;
}
.cb-footer__brand img {
  max-height: 2rem;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.cb-nav { display: none; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) { .cb-nav { display: flex; } }
.cb-nav a {
  color: var(--foreground);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
}
.cb-nav a:hover { background: var(--accent); color: var(--accent-foreground); }
.cb-header__actions { display: flex; align-items: center; gap: 0.5rem; }
.cb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.cb-btn:active { transform: scale(0.98); }
.cb-btn--primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 4px 14px rgba(111, 97, 239, 0.35);
}
.cb-btn--primary:hover { background: var(--color-brand-strong); color: #fff; }
.cb-btn--ghost {
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--border);
}
.cb-btn--ghost:hover { background: var(--muted); }
.cb-btn--on-dark { background: #fff; color: var(--color-brand-deep); }
.cb-btn--on-dark:hover { background: var(--color-brand-soft); }
.cb-menu-toggle {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  cursor: pointer;
}
@media (min-width: 1024px) { .cb-menu-toggle { display: none; } }

.cb-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
}
.cb-drawer.is-open { pointer-events: auto; visibility: visible; }
.cb-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(21, 22, 30, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}
.cb-drawer.is-open .cb-drawer__backdrop { opacity: 1; }
.cb-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(20rem, 100%);
  height: 100%;
  background: var(--card);
  padding: 1.25rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
}
.cb-drawer.is-open .cb-drawer__panel { transform: translateX(0); }
.cb-drawer__nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.cb-drawer__nav a {
  display: block;
  padding: 0.75rem;
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius);
}
.cb-drawer__nav a:hover { background: var(--muted); }

/* Hero */
.cb-hero {
  padding-block: clamp(3rem, 8vw, 5rem) 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--color-brand-soft), transparent),
    var(--background);
}
.cb-hero__copy-wrap {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}
.cb-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.cb-hero__note { font-size: 0.875rem; color: var(--muted-foreground); margin-top: 0.75rem; }
.cb-hero__bridge {
  position: relative;
  z-index: 2;
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(-3rem, -8vw, -5rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
.cb-device-frame {
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  background: var(--card);
  aspect-ratio: var(--cb-screenshot-ratio);
}
.cb-device-frame--hero {
  aspect-ratio: var(--cb-hero-shot-ratio);
  max-width: min(56rem, 100%);
  margin-inline: auto;
  box-shadow: var(--shadow-lg), 0 24px 60px rgba(111, 97, 239, 0.15);
}
.cb-device-frame--compact {
  margin-top: 1rem;
  max-width: 100%;
}
.cb-device-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  background: var(--muted);
}

/* Case study */
.cb-case-study {
  padding-block: clamp(3.5rem, 8vw, 5rem);
  background: linear-gradient(135deg, var(--color-brand-deep) 0%, #3d3580 55%, var(--primary) 100%);
  color: #fff;
}
.cb-case-study__inner {
  text-align: center;
  max-width: 44rem;
  margin-inline: auto;
}
.cb-eyebrow--on-dark { color: rgba(255, 255, 255, 0.75); }
.cb-case-study__quote {
  color: #fff;
  font-weight: 600;
  line-height: 1.2;
  margin: 0.75rem 0 1.25rem;
}
.cb-case-study__metric {
  font-family: var(--font-secondary);
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.5;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.92);
}
.cb-case-study__metric strong { color: var(--color-tertiary); }
.cb-case-study__cite {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

/* Stories */
.cb-stories { display: grid; gap: 1.25rem; }
.cb-stories--duo { grid-template-columns: 1fr; }
@media (min-width: 768px) { .cb-stories--duo { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .cb-stories:not(.cb-stories--duo) { grid-template-columns: repeat(3, 1fr); } }
.cb-story {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.cb-story__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-lg);
  background: var(--color-brand-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Interactive showcase */
.cb-showcase {
  display: grid;
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
@media (min-width: 900px) {
  .cb-showcase { grid-template-columns: minmax(12rem, 16rem) 1fr; }
}
.cb-showcase__nav {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-bottom: 1px solid var(--border);
  background: var(--muted);
}
@media (min-width: 900px) {
  .cb-showcase__nav {
    flex-direction: column;
    overflow-x: visible;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 0.75rem;
  }
}
.cb-showcase__nav [role="tab"] {
  flex: 0 0 auto;
  min-width: 8.5rem;
  text-align: left;
  padding: 0.75rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
@media (min-width: 900px) {
  .cb-showcase__nav [role="tab"] { min-width: 0; width: 100%; }
}
.cb-showcase__nav [role="tab"]:hover { background: var(--color-brand-softer); }
.cb-showcase__nav [role="tab"].is-active,
.cb-showcase__nav [role="tab"][aria-selected="true"] {
  background: var(--card);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.cb-showcase__nav [role="tab"]:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}
.cb-showcase__tab-label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--foreground);
}
.cb-showcase__tab-hint {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
  line-height: 1.35;
}
.cb-showcase__panel { position: relative; min-height: 16rem; }
.cb-showcase__slide {
  display: grid;
  gap: 0;
  height: 100%;
}
@media (min-width: 768px) {
  .cb-showcase__slide { grid-template-rows: auto 1fr; }
}
.cb-showcase__slide:not(.is-active) { display: none; }
.cb-showcase__media {
  aspect-ratio: var(--cb-screenshot-ratio);
  background: var(--muted);
  overflow: hidden;
}
.cb-showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}
.cb-showcase__detail {
  padding: 1.25rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
@media (min-width: 768px) {
  .cb-showcase__detail { padding: 1.5rem 1.75rem 1.75rem; }
}

/* Steps */
.cb-steps { display: grid; gap: 1.5rem; counter-reset: step; }
@media (min-width: 768px) { .cb-steps { grid-template-columns: repeat(3, 1fr); } }
.cb-step {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: var(--card);
  border: 1px solid var(--border);
}
.cb-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Screenshot gallery (wide app captures, 1920×945) */
.cb-bento {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .cb-bento { grid-template-columns: repeat(2, 1fr); }
  .cb-bento__item--wide { grid-column: 1 / -1; }
}
.cb-bento__item {
  margin: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.cb-bento__item .cb-bento__img-wrap {
  aspect-ratio: var(--cb-screenshot-ratio);
  background: var(--muted);
  overflow: hidden;
}
.cb-bento__item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}
.cb-bento__caption {
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--card);
  border-top: 1px solid var(--border);
}

/* QBO flow */
.cb-qbo {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) { .cb-qbo { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.cb-qbo__list {
  margin: 1rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.cb-qbo__visual { display: flex; flex-direction: column; gap: 0.5rem; }
.cb-qbo__stage {
  position: relative;
  min-height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--muted);
  border-radius: var(--radius-2xl);
  border: 1px dashed var(--border);
  overflow: hidden;
}
.cb-qbo__track {
  position: absolute;
  left: 15%;
  right: 15%;
  top: 50%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-qbo), var(--primary));
  border-radius: 999px;
  transform: translateY(-50%);
}
.cb-qbo__node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.cb-qbo__logo {
  width: 4rem;
  height: 4rem;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  box-shadow: var(--shadow-md);
}
.cb-qbo__logo--qb { color: var(--color-qbo); }
.cb-qbo__logo--cb img { width: 2.5rem; height: auto; }
.cb-qbo__traveler {
  position: absolute;
  left: 15%;
  top: 50%;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: -1.25rem;
  border-radius: 999px;
  background: var(--card);
  color: var(--color-qbo);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  animation: cb-qbo-travel 2.8s ease-in-out infinite;
}
@keyframes cb-qbo-travel {
  0%, 100% { left: 15%; opacity: 1; }
  45% { left: calc(85% - 2.5rem); opacity: 1; }
  50% { left: calc(85% - 2.5rem); opacity: 0; }
  55% { left: 15%; opacity: 0; }
  60% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cb-qbo__traveler { display: none; }
  .cb-qbo__track::after {
    content: "Connected";
    position: absolute;
    left: 50%;
    top: -1.75rem;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-secondary-brand);
  }
}

/* Feature grid */
.cb-features { display: grid; gap: 1rem; }
@media (min-width: 768px) { .cb-features { grid-template-columns: repeat(3, 1fr); } }
.cb-feature {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
}

/* CTA band */
.cb-cta {
  text-align: center;
  padding: clamp(3rem, 6vw, 4.5rem);
  border-radius: var(--radius-2xl);
  background: linear-gradient(135deg, var(--primary) 0%, var(--color-brand-strong) 100%);
  color: #fff;
}
.cb-cta .cb-lead { color: rgba(255,255,255,0.88); margin-inline: auto; }
.cb-cta .cb-title { color: #fff; }
.cb-cta__fine {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  opacity: 0.9;
}
.cb-cta__fine a { color: #fff; }

/* Footer */
.cb-footer {
  background: var(--color-brand-deep);
  color: rgba(255,255,255,0.85);
  padding-block: 3rem 1.5rem;
}
.cb-footer a { color: rgba(255,255,255,0.9); text-decoration: none; }
.cb-footer a:hover { color: #fff; }
.cb-footer__grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .cb-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.cb-footer__col h3 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  margin: 0 0 0.75rem;
}
.cb-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.cb-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* FAQ accordion */
.cb-faq {
  max-width: 42rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cb-faq__item {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.cb-faq__item:hover {
  border-color: color-mix(in srgb, var(--primary) 25%, var(--border));
}
.cb-faq__item.is-open {
  background: var(--color-brand-softer);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md), inset 3px 0 0 var(--primary);
}
.cb-faq__question {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.cb-faq__trigger {
  flex: 1;
  margin: 0;
  padding: 1.25rem 0 1.25rem 1.5rem;
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  text-align: left;
  color: var(--foreground);
  cursor: pointer;
}
.cb-faq__trigger:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: -2px;
}
.cb-faq__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: 0.75rem;
  border-radius: 999px;
  background: var(--muted);
  position: relative;
  transition: transform 0.25s ease, background 0.2s ease;
}
.cb-faq__icon::before,
.cb-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.75rem;
  height: 2px;
  background: var(--foreground);
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}
.cb-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.cb-faq__item.is-open .cb-faq__icon {
  background: var(--color-brand-soft);
  transform: rotate(180deg);
}
.cb-faq__item.is-open .cb-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}
.cb-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.cb-faq__item.is-open .cb-faq__answer {
  grid-template-rows: 1fr;
}
.cb-faq--instant .cb-faq__answer,
.cb-faq--instant .cb-faq__icon,
.cb-faq--instant .cb-faq__icon::before,
.cb-faq--instant .cb-faq__icon::after {
  transition: none;
}
.cb-faq__answer[hidden] {
  display: none;
}
.cb-faq__item.is-open .cb-faq__answer {
  display: grid;
}
.cb-faq__answer-inner {
  overflow: hidden;
  min-height: 0;
}
.cb-faq__answer-inner p {
  margin: 0;
  padding: 0 1.5rem 1.25rem;
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.6;
}
.cb-faq__answer-inner a {
  color: var(--color-brand-strong);
  font-weight: 500;
}

/* Pricing */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.cb-pricing-header { text-align: center; }

.cb-pricing-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: fit-content;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 640px) {
  .cb-pricing-controls {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.cb-pricing-region {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 0;
}
.cb-pricing-region__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin: 0;
  white-space: nowrap;
}
.cb-pricing-region__select {
  width: auto;
  min-width: 10rem;
  max-width: 16rem;
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23606a85' stroke-width='1.5' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  appearance: none;
  cursor: pointer;
}
.cb-pricing-region__select:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.cb-pricing-billing {
  display: inline-flex;
  padding: 4px;
  background: var(--card);
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.cb-pricing-billing__option {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.125rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted-foreground);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.cb-pricing-billing__option:hover { color: var(--foreground); }
.cb-pricing-billing__option.is-active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(111, 97, 239, 0.35);
}
.cb-pricing-billing__save {
  padding: 0.1rem 0.4rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: var(--color-secondary-brand);
  color: #fff;
  border-radius: 999px;
}
.cb-pricing-billing__option.is-active .cb-pricing-billing__save {
  background: rgba(255, 255, 255, 0.25);
}

.cb-pricing-grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}
@media (min-width: 900px) {
  .cb-pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: center;
  }
}

.cb-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cb-plan:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: var(--shadow-md);
}
.cb-plan--featured {
  border-color: var(--primary);
  background: linear-gradient(165deg, var(--color-brand-softer) 0%, var(--card) 42%);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .cb-plan--featured {
    padding-block: 2rem;
    transform: scale(1.03);
    z-index: 1;
  }
}
.cb-plan__ribbon {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  padding: 0.3rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--primary);
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(111, 97, 239, 0.4);
  white-space: nowrap;
}
.cb-plan__head { margin-bottom: 1.25rem; }
.cb-plan__name {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--foreground);
}
.cb-plan--featured .cb-plan__name { color: var(--color-brand-deep); }
.cb-plan__tagline {
  margin: 0;
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.cb-plan__price-block {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cb-plan--featured .cb-plan__price-block {
  border-bottom-color: color-mix(in srgb, var(--primary) 18%, var(--border));
}
.cb-plan__price-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}
.cb-plan__price-label[hidden] { display: none; }
.cb-plan__price { min-height: 3.5rem; }
.it-price-amount.is-loading {
  font-size: 2rem;
  color: var(--muted-foreground);
  animation: cb-price-pulse 1.2s ease-in-out infinite;
}
@keyframes cb-price-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .it-price-amount.is-loading { animation: none; opacity: 0.65; }
}
.it-price-value {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
  width: 100%;
}
.it-price-amount {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--foreground);
}
.cb-plan--contact .it-price-amount {
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.it-price-period {
  font-family: var(--font-secondary);
  font-size: 1rem;
  font-weight: 500;
  font-style: normal;
  color: var(--muted-foreground);
}
.it-price-annual {
  flex-basis: 100%;
  margin-top: 0.35rem;
  font-family: var(--font-secondary);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}
.it-price-annual-amount { font-weight: 600; color: var(--foreground); }
.it-price-annual-period { margin-left: 0.25rem; }

.cb-plan__features,
.it-price-item-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}
.cb-plan__features li,
.it-price-item-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.75rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--foreground);
}
.cb-plan__features li::before,
.it-price-item-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: var(--color-brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath stroke='%236f61ef' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6 5 8.5 9.5 3.5'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
}
.cb-plan--featured .cb-plan__features li::before {
  background-color: var(--primary);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none'%3E%3Cpath stroke='%23fff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round' d='M2.5 6 5 8.5 9.5 3.5'/%3E%3C/svg%3E");
}

.cb-plan__foot { margin-top: auto; }
.cb-plan__cta { width: 100%; }
.cb-plan--featured .cb-plan__cta {
  padding-block: 0.75rem;
  font-size: 1rem;
}

.cb-pricing-note {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  font-family: var(--font-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}
.cb-pricing-note strong { color: var(--foreground); font-weight: 600; }

/* Forms */
.cb-form { max-width: 36rem; margin-inline: auto; }
.cb-form label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.35rem; }
.cb-form input,
.cb-form select,
.cb-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}
.cb-form textarea { min-height: 8rem; resize: vertical; }
.cb-form-feedback {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-size: 0.9375rem;
}
.cb-form-feedback.success { display: block; background: #d1fae0; color: #004d2b; }
.cb-form-feedback.error { display: block; background: #fde8ea; color: #8a0d15; }

/* Prose / legal */
.cb-page-hero {
  padding-block: 3rem 2rem;
  background: var(--muted);
  border-bottom: 1px solid var(--border);
}
.cb-prose { max-width: 48rem; margin-inline: auto; font-size: 0.9375rem; }
.cb-prose h2, .cb-prose h3, .cb-prose h4 { margin-top: 1.5rem; }
.cb-policy-body .it-policy-title { font-size: 1.5rem; }
.cb-policy-body [data-custom-class="body_text"] { line-height: 1.6; }
.cb-policy-body--loading { min-height: 12rem; opacity: 0.6; }
.cb-policy-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .cb-policy-grid { grid-template-columns: 1fr 1fr; }
}
.cb-policy-card {
  display: block;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.cb-policy-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Consent */
.cb-consent {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 300;
  max-width: 28rem;
  margin-inline: auto;
}
.cb-consent[hidden] { display: none !important; }
.cb-consent__inner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}
.cb-consent__text { font-size: 0.8125rem; margin: 0 0 0.75rem; color: var(--muted-foreground); }
.cb-consent__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cb-consent__btn {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
}
.cb-consent__btn--primary { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 404 */
.cb-404 { text-align: center; padding-block: 6rem; }

/* Support overrides */
.cb-help-root--loading .cb-help-layout { opacity: 0.45; pointer-events: none; }
