/* Halveron Connect pricing: CRM pricing layout with Connect lime accents */
:root {
  --crm-marketing-max: min(calc(100% - clamp(2.5rem, 8vw, 6rem)), 72rem);
  --hc-lime: #cff245;
  --hc-lime-ink: color-mix(in srgb, var(--hc-lime) 28%, #1a2200);
}

body.connect-pricing-page {
  /* Remap CRM ember token used by shared chrome + cp-* surfaces */
  --crm-ember: var(--hc-lime-ink);
  --primary: var(--hc-lime);
  --ring: var(--hc-lime);
  font-family: var(--font);
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

/* Lime fill CTAs: dark ink on bright lime (readable on light + dark) */
body.connect-pricing-page .btn-primary {
  background: var(--hc-lime);
  color: #0d0e11;
  border-color: var(--hc-lime);
}

body.connect-pricing-page .btn-primary:hover {
  background: color-mix(in srgb, var(--hc-lime) 88%, #fff);
  color: #0d0e11;
}

body.connect-pricing-page .crm-brand-product {
  color: var(--hc-lime-ink);
}

:root.dark-mode body.connect-pricing-page .crm-brand-product,
:root.dark-mode body.connect-pricing-page {
  --crm-ember: var(--hc-lime);
}

:root.dark-mode body.connect-pricing-page .crm-brand-product {
  color: var(--hc-lime);
}

.cp-wrap {
  width: 100%;
  max-width: var(--crm-marketing-max);
  margin-inline: auto;
  padding-inline: var(--crm-marketing-gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Reserve space under fixed CRM nav */
.cp-hero {
  padding: calc(var(--crm-header-h) + clamp(2.5rem, 6vw, 3.75rem)) 0 clamp(2rem, 4vw, 2.75rem);
}

.cp-kicker {
  display: inline-block;
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crm-ember);
}

.cp-hero h1 {
  margin: 0 0 1rem;
  max-width: 40rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.cp-hero-lede {
  margin: 0 0 1.75rem;
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.cp-billing {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.cp-billing-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
}

.cp-billing-toggle button {
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.cp-billing-toggle button.active {
  background: var(--hc-lime);
  color: #0d0e11;
}

.cp-save-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--crm-ember);
}

.cp-strip {
  display: grid;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--crm-radius-xl);
  overflow: hidden;
}

@media (min-width: 820px) {
  .cp-strip { grid-template-columns: repeat(3, 1fr); }
}

.cp-strip-cell {
  background: var(--card);
  padding: 1.35rem 1.4rem;
}

.cp-strip-k {
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--crm-ember);
}

.cp-strip-v {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.cp-strip-v strong {
  color: var(--foreground);
  font-weight: 700;
}

.cp-meta-note {
  margin: 1.25rem 0 0;
  max-width: 42rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.cp-meta-note strong {
  color: var(--foreground);
  font-weight: 700;
}

/* Sections */
.cp-section {
  padding: var(--crm-section-pad-y) 0;
}

.cp-section--surface {
  background: color-mix(in srgb, var(--crm-chalk) 2.5%, var(--background));
  border-block: 1px solid var(--border);
}

.cp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.cp-section-head h2,
.cp-section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.cp-section-note,
.cp-section-lead {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  max-width: 28rem;
}

.cp-section-head--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.cp-section-head--stack .cp-section-lead {
  margin-bottom: 0;
  max-width: 36rem;
}

/* Two commercial paths */
.cp-paths {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 820px) {
  .cp-paths { grid-template-columns: 1.15fr 1fr; }
}

.cp-path {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--crm-radius-xl);
  background: var(--card);
}

.cp-path--primary {
  border-color: color-mix(in srgb, var(--hc-lime) 40%, var(--border));
  background: color-mix(in srgb, var(--hc-lime) 6%, var(--card));
}

.cp-path-badge {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--crm-ember);
}

.cp-path h3 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cp-path-copy {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

.cp-path-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  flex: 1;
}

.cp-path-list li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.15rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--foreground);
}

.cp-path-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--hc-lime);
}

.cp-path .btn {
  align-self: flex-start;
}

.cp-build-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
}

.cp-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.cp-card-actions .btn {
  width: 100%;
  margin-bottom: 0;
  text-align: center;
}

.cp-ready-link {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--crm-ember);
  text-decoration: none;
  padding-top: 0.15rem;
}

.cp-ready-link:hover {
  text-decoration: underline;
}

.cp-vs-card {
  border: 1px solid var(--border);
  border-radius: var(--crm-radius-xl);
  overflow: hidden;
  background: var(--card);
}

.cp-vs-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--crm-chalk) 2%, var(--background));
}

.cp-vs-tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--muted-foreground);
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.9rem 0.5rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.cp-vs-tabs button.active {
  color: var(--foreground);
  border-bottom-color: var(--hc-lime);
  background: var(--card);
}

.cp-vs-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
}

.cp-vs-row:last-child { border-bottom: none; }

.cp-vs-row.hl {
  background: color-mix(in srgb, var(--hc-lime) 8%, var(--card));
}

.cp-vs-who {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.cp-vs-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cp-vs-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}

.cp-vs-num {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: right;
}

.cp-vs-row.hl .cp-vs-num { color: var(--crm-ember); }

.cp-vs-per {
  display: block;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  margin-top: 0.1rem;
}

