/* ==========================================================================
   Content pages (About, and the other rebuilt static pages to follow)

   Plain CSS, not Tailwind: Tailwind only loads on WooCommerce pages, and these
   sit in the same zone as the header, footer and home page. Brand values come
   from :root in global.css.

   Deliberately quiet: one type scale, white / pale-blue alternating sections,
   no animation. Selectors run one class heavier than needed (.fpx-page
   a.fpx-page__btn) so plugin stylesheets with class+tag rules can't outrank
   them.
   ========================================================================== */

.fpx-page {
  --panel: #eef6f8;
  --ink: #12343a;
  --muted: #4d6469;
  --line: rgba(29, 134, 145, 0.16);
  --lift-sm: 0 1px 2px rgba(18, 52, 58, 0.04), 0 3px 12px rgba(18, 52, 58, 0.06);
  --lift: 0 1px 2px rgba(18, 52, 58, 0.04), 0 6px 20px rgba(18, 52, 58, 0.07);
  --lift-hover: 0 2px 4px rgba(18, 52, 58, 0.05), 0 16px 34px rgba(18, 52, 58, 0.11);

  font-family: "Inter", sans-serif;
  color: var(--ink);
  background: #fff;
}

/* Same as .fpx-home .fpx-sr-only in home.css, which only loads on the
   front page. */
.fpx-page .fpx-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Layout ---------------------------------------------------------- */

.fpx-page .fpx-page__section {
  padding: 56px 0;
}

.fpx-page .fpx-page__section--panel {
  background: var(--panel);
}

.fpx-page .fpx-page__container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.fpx-page .fpx-page__split {
  display: grid;
  gap: 40px;
  align-items: center;
}

@media (min-width: 900px) {
  .fpx-page .fpx-page__section {
    padding: 88px 0;
  }

  .fpx-page .fpx-page__split {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 72px;
  }

  /* Media on the left, text on the right. Visual order only — the text
     stays first in the source so it's read before the image. */
  .fpx-page .fpx-page__split--flip {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  }

  .fpx-page .fpx-page__split--flip .fpx-page__media {
    order: -1;
  }
}

.fpx-page .fpx-page__body {
  max-width: 640px;
}

/* ---- Type ------------------------------------------------------------ */

/* primary-dark, not primary: #1d8691 is 4.31:1 on white, under AA for
   small text; #166a73 clears it on white and on the panel. */
.fpx-page .fpx-page__eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.fpx-page h1.fpx-page__title,
.fpx-page h2.fpx-page__heading {
  margin: 0 0 20px;
  font-family: "Glory", sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text);
  text-wrap: balance;
}

.fpx-page h1.fpx-page__title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
}

.fpx-page h2.fpx-page__heading {
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.22;
}

.fpx-page p.fpx-page__text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.fpx-page p.fpx-page__text:last-child {
  margin-bottom: 0;
}

/* A short line under the h1, e.g. the founder's name. */
.fpx-page p.fpx-page__lede {
  margin: -8px 0 20px;
  font-family: "Glory", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-primary-dark);
}

/* ---- Links ----------------------------------------------------------- */

