/* ============================================================
   Cleen Detailing — Pricing Section Styles
   Scope: .cd-pricing (all rules namespaced to avoid Webflow conflicts)
   Hosted: cleen-calculator.pages.dev/pricing.css
   Source: src/embed/pricing/pricing.html
   Bump ?v= in pricing-webflow.html when deploying changes here.
   ============================================================ */

/* ─── Reset & Base ──────────────────────────────────────────────── */
.cd-pricing *,
.cd-pricing *::before,
.cd-pricing *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cd-pricing {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #171717;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}

/* ─── Layout Helpers ────────────────────────────────────────────── */
.cd-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

@media (max-width: 767px) {
  .cd-container { padding: 0 16px; }
}

/* ─── Section Spacing ───────────────────────────────────────────── */
.cd-section {
  padding: 64px 0;
}

@media (max-width: 767px) {
  .cd-section { padding: 40px 0; }
}

/* ─── Section Header ────────────────────────────────────────────── */
.cd-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0A3D91;
  background: #eef3fb;
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.cd-section-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: #171717;
  margin-bottom: 8px;
}

.cd-section-subtitle {
  font-size: 16px;
  color: #737373;
  line-height: 1.625;
  max-width: 560px;
}

@media (max-width: 767px) {
  .cd-section-title { font-size: 24px; }
}

/* ─── Service Group ─────────────────────────────────────────────── */
.cd-service-group {
  margin-bottom: 0;
}

.cd-group-header {
  margin-bottom: 32px;
}

/* ─── Cards Grid ────────────────────────────────────────────────── */
.cd-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .cd-cards-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ─── Service Card ──────────────────────────────────────────────── */
.cd-card {
  background: #ffffff;
  border: 1px solid #E5E5E5;
  border-radius: 16px;
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 150ms ease-in-out, border-color 150ms ease-in-out;
}

.cd-card:hover {
  box-shadow: 0 4px 8px -1px rgba(0,0,0,0.08);
}

.cd-card--featured {
  border-color: #0A3D91;
  border-width: 2px;
  box-shadow: 0 4px 8px -1px rgba(10,61,145,0.12);
}

/* ─── Most Popular Badge ────────────────────────────────────────── */
.cd-badge-popular {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  background: #0A3D91;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 0 0 10px 10px;
  white-space: nowrap;
}

.cd-card--featured .cd-badge-popular {
  top: -2px;
}

/* ─── Card Header ───────────────────────────────────────────────── */
.cd-card-header {
  margin-bottom: 20px;
}

.cd-card-number {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #737373;
  margin-bottom: 6px;
}

.cd-card-name {
  font-size: 18px;
  font-weight: 600;
  color: #171717;
  line-height: 1.25;
  margin-bottom: 4px;
}

.cd-card-tagline {
  font-size: 14px;
  color: #737373;
}

/* ─── Card Pricing Block ────────────────────────────────────────── */
.cd-card-pricing {
  background: #F5F5F5;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.cd-price-member-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.cd-price-member-amount {
  font-size: 28px;
  font-weight: 600;
  color: #0A3D91;
  line-height: 1;
}

.cd-price-member-label {
  font-size: 12px;
  font-weight: 500;
  color: #0A3D91;
  background: #dce8fb;
  padding: 2px 8px;
  border-radius: 9999px;
}

.cd-price-nonmember-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cd-price-nonmember-amount {
  font-size: 14px;
  color: #737373;
}

.cd-price-nonmember-label {
  font-size: 13px;
  color: #737373;
}

.cd-price-note {
  font-size: 11px;
  color: #a3a3a3;
  margin-top: 8px;
}

/* ─── CTA Buttons ───────────────────────────────────────────────── */
.cd-btn-primary {
  display: block;
  width: 100%;
  background: #0A3D91;
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  padding: 12px 24px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background 150ms ease-in-out;
  margin-bottom: 20px;
}

.cd-btn-primary:hover {
  background: #0d3580;
}

.cd-btn-outline {
  display: block;
  width: 100%;
  background: transparent;
  color: #0A3D91;
  font-size: 15px;
  font-weight: 500;
  text-align: center;
  padding: 11px 24px;
  border-radius: 12px;
  border: 1px solid #0A3D91;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
  transition: background 150ms ease-in-out;
  margin-bottom: 20px;
}

.cd-btn-outline:hover {
  background: #eef3fb;
}

/* ─── Card Features ─────────────────────────────────────────────── */
.cd-card-features {
  list-style: none;
  flex: 1;
  margin-bottom: 20px;
}

.cd-card-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #171717;
  padding: 6px 0;
  border-bottom: 1px solid #F5F5F5;
  line-height: 1.4;
}

.cd-card-features li:last-child {
  border-bottom: none;
}

