/**
 * Candor marketing site — per-page layout & alignment (all 11 pages).
 * Load after site-responsive.css; Features also loads features-page.css last.
 */

/* ── Shared two-column callouts (Paddle, Pricing trusted payments) ── */
.paddle-callout > .row.align-items-center,
.premium-card > .row.align-items-center:has(> .col-lg-8):has(> .col-lg-4) {
  margin: 0 !important;
  display: grid !important;
  align-items: center;
  gap: clamp(28px, 4vw, 48px);
  width: 100%;
}

.paddle-callout > .row.align-items-center > [class*="col-"],
.premium-card > .row.align-items-center:has(> .col-lg-8):has(> .col-lg-4) > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 992px) {
  .paddle-callout > .row.align-items-center,
  .premium-card > .row.align-items-center:has(> .col-lg-8):has(> .col-lg-4) {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  }

  .paddle-callout .col-lg-8,
  .premium-card > .row.align-items-center .col-lg-8 {
    text-align: left;
    justify-self: start;
  }

  .paddle-callout .col-lg-8 .hero-badge,
  .premium-card > .row.align-items-center .col-lg-8 .hero-badge {
    display: inline-block;
    margin-left: 0 !important;
    margin-right: auto !important;
  }

  .paddle-callout .col-lg-8 h2,
  .paddle-callout .col-lg-8 p,
  .premium-card > .row.align-items-center .col-lg-8 h2,
  .premium-card > .row.align-items-center .col-lg-8 h3,
  .premium-card > .row.align-items-center .col-lg-8 p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .paddle-callout .col-lg-4,
  .premium-card > .row.align-items-center .col-lg-4 {
    text-align: center;
    justify-self: center;
    margin-top: 0 !important;
  }
}

