/* Pricing and contact pages — aligned to the ClearMarket Explore system. */

body.cm-commercial-page {
  --commercial-paper: #f6f7f3;
  --commercial-paper-deep: #eef0eb;
  --commercial-surface: #fff;
  --commercial-ink: #10120f;
  --commercial-muted: #666b64;
  --commercial-teal: #0b695e;
  --commercial-teal-dark: #074c44;
  --commercial-rule: rgba(16, 18, 15, .14);
  --commercial-content: min(1216px, calc(100vw - 64px));
  --commercial-gutter: max(32px, calc((100vw - 1216px) / 2));
  background: var(--commercial-surface);
  color: var(--commercial-ink);
  font-family: "DM Sans", Inter, sans-serif;
}

body.cm-commercial-page *,
body.cm-commercial-page *::before,
body.cm-commercial-page *::after { box-sizing: border-box; }

body.cm-commercial-page > main#main-content {
  width: 100%;
  max-width: none;
  padding: 0 !important;
  display: block;
  overflow: hidden;
  background: var(--commercial-surface);
}

body.cm-commercial-page :is(h1, h2, h3, p, ul, dl, dd) { margin-top: 0; }
body.cm-commercial-page :is(a, button, summary):focus-visible { outline: 3px solid rgba(11, 105, 94, .24); outline-offset: 4px; }