.cd-feature-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.cd-feature-included .cd-feature-check { color: #16A34A; }
.cd-feature-dimmed { color: #a3a3a3; }
.cd-feature-dimmed .cd-feature-check { color: #d4d4d4; }

/* ─── Perfect For tags ──────────────────────────────────────────── */
.cd-perfect-for {
  border-top: 1px solid #F5F5F5;
  padding-top: 16px;
  margin-top: auto;
}

.cd-perfect-for-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a3a3a3;
  margin-bottom: 8px;
}

.cd-perfect-for-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cd-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: #525252;
  background: #F5F5F5;
  border-radius: 9999px;
  padding: 3px 10px;
}

/* ─── Mix & Match Banner ────────────────────────────────────────── */
.cd-mix-banner {
  margin: 48px 0;
}

.cd-mix-banner-inner {
  background: #F5F5F5;
  border-radius: 16px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cd-mix-banner-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.cd-mix-banner-text {
  font-size: 15px;
  color: #525252;
  line-height: 1.5;
}

.cd-mix-banner-text strong {
  color: #171717;
  font-weight: 600;
}

@media (max-width: 767px) {
  .cd-mix-banner-inner { padding: 16px 20px; }
}

/* ─── Section Divider ───────────────────────────────────────────── */
.cd-divider {
  height: 1px;
  background: #E5E5E5;
  margin: 64px 0;
}

@media (max-width: 767px) {
  .cd-divider { margin: 40px 0; }
}

/* ─── Comparison Table ──────────────────────────────────────────── */
.cd-table-wrapper {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid #E5E5E5;
}

.cd-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

/* Sticky header */
.cd-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

/* ─── Table Head ────────────────────────────────────────────────── */
.cd-table thead tr:first-child th {
  padding: 20px 20px 0;
  background: #ffffff;
  vertical-align: top;
}

.cd-table thead tr:first-child th:first-child {
  padding: 20px 20px 16px;
  vertical-align: bottom;
}

.cd-thead-pkg-name {
  font-size: 15px;
  font-weight: 600;
  color: #171717;
  margin-bottom: 2px;
}

.cd-thead-pkg-tagline {
  font-size: 12px;
  color: #737373;
  margin-bottom: 10px;
}

.cd-thead-price-block {
  margin-bottom: 10px;
}

.cd-thead-member-price {
  font-size: 20px;
  font-weight: 600;
  color: #0A3D91;
  line-height: 1;
}

.cd-thead-member-badge {
  display: inline;
  font-size: 11px;
  font-weight: 500;
  color: #0A3D91;
  background: #dce8fb;
  padding: 1px 7px;
  border-radius: 9999px;
  margin-left: 4px;
  vertical-align: middle;
}

.cd-thead-nonmember-price {
  font-size: 12px;
  color: #a3a3a3;
  margin-right: 4px;
}

.cd-thead-nonmember-label {
  font-size: 12px;
  color: #a3a3a3;
}

.cd-thead-btn {
  display: block;
  width: 100%;
  background: #0A3D91;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  min-height: 36px;
  transition: background 150ms ease-in-out;
  margin-bottom: 16px;
}

.cd-thead-btn:hover { background: #0d3580; }

.cd-thead-btn--outline {
  background: transparent;
  color: #0A3D91;
  border: 1px solid #0A3D91;
}

.cd-thead-btn--outline:hover { background: #eef3fb; }

.cd-thead-featured {
  background: #f6f9ff;
}

/* ─── Table Body ────────────────────────────────────────────────── */
.cd-table tbody tr:hover {
  background: #fafafa;
}

.cd-table td,
.cd-table tbody th {
  padding: 13px 20px;
  border-top: 1px solid #E5E5E5;
  font-size: 14px;
  text-align: left;
}

.cd-table tbody th {
  font-weight: 500;
  color: #171717;
  min-width: 200px;
}

.cd-table td {
  text-align: center;
  color: #737373;
  min-width: 160px;
}

.cd-table td.cd-td-featured {
  background: #f6f9ff;
}

/* ─── Table Row Groups ──────────────────────────────────────────── */
.cd-row-section-header td,
.cd-row-section-header th {
  background: #F5F5F5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #737373;
  padding: 8px 20px;
}

/* ─── Checkmarks & Crosses ──────────────────────────────────────── */
.cd-check { color: #16A34A; font-size: 18px; }
.cd-cross { color: #d4d4d4; font-size: 18px; }

/* ─── Add-on Price Cell ─────────────────────────────────────────── */
.cd-addon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.cd-addon-member {
  font-size: 13px;
  font-weight: 600;
  color: #0A3D91;
}

.cd-addon-nonmember {
  font-size: 11px;
  color: #a3a3a3;
}

.cd-addon-label {
  font-size: 10px;
  color: #a3a3a3;
  font-style: italic;
}

/* ─── Feature detail text ───────────────────────────────────────── */
.cd-feature-detail {
  font-size: 12px;
  color: #a3a3a3;
  display: block;
  font-weight: 400;
}

/* ─── CTA Section ───────────────────────────────────────────────── */
.cd-cta-section {
  background: #171717;
  border-radius: 20px;
  padding: 64px 32px;
  text-align: center;
}

@media (max-width: 767px) {
  .cd-cta-section { padding: 40px 20px; border-radius: 16px; }
}

.cd-cta-title {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 12px;
}

.cd-cta-subtitle {
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  line-height: 1.625;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767px) {
  .cd-cta-title { font-size: 24px; }
}

.cd-cta-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 9999px;
  padding: 6px 6px 6px 20px;
  gap: 12px;
  cursor: pointer;
  transition: background 150ms ease-in-out;
  max-width: 460px;
  width: 100%;
}

.cd-cta-bar:hover {
  background: rgba(255,255,255,0.12);
}

.cd-cta-bar-text {
  font-size: 15px;
  color: rgba(255,255,255,0.5);
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cd-cta-bar-btn {
  background: #ffffff;
  color: #0A3D91;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
  transition: background 150ms ease-in-out;
}

.cd-cta-bar-btn:hover { background: #f0f4ff; }

.cd-cta-note {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-top: 16px;
}

/* ─── Pricing footnote ──────────────────────────────────────────── */
.cd-footnote {
  font-size: 12px;
  color: #a3a3a3;
  text-align: center;
  margin-top: 32px;
  line-height: 1.6;
}

.cd-footnote a {
  color: #0A3D91;
  text-decoration: none;
}

/* ─── Cleen Pass Tooltip ────────────────────────────────────────── */
.cd-pass-tip-wrap {
  position: relative;
  display: inline-block;
  margin-top: 10px;
}

.cd-pass-tip-trigger {
  font-size: 11px;
  font-weight: 500;
  color: #0A3D91;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
  opacity: 0.75;
  transition: opacity 120ms;
}

.cd-pass-tip-trigger:hover { opacity: 1; }

.cd-pass-tip-body {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 0;
  z-index: 200;
  background: #171717;
  color: #ffffff;
  border-radius: 12px;
  padding: 14px 16px;
  width: 240px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.cd-pass-tip-body::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 18px;
  border: 6px solid transparent;
  border-top-color: #171717;
}

.cd-pass-tip-wrap.is-open .cd-pass-tip-body {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.cd-pass-tip-title {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 4px;
}

.cd-pass-tip-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  line-height: 1.5;
}

.cd-pass-tip-list { list-style: none; }

.cd-pass-tip-list li {
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  padding: 2px 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.cd-pass-tip-list li::before {
  content: '✓';
  color: #6ee7b7;
  flex-shrink: 0;
  font-weight: 600;
}

/* ─── Cleen Pass Section ────────────────────────────────────────── */
.cd-pass-card {
  background: linear-gradient(135deg, #0A3D91 0%, #0c3278 60%, #091f55 100%);
  border-radius: 20px;
  padding: 48px;
  display: flex;
  gap: 48px;
  align-items: flex-start;
  color: #ffffff;
}

@media (max-width: 1023px) {
  .cd-pass-card { flex-direction: column; padding: 32px 24px; gap: 32px; }
}

@media (max-width: 767px) {
  .cd-pass-card { border-radius: 16px; }
}

.cd-pass-content { flex: 1; min-width: 0; }

.cd-pass-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.cd-pass-title {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 10px;
}

@media (max-width: 767px) {
  .cd-pass-title { font-size: 30px; }
}

.cd-pass-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  margin-bottom: 24px;
  max-width: 420px;
}

.cd-pass-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 28px;
}

.cd-pass-price {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1;
}

.cd-pass-per-year {
  font-size: 18px;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

.cd-pass-benefits { list-style: none; margin-bottom: 24px; }

.cd-pass-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  padding: 6px 0;
}

.cd-pass-benefits li svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #6ee7b7;
}

.cd-pass-benefits li strong { color: #ffffff; }

.cd-pass-fine-print {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  line-height: 1.65;
  max-width: 380px;
  margin-bottom: 24px;
}

.cd-pass-cta {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background 150ms ease-in-out;
  min-height: 44px;
  font-family: inherit;
}

.cd-pass-cta:hover { background: rgba(255,255,255,0.2); }

.cd-pass-callout { width: 296px; flex-shrink: 0; }

@media (max-width: 1023px) { .cd-pass-callout { width: 100%; } }

.cd-pass-callout-inner {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 16px;
  padding: 24px;
}

.cd-pass-callout-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 16px;
}

.cd-pass-callout-example { margin-bottom: 16px; }

.cd-pass-ex-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 13px;
  gap: 12px;
}

.cd-pass-ex-row:last-child { border-bottom: none; }
.cd-pass-ex-service { color: rgba(255,255,255,0.65); flex: 1; }
.cd-pass-ex-saving { font-weight: 600; color: #6ee7b7; font-size: 13px; white-space: nowrap; }

.cd-pass-callout-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  gap: 12px;
}

.cd-pass-callout-total-label { font-size: 13px; color: rgba(255,255,255,0.75); }
.cd-pass-callout-amount { font-size: 22px; font-weight: 700; color: #6ee7b7; white-space: nowrap; }

.cd-pass-callout-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 16px 0;
}

.cd-pass-callout-membership {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.cd-pass-callout-mem-label { color: rgba(255,255,255,0.5); }
.cd-pass-callout-mem-price { font-weight: 600; color: rgba(255,255,255,0.8); }
.cd-pass-callout-note { font-size: 11px; color: rgba(255,255,255,0.35); text-align: center; line-height: 1.55; }
