/* The new look for pages whose content still uses the older theme: terms, privacy, contact,
   partners, MCP, help center and the signed-in plan pages. Loaded last, by
   views/partials/site-chrome-head.ejs, so it repaints the theme's hero, type and buttons
   without touching each page's layout. It goes away as those pages are rebuilt. */

/* Type: Inter for text, Fraunces for the main headings, as on the redesigned pages. */
body:not(.app-billing-page),
body:not(.app-billing-page) :is(h3, h4, h5, h6, input, textarea, select, button) {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:is(.hero-area, .mcp-hero, .app-billing-page) h1,
main h2:not(.lg-chrome *):not(.doc-content *),
.sasup-section-heading-5-title,
.sasup-hero-content-main {
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.012em !important;
}

/* Hero: the same simple hero as the blog. Night background with the two glows on the right,
   a label pill, the title on the blog's scale, text aligned left with the header, and the
   4px gradient line along the bottom. */
.hero-area.hero-space-1,
.mcp-hero {
  position: relative;
  padding: 56px 0 84px !important;
  background:
    radial-gradient(60% 90% at 88% 78%, rgba(31, 91, 255, 0.42), transparent 70%),
    radial-gradient(34% 60% at 100% 22%, rgba(255, 83, 100, 0.24), transparent 70%),
    #0b1026 !important;
  text-align: left;
}

.hero-area.hero-space-1::after,
.mcp-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 4px;
  background: linear-gradient(90deg, #1f5bff, #ff5364);
}

/* Content lines up with the header: the same width and gutter as the new pages. */
body:not(.app-billing-page) main .container,
body:not(.app-billing-page) .hero-area > .container,
body:not(.app-billing-page) .mcp-hero > .container {
  width: min(1336px, 100% - 24px);
  max-width: none;
  padding-inline: 12px;
}

:is(.hero-area, .mcp-hero) :is(.text-center, .sasup-hero-content, .mcp-hero-content) {
  max-width: none;
  margin-inline: 0;
  text-align: left !important;
}

:is(.hero-area, .mcp-hero) :is(h1, .sasup-hero-content-main) {
  max-width: 1100px;
  margin: 20px 0 0 !important;
  color: #fff !important;
  font-size: clamp(48px, 7vw, 96px) !important;
  line-height: 1.04 !important;
}

/* Long product headlines sit one step down so they hold to two or three lines. */
.mcp-hero :is(h1, .sasup-hero-content-main) {
  font-size: clamp(40px, 5.2vw, 72px) !important;
  line-height: 1.08 !important;
}

:is(.hero-area, .mcp-hero) :is(p, .mcp-hero-copy, .hero-text) {
  max-width: 720px;
  margin: 20px 0 0;
  color: #aeb7d6;
  font-size: 20px;
  line-height: 1.6;
}

/* The small line above the title becomes the label pill of the new pages. */
:is(.hero-area, .mcp-hero) :is(.sasup-hero-content-sub, .mcp-kicker) {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 0;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #161d42;
  color: #aeb7d6;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

:is(.hero-area, .mcp-hero) :is(.sasup-hero-content-sub, .mcp-kicker)::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5364;
}

.mcp-hero :is(.mcp-hero-actions, .mcp-final-actions),
.mcp-hero .mcp-trust-list {
  justify-content: flex-start;
}

.mcp-hero .mcp-hero-actions {
  margin-top: 28px;
}

.mcp-hero .mcp-trust-list {
  margin-top: 20px;
  padding-left: 0;
}

.mcp-hero .mcp-demo-frame {
  margin-top: 48px;
}

body.app-billing-page {
  background:
    radial-gradient(64% 46% at 50% 108%, rgba(31, 91, 255, 0.7) 0%, rgba(31, 91, 255, 0) 72%),
    radial-gradient(120% 58% at 50% 122%, rgba(255, 83, 100, 0.5) 0%, rgba(255, 83, 100, 0) 70%),
    #0b1026 !important;
  background-attachment: fixed !important;
}

.hero-area .hero-shapes,
.hero-area .hero-shape {
  display: none !important;
}

.mcp-trust-list,
.mcp-trust-list li {
  color: #aeb7d6;
}

/* Buttons: the site's pills. Primary is cobalt; on the night hero it is white. */
.sasup-theme-btn,
.sasup-gray-border-btn,
.mcp-light-button,
main .btn:not(.btn-link) {
  border-radius: 999px !important;
  box-shadow: none !important;
}

.sasup-theme-btn,
main .btn-primary {
  border-color: #1f5bff !important;
  background: #1f5bff !important;
  background-image: none !important;
  color: #fff !important;
}

.sasup-theme-btn:is(:hover, :focus-visible),
main .btn-primary:is(:hover, :focus-visible) {
  border-color: #1848d6 !important;
  background: #1848d6 !important;
  color: #fff !important;
}

.sasup-theme-btn::before,
.sasup-theme-btn::after {
  display: none !important;
}

:is(.hero-area, .mcp-hero, .mcp-final-cta) .sasup-theme-btn {
  border-color: #fff !important;
  background: #fff !important;
  color: #0b1026 !important;
}

:is(.hero-area, .mcp-hero, .mcp-final-cta) .sasup-theme-btn:is(:hover, :focus-visible) {
  border-color: #e6e9f5 !important;
  background: #e6e9f5 !important;
  color: #0b1026 !important;
}

:is(.hero-area, .mcp-hero, .mcp-final-cta) .sasup-theme-btn span {
  color: inherit !important;
}

/* Closing band of the MCP and partner pages. */
.mcp-final-cta {
  background: #0b1026 !important;
  background-image: none !important;
}

/* Accents: links and small highlights move from the theme's blue and pink to cobalt. */
main a:not([class]):not(.lg-chrome *) {
  color: #1f5bff;
}

.accordion-button:not(.collapsed) {
  background: #f2f4fb;
  color: #0b1026;
  box-shadow: none;
}

/* Signed-in plan pages: the wordmark and back link sit on the night background. */
.app-billing-page .back-link {
  color: #aeb7d6;
}

.app-billing-page .back-link:hover {
  color: #fff;
}

/* Signed-in plan cards (views/partials/billing/plan-card.ejs) in the shape of the public
   pricing page: white cards with large corners, the popular plan on night, pill actions. */
.app-billing-page .single-price {
  height: calc(100% - 30px);
  border: 1px solid #e6e9f5;
  border-radius: 28px;
  background: #fff;
  box-shadow: none;
  text-align: left !important;
}

.app-billing-page .single-price-wrap {
  padding: 36px 32px 32px;
}

.app-billing-page .single-price.popular-pricing {
  border-color: transparent;
  background: #0b1026;
  color: #fff;
}

.app-billing-page .popular-badge {
  position: absolute;
  top: 34px;
  right: 28px;
  left: auto;
  transform: none;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #1f5bff, #ff5364);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.app-billing-page .single-pricing-title {
  margin: 0;
  color: inherit;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.app-billing-page .single-pricing-info {
  margin: 8px 0 20px;
  color: #5b6382;
  font-size: 15px;
}

.app-billing-page .single-pricing-amount {
  margin: 0;
  color: inherit;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: 60px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.app-billing-page .single-pricing-label {
  display: block;
  margin-top: 6px;
  color: #5b6382;
  font-size: 14px;
}

.app-billing-page .pricing-features {
  padding-top: 20px;
  border-top: 1px solid #e6e9f5;
}

.app-billing-page .pricing-features li {
  color: inherit;
  font-size: 15px;
  line-height: 24px;
}

.app-billing-page .pricing-features .text-success {
  color: #1f5bff !important;
}

.app-billing-page .popular-pricing :is(.single-pricing-info, .single-pricing-label, .text-muted) {
  color: #aeb7d6 !important;
}

.app-billing-page .popular-pricing .pricing-features {
  border-top-color: rgba(174, 183, 214, 0.22);
}

.app-billing-page .popular-pricing .pricing-features .text-success {
  color: #ff5364 !important;
}

.app-billing-page .single-price .app-action-button {
  min-height: 52px;
  margin-top: auto;
  border-radius: 999px !important;
  font-size: 15px;
  font-weight: 600;
}

.app-billing-page .popular-pricing .app-action-button:not(:disabled) {
  border-color: #fff !important;
  background: #fff !important;
  color: #0b1026 !important;
}

.app-billing-page .popular-pricing .app-action-button:not(:disabled):hover {
  border-color: #e6e9f5 !important;
  background: #e6e9f5 !important;
}

.app-billing-page .faq-area {
  border-radius: 28px;
  box-shadow: none !important;
}

/* Help center: article headings in the same faces as the rest of the site. */
.help-content h1,
.documentation-content h1,
.doc-content h1 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-weight: 900 !important;
  letter-spacing: -0.012em;
}

.help-content :is(h2, h3, h4),
.documentation-content :is(h2, h3, h4),
.doc-content :is(h2, h3, h4) {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

/* Body text on the older content pages, on the same scale as the blog articles and the new
   pages: text 17 to 18px, section headings in Fraunces, one readable column for legal text. */
:is(.terms-content, .privacy-content, .terms-area .col-xl-12, .privacy-area .col-xl-12) {
  max-width: 820px;
}

:is(.terms-section, .privacy-section) :is(p, li) {
  color: #2a3353;
  font-size: 18px !important;
  line-height: 1.7 !important;
}

:is(.terms-section, .privacy-section) h3 {
  margin: 0 0 14px;
  color: #0b1026;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
}

:is(.terms-section, .privacy-section) h4 {
  margin: 22px 0 8px;
  color: #0b1026;
  font-size: 20px !important;
  font-weight: 700 !important;
}

/* The hero already names the page; the repeated title above the text is dropped, the date stays. */
:is(.terms-header, .privacy-header) h2 {
  display: none;
}

:is(.terms-header, .privacy-header) p {
  color: #5b6382;
  font-size: 15px;
}

/* Help center articles */
.doc-content :is(p, li) {
  font-size: 17px !important;
  line-height: 1.7 !important;
}

.doc-content .section-title {
  font-size: 26px !important;
}

/* Partner and MCP cards */
.mcp-capability-item p,
.mcp-prompt-card p {
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* Contact page: soft cards and white fields, as on the sign-in pages. */
.single-contact-left-item {
  border: 1px solid #e6e9f5 !important;
  border-radius: 20px !important;
  background: #f2f4fb !important;
  box-shadow: none !important;
}

.post-input :is(input, textarea, select) {
  border: 1px solid #d5daec !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #0b1026 !important;
  font-size: 16px !important;
}

.post-input :is(input, textarea, select):focus {
  border-color: #1f5bff !important;
  box-shadow: 0 0 0 3px rgba(31, 91, 255, 0.16) !important;
}

/* Section heads on the partner and MCP pages follow the new pages: label pill, heading on the
   site scale, aligned left with the header. */
main .text-center:has(> .sasup-subtitle-2 + .sasup-section-title) {
  flex: 0 0 100%;
  max-width: 100%;
  text-align: left !important;
}

main .row:has(> .text-center > .sasup-subtitle-2 + .sasup-section-title) {
  justify-content: flex-start !important;
}

main .sasup-subtitle-2 {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #f2f4fb;
  color: #5b6382;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
}

main .sasup-subtitle-2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5364;
}

main .sasup-section-title {
  font-size: clamp(40px, 5.4vw, 72px) !important;
  line-height: 1.08 !important;
}

main .mcp-section-lead {
  max-width: 720px;
  margin-inline: 0 !important;
  color: #5b6382;
  font-size: 18px !important;
  line-height: 1.6 !important;
}

/* Cards on the partner and MCP pages: the soft cloud cards of the new pages. */
.mcp-prompt-card,
.mcp-capability-item {
  border: 0 !important;
  border-radius: 28px !important;
  background: #f2f4fb !important;
  box-shadow: none !important;
}

.mcp-prompt-card,
.mcp-capability-item {
  height: 100%;
  padding: 32px !important;
}

.mcp-capability-icon {
  border-radius: 12px !important;
  background: #fff !important;
}

.mcp-prompt-card h3,
.mcp-capability-item h3 {
  color: #0b1026;
  font-family: "Fraunces", Georgia, "Times New Roman", serif !important;
  font-size: 24px !important;
  font-weight: 900 !important;
  letter-spacing: -0.01em;
}
