/* =============================================================
   pages.css
   Shared styles for the standalone content pages:
   How It Works, FAQ, About, Contact.
   Reuses the same tokens as the rest of the site.
   ============================================================= */

/* ---- Page hero band (top of each content page) ------------- */
.page-hero {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 88px 0 72px;
  text-align: center;
}

.page-hero__inner {
  max-width: var(--content-narrow-width);
  margin: 0 auto;
}

.page-hero__title {
  font-size: clamp(38px, 5.2vw, 58px);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin-bottom: 18px;
}

.page-hero__title em {
  font-style: italic;
  font-weight: 400;
}

.page-hero__sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Generic narrow prose column --------------------------- */
.content {
  max-width: 760px;
  margin: 0 auto;
}

.content--wide {
  max-width: var(--content-max-width);
}

.lede {
  font-size: 20px;
  line-height: 1.6;
  color: var(--color-text-primary);
  margin-bottom: 24px;
}

.prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-text-primary);
  margin-bottom: 18px;
}

.prose strong {
  font-weight: 600;
}

.section-head {
  margin-bottom: 40px;
}

.section-head--center {
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  margin-bottom: 14px;
}

.section-intro {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* Alternating background helper */
.section--alt {
  background: var(--color-bg-alt);
}

/* ---- Deep "how it works" numbered steps -------------------- */
.steps-deep {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.step-deep {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 28px;
  align-items: start;
  padding: 32px 0;
  border-top: 1px solid var(--color-border);
}

.step-deep:first-child {
  border-top: none;
}

.step-deep__num {
  font-family: var(--font-headline);
  font-size: 40px;
  line-height: 1;
  color: var(--color-accent);
}

.step-deep__title {
  font-size: 23px;
  margin-bottom: 8px;
}

.step-deep__desc {
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* ---- Feature / value cards --------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.feature-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
}

.feature-card__icon {
  font-size: 26px;
  display: block;
  margin-bottom: 16px;
}

.feature-card__title {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

/* ---- Sage callout box -------------------------------------- */
.callout {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
  padding: 24px 28px;
  max-width: 760px;
  margin: 0 auto;
}

.callout__title {
  font-size: 18px;
  margin-bottom: 8px;
}

.callout p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0;
}

/* ---- FAQ accordion (native <details>) ---------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.35;
  color: var(--color-text-primary);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 22px;
  font-family: var(--font-body);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-accent);
  transition: transform var(--transition-base);
}

.faq__item[open] summary::after {
  content: "–";
}

.faq__answer {
  padding: 0 44px 26px 0;
}

.faq__answer p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
}

.faq__answer p:last-child {
  margin-bottom: 0;
}

.faq__answer a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Contact cards ----------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.contact-card {
  background: var(--color-card-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 30px 28px;
  box-shadow: var(--shadow-card);
}

.contact-card__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.contact-card__title {
  font-size: 20px;
  margin-bottom: 8px;
}

.contact-card__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary);
  margin-bottom: 14px;
}

.contact-card__link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card__link:hover {
  color: var(--color-accent-hover);
}

/* ---- Responsive -------------------------------------------- */
@media (max-width: 768px) {
  .page-hero {
    padding: 56px 0 48px;
  }

  .feature-grid,
  .feature-grid--two,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .step-deep {
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 26px 0;
  }

  .step-deep__num {
    font-size: 32px;
  }

  .faq__item summary {
    font-size: 18px;
  }
}