.cp-vs-save {
  text-align: right;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--crm-ember);
}

.cp-vs-foot {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--muted-foreground);
  background: color-mix(in srgb, var(--crm-chalk) 2%, var(--background));
}

@media (max-width: 640px) {
  .cp-vs-row {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
  }
  .cp-vs-save {
    grid-column: 1 / -1;
    text-align: left;
  }
}

/* Pricing grid */
.cp-grid {
  display: grid;
  gap: 1.1rem;
  align-items: stretch;
}

@media (min-width: 720px) {
  .cp-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .cp-grid { grid-template-columns: repeat(4, 1fr); }
}

.cp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--crm-radius-xl);
  background: var(--card);
}

.cp-card.popular {
  border-color: color-mix(in srgb, var(--hc-lime) 45%, var(--border));
  background: color-mix(in srgb, var(--hc-lime) 6%, var(--card));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--hc-lime) 22%, transparent);
}

.cp-badge {
  position: absolute;
  top: -0.7rem;
  left: 1.25rem;
  background: var(--hc-lime);
  color: #0d0e11;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}

.cp-tier-name {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cp-tier-tagline {
  margin: 0 0 1.15rem;
  min-height: 2.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.cp-card.popular .cp-tier-tagline {
  color: color-mix(in srgb, var(--hc-lime-ink) 70%, var(--muted-foreground));
}

.cp-price-block {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.cp-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.cp-amt {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cp-card.enterprise .cp-amt { font-size: 1.4rem; }

.cp-per {
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.cp-annual-note {
  min-height: 1rem;
  margin-top: 0.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--crm-ember);
}

.cp-build-fee {
  margin-top: 0.5rem;
  font-size: 0.8125rem;
  color: var(--muted-foreground);
}

.cp-build-fee strong {
  color: var(--foreground);
  font-weight: 700;
}

.cp-msg-cap {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--foreground);
}

.cp-caps {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.cp-caps strong {
  color: var(--foreground);
  font-weight: 700;
}

.cp-card .btn {
  width: 100%;
  margin-bottom: 1.15rem;
}

.cp-card-actions .btn {
  margin-bottom: 0;
}

.cp-feat-heading {
  margin: 0 0 0.85rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

.cp-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.cp-feats li {
  display: flex;
  gap: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.cp-tick {
  flex-shrink: 0;
  color: var(--crm-ember);
  font-weight: 800;
  margin-top: 0.05rem;
}

.cp-ft {
  display: block;
  color: var(--foreground);
  font-weight: 700;
}

.cp-fd {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.cp-card-desc {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted-foreground);
}

/* Compare table */
.cp-tbl-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--crm-radius-xl);
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 640px;
}

.cp-table thead th {
  text-align: left;
  padding: 0.85rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--crm-chalk) 2%, var(--background));
}

.cp-table thead th.tcol {
  text-align: center;
  color: var(--foreground);
}

.cp-table thead th.pop { color: var(--crm-ember); }

.cp-table tbody td {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
}

.cp-table tbody td:first-child {
  color: var(--foreground);
  font-weight: 600;
}

.cp-table tbody td.tcol { text-align: center; }

.cp-table .group-row td {
  padding-top: 1.4rem;
  padding-bottom: 0.4rem;
  color: var(--crm-ember);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: none;
}

.cp-yes { color: var(--crm-ember); font-weight: 800; }
.cp-no { color: color-mix(in srgb, var(--muted-foreground) 55%, transparent); }

col.popcol { background: color-mix(in srgb, var(--hc-lime) 5%, transparent); }

/* Meta rates */
.cp-addon-grid {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 820px) {
  .cp-addon-grid { grid-template-columns: repeat(3, 1fr); }
}

.cp-addon-card {
  padding: 1.35rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--crm-radius-xl);
  background: var(--card);
}

.cp-addon-t {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cp-addon-d {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
}

.cp-addon-p {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--crm-ember);
}

/* FAQ */
.cp-faq-item { border-bottom: 1px solid var(--border); }

.cp-faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.975rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 1.15rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cp-faq-plus {
  color: var(--crm-ember);
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.cp-faq-item.open .cp-faq-plus { transform: rotate(45deg); }

.cp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.cp-faq-a p {
  margin: 0;
  padding: 0 0 1.15rem;
  max-width: 48rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted-foreground);
}

/* Final CTA + footer */
.cp-final {
  padding: clamp(3.5rem, 7vw, 5rem) 0;
  text-align: center;
  border-top: 1px solid var(--border);
}

.cp-final h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.cp-final > .cp-wrap > p {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  color: var(--muted-foreground);
  text-align: center;
}

.cp-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.cp-fineprint {
  display: block;
  margin: 2rem auto 0;
  max-width: min(40rem, 100%);
  padding-inline: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--muted-foreground);
  text-align: center;
  text-wrap: pretty;
}

/* Reveal FOUC guard: GSAP owns opacity/transform after boot */
html.js-connect body.connect-pricing-page:not(.is-ready) #cp-hero [data-reveal] {
  visibility: hidden;
}

html.js-connect body.connect-pricing-page.is-ready #cp-hero [data-reveal] {
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  html.js-connect body.connect-pricing-page:not(.is-ready) #cp-hero [data-reveal] {
    visibility: visible;
  }

  .cp-faq-plus {
    transition: none;
  }
}
