/* ═══════════════════════════════════════════
   APEX SYSTEMATIC — pricing.css
   Supplemental styles for:
   - Homepage: service card labels, new pricing tiers
   - /pricing page: hero, suites, add-ons, expect grid
═══════════════════════════════════════════ */


/* ── Service card label (new "Acquire", "Retain" etc.) ── */

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  flex: 1;
  margin-bottom: 24px;
}

.service-card .demos-preview-link {
  margin-top: auto;
}


/* ── Pricing tier: label + tag additions ── */

.opt-c-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 4px 10px;
  margin-bottom: 12px;
}

.opt-c-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.opt-c-saving {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
}


/* ── Complete Firm block (homepage + pricing page) ── */

.complete-firm-block {
  border: 1px solid var(--gold);
  background: var(--surface);
  margin-top: 0;
}

.complete-firm-block--hp {
  /* homepage variant sits directly below the pricing grid */
}

.complete-firm-inner {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
}

.complete-firm-left {
  padding: 48px 52px;
  border-right: 1px solid var(--border);
}

.complete-firm-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.complete-firm-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 6px;
  line-height: 1.1;
}

.complete-firm-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.875rem;
  color: var(--gold);
  margin-bottom: 20px;
}

.complete-firm-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 520px;
}

.complete-firm-right {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.complete-firm-standalone {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

.complete-firm-price {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.1;
}

.complete-firm-saving {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.06em;
}


/* ── Add-ons callout block (homepage) ── */

.addons-callout {
  border: 1px solid var(--border);
  border-top: none;
  background: var(--surface);
  padding: 36px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.addons-callout-text {
  flex: 1;
}

.addons-callout-text strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
}

.addons-callout-text p {
  font-size: 0.85rem;
  line-height: 1.75;
  margin: 0;
}

.addons-callout-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}


/* ═══════════════════════════════════════════
   /pricing PAGE STYLES
═══════════════════════════════════════════ */


/* ── Pricing page hero ── */

.pricing-hero {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

.pricing-hero-text .hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 1.25rem 0 2rem;
}

.pricing-hero-text .currency-toggle {
  margin-bottom: 2rem;
}

.pricing-hero-text .hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ── Suite blocks ── */

.pricing-suites {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

.suite-block {
  border: 1px solid var(--border);
  margin-bottom: 32px;
  transition: border-color var(--ease);
}

.suite-block:hover {
  border-color: var(--border-light);
}

.suite-block:last-of-type {
  margin-bottom: 0;
}

.suite-header {
  padding: 40px 48px 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.suite-tag {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  align-self: flex-start;
}

.suite-tag--popular {
  background: var(--gold);
  color: var(--bg);
}

.suite-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  margin: 0;
}

.suite-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.9rem;
  color: var(--gold);
  margin: 0;
}

.suite-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.suite-footer-prices {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.suite-standalone {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: line-through;
  text-decoration-color: var(--text-dim);
}

.suite-price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--gold);
  line-height: 1.2;
}

.suite-saving {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.suite-desc {
  padding: 10px 32px 32px 48px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.suite-automations {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.automation-card {
  display: flex;
  gap: 20px;
  padding: 36px 48px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.automation-card:hover {
  background: var(--surface);
}

/* Remove right border on even children (right column) */
.automation-card:nth-child(2n) {
  border-right: none;
}

/* Full-width card (3-automation suites) — spans both columns, no right border */
.automation-card--full {
  grid-column: span 2;
  border-right: none;
}

/* Remove bottom border from the last card in each suite's automation grid */
.suite-automations > .automation-card:last-child {
  border-bottom: none;
}

/* When last card is full-width, the card directly above it is nth-last-child(2).
   It sits alone in its row so also needs its bottom border removed. */
.suite-automations > .automation-card:nth-last-child(2):nth-child(odd) {
  border-bottom: none;
}

.automation-num {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--gold);
  flex-shrink: 0;
  padding-top: 3px;
  min-width: 24px;
}

.automation-body h4 {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.3;
}

.automation-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}

/* Suite complete firm block on /pricing page */
.suite-block + .complete-firm-block {
  border-top: 1px solid var(--gold);
  margin-top: 32px;
}


/* ── Standalone section ── */

.pricing-standalone {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}


/* ── Add-ons grid ── */

.pricing-addons {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.addon-card {
  padding: 36px 32px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: background var(--ease);
}

.addon-card:hover {
  background: var(--surface);
}

/* Remove right border every 4th */
.addon-card:nth-child(4n) {
  border-right: none;
}

/* Remove bottom border on last row (8 items = last 4) */
.addon-card:nth-child(n+5) {
  border-bottom: none;
}

.addon-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.addon-badge {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 3px 8px;
}

.addon-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}

.addon-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  flex: 1;
  margin: 0 0 24px;
}

.addon-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: auto;
}