.fpx-page .fpx-page__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.fpx-page a.fpx-page__link {
  font-weight: 600;
  color: var(--color-primary-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.fpx-page a.fpx-page__link:hover {
  color: var(--color-text);
}

/* ---- Media ----------------------------------------------------------- */

.fpx-page .fpx-page__media {
  display: flex;
  justify-content: center;
}

.fpx-page .fpx-page__media img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* The bottle PNG is transparent: sit it on a soft panel so it doesn't
   float in white space. */
.fpx-page .fpx-page__media--product {
  padding: 32px;
  border-radius: 16px;
  background: var(--panel);
}

.fpx-page .fpx-page__media--product img {
  width: auto;
  max-height: 420px;
}

/* A product photo with its own background (About page bottle): shown as a
   rounded photo, not inside the padded panel. */
.fpx-page .fpx-page__media--photo {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(15, 42, 48, 0.05);
}

.fpx-page .fpx-page__media--photo {
  align-self: center;
}

/* Fills the frame edge to edge: cropped from the centre, never letterboxed. */
.fpx-page .fpx-page__media--photo img {
  display: block;
  width: 100%;
  max-width: none;
  max-height: none;
  height: auto;
  aspect-ratio: 14 / 15;
  object-fit: cover;
  object-position: center;
}

/* The scanned letter, shown as a sheet of paper. */
.fpx-page a.fpx-page__document {
  display: block;
  width: 100%;
  max-width: 420px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--lift);
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.fpx-page a.fpx-page__document:hover {
  box-shadow: var(--lift-hover);
  transform: translateY(-2px);
}

.fpx-page a.fpx-page__document img {
  width: 100%;
  border-radius: 2px;
}

/* A person's photo: rounded, raised, capped so it doesn't tower over the
   text beside it. */
.fpx-page .fpx-page__portrait {
  width: 100%;
  max-width: 440px;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--lift);
}

.fpx-page .fpx-page__portrait img {
  width: 100%;
}

/* ---- Facts list (awards, milestones) --------------------------------- */

.fpx-page .fpx-page__facts {
  display: grid;
  gap: 16px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .fpx-page .fpx-page__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.fpx-page .fpx-page__fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.fpx-page .fpx-page__fact-year {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
}

.fpx-page .fpx-page__fact-title {
  font-family: "Glory", sans-serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
}

.fpx-page .fpx-page__fact-by {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---- Quote ----------------------------------------------------------- */

.fpx-page .fpx-page__quote {
  max-width: 760px;
  margin: 0 auto;
  padding-left: 28px;
  border-left: 3px solid var(--brand-deep);
}

.fpx-page .fpx-page__quote blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.fpx-page .fpx-page__quote blockquote p {
  margin: 0;
  font-family: "Glory", sans-serif;
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
}

.fpx-page .fpx-page__quote figcaption {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

/* ---- Page intro (pages whose first section is a list) ---------------- */

.fpx-page .fpx-page__intro {
  max-width: 720px;
  margin-bottom: 48px;
}

/* Intro that is its own section (the next section carries the content). */
.fpx-page .fpx-page__intro--flush {
  margin-bottom: 0;
}

/* ---- Scanned documents (case reports) -------------------------------- */

.fpx-page .fpx-page__doc-head {
  max-width: 820px;
  margin: 0 auto 32px;
}

.fpx-page .fpx-page__doc-head h2.fpx-page__heading {
  margin-bottom: 8px;
}

.fpx-page p.fpx-page__meta {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
}

.fpx-page p.fpx-page__note {
  margin: 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand-deep);
  border-radius: 0 8px 8px 0;
  background: #fff;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

.fpx-page .fpx-page__sheets {
  display: grid;
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.fpx-page a.fpx-page__document--sheet {
  max-width: none;
}

/* ---- People (board and advisory pages) ------------------------------- */

.fpx-page .fpx-people {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fpx-page .fpx-person {
  display: grid;
  gap: 20px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.fpx-page .fpx-person:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .fpx-page .fpx-person {
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 40px;
    padding: 44px 0;
  }
}

/* 4:5 frame over the 270px square source photos: crops the stretched
   side bands several of them have, and reads as a portrait. */
.fpx-page .fpx-person__photo {
  width: 140px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 12px;
  background: var(--panel);
}

@media (min-width: 700px) {
  .fpx-page .fpx-person__photo {
    width: 180px;
  }
}

.fpx-page .fpx-person__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.fpx-page .fpx-person__body {
  max-width: 760px;
}

.fpx-page h2.fpx-person__name {
  margin: 0 0 6px;
  font-family: "Glory", sans-serif;
  font-size: clamp(21px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.fpx-page p.fpx-person__role {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-primary-dark);
}

.fpx-page p.fpx-person__text {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

.fpx-page p.fpx-person__text:last-child {
  margin-bottom: 0;
}

/* ---- Link cards (e.g. "Meet the rest of the team") ------------------- */

.fpx-page .fpx-page__cards {
  display: grid;
  gap: 12px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 760px) {
  .fpx-page .fpx-page__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}

.fpx-page a.fpx-page__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-family: "Glory", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-text);
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.fpx-page a.fpx-page__card svg {
  flex-shrink: 0;
  color: var(--color-primary-dark);
  transition: transform 0.18s ease;
}

.fpx-page a.fpx-page__card:hover {
  border-color: var(--brand-deep);
  box-shadow: var(--lift);
  color: var(--color-text);
}

.fpx-page a.fpx-page__card:hover svg {
  transform: translateX(3px);
}

.fpx-page a.fpx-page__card:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

/* ---- Boxed pages (How To Guide, Return/Refund Policy) ----------------
   Long text reads on plain white: the page sits on the panel tint and each
   text section is a white card (.fpx-page__box). The sections stack as a
   column of cards instead of alternating bands; the shared CTA stays white. */

.fpx-page.fpx-page--boxed {
  background: var(--panel);
}

.fpx-page--boxed .fpx-page__section {
  padding: 0 0 24px;
  background: transparent;
}

.fpx-page--boxed .fpx-page__section:first-child {
  padding: 56px 0 32px;
}

.fpx-page--boxed .fpx-page__cta {
  margin-top: 40px;
  padding: 56px 0;
  background: #fff;
}

@media (min-width: 900px) {
  .fpx-page--boxed .fpx-page__section:first-child {
    padding: 88px 0 40px;
  }

  .fpx-page--boxed .fpx-page__cta {
    margin-top: 64px;
    padding: 88px 0;
  }
}

.fpx-page .fpx-page__box {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--lift-sm);
}

@media (min-width: 600px) {
  .fpx-page .fpx-page__box {
    padding: 40px;
  }
}

/* Panel-tinted pieces sit on white now, and white ones on the panel. */
.fpx-page.fpx-page--boxed .fpx-page__glance li,
.fpx-page.fpx-page--boxed .fpx-guide__card {
  background: #fff;
}

.fpx-page .fpx-page__box .fpx-page__address-card {
  background: var(--panel);
}

.fpx-page .fpx-page__box .fpx-guide__contact {
  border: 1px solid var(--line);
  background: var(--panel);
}

/* ---- Publications list (Peer Review) --------------------------------- */

.fpx-page .fpx-studies {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fpx-page .fpx-study {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.fpx-page .fpx-study:last-child {
  padding-bottom: 0;
}

.fpx-page h3.fpx-study__title {
  margin: 0 0 10px;
  font-family: "Glory", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}

.fpx-page p.fpx-study__journal {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
}

.fpx-page p.fpx-study__journal cite {
  font-style: italic;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.fpx-page p.fpx-study__journal span {
  color: var(--muted);
}

.fpx-page p.fpx-study__authors {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.fpx-page a.fpx-study__link {
  font-size: 15px;
}

/* ---- Long-form text sections ----------------------------------------- */

/* A reading-width column for sections that are mostly text. */
.fpx-page .fpx-page__narrow {
  max-width: 800px;
}

.fpx-page h2.fpx-page__subheading,
.fpx-page h3.fpx-page__subheading {
  margin: 36px 0 14px;
  font-family: "Glory", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.fpx-page h2.fpx-page__heading--spaced {
  margin-top: 48px;
}

.fpx-page p.fpx-page__text strong,
.fpx-page .fpx-page__checklist strong {
  font-weight: 600;
  color: var(--ink);
}

/* Bulleted steps with a teal check instead of a bullet. */
.fpx-page .fpx-page__checklist {
  display: grid;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.fpx-page .fpx-page__checklist li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.fpx-page .fpx-page__checklist li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-primary-light)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23166a73' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

/* Legal small print (FDA disclaimer). */
.fpx-page p.fpx-page__fine {
  margin: 28px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-style: italic;
  line-height: 1.6;
  color: var(--muted);
}

.fpx-page p.fpx-page__signoff {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.fpx-page p.fpx-page__signoff span {
  margin-top: 8px;
}

.fpx-page p.fpx-page__signoff strong {
  font-family: "Glory", sans-serif;
  font-weight: 600;
  color: var(--color-text);
}

/* ---- Key facts row (e.g. "30 days / Final sale / $7.95") ------------- */

.fpx-page .fpx-page__glance {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 620px) {
  .fpx-page .fpx-page__glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
}

.fpx-page .fpx-page__glance li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.fpx-page .fpx-page__glance strong {
  font-family: "Glory", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-dark);
}

.fpx-page .fpx-page__glance span {
  font-size: 15px;
  line-height: 1.45;
  color: var(--muted);
}

/* ---- Numbered steps -------------------------------------------------- */

.fpx-page .fpx-page__steps {
  display: grid;
  gap: 20px;
  margin: 8px 0 32px;
  padding: 0;
  list-style: none;
  counter-reset: fpx-step;
}

.fpx-page .fpx-page__steps li {
  position: relative;
  padding-left: 52px;
  counter-increment: fpx-step;
}

.fpx-page .fpx-page__steps li::before {
  content: counter(fpx-step);
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-primary-dark);
  font-family: "Glory", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.fpx-page p.fpx-page__step-title {
  margin: 4px 0 4px;
  font-family: "Glory", sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.fpx-page p.fpx-page__step-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

/* ---- Address card ---------------------------------------------------- */

.fpx-page .fpx-page__address-card {
  display: grid;
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

@media (min-width: 620px) {
  .fpx-page .fpx-page__address-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fpx-page p.fpx-page__address-label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.fpx-page .fpx-page__address {
  margin: 0;
  font-size: 16px;
  font-style: normal;
  line-height: 1.7;
  color: var(--ink);
}

/* ---- FAQ accordion (native <details>, no JS) ------------------------- */

/* Each group is a white card on the panel background, so long answers
   read on plain white. */
.fpx-page .fpx-faq__group {
  padding: 8px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--lift-sm);
}

.fpx-page .fpx-faq__group + .fpx-faq__group {
  margin-top: 24px;
}

.fpx-page h2.fpx-faq__group-title {
  margin: 0;
  padding: 20px 4px 16px;
  border-bottom: 1px solid var(--line);
  font-family: "Glory", sans-serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.fpx-page .fpx-faq__item + .fpx-faq__item {
  border-top: 1px solid var(--line);
}

@media (max-width: 599px) {
  .fpx-page .fpx-faq__group {
    padding: 4px 18px;
  }

  .fpx-page .fpx-faq__answer {
    padding-right: 4px;
  }
}

.fpx-page .fpx-faq__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 48px;
  padding: 18px 4px;
  font-family: "Glory", sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-text);
  list-style: none;
  cursor: pointer;
}

/* Hide the default disclosure triangle (Safari still uses the pseudo). */
.fpx-page .fpx-faq__question::-webkit-details-marker {
  display: none;
}

.fpx-page .fpx-faq__question:hover {
  color: var(--color-primary-dark);
}

.fpx-page .fpx-faq__question:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.fpx-page .fpx-faq__icon {
  flex-shrink: 0;
  color: var(--color-primary-dark);
  transition: transform 0.2s ease;
}

.fpx-page .fpx-faq__item[open] .fpx-faq__icon {
  transform: rotate(180deg);
}

.fpx-page .fpx-faq__answer {
  padding: 0 40px 22px 4px;
}

.fpx-page .fpx-faq__answer p {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

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

@media (prefers-reduced-motion: reduce) {
  .fpx-page .fpx-faq__icon {
    transition: none;
  }
}

/* ---- Contact page ---------------------------------------------------- */

.fpx-page .fpx-contact-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

@media (min-width: 900px) {
  .fpx-page .fpx-contact-layout {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 32px;
  }
}

.fpx-page .fpx-contact-layout__form,
.fpx-page .fpx-contact-layout__info {
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--lift-sm);
}

@media (min-width: 600px) {
  .fpx-page .fpx-contact-layout__form {
    padding: 36px;
  }
}

.fpx-page h2.fpx-contact-layout__title {
  margin: 0 0 20px;
  font-family: "Glory", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.fpx-page .fpx-contact-layout__info {
  display: grid;
  gap: 24px;
}

.fpx-page .fpx-contact-info + .fpx-contact-info {
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.fpx-page .fpx-contact-info__phones {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 16px;
  line-height: 1.6;
}

.fpx-page .fpx-contact-info__phones span {
  margin-left: 8px;
  font-size: 14px;
  color: var(--muted);
}

.fpx-page a.fpx-contact-info__map {
  display: inline-block;
  margin-top: 10px;
  font-size: 15px;
}

/* ---- Contact form ----------------------------------------------------
   Field selectors carry four classes so they outrank generic plugin input
   rules such as input:not([type=button]):not([type=submit]) (0,3,1). */

.fpx-page .fpx-contact__form {
  display: grid;
  gap: 18px;
}

.fpx-page .fpx-contact__row {
  display: grid;
  gap: 18px;
}

@media (min-width: 600px) {
  .fpx-page .fpx-contact__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fpx-page .fpx-contact__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fpx-page .fpx-contact .fpx-contact__field label {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.fpx-page .fpx-contact .fpx-contact__field input.fpx-contact__input,
.fpx-page .fpx-contact .fpx-contact__field textarea.fpx-contact__input {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #c5d6da;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  font-family: "Inter", sans-serif;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  line-height: 1.5;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fpx-page .fpx-contact .fpx-contact__field textarea.fpx-contact__input {
  min-height: 150px;
  resize: vertical;
}

.fpx-page .fpx-contact .fpx-contact__field input.fpx-contact__input:focus,
.fpx-page .fpx-contact .fpx-contact__field textarea.fpx-contact__input:focus {
  border-color: var(--brand-deep);
  outline: none;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(20, 141, 159, 0.18);
}

.fpx-page .fpx-contact .fpx-contact__field input.fpx-contact__input[aria-invalid="true"],
.fpx-page .fpx-contact .fpx-contact__field textarea.fpx-contact__input[aria-invalid="true"] {
  border-color: #b3261e;
}

.fpx-page .fpx-contact p.fpx-contact__error {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #b3261e;
}

/* Visually and physically hidden, but not display:none — some bots skip
   fields they can tell are hidden that way. */
.fpx-page .fpx-contact .fpx-contact__trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fpx-page .fpx-contact .fpx-contact__status {
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 15px;
  line-height: 1.55;
}

.fpx-page .fpx-contact .fpx-contact__status[hidden] {
  display: none;
}

.fpx-page .fpx-contact .fpx-contact__status--error {
  border: 1px solid rgba(179, 38, 30, 0.25);
  background: #fdf1f0;
  color: #8c1d18;
}

.fpx-page .fpx-contact .fpx-contact__status--ok {
  border: 1px solid rgba(22, 106, 115, 0.25);
  background: var(--color-primary-light);
  color: var(--ink);
  font-size: 16px;
}

.fpx-page .fpx-contact .fpx-contact__status--ok:focus {
  outline: none;
}

/* Same look as the page CTA button (brand gradient, pill). */
.fpx-page .fpx-contact button.fpx-contact__submit {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  min-height: 48px;
  margin: 4px 0 0;
  padding: 15px 32px;
  border: 0;
  border-radius: 50px;
  background-color: transparent;
  background-image: var(--brand-grad);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  color: var(--brand-ink);
  text-transform: none;
  cursor: pointer;
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.fpx-page .fpx-contact button.fpx-contact__submit:hover {
  filter: brightness(1.06);
  box-shadow: var(--lift);
  color: var(--brand-ink);
}

.fpx-page .fpx-contact button.fpx-contact__submit:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

.fpx-page .fpx-contact button.fpx-contact__submit:disabled {
  cursor: progress;
  opacity: 0.75;
}

/* ---- How to guide ---------------------------------------------------- */

.fpx-page .fpx-guide__glance {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 860px) {
  .fpx-page .fpx-guide__glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}

.fpx-page .fpx-guide__card {
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--brand-deep);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--lift);
}

.fpx-page p.fpx-guide__card-label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.fpx-page p.fpx-guide__card-title {
  margin: 0 0 10px;
  font-family: "Glory", sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
}

.fpx-page p.fpx-guide__card-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
}

.fpx-page .fpx-guide__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.fpx-page .fpx-guide__chips li {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--color-primary-light);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.fpx-page .fpx-guide__examples {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.fpx-page .fpx-guide__example {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.fpx-page p.fpx-guide__example-title {
  margin: 0 0 4px;
  font-family: "Glory", sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: var(--color-text);
}

.fpx-page p.fpx-guide__example-text {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}

.fpx-page .fpx-guide__days {
  display: grid;
  gap: 16px;
}

@media (min-width: 600px) {
  .fpx-page .fpx-guide__days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.fpx-page p.fpx-guide__day {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.fpx-page .fpx-guide__schedule {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.fpx-page .fpx-guide__schedule > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 16px;
}

.fpx-page .fpx-guide__schedule > div + div {
  border-top: 1px solid var(--line);
}

.fpx-page .fpx-guide__schedule dt {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.fpx-page .fpx-guide__schedule dd {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.fpx-page .fpx-guide__contact {
  display: grid;
  gap: 8px;
  margin: 0 0 20px;
  padding: 18px 20px;
  border-radius: 12px;
  background: #fff;
  list-style: none;
}

.fpx-page .fpx-guide__contact li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 16px;
}

.fpx-page .fpx-guide__contact span {
  min-width: 56px;
  font-weight: 600;
  color: var(--ink);
}

/* ---- Closing CTA ----------------------------------------------------- */

.fpx-page .fpx-page__cta {
  text-align: center;
  border-top: 1px solid var(--line);
}

.fpx-page .fpx-page__cta p.fpx-page__text {
  margin-bottom: 28px;
}

/* Same button as the home page: brand gradient, 50px radius. */
.fpx-page a.fpx-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 168px;
  min-height: 48px;
  padding: 15px 32px;
  border-radius: 50px;
  background-color: transparent;
  background-image: var(--brand-grad);
  color: var(--brand-ink);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: filter 0.18s ease, box-shadow 0.18s ease;
}

.fpx-page a.fpx-page__btn:hover {
  color: var(--brand-ink);
  filter: brightness(1.06);
  box-shadow: var(--lift);
}

.fpx-page .fpx-page__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--muted);
}

.fpx-page .fpx-page__trust a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fpx-page .fpx-page__trust a:hover {
  color: var(--color-primary-dark);
}

/* ---- Focus ----------------------------------------------------------- */

.fpx-page a.fpx-page__link:focus-visible,
.fpx-page a.fpx-page__btn:focus-visible,
.fpx-page a.fpx-page__document:focus-visible,
.fpx-page .fpx-page__trust a:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .fpx-page a.fpx-page__document,
  .fpx-page a.fpx-page__btn {
    transition: none;
  }

  .fpx-page a.fpx-page__document:hover,
  .fpx-page a.fpx-page__card:hover svg {
    transform: none;
  }
}

/* ── Plain pages (page.php): the page title ─────────────────────────────
   Affiliate and wholesaler pages render their editor content through
   page.php and had no h1. Same type as .fpx-page__title, as its own rule:
   page.php has no .fpx-page wrapper, and adding one would restyle the
   whole page's content. */
h1.fpx-plain-page__title {
  margin: 0 0 20px;
  font-family: "Glory", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--color-text);
  text-wrap: balance;
}