@media (max-width: 991px) {
  .paddle-callout > .row.align-items-center,
  .premium-card > .row.align-items-center:has(> .col-lg-8):has(> .col-lg-4) {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .paddle-callout .col-lg-8,
  .paddle-callout .col-lg-4,
  .premium-card > .row.align-items-center .col-lg-8,
  .premium-card > .row.align-items-center .col-lg-4 {
    width: 100%;
    max-width: 720px;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .paddle-callout .col-lg-8 .hero-badge,
  .premium-card > .row.align-items-center .col-lg-8 .hero-badge {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .paddle-callout .col-lg-8 h2,
  .paddle-callout .col-lg-8 p,
  .premium-card > .row.align-items-center .col-lg-8 h2,
  .premium-card > .row.align-items-center .col-lg-8 p {
    text-align: center !important;
    max-width: 640px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .paddle-callout .col-lg-4,
  .premium-card > .row.align-items-center .col-lg-4 {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  .paddle-callout .col-lg-4 > div,
  .premium-card > .row.align-items-center .col-lg-4 > div {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
  }
}

.paddle-callout {
  padding: clamp(36px, 6vw, 60px);
  box-sizing: border-box;
  width: 100%;
}

/* ── Centered marketing heroes ── */
.features-hero,
.pricing-hero {
  text-align: center;
}

.features-hero .container,
.pricing-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.features-hero h1,
.pricing-hero h1 {
  text-align: center;
  width: 100%;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.features-hero > .container > p,
.features-hero p,
.pricing-hero p {
  text-align: center;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.features-hero .d-flex,
.pricing-hero .d-flex {
  justify-content: center;
  width: 100%;
}

.features-hero .hero-visual {
  width: 100%;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-hero .mb-4,
.pricing-hero .badge-pill {
  text-align: center;
}

.pricing-hero .toggle-container {
  margin-left: auto;
  margin-right: auto;
}

/* ── About page: hero & split rows ── */
.about-hero > .container > .row.align-items-center {
  margin: 0 !important;
  display: grid;
  align-items: center;
  gap: clamp(32px, 5vw, 56px);
}

.about-hero > .container > .row.align-items-center > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

@media (min-width: 992px) {
  .about-hero > .container > .row.align-items-center {
    grid-template-columns: 1fr 1fr;
  }

  .about-hero .col-lg-6:first-child {
    text-align: left;
  }

  .about-hero .col-lg-6:first-child h1,
  .about-hero .col-lg-6:first-child h3,
  .about-hero .col-lg-6:first-child p {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .about-hero .col-lg-6:first-child .d-flex {
    justify-content: flex-start;
  }
}

@media (max-width: 991px) {
  .about-hero > .container > .row.align-items-center {
    grid-template-columns: 1fr;
  }

  .about-hero > .container > .row.align-items-center .col-lg-6:last-child {
    order: -1;
  }

  .about-hero .col-lg-6 {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .about-hero .col-lg-6 h1,
  .about-hero .col-lg-6 h3,
  .about-hero .col-lg-6 p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .about-hero .col-lg-6 .d-flex {
    justify-content: center;
    width: 100%;
  }
}

/* About: two-column content blocks */
section .row.align-items-center.g-5 {
  margin: 0 !important;
  display: grid;
  align-items: center;
  gap: clamp(32px, 5vw, 48px);
}

section .row.align-items-center.g-5 > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
}

@media (min-width: 992px) {
  section .row.align-items-center.g-5 {
    grid-template-columns: 1fr 1fr;
  }

  section .row.align-items-center.g-5 .col-lg-6 {
    text-align: left;
  }

  section .row.align-items-center.g-5 .col-lg-6 h2,
  section .row.align-items-center.g-5 .col-lg-6 h3,
  section .row.align-items-center.g-5 .col-lg-6 p,
  section .row.align-items-center.g-5 .col-lg-6 ul {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

@media (max-width: 991px) {
  section .row.align-items-center.g-5 {
    grid-template-columns: 1fr;
  }

  section .row.align-items-center.g-5 .col-lg-6.order-lg-2 {
    order: -1;
  }

  section .row.align-items-center.g-5 .col-lg-6 {
    text-align: center;
  }

  section .row.align-items-center.g-5 .col-lg-6 h2,
  section .row.align-items-center.g-5 .col-lg-6 h3,
  section .row.align-items-center.g-5 .col-lg-6 p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* About: card grid under section headers */
.about-hero ~ section .row.g-4 {
  margin: 0 !important;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.about-hero ~ section .row.g-4 > [class*="col-"] {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* ── Split layouts (Features + any page using split-layout) ── */
.split-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  min-width: 0;
}

.split-text > span,
.split-text > h2,
.split-text > p,
.split-text > ul {
  width: 100%;
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.split-text ul li,
.split-text ul li div {
  text-align: left;
}

@media (max-width: 991px) {
  .split-layout .split-text,
  .split-layout.reverse .split-text {
    align-items: center;
    text-align: center;
  }

  .split-layout .split-text > span,
  .split-layout .split-text > h2,
  .split-layout .split-text > p,
  .split-layout .split-text > ul,
  .split-layout.reverse .split-text > span,
  .split-layout.reverse .split-text > h2,
  .split-layout.reverse .split-text > p {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ── Centered section intros (all pages) ── */
.text-center.mb-5,
.text-center.mt-5,
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.text-center.mb-5 h2,
.text-center.mt-5 h2,
.section-header h2 {
  text-align: center !important;
  width: 100%;
  max-width: 920px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.text-center.mb-5 p,
.text-center.mt-5 p,
.section-header p {
  text-align: center !important;
  width: 100%;
  max-width: 750px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Hero badge: centered by default; callouts override above */
.paddle-callout .hero-badge {
  display: inline-block;
}

/* ── Security & legal policy pages ── */
.security-hero,
section.hero .container {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.security-hero h1,
section.hero h1 {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.security-hero p,
section.hero p {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.policy-card,
.architecture-callout {
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.policy-card h2,
.policy-card h3,
.policy-card p,
.policy-card ul {
  text-align: left;
}

.architecture-callout {
  text-align: left;
}

/* ── Blog, newsletter, press ── */
.page-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.page-title,
.page-subtitle {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ── Grids centered in section ── */
.pricing-grid-cursor,
.pricing-grid,
.pricing-plans-grid {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.feature-deep-list,
.faq-accordion {
  max-width: 920px;
  margin-left: auto !important;
  margin-right: auto !important;
}

.feature-deep-card {
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.faq-trigger,
.faq-content {
  text-align: left;
}

/* ── CTA boxes ── */
.cta-box {
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

.cta-box h2,
.cta-box p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ── Home: comparison & value blocks ── */
.comparison-table,
.faq-list {
  margin-left: auto;
  margin-right: auto;
}