body.cm-commercial-page :is(.cm-price-hero, .contact-hero) {
  width: 100% !important;
  min-height: 100svh;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 var(--commercial-gutter);
  display: block !important;
  grid-template-columns: none !important;
  background:
    radial-gradient(circle at 82% 12%, rgba(126, 196, 186, .2), transparent 31%),
    linear-gradient(rgba(16, 18, 15, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 18, 15, .045) 1px, transparent 1px),
    linear-gradient(135deg, #f8f9f6, #e9f0ec);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

body.cm-commercial-page :is(.cm-price-hero h1, .contact-hero h1) {
  color: var(--commercial-ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  letter-spacing: -.04em;
  text-wrap: balance;
}

body.cm-commercial-page :is(.cm-rd-eyebrow, .contact-kicker) {
  color: var(--commercial-teal);
  font: 700 10px/1.2 Manrope, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

/* Pricing hero */
body.cm-pricing-page .cm-price-hero-inner {
  width: 100%;
  max-width: 1040px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 128px 0 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

body.cm-pricing-page .cm-price-hero-copy {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

body.cm-pricing-page .cm-price-hero h1 {
  width: 100%;
  max-width: 900px;
  margin: 17px auto 0;
  font-size: clamp(54px, 5.2vw, 74px);
  line-height: .98;
}

body.cm-pricing-page .cm-price-hero h1 em { color: var(--commercial-ink); font-style: italic; font-weight: 400; }
body.cm-pricing-page .cm-price-lede {
  max-width: 670px;
  margin: 25px auto 0;
  color: var(--commercial-ink);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 500;
  line-height: 1.55;
}

body.cm-pricing-page .cm-price-hero-actions {
  width: fit-content !important;
  margin-top: 29px;
  margin-inline: auto;
  display: flex;
  align-self: center !important;
  justify-self: center !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
}

body.cm-commercial-page .dt-button { border-radius: 8px; font-weight: 500; }
body.cm-commercial-page .dt-button--large { min-height: 48px; padding-inline: 24px; }

body.cm-pricing-page .cm-price-ledger {
  width: 100%;
  max-width: 960px;
  margin-top: 48px;
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(16, 18, 15, .22);
  border-radius: 14px;
  background: rgba(255, 255, 255, .7);
  color: var(--commercial-ink);
  box-shadow: 0 16px 42px rgba(31, 75, 68, .08);
  backdrop-filter: blur(14px);
}

body.cm-pricing-page :is(.cm-price-ledger-primary, .cm-price-ledger-row) {
  min-height: 104px;
  padding: 18px 20px;
  border: 0;
  border-right: 1px solid rgba(16, 18, 15, .18);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}

body.cm-pricing-page .cm-price-ledger-row:last-child { border-right: 0; }
body.cm-pricing-page :is(.cm-price-ledger-primary, .cm-price-ledger-row) span {
  color: #4f655f;
  font: 700 9px/1.2 Manrope, sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body.cm-pricing-page .cm-price-ledger-primary strong { color: var(--commercial-ink); font: 400 28px/1 "DM Serif Display", Georgia, serif; }
body.cm-pricing-page .cm-price-ledger-row strong { color: var(--commercial-ink); font-size: 13px; font-weight: 500; }
body.cm-pricing-page .cm-price-ledger-head,
body.cm-pricing-page .cm-price-ledger > p { display: none; }

body.cm-pricing-page .cm-price-strip {
  width: var(--commercial-content);
  max-width: 1216px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--commercial-rule);
  background: #fff;
}

body.cm-pricing-page .cm-price-strip div {
  min-height: 72px;
  padding: 0 22px;
  border-right: 1px solid var(--commercial-rule);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--commercial-ink);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

body.cm-pricing-page .cm-price-strip div:last-child { border-right: 0; }
body.cm-pricing-page .cm-price-strip span { margin: 0; color: var(--commercial-teal); font-size: 13px; }

/* Pricing plans */
body.cm-pricing-page .cm-price-plans-section {
  width: var(--commercial-content);
  max-width: 1216px;
  margin: 0 auto;
  padding: 112px 0;
}

body.cm-pricing-page .cm-price-section-head {
  margin: 0 0 48px;
  padding: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 48px;
}

body.cm-pricing-page :is(.cm-price-section-head, .cm-price-question-heading) > div > span {
  display: block;
  margin-bottom: 13px;
  color: var(--commercial-teal);
  font: 700 10px/1.2 Manrope, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body.cm-pricing-page :is(.cm-price-section-head, .cm-price-question-heading) h2 {
  margin: 0;
  color: var(--commercial-ink);
  font: 400 clamp(42px, 4.2vw, 58px)/1 "DM Serif Display", Georgia, serif;
  letter-spacing: -.035em;
}

body.cm-pricing-page :is(.cm-price-section-head, .cm-price-question-heading) p {
  max-width: 590px;
  margin: 14px 0 0;
  color: var(--commercial-muted);
  font-size: 14px;
  line-height: 1.65;
}

body.cm-pricing-page .cm-price-cycle {
  flex: 0 0 auto;
  padding: 4px;
  gap: 0;
  border: 1px solid var(--commercial-rule);
  border-radius: 10px !important;
  background: var(--commercial-paper-deep);
  box-shadow: none;
}

body.cm-pricing-page .cm-price-cycle button {
  min-width: 130px;
  min-height: 42px;
  border-radius: 7px !important;
  color: var(--commercial-muted);
  font-size: 12px;
  font-weight: 500;
}

body.cm-pricing-page .cm-price-cycle button.active { background: #fff; color: var(--commercial-teal-dark); box-shadow: 0 2px 10px rgba(16, 18, 15, .07); }
body.cm-pricing-page .cm-price-cycle button span { color: inherit; font-size: 7px; }
body.cm-pricing-page .cm-price-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; border: 0; background: transparent; }
body.cm-pricing-page .cm-price-plan {
  min-height: 0;
  padding: 27px 26px 25px;
  border: 1px solid var(--commercial-rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

body.cm-pricing-page .cm-price-plan[data-plan="pro"] { border-color: rgba(11, 105, 94, .34); background: #f3f7f4; box-shadow: inset 0 3px 0 var(--commercial-teal); }
body.cm-pricing-page .cm-price-plan-index { margin-bottom: 26px; color: var(--commercial-muted); }
body.cm-pricing-page .cm-price-plan h3 { font-family: "DM Sans", sans-serif; font-size: 28px; font-weight: 400; }
body.cm-pricing-page .cm-price-plan-desc { min-height: 68px; font-size: 13px; line-height: 1.6; }
body.cm-pricing-page .cm-price-value { min-height: 74px; margin-top: 20px; }
body.cm-pricing-page .cm-price-value strong { font-size: 44px; }
body.cm-pricing-page .cm-price-features li { padding-block: 9px; font-size: 12px; }
body.cm-pricing-page .cm-price-plan-cta { min-height: 48px; border-radius: 8px !important; font-weight: 500; }
body.cm-pricing-page .cm-price-fineprint { max-width: 820px; padding-top: 24px; font-size: 11px; }

body.cm-pricing-page .cm-price-questions {
  width: var(--commercial-content);
  max-width: 1216px;
  margin: 0 auto;
  padding: 112px 0;
  border-top: 1px solid var(--commercial-rule);
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: clamp(56px, 8vw, 112px);
}

body.cm-pricing-page .cm-price-question-heading { display: block; padding: 0; }
body.cm-pricing-page .cm-price-question-list { max-width: 720px; border-top: 1px solid var(--commercial-rule); }
body.cm-pricing-page .cm-price-question-list details { border-bottom: 1px solid var(--commercial-rule); }
body.cm-pricing-page .cm-price-question-list summary { min-height: 72px; padding-inline: 4px; color: var(--commercial-ink); font-size: 15px; font-weight: 500; }
body.cm-pricing-page .cm-price-question-list summary:focus-visible { border-radius: 8px; outline: 2px solid var(--commercial-teal); outline-offset: 3px; }
body.cm-pricing-page .cm-price-question-list p { font-size: 14px; line-height: 1.7; }
body.cm-pricing-page .cm-price-final { max-width: none; }

/* Contact */
body.cm-contact-page .contact-page { background: #fff; }
body.cm-contact-page .contact-hero { padding-inline: var(--commercial-gutter); }
body.cm-contact-page .contact-hero-inner {
  width: 100%;
  max-width: 1216px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 82px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(520px, 1.08fr);
  gap: clamp(56px, 7vw, 92px);
  align-items: start;
}

body.cm-contact-page .contact-hero-copy { padding-top: 32px; }
body.cm-contact-page .contact-kicker { min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent; }
body.cm-contact-page .contact-kicker::before { display: none; }
body.cm-contact-page .contact-hero h1 { max-width: 620px; margin: 18px 0 22px; font-size: clamp(52px, 5vw, 68px); line-height: .98; }
body.cm-contact-page .contact-hero-copy > p { max-width: 580px; margin-bottom: 0; color: var(--commercial-muted); font-size: 15px; line-height: 1.7; }
body.cm-contact-page .contact-route-grid {
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}

body.cm-contact-page .contact-route {
  min-width: 0;
  min-height: 126px;
  padding: 19px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(16, 18, 15, .14);
  border-radius: 12px !important;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 28px rgba(24, 55, 48, .045);
  backdrop-filter: blur(10px);
}

body.cm-contact-page .contact-route strong {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--commercial-ink);
  font-size: 14px;
  font-weight: 500;
}
body.cm-contact-page .contact-route strong::before {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 999px;
  background: var(--commercial-teal);
  content: "";
}
body.cm-contact-page .contact-route span { color: var(--commercial-muted); font-size: 12px; line-height: 1.55; }

body.cm-contact-page .contact-panel {
  width: 100%;
  align-self: center;
  overflow: hidden;
  border: 1px solid var(--commercial-rule);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(24, 55, 48, .09);
}

body.cm-contact-page .contact-panel-head { padding: 13px 22px 10px; border-bottom-color: var(--commercial-rule); background: #fff; }
body.cm-contact-page .contact-panel-head::after { display: none; }
body.cm-contact-page .contact-panel-eyebrow { margin-bottom: 4px; color: var(--commercial-teal); font-size: 9px; font-weight: 700; }
body.cm-contact-page .contact-panel-head h2 { font-size: 28px; }
body.cm-contact-page .contact-panel-head p { margin-top: 4px; font-size: 12px; line-height: 1.35; }
body.cm-contact-page .contact-trust-row { margin-top: 8px; }
body.cm-contact-page .contact-trust-chip { padding: 4px 7px; background: var(--commercial-paper); font-weight: 500; }
body.cm-contact-page .contact-form { padding: 14px 22px 16px; gap: 8px; }
body.cm-contact-page .contact-form-note { margin: -2px 0 0; color: var(--commercial-muted); font-size: 10px; text-align: right; }
body.cm-contact-page .contact-form-note span,
body.cm-contact-page :is(.dt-field__label, .dt-select-field__label, .dt-field-label) > b[aria-hidden="true"] { color: #b64949; }
body.cm-contact-page :is(.dt-field__label, .dt-select-field__label, .dt-field-label) { color: var(--commercial-muted); font-family: Manrope, sans-serif; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
body.cm-contact-page :is(.dt-field__label, .dt-select-field__label) { display: flex; justify-content: space-between; }
body.cm-contact-page :is(.dt-field__label, .dt-select-field__label, .dt-field-label) > b { color: var(--commercial-muted); font-size: 9px; font-weight: 600; letter-spacing: 0; text-transform: none; }
body.cm-contact-page :is(.dt-field__control, .dt-select-field__control) { border-radius: 9px; background: #fff; }
body.cm-contact-page :is(.dt-field__control, .dt-select-field__control):focus-within { border-color: var(--commercial-teal); box-shadow: 0 0 0 4px rgba(11, 105, 94, .1); }
body.cm-contact-page .contact-field :is(input, select, textarea) { border-radius: 9px !important; background: #fff; }
body.cm-contact-page .dt-field__control input,
body.cm-contact-page .dt-select-field select { min-height: 40px; padding-block: 8px; }
body.cm-contact-page .dt-textarea-field { gap: 5px; }
body.cm-contact-page .dt-textarea-field textarea { min-height: 74px; padding-block: 9px; border-radius: 9px !important; }
body.cm-contact-page .dt-textarea-field textarea:focus { border-color: var(--commercial-teal); box-shadow: 0 0 0 4px rgba(11, 105, 94, .1); }
body.cm-contact-page .dt-field-message { font-size: 10px; }
body.cm-contact-page .contact-protection { min-height: 52px; padding: 8px 11px; border-radius: 9px !important; }
body.cm-contact-page .contact-protection-icon { width: 34px; height: 34px; flex-basis: 34px; }
body.cm-contact-page .contact-protection:has(+ .contact-fallback:not([hidden])) { display: none; }
body.cm-contact-page .contact-fallback { grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; }
body.cm-contact-page .contact-fallback .contact-field-label { margin-bottom: 4px !important; font-size: 9px !important; }
body.cm-contact-page .contact-captcha-box,
body.cm-contact-page .contact-fallback .contact-field input { min-height: 40px; padding: 8px 11px; }
body.cm-contact-page #contact-submit { height: 42px !important; min-height: 42px; border-radius: 8px !important; box-shadow: none; }

body.cm-contact-page .contact-section { padding: 96px var(--commercial-gutter); border-color: var(--commercial-rule); background: var(--commercial-paper); }
body.cm-contact-page .contact-section-inner { width: 100%; max-width: 1216px; margin: 0 auto; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; }
body.cm-contact-page .contact-section h2 { margin: 14px 0 18px; font: 400 clamp(40px, 4vw, 54px)/1.02 "DM Serif Display", Georgia, serif; letter-spacing: -.035em; }
body.cm-contact-page .contact-section p { max-width: 520px; font-size: 14px; }
body.cm-contact-page .contact-info-grid { gap: 0; border: 1px solid var(--commercial-rule); border-radius: 14px; overflow: hidden; }
body.cm-contact-page .contact-info-card { min-height: 150px; padding: 23px; border: 0; border-right: 1px solid var(--commercial-rule); border-radius: 0; background: #fff; }
body.cm-contact-page .contact-info-card:last-child { border-right: 0; }
body.cm-contact-page .contact-info-card strong { font-size: 16px; font-weight: 400; }
body.cm-contact-page .contact-info-card a:focus-visible { border-radius: 4px; outline: 2px solid var(--commercial-teal); outline-offset: 4px; }

@media (max-width: 1040px) {
  body.cm-contact-page .contact-hero-inner { grid-template-columns: 1fr; gap: 46px; }
  body.cm-contact-page .contact-hero-copy { max-width: 780px; padding-top: 0; }
  body.cm-contact-page .contact-panel { max-width: 780px; }
  body.cm-pricing-page .cm-price-plan-grid { grid-template-columns: 1fr; }
  body.cm-pricing-page .cm-price-plan { min-height: 0; }
  body.cm-pricing-page .cm-price-plan-desc { min-height: 0; }
}

@media (max-width: 820px) {
  body.cm-pricing-page .cm-price-ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cm-pricing-page :is(.cm-price-ledger-primary, .cm-price-ledger-row):nth-child(2) { border-right: 0; }
  body.cm-pricing-page :is(.cm-price-ledger-primary, .cm-price-ledger-row):nth-child(-n+2) { border-bottom: 1px solid var(--commercial-rule); }
  body.cm-pricing-page .cm-price-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.cm-pricing-page .cm-price-strip div:nth-child(2) { border-right: 0; }
  body.cm-pricing-page .cm-price-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--commercial-rule); }
  body.cm-pricing-page .cm-price-section-head { align-items: stretch; flex-direction: column; }
  body.cm-pricing-page .cm-price-cycle { width: min(360px, 100%); }
  body.cm-pricing-page .cm-price-cycle button { flex: 1; min-width: 0; }
  body.cm-pricing-page .cm-price-questions { grid-template-columns: 1fr; gap: 46px; }
  body.cm-contact-page .contact-section-inner { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 700px) {
  body.cm-commercial-page { --commercial-content: calc(100vw - 40px); --commercial-gutter: 20px; }
  body.cm-commercial-page :is(.cm-price-hero, .contact-hero) { background-size: auto, 32px 32px, 32px 32px, auto; }
  body.cm-pricing-page .cm-price-hero-inner { min-height: 100svh; padding: 110px 0 54px; }
  body.cm-pricing-page .cm-price-hero h1 { font-size: clamp(44px, 12vw, 56px); }
  body.cm-pricing-page .cm-price-lede { font-size: 15px; }
  body.cm-pricing-page .cm-price-hero-actions { width: 100% !important; flex-direction: column; }
  body.cm-pricing-page .cm-price-hero-actions .dt-button { width: 100%; }
  body.cm-pricing-page .cm-price-ledger { margin-top: 38px; }
  body.cm-pricing-page :is(.cm-price-ledger-primary, .cm-price-ledger-row) { min-height: 92px; padding: 15px; }
  body.cm-pricing-page .cm-price-strip div { min-height: 78px; padding: 14px; }
  body.cm-pricing-page .cm-price-plans-section,
  body.cm-pricing-page .cm-price-questions { padding-block: 80px; }
  body.cm-pricing-page :is(.cm-price-section-head, .cm-price-question-heading) h2 { font-size: 40px; }
  body.cm-pricing-page .cm-price-plan { padding: 24px 21px; }
  body.cm-pricing-page .cm-price-question-list summary { min-height: 68px; font-size: 14px; }
  body.cm-contact-page .contact-hero-inner { padding: 110px 0 58px; gap: 38px; }
  body.cm-contact-page .contact-hero h1 { font-size: clamp(44px, 12vw, 56px); }
  body.cm-contact-page .contact-route-grid { grid-template-columns: 1fr; gap: 10px; }
  body.cm-contact-page .contact-route,
  body.cm-contact-page .contact-route:nth-child(even) { min-height: 106px; padding: 17px 18px; border: 1px solid rgba(16, 18, 15, .14); }
  body.cm-contact-page .contact-row,
  body.cm-contact-page .contact-fallback { grid-template-columns: 1fr; }
  body.cm-contact-page .contact-panel-head,
  body.cm-contact-page .contact-form { padding-inline: 20px; }
  body.cm-contact-page .contact-form-note { text-align: left; }
  body.cm-contact-page .contact-protection { align-items: flex-start; }
  body.cm-contact-page .contact-section { padding: 76px 20px; }
  body.cm-contact-page .contact-info-grid { grid-template-columns: 1fr; }
  body.cm-contact-page .contact-info-card { min-height: 112px; border-right: 0; border-bottom: 1px solid var(--commercial-rule); }
  body.cm-contact-page .contact-info-card:last-child { border-bottom: 0; }
}

html[data-cm-density="compact"] body.cm-pricing-page .cm-price-hero-inner { min-height: 100svh; padding-top: 108px; }
html[data-cm-density="compact"] body.cm-pricing-page .cm-price-plans-section,
html[data-cm-density="compact"] body.cm-pricing-page .cm-price-questions,
html[data-cm-density="compact"] body.cm-contact-page .contact-section { padding-block: 76px; }
html[data-cm-density="compact"] body.cm-contact-page .contact-hero-inner { padding-block: 88px 44px; }
html[data-cm-density="compact"] body.cm-contact-page .contact-form { gap: 12px; }
