/* =========================================================================
   360° Social Freezing Abo — standalone landing page styles
   Scoped under .sfa to avoid clashing with the site CSS bundle. Reuses the
   site's tokens (Noto Serif / Nunito Sans, burgundy #4D1D38) loaded via
   main.css + refresh.css; only this page's own layout lives here.
   Figma: node 1178-627 (desktop) / 1138-2246 (mobile).
   ========================================================================= */
/* Header: the standard solid `top--light` header (the nav markup intentionally
   drops the homepage `top--scroll-bg`/`top--scroll-dark` overlay classes), so
   it's consistent with the rest of the site and content clears it via the
   theme's own `.top + #content { margin-top: var(--header-height) }`.
   Lock the Figma drop shadow (node 1178-907) across ALL states — the theme
   otherwise swaps the shadow on hover/scroll, which made it flicker/disappear. */
.sfa-page header.top {
  box-shadow: 3px 3px 10px 0 rgba(0, 0, 0, 0.1) !important;
}

.sfa {
  --sfa-burgundy: #4d1d38;
  --sfa-burgundy-hover: #813c63;
  --sfa-aqua: #b7ced1;
  --sfa-rose: #f3aed3;
  --sfa-surface: #fcfbfc;
  --sfa-grey: #f2f2f2;
  --sfa-dark-grey: #404040;
  --sfa-card-tint: #e6d8e0;

  font-family: "Nunito Sans", sans-serif;
  color: var(--sfa-dark-grey);
  overflow-x: clip;
}

.sfa *,
.sfa *::before,
.sfa *::after {
  box-sizing: border-box;
}

.sfa-container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Section rhythm — Figma (node 1178-627) spaces every section 64px apart on
   desktop (48px on mobile). The sections carry no vertical padding of their own;
   the gap is purely the inter-section margin below, so it stays a clean 64px
   instead of stacking section paddings + margins. */
.sfa-section {
  padding-block: 0;
}
#content.sfa > * + * {
  margin-top: 48px;
}
@media (min-width: 1024px) {
  #content.sfa > * + * {
    margin-top: 64px;
  }
}

.sfa-section__title {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  color: var(--sfa-burgundy);
  text-align: center;
  margin: 0 0 48px;
  font-size: 24px; /* Figma mobile (node 1070-1208) */
  line-height: 1.25;
}
@media (min-width: 768px) {
  .sfa-section__title {
    font-size: 32px;
    line-height: 1.2;
  }
}
@media (min-width: 1024px) {
  .sfa-section__title {
    font-size: 40px;
  }
}

/* Shared text helpers */
.sfa-body {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.25px;
}
@media (min-width: 1024px) {
  .sfa-body {
    font-size: 18px;
  }
}

/* Buttons — mirror the site button tokens so CTAs match exactly */
.sfa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 64px;
  border: 2px solid var(--sfa-burgundy);
  background: var(--sfa-burgundy);
  color: #fff;
  font-family: "Nunito Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0.25px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sfa-btn:hover {
  background: var(--sfa-burgundy-hover);
  border-color: var(--sfa-burgundy-hover);
  color: #fff;
}
.sfa-btn--inverted {
  background: var(--sfa-surface);
  color: var(--sfa-burgundy);
  border-color: var(--sfa-surface);
}
.sfa-btn--inverted:hover {
  background: var(--sfa-rose);
  border-color: var(--sfa-rose);
  color: var(--sfa-burgundy);
}
@media (min-width: 1024px) {
  .sfa-btn {
    font-size: 18px;
  }
}

/* =========================== HERO =========================== */
.sfa-hero {
  padding-top: 30px;
}
@media (min-width: 1024px) {
  .sfa-hero {
    padding-top: 64px;
  }
}
.sfa-hero__inner {
  position: relative;
  background: var(--sfa-burgundy);
  border-radius: 24px;
  color: #fff;
  padding: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.sfa-hero__text {
  flex: 1 1 55%;
  max-width: 614px;
}
.sfa-hero__eyebrow {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.25px;
  margin: 0 0 24px;
}
.sfa-hero__title {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 24px;
  color: #fff;
}
.sfa-hero__callout {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.25px;
}
.sfa-hero__lead {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.25px;
  margin: 0;
}
.sfa-hero__media {
  flex: 1 1 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.sfa-hero__media img {
  width: 100%;
  max-width: 440px;
  height: auto;
}
@media (min-width: 1024px) {
  .sfa-hero__title {
    font-size: 56px;
  }
}
@media (max-width: 860px) {
  .sfa-hero__inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: 32px 24px;
  }
  .sfa-hero__text {
    max-width: none;
  }
  .sfa-hero__callout {
    text-align: center;
  }
}

/* ===================== PRICING CARDS ===================== */
.sfa-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
}
.sfa-card {
  flex: 1 1 420px;
  max-width: 487px;
  border: 1px solid var(--sfa-burgundy);
  border-radius: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.sfa-card__head {
  padding: 20px;
  background: var(--sfa-card-tint);
  border-radius: 19px 19px 0 0;
}
.sfa-card__body {
  border-radius: 0 0 19px 19px;
}
.sfa-card--featured {
  position: relative;
  border-color: var(--sfa-burgundy);
}
/* Featured card: only the HEAD is burgundy; the body stays white like Basis. */
.sfa-card--featured .sfa-card__head {
  background: var(--sfa-burgundy);
  color: #fff;
}
.sfa-card__name {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 24px;
  margin: 0 0 12px;
  color: var(--sfa-burgundy);
}
.sfa-card--featured .sfa-card__name {
  color: #fff;
}
.sfa-card__price {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 36px;
  color: var(--sfa-burgundy);
  margin: 0 0 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sfa-card--featured .sfa-card__price {
  color: #fff;
}
.sfa-card__price span {
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  font-weight: 300;
  color: var(--sfa-burgundy);
}
.sfa-card--featured .sfa-card__price span {
  color: rgba(255, 255, 255, 0.85);
}
.sfa-card__tagline {
  font-weight: 700;
  font-size: 16px;
  margin: 0;
  color: var(--sfa-burgundy);
}
.sfa-card--featured .sfa-card__tagline {
  color: #fff;
}
.sfa-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.sfa-feature {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.625;
  color: var(--sfa-burgundy);
}
.sfa-feature__check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--sfa-burgundy);
}
.sfa-feature__check svg {
  width: 100%;
  height: 100%;
  display: block;
}
.sfa-card__note {
  font-size: 13px;
  color: #0f0209;
  margin: 4px 0 0;
}
.sfa-card__highlight {
  font-weight: 700;
  font-size: 14px;
  color: var(--sfa-burgundy);
  margin: 16px 0 0;
}
.sfa-card__cta {
  margin-top: auto;
  padding-top: 24px;
}
.sfa-card__cta .sfa-btn {
  width: 100%;
}
/* Figma mobile (node 1138-2246): the CTA moves up INTO the coloured header
   (right after the tagline); the white body holds only the checks + footnote.
   On desktop the CTA stays at the bottom of the body. Swap which copy shows. */
.sfa-card__cta--head {
  display: none;
}
@media (max-width: 768px) {
  .sfa-card__cta--head {
    display: block;
    margin-top: 16px;
    padding-top: 0;
  }
  .sfa-card__cta--body {
    display: none;
  }
  /* Figma mobile: the Basis card's CTA is the white (inverted) button, not the
     burgundy one — the Rundum card already uses the inverted style. */
  .sfa-card:not(.sfa-card--featured) .sfa-card__cta--head .sfa-btn {
    background: var(--sfa-surface);
    color: var(--sfa-burgundy);
    border-color: var(--sfa-surface);
  }
  .sfa-card:not(.sfa-card--featured) .sfa-card__cta--head .sfa-btn:hover {
    background: var(--sfa-rose);
    border-color: var(--sfa-rose);
    color: var(--sfa-burgundy);
  }
}
.sfa-card--featured {
  overflow: visible;
}
.sfa-card__ribbon {
  position: absolute;
  top: -13px;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  background: var(--sfa-rose);
  color: var(--sfa-burgundy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.25px;
  padding: 4px 16px;
  border-radius: 14px;
  white-space: nowrap;
}

/* ==================== COMPARISON TABLE ==================== */
.sfa-compare {
  background: var(--sfa-burgundy);
  color: #fff;
  border-radius: 16px;
  max-width: 792px;
  margin-inline: auto;
  padding: 32px 68px 40px;
}
.sfa-compare__title {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  margin: 0 0 32px;
  color: #fff;
}
.sfa-compare__grid {
  width: 100%;
}
/* Footnote marker on Erstgespräch/Bluttest/Medikamente + the note below the
   table ("* wird separat verrechnet"). Sits on the burgundy panel, so light. */
.sfa-compare__ast {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}
.sfa-compare__note {
  margin: 20px 0 0;
  font-size: 13px;
  font-style: italic;
  text-align: left;
  color: rgba(255, 255, 255, 0.75);
}
.sfa-compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 16px;
}
.sfa-compare__row--head {
  border-top: none;
  align-items: end;
  padding: 0 0 20px;
}
.sfa-compare__col {
  text-align: center;
}
.sfa-compare__plan {
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 4px;
}
.sfa-compare__planprice {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 22px;
}
.sfa-compare__planper {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 2px;
}
.sfa-compare__check {
  display: inline-block;
  width: 20px;
  height: 20px;
  color: #fff;
}
.sfa-compare__check svg {
  width: 100%;
  height: 100%;
}
@media (max-width: 768px) {
  /* Figma mobile (node 1070-1197): the comparison table is full-bleed
     (burgundy edge-to-edge), not an inset rounded box. Break it out of the
     container's 20px side padding and drop the rounding. */
  .sfa-compare {
    margin-inline: -20px;
    max-width: none;
    border-radius: 0;
    padding: 28px 20px 24px;
  }
  /* Table title stays visible on mobile too (centered on the burgundy panel). */
  .sfa-compare__title {
    display: block;
    font-size: 20px;
    margin-bottom: 20px;
  }
  .sfa-compare__row {
    /* Value columns wide enough for "360° Rundum" / "CHF 169" so the header
       stays aligned with the data columns (same grid) instead of wrapping. */
    grid-template-columns: minmax(0, 1fr) 90px 90px;
    font-size: 14px;
  }
  .sfa-compare__planprice {
    font-size: 18px;
  }
  .sfa-compare__plan,
  .sfa-compare__planprice,
  .sfa-compare__planper {
    white-space: nowrap;
  }
  /* Break the plan name after "360°" on mobile so the longer "Essential" /
     "Full Circle" fit the 90px column and don't collide (desktop stays inline). */
  .sfa-plan-tier {
    display: block;
  }
}

/* ====================== BENEFITS ====================== */
.sfa-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.sfa-benefit {
  flex: 1 1 340px;
  max-width: 383px;
  background: var(--sfa-grey);
  border-radius: 16px;
  padding: 20px;
}
.sfa-benefit__icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--sfa-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.sfa-benefit__icon svg {
  /* height-matched (not forced square) so the wider stopwatch icon
     (viewBox 25×20) isn't scaled down and matches the other icons' size. */
  width: auto;
  height: 20px;
  color: #fff;
}
.sfa-benefit p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.25px;
}
/* bottom row of 2 cards is centered like the Figma */
.sfa-benefits--row2 {
  max-width: 790px;
  margin-inline: auto;
  margin-top: 24px;
}

/* ==================== CONSULTATION ==================== */
/* Figma: a rounded, inset card (not full-bleed) with the page margin around it. */
.sfa-consult {
  display: flex;
  align-items: stretch;
  background: var(--sfa-aqua);
  min-height: 432px;
  border-radius: 24px;
  overflow: hidden;
}
.sfa-consult__media {
  flex: 1 1 50%;
  background-size: cover;
  background-position: center;
}
.sfa-consult__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sfa-consult__body {
  flex: 1 1 50%;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sfa-consult__title {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--sfa-burgundy);
  margin: 0 0 24px;
}
.sfa-consult__text {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.25px;
  margin: 0 0 32px;
  max-width: 480px;
}
.sfa-consult__text a {
  color: var(--sfa-burgundy);
  text-decoration: underline;
}
@media (min-width: 1024px) {
  .sfa-consult__title {
    font-size: 40px;
  }
}
@media (max-width: 860px) {
  .sfa-consult {
    flex-direction: column;
  }
  .sfa-consult__media {
    min-height: 260px;
  }
  .sfa-consult__body {
    padding: 40px 24px;
  }
}
/* Figma mobile: the consultation block is full-bleed (image on top, aqua body
   below) — no side margin, no rounding, unlike the inset rounded card on
   desktop. Drop the container inset and the card radius below the stack point. */
@media (max-width: 860px) {
  .sfa-consult-section .sfa-container {
    max-width: none;
    padding-inline: 0;
  }
  .sfa-consult {
    border-radius: 0;
  }
}

/* ======================== FAQ ======================== */
.sfa-faq {
  max-width: 795px;
  margin-inline: auto;
}
.sfa-faq__item {
  border: 0;
  border-radius: 12px;
  margin-bottom: 16px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
}
.sfa-faq__q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 20px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-family: "Nunito Sans", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: var(--sfa-dark-grey);
  list-style: none;
}
.sfa-faq__q::-webkit-details-marker {
  display: none;
}
/* Toggle: chevron inside a light-grey circle (Figma). */
.sfa-faq__icon {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sfa-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sfa-dark-grey);
  transition: transform 0.2s ease;
}
.sfa-faq__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.sfa-faq__item[open] .sfa-faq__icon {
  transform: rotate(180deg);
}
.sfa-faq__a {
  padding: 0 17px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--sfa-dark-grey);
}
/* placeholder marker for FAQ answers/questions still to be supplied */
.sfa-placeholder {
  color: #9b9b9b;
  font-style: italic;
}
/* Rich FAQ answers: paragraphs, sub-labelled lists, and embedded tables. */
.sfa-faq__a > p {
  margin: 0 0 12px;
}
.sfa-faq__a > p:last-child {
  margin-bottom: 0;
}
.sfa-faq__sublabel {
  font-weight: 700;
  color: var(--sfa-burgundy);
  margin: 0 0 6px !important;
}
.sfa-faq__a ul {
  margin: 0 0 12px;
  padding-left: 20px;
}
.sfa-faq__a li {
  margin-bottom: 4px;
}
/* Tables inside FAQ answers (comparison + price breakdown). Horizontally
   scrollable on narrow screens so 3–4 columns never crush. */
.sfa-faq__table-wrap {
  margin: 4px 0 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sfa-faq__table {
  width: 100%;
  min-width: 460px;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
}
.sfa-faq__table th,
.sfa-faq__table td {
  border: 1px solid var(--sfa-card-tint);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}
.sfa-faq__table thead th {
  background: var(--sfa-burgundy);
  color: var(--sfa-surface);
  font-family: "Noto Serif", serif;
  font-weight: 700;
  font-size: 14px;
  /* Burgundy bottom edge (wins the collapsed border) so no stray dark line
     shows where the header meets the grey/white body. */
  border-bottom: 2px solid var(--sfa-burgundy);
}
.sfa-faq__table tbody th {
  background: var(--sfa-grey);
  color: var(--sfa-burgundy);
  font-weight: 700;
  white-space: nowrap;
}
.sfa-faq__table tbody td {
  background: #fff;
}
/* On mobile the 3–4 columns can't all fit; the table scrolls horizontally.
   Tighter type + a smaller min-width so the next column peeks in at the right
   edge — a plain visual cue that there's more to swipe. */
@media (max-width: 768px) {
  .sfa-faq__table {
    font-size: 13px;
    min-width: 420px;
  }
  .sfa-faq__table th,
  .sfa-faq__table td {
    padding: 8px 9px;
  }
}

/* ==================== LOCATION BANNER ==================== */
.sfa-location {
  display: flex;
  align-items: stretch;
  background: var(--sfa-grey);
  min-height: 432px;
}
.sfa-location__media {
  flex: 1 1 50%;
}
.sfa-location__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sfa-location__body {
  flex: 1 1 50%;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.sfa-location__title {
  font-family: "Noto Serif", serif;
  font-weight: 600;
  font-size: 32px;
  color: var(--sfa-burgundy);
  margin: 0 0 32px;
  max-width: 460px;
}
@media (min-width: 1024px) {
  .sfa-location__title {
    font-size: 36px;
  }
}
@media (max-width: 860px) {
  .sfa-location {
    flex-direction: column;
  }
  .sfa-location__media {
    min-height: 240px;
  }
  .sfa-location__body {
    padding: 40px 24px;
  }
}
