/* ==========================================================================
   PROTMED — sections.css
   Page-level composition. One block per section of the landing page.
   ========================================================================== */

/* --------------------------------------------------------------------------
   TOPBAR
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--c-ink);
  color: var(--c-white);
  font-size: var(--fs-sm);
}
.topbar__inner {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.topbar__list {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}
.topbar__item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.topbar__item svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--c-teal-soft);
}
.topbar__brand { font-size: var(--fs-sm); }

@media (max-width: 900px) {
  .topbar__item:nth-child(n + 2) { display: none; }
  .topbar__brand { display: none; }
}

/* --------------------------------------------------------------------------
   HEADER
   -------------------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-white);
  transition: box-shadow var(--t-base) var(--ease);
}
.header.is-stuck { box-shadow: 0 2px 16px rgba(46, 51, 56, .1); }

.header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
}
.header__logo { --logo-size: 27px; }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, -.3rem + 1.6vw, 1.25rem);
}
.nav__link {
  position: relative;
  display: block;
  padding: 4px 2px;
  font-size: var(--fs-body);
  color: var(--c-ink);
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--c-teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover { color: var(--c-teal); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.header__cta { flex: none; }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--c-ink);
}
.burger__box { display: grid; gap: 5px; width: 24px; }
.burger__box span {
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.burger.is-open .burger__box span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__box span:nth-child(2) { opacity: 0; }
.burger.is-open .burger__box span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .burger { display: grid; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset: calc(var(--header-h)) 0 auto;
    background: var(--c-white);
    border-top: 1px solid var(--c-line-soft);
    box-shadow: var(--sh-lg);
    padding: var(--sp-5) var(--gutter) var(--sp-8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease),
                visibility var(--t-base);
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    padding: var(--sp-4) 0;
    font-size: var(--fs-lead);
    border-bottom: 1px solid var(--c-line-soft);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--c-teal); }
  .nav__cta { margin-top: var(--sp-6); display: grid; }
}
@media (min-width: 1024px) { .nav__cta { display: none; } }

/* --------------------------------------------------------------------------
   HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  color: var(--c-white);
  background: var(--c-ink-hero) url("../assets/hero-bg.webp") center / cover no-repeat;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-8);
  min-height: 644px;
}
.hero__copy { max-width: 36rem; }

.hero__badge {
  display: inline-block;
  padding: .5rem 1.125rem;
  margin-bottom: var(--sp-6);
  border: 1px solid var(--c-teal-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  line-height: 1.15;
  letter-spacing: .06em;
}
.hero__title { margin-bottom: var(--sp-6); }
.hero__text {
  color: var(--c-text-invert);
  margin-bottom: var(--sp-8);
  max-width: 35rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.hero__media { position: relative; justify-self: end; }
.hero__media img { width: 100%; max-width: 606px; }

@media (max-width: 1023px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: var(--sp-12);
    gap: var(--sp-10);
  }
  .hero__copy { max-width: none; }
  .hero__media { justify-self: center; max-width: 480px; width: 100%; }
}
@media (max-width: 560px) {
  .hero__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   TRUST STRIP (headline + infinite logo marquee)
   -------------------------------------------------------------------------- */
.trust {
  position: relative;
  background: var(--c-ink);
  color: var(--c-white);
  overflow: hidden;
}
.trust__inner {
  position: relative;
  z-index: 2;
  min-height: 237px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-6);
  padding-block: var(--sp-8);
  max-width: 34rem;
}
.trust__title {
  font-family: var(--f-body);
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: 1.5;
}
.trust__title strong { font-weight: 700; }
.trust__note {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.trust__note p { color: var(--c-text-invert); }

.trust__marquee {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(64%, 860px);
  z-index: 1;
  display: grid;
  align-content: center;
}

@media (max-width: 1023px) {
  .trust__marquee { position: static; width: auto; margin-inline: calc(var(--gutter) * -1); }
  .trust__inner { min-height: 0; max-width: none; padding-bottom: var(--sp-8); }
  .trust { padding-bottom: 0; }
}

/* --------------------------------------------------------------------------
   FEATURES
   -------------------------------------------------------------------------- */
.features { background: var(--c-surface-3); }
.features__actions { margin-top: clamp(2rem, 1.4rem + 2.7vw, 2.25rem); display: flex; justify-content: center; }

/* --------------------------------------------------------------------------
   USE CASES (slider)
   -------------------------------------------------------------------------- */
.usecases {
  position: relative;
  background: var(--c-surface);
  overflow: hidden;
}
.usecases::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -32%;
  width: 62%;
  padding-bottom: 40%;
  background: radial-gradient(circle at 50% 50%, rgba(31, 175, 154, .38) 0%, rgba(31, 175, 154, 0) 68%);
  pointer-events: none;
}
/* Full-bleed rail: the card stays 1020px centred while the arrows ride the
   viewport edges, exactly as in the mockup (27px inset at 1280). */
.usecases__slider { padding-inline: 27px; }
.usecases__slider .swiper { max-width: 1020px; margin-inline: auto; }
.usecases .slider__nav--prev { left: 27px; }
.usecases .slider__nav--next { right: 27px; }

.usecase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--sp-8);
  min-height: 466px;
  padding: var(--sp-10) 0 0 clamp(1.5rem, .6rem + 4vw, 4.9rem);
  background: var(--c-surface-2);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.usecase__title {
  font-size: var(--fs-h2);
  text-transform: none;
  color: var(--c-teal);
  margin-bottom: var(--sp-5);
}
.usecase__text {
  font-size: var(--fs-lead);
  margin-bottom: var(--sp-7);
  max-width: 26rem;
}
.usecase__media { align-self: end; justify-self: end; line-height: 0; }
.usecase__media img { width: 100%; max-width: 496px; }

@media (max-width: 1159px) {
  .usecases__slider { padding-inline: 0; }
  .usecases .slider__nav { top: auto; bottom: -12px; transform: none; }
  .usecases .slider__nav--prev { left: calc(50% - 56px); right: auto; }
  .usecases .slider__nav--next { right: calc(50% - 56px); left: auto; }
  .usecases__slider { padding-bottom: 72px; }
}
@media (max-width: 767px) {
  .usecase {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding: var(--sp-8) var(--sp-6) 0;
  }
  .usecase__media { justify-self: center; }
  .usecase__text { max-width: none; }
}

/* --------------------------------------------------------------------------
   PLANS
   -------------------------------------------------------------------------- */
.plans {
  background: linear-gradient(180deg, #2E3338 0%, #21282E 52%, #141C23 100%);
  color: var(--c-white);
}
/* The featured plan sits 40px taller than the starter plan; both are
   bottom-aligned. Achieved by pushing the starter card down, so Swiper keeps
   full control of the flex wrapper. */
.plans__slider .swiper { padding-block: 26px 8px; }
.plans__slider .swiper-slide { align-items: stretch; }
.plans__note {
  margin-top: clamp(2rem, 1.4rem + 2.7vw, 3.25rem);
  text-align: center;
  color: var(--c-text-invert-dim);
  max-width: 52rem;
  margin-inline: auto;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  padding: var(--sp-8) var(--sp-8) var(--sp-10);
  border-radius: var(--r-lg);
  height: 100%;
}
.plan__eyebrow {
  font-size: var(--fs-body);
  letter-spacing: .02em;
}
.plan__title {
  font-size: var(--fs-h3);
  line-height: 1.12;
}
.plan__actions { margin-top: auto; padding-top: var(--sp-4); }

/* Variant: dark, glass-teal */
.plan--dark {
  background:
    radial-gradient(135% 118% at -4% -6%, rgba(150, 224, 210, .72) 0%, rgba(96, 160, 152, .42) 26%, rgba(45, 70, 70, .16) 52%, rgba(0, 0, 0, 0) 78%),
    linear-gradient(158deg, #2C373B 0%, #1D262C 52%, #171E25 100%);
  border: 1px solid rgba(127, 209, 194, .55);
  color: var(--c-white);
}
.plan--dark .plan__eyebrow { color: var(--c-teal-mist); }
.plan--dark .check-list__icon { color: var(--c-teal-soft); }

/* Variant: white, featured */
.plan--featured {
  background: var(--c-white);
  color: var(--c-ink);
  box-shadow: var(--sh-lg);
}
.plan--featured .plan__eyebrow { color: var(--c-grey); }
.plan--featured .plan__title  { color: var(--c-teal); }

.plan__badge {
  position: absolute;
  top: -18px;
  right: 18px;
  padding: .4375rem 1.125rem;
  background: var(--c-red);
  color: var(--c-white);
  border-radius: var(--r-pill);
  font-family: var(--f-display);
  font-size: var(--fs-lead);
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(227, 30, 36, .3);
}

/* Starter plan sits 40px lower so both cards share a baseline. Padding on the
   slide (not a margin on the card) keeps the card inside Swiper's clip box. */
@media (min-width: 861px) {
  .plans__slider .swiper-slide:first-child { padding-top: 40px; }
}

/* Section rhythm calibrated against the 1280px mockup frame. */
@media (min-width: 1024px) {
  .plans        { padding-block: 60px; }
  .usecases     { padding-block: 72px; }
  .testimonials { padding-block: 68px; }
}

/* --------------------------------------------------------------------------
   DIFFERENTIATORS (bento)
   -------------------------------------------------------------------------- */
.diff { background: var(--c-surface-3); }
@media (min-width: 861px) {
  .diff { padding-block: 40px 52px; }
  .diff__intro { padding-inline: 44px 63px; }
}
.diff__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-10) var(--sp-7);
}
.diff__intro {
  align-self: center;
  padding-inline: 0;
}
.diff__title { margin-bottom: var(--sp-5); }
.diff__text  { margin-bottom: var(--sp-7); max-width: 30rem; }

.diff-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 546 / 328;
  min-height: 260px;
  padding: var(--sp-8) var(--sp-9, 2.25rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  background-color: var(--c-ink);
  background-size: cover;
  background-position: center;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.diff-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.diff-card__title {
  font-size: var(--fs-h2);
  text-transform: none;
  margin-bottom: var(--sp-3);
}
.diff-card__text { font-size: var(--fs-lead); }

.diff-card--doctor {
  background-image: url("../assets/diff-doctor.webp");
}
.diff-card--doctor .diff-card__title { color: var(--c-teal-soft); }
.diff-card--doctor .diff-card__text  { color: var(--c-white); }

.diff-card--scale {
  background-image: url("../assets/diff-scale.webp");
}
.diff-card--scale .diff-card__title,
.diff-card--scale .diff-card__text { color: var(--c-white); }

.diff-card--regulatory {
  background-image: url("../assets/diff-regulatory.webp");
}
.diff-card--regulatory .diff-card__title { color: var(--c-teal); }
.diff-card--regulatory .diff-card__text  { color: var(--c-ink); }

@media (max-width: 860px) {
  .diff__grid { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .diff__intro { padding: 0 0 var(--sp-2); }
  .diff-card { aspect-ratio: auto; min-height: 0; padding-top: var(--sp-16); }
}

/* --------------------------------------------------------------------------
   TESTIMONIALS
   -------------------------------------------------------------------------- */
.testimonials { background: var(--c-surface); }

.quote {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
  padding: var(--sp-8);
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  height: 100%;
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              border-color var(--t-base) var(--ease);
}
.quote:hover { transform: translateY(-4px); border-color: var(--c-teal-soft); box-shadow: var(--sh-md); }
.quote__text { font-style: italic; color: var(--c-ink); }
.quote__author {
  margin-top: auto;
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */
.faq { background: var(--c-surface-3); }

/* --------------------------------------------------------------------------
   CONTACT
   -------------------------------------------------------------------------- */
.contact {
  --contact-pb: var(--section-y);
  position: relative;
  background: #062430 url("../assets/contact-bg.webp") center / cover no-repeat;
  color: var(--c-white);
  overflow: hidden;
  padding-bottom: var(--contact-pb);
}
@media (min-width: 1024px) {
  .contact { --contact-pb: 55px; padding-top: 51px; }
}
.contact__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 577px);
  align-items: end;
  gap: var(--sp-8);
}
/* The doctor cut-out is bottom-flush with the section and bleeds past the
   container's left gutter, as in the mockup. */
.contact__media {
  align-self: end;
  margin-bottom: calc(var(--contact-pb) * -1);
  margin-left: calc(var(--gutter) * -1);
}
.contact__media-wrap { position: relative; display: block; }
.contact__media img { width: 573px; max-width: none; }

.contact__panel { padding-bottom: 0; }
.contact__head { text-align: center; margin-bottom: var(--sp-8); }
.contact__head .eyebrow { margin-bottom: var(--sp-4); }
.contact__title { color: var(--c-white); }

.contact__card {
  background: var(--c-white);
  color: var(--c-ink);
  border-radius: var(--r-xl);
  padding: clamp(1.5rem, 1rem + 2.2vw, 2.5rem);
  box-shadow: var(--sh-lg);
}
.contact__submit { display: flex; justify-content: center; margin-top: var(--sp-2); }

@media (max-width: 1023px) {
  .contact__inner { grid-template-columns: minmax(0, 1fr); }
  .contact__media { display: none; }
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  background: var(--c-ink);
  color: var(--c-white);
  padding-block: var(--sp-12) var(--sp-5);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -60%;
  width: 70%;
  padding-bottom: 46%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(31, 175, 154, .32) 0%, rgba(31, 175, 154, 0) 66%);
  pointer-events: none;
}
.footer__inner { position: relative; z-index: 1; }

.footer__brand { display: grid; justify-items: center; gap: var(--sp-5); }
.footer__logo { --logo-size: 30px; }
.footer__social { display: flex; gap: var(--sp-3); }
.footer__social a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.footer__social a:hover { transform: translateY(-3px); }
.footer__social img { width: 40px; height: 40px; }

.footer__cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-8);
  margin-top: var(--sp-5);
}
.footer__col-title {
  font-family: var(--f-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  margin-bottom: var(--sp-5);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
}
.footer__links a {
  color: var(--c-text-invert-dim);
  transition: color var(--t-fast) var(--ease);
}
.footer__links a:hover,
.footer__links a.is-active { color: var(--c-white); }

.footer__bottom {
  margin-top: var(--sp-6);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
  color: var(--c-text-invert-dim);
  font-size: var(--fs-body);
}

@media (max-width: 640px) {
  .footer__cols { flex-direction: column; gap: var(--sp-8); }
}

/* --------------------------------------------------------------------------
   THANK-YOU PAGE
   -------------------------------------------------------------------------- */
.thanks { background: var(--c-surface-3); }
.thanks__head { text-align: center; max-width: 56rem; margin-inline: auto; }
.thanks__check {
  width: 78px;
  height: 78px;
  margin: 0 auto var(--sp-8);
  display: grid;
  place-items: center;
  background: var(--c-teal);
  border-radius: 50%;
  color: var(--c-white);
  box-shadow: var(--sh-teal);
}
.thanks__check svg { width: 40px; height: 40px; }
.thanks__title { margin-bottom: var(--sp-5); }
.thanks__text { color: var(--c-ink); }

.thanks__steps-title {
  text-align: center;
  font-size: clamp(1.375rem, 1.09rem + 1.25vw, 1.75rem);
  color: var(--c-teal);
  margin: clamp(2.5rem, 1.8rem + 3vw, 3.5rem) 0 var(--sp-8);
}

.step {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  background: var(--c-white);
  border: 1px solid var(--c-line-soft);
  border-radius: var(--r-md);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.step__num {
  font-family: var(--f-display);
  font-size: var(--fs-h5);
  font-weight: 700;
  color: var(--c-teal);
}
.step__text { font-size: var(--fs-lead); }

.thanks__contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 581px);
  align-items: center;
  gap: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  margin-top: clamp(3rem, 2rem + 4.4vw, 4.5rem);
}
.thanks__contact-copy { text-align: center; max-width: 26rem; margin-inline: auto; }
.thanks__contact-title {
  font-size: var(--fs-h2);
  text-transform: none;
  margin-bottom: var(--sp-6);
}
.thanks__mail { font-size: var(--fs-h5); line-height: 1.5; margin-bottom: var(--sp-8); }
.thanks__mail a { color: var(--c-ink); transition: color var(--t-fast) var(--ease); }
.thanks__mail a:hover { color: var(--c-teal); }
.thanks__contact-media img { width: 100%; border-radius: var(--r-md); }

@media (max-width: 860px) {
  .thanks__contact { grid-template-columns: minmax(0, 1fr); }
}
