/* ============================================================
   Rootling text pages (privacy, support, about). Loaded after
   site.css. Uses the same colours, fonts and header/footer as
   the landing page.

   Page skeleton:
     <section class="page-hero">   chip, <h1>, "last updated" line
     <article class="page-body">   callout, then plain <h2>/<p>/<ul>
       optional .faq cards and a closing .contact-card

   Phone overrides sit right below each block, inside
   @media (max-width: 639px).
   ============================================================ */

/* ---------- Page title ---------- */
.page-hero {
  position: relative;
  padding-top: clamp(24px, 4vw, 56px);
  padding-bottom: clamp(32px, 5vw, 56px);
}

/* Soft sun circle behind the title, echoing the landing hero */
.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -120px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--color-sun-100);
}

.page-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  max-width: calc(760px + 2 * var(--gutter));
}

.page-hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.page-hero__meta {
  color: var(--color-ink-soft);
  font-size: 16px;
}

.page-hero__lede {
  max-width: 44ch;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
}

@media (max-width: 639px) {
  .page-hero::before {
    right: -140px;
    top: -120px;
    width: 280px;
    height: 280px;
  }
  .page-hero__inner {
    gap: 14px;
  }
  .page-hero h1 {
    font-size: 40px;
    letter-spacing: 0;
  }
  .page-hero__meta {
    font-size: 14px;
  }
  .page-hero__lede {
    font-size: 17px;
  }
}

/* ---------- Body text ---------- */
.page-body {
  max-width: calc(760px + 2 * var(--gutter));
  padding-bottom: clamp(64px, 9vw, 100px);
  font-size: 18px;
  line-height: 1.7;
}

.page-body > * + * {
  margin-top: 16px;
}

.page-body h2 {
  margin-top: 56px;
  font-size: 30px;
  line-height: 1.15;
}

.page-body h2 + * {
  margin-top: 12px;
}

.page-body strong {
  font-weight: 700;
}

/* Lists get soft mint dots instead of default bullets */
.page-body ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.page-body li {
  position: relative;
  padding-left: 28px;
}

.page-body li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-mint-500);
}

@media (max-width: 639px) {
  .page-body {
    font-size: 16px;
    line-height: 1.65;
  }
  .page-body h2 {
    margin-top: 44px;
    font-size: 26px;
  }
  .page-body li {
    padding-left: 24px;
  }
  .page-body li::before {
    left: 2px;
    width: 8px;
    height: 8px;
  }
}

/* ---------- Callout (the "short version" box at the top) ---------- */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 26px 28px;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  color: var(--color-ink); /* tint-* classes set the icon colour only */
}

.callout__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--color-warmwhite);
  font-size: 26px;
}

.tint-mint .callout__icon {
  color: var(--ink-mint);
}
.tint-sky .callout__icon {
  color: var(--ink-sky);
}
.tint-sun .callout__icon {
  color: var(--ink-sun);
}

.callout p {
  margin-top: 0;
}

@media (max-width: 639px) {
  .callout {
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border-radius: 20px;
  }
  .callout__icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 21px;
  }
}

/* ---------- FAQ cards (support page) ---------- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--color-warmwhite);
  box-shadow: var(--shadow-sm);
}

.faq__item h3 {
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.25;
}

@media (max-width: 639px) {
  .faq__item {
    padding: 18px 20px;
  }
  .faq__item h3 {
    font-size: 19px;
  }
}

/* ---------- Contact card (closing panel) ---------- */
.page-body .contact-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 56px;
  padding: clamp(36px, 6vw, 56px) clamp(22px, 4vw, 40px);
  border-radius: 32px;
  background: var(--color-sky-100);
  text-align: center;
}

/* Decorative bubble, as on the landing download panel */
.contact-card::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--color-sky-50);
}

.page-body .contact-card > * {
  position: relative;
  margin: 0;
}

.contact-card p {
  max-width: 46ch;
}

.email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin-top: 4px;
  padding: 12px 24px 12px 20px;
  border-radius: var(--radius-full);
  background: var(--color-ink);
  color: var(--color-warmwhite);
  box-shadow: var(--shadow-md);
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.email-btn:hover {
  color: var(--color-warmwhite);
}

.email-btn .icon {
  font-size: 22px;
}

@media (max-width: 639px) {
  .page-body .contact-card {
    margin-top: 44px;
    border-radius: 26px;
  }
  .email-btn {
    font-size: 16px;
  }
}