.addon-build-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.addon-price {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--gold);
}


/* ── What to expect grid ── */

.pricing-expect {
  padding: var(--section-y) 0;
  border-bottom: 1px solid var(--border);
}

.expect-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
}

.expect-card {
  padding: 40px 36px;
  border-right: 1px solid var(--border);
  transition: background var(--ease);
}

.expect-card:last-child {
  border-right: none;
}

.expect-card:hover {
  background: var(--surface);
}

.expect-card::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 20px;
}

.expect-card h4 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.4;
}

.expect-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin: 0;
}


/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 1100px) {
  .addons-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .addon-card:nth-child(4n) {
    border-right: 1px solid var(--border);
  }

  .addon-card:nth-child(2n) {
    border-right: none;
  }

  .addon-card:nth-child(n+5) {
    border-bottom: 1px solid var(--border);
  }

  .addon-card:nth-child(n+7) {
    border-bottom: none;
  }

  .expect-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .expect-card:nth-child(2) {
    border-right: none;
  }

  .expect-card:nth-child(3) {
    border-right: 1px solid var(--border);
    border-top: 1px solid var(--border);
  }

  .expect-card:nth-child(4) {
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .expect-card:last-child {
    border-right: none;
  }
}

@media (max-width: 900px) {
  .suite-header {
    padding: 28px 28px 18px;
  }

  .suite-desc {
    padding: 0px 28px 28px;
  }

  .suite-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
  }

  .suite-automations {
    grid-template-columns: 1fr;
  }

  .automation-card {
    border-right: none;
    padding: 28px 28px;
  }

  .automation-card--full {
    grid-column: span 1;
  }

  .suite-automations > .automation-card:last-child {
    border-bottom: none;
  }

  /* Restore bottom border on all non-last cards (overrides any desktop rules) */
  .suite-automations > .automation-card:not(:last-child) {
    border-bottom: 1px solid var(--border);
  }

  /* Restore right-column cards that lost their bottom border on desktop */
  .suite-automations > .automation-card:nth-last-child(2):nth-child(odd) {
    border-bottom: 1px solid var(--border);
  }

  .complete-firm-inner {
    grid-template-columns: 1fr;
  }

  .complete-firm-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 32px 28px;
  }

  .complete-firm-right {
    padding: 28px 28px;
    gap: 12px;
  }

  .addons-callout {
    flex-direction: column;
    gap: 24px;
    padding: 28px 28px;
    align-items: flex-start;
  }

  .addons-callout-actions {
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .addons-grid {
    grid-template-columns: 1fr;
  }

  .addon-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .addon-card:last-child {
    border-bottom: none;
  }

  .addon-card:nth-child(n) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .expect-grid {
    grid-template-columns: 1fr;
  }

  .expect-card {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .expect-card:last-child {
    border-bottom: none;
  }

  .expect-card:nth-child(n) {
    border-right: none;
    border-top: none;
  }

  .addons-callout-actions {
    flex-direction: column;
    width: 100%;
  }

  .addons-callout-actions .btn {
    width: 100%;
    justify-content: center;
  }
}