/* =========================================================
   Revise MSRA: Starter Kit landing page
   Soft pastel medical palette, brand teal CTA, Inter type.
   Mobile-first.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Pastel palette */
  --aqua: #A0E6DD;
  --sky: #C7DFF8;
  --mint: #BAEFC7;
  --peach: #FFD2B4;
  --pink: #FFC5C3;
  --sage: #BFDAD9;
  --lavender: #CBC1D9;

  /* Brand */
  --teal: #66d5c7;
  --teal-600: #43c6b6;   /* button hover */
  --teal-700: #2aa697;   /* icon strokes + large hero accent on light */
  --teal-ink: #0f766e;   /* small teal TEXT (AA on white & on tinted chips) */
  --green: #6bd8a0;
  --orange: #f0976c;
  --coral: #f0976c;      /* streak tracker Day-1 accent */

  /* Base */
  --white: #ffffff;
  --offwhite: #fafcfd;
  --navy: #1c2b3a;
  --ink: #1c2b3a;
  --muted: #4b5a6e;
  --line: #e7edf3;
  --star: #f6b73c;

  /* Type */
  --font: "Acumin Pro", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Radius */
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(28, 43, 58, .04), 0 4px 12px rgba(28, 43, 58, .05);
  --shadow: 0 8px 24px rgba(28, 43, 58, .08);
  --shadow-lg: 0 24px 60px rgba(28, 43, 58, .14);
  --shadow-teal: 0 14px 30px rgba(67, 198, 182, .35);

  /* Layout */
  --container: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--offwhite);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal-ink); }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(56px, 9vw, 104px); }
.section__title { font-size: clamp(1.6rem, 1rem + 2.6vw, 2.5rem); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--teal-ink);
  margin-bottom: 10px;
}

/* ---------- Accessibility helpers ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 200;
  transition: top .2s ease; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal-700); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
  padding: 14px 26px; border: 0; border-radius: 14px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--teal); color: var(--navy); box-shadow: var(--shadow-teal); }
.btn--primary:hover { background: var(--teal-600); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }
.btn--sm { padding: 10px 18px; font-size: .92rem; border-radius: 12px; }
.btn--lg { padding: 18px 34px; font-size: 1.08rem; border-radius: 16px; }

/* ---------- Stars ---------- */
.star { width: 18px; height: 18px; fill: var(--star); }
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.stars--lg .star { width: 24px; height: 24px; }

/* ---------- Avatars ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--a, var(--aqua)); color: var(--navy);
  font-size: .78rem; font-weight: 800; letter-spacing: .02em;
  border: 2px solid #fff; flex: none;
}
.avatar-cluster { display: inline-flex; }
.avatar-cluster .avatar { margin-left: -12px; box-shadow: 0 2px 6px rgba(28,43,58,.12); }
.avatar-cluster .avatar:first-child { margin-left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 252, 253, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); background: rgba(255,255,255,.9); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { width: auto; height: 30px; }
.site-header__right { display: flex; align-items: center; gap: 16px; }

.trust-chip {
  display: none; align-items: center; gap: 12px;
  font-size: .82rem; color: var(--muted); font-weight: 600;
}
.trust-chip strong { color: var(--ink); }
.trust-chip__stars { display: inline-flex; align-items: center; gap: 6px; }
.trust-chip__stars .star { width: 15px; height: 15px; }
.trust-chip__divider { width: 1px; height: 18px; background: var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; padding-top: clamp(40px, 7vw, 84px); padding-bottom: clamp(28px, 4.5vw, 56px); }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.hero__blob--1 { width: 460px; height: 460px; background: var(--aqua); top: -160px; right: -120px; }
.hero__blob--2 { width: 380px; height: 380px; background: var(--sky); bottom: -160px; left: -140px; opacity: .5; }
.hero__blob--3 { width: 300px; height: 300px; background: var(--mint); top: 200px; left: 38%; opacity: .35; }

.hero__grid { position: relative; z-index: 1; display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; }

.badge {
  display: inline-block; padding: 7px 16px; border-radius: var(--r-pill);
  background: var(--white); color: var(--teal-ink);
  font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 18px;
}
.badge--on-dark { background: rgba(255,255,255,.12); color: #cdeee9; border-color: rgba(255,255,255,.22); }

.hero__title { font-size: clamp(2.2rem, 1.1rem + 4.6vw, 3.7rem); margin-bottom: 18px; }
.hero__title .accent { color: var(--teal-700); position: relative; white-space: nowrap; }
.hero__title .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .04em; height: .16em;
  background: var(--teal); border-radius: 4px; opacity: .55; z-index: -1;
}
.hero__sub { font-size: clamp(1.02rem, .95rem + .5vw, 1.2rem); color: var(--muted); max-width: 36em; margin-bottom: 26px; }

.value-list { display: grid; gap: 14px; margin-bottom: 28px; }
.value-list li { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 1.02rem; }
.value-list__icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.value-list__icon svg { width: 21px; height: 21px; fill: none; stroke: var(--teal-700); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero__proof { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__proof-text { font-size: .95rem; color: var(--muted); }
.hero__proof-text strong { color: var(--ink); }
.hero__proof-text .stars { margin-right: 6px; }

/* ---------- Sign-up card ---------- */
.signup { position: relative; z-index: 1; }
.signup-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 36px);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.signup-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 5px;
  background: linear-gradient(90deg, var(--aqua), var(--teal), var(--mint));
}
.signup-card__head { text-align: center; margin-bottom: 22px; }
.signup-card__gift {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(140deg, var(--aqua), var(--sky)); margin-bottom: 14px;
}
.signup-card__gift svg { width: 28px; height: 28px; fill: none; stroke: var(--navy); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.signup-card__title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.7rem); margin-bottom: 8px; }
.signup-card__title .free-accent { color: var(--teal-700); }
.signup-card__sub { color: var(--muted); font-size: .98rem; }
.signup-card__reassure { text-align: center; color: var(--muted); font-size: .86rem; margin-top: 14px; font-weight: 600; }

/* Streak tracker: sign-up support (makes the 30-day commitment feel small and finite) */
.streak { margin-top: 18px; padding: 15px 16px 16px; background: var(--offwhite); border: 1px solid var(--line); border-radius: 16px; }
.streak__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.streak__title { font-weight: 700; font-size: .9rem; color: var(--ink); }
.streak__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-weight: 700; font-size: .76rem; color: #a8451f;
  background: rgba(240, 151, 108, .16); padding: 4px 11px; border-radius: var(--r-pill);
}
.streak__flame { font-size: .9rem; line-height: 1; }
.streak__grid { display: grid; grid-template-columns: repeat(15, 1fr); gap: 5px; }
.streak__cell { aspect-ratio: 1; border-radius: 5px; background: #eaeff4; border: 1px solid #e2e8ee; }
.streak__cell--done {
  background: #fff; border-color: var(--coral); position: relative; z-index: 1;
  display: grid; place-items: center;
  box-shadow: 0 0 0 3px rgba(240, 151, 108, .28), 0 3px 10px rgba(240, 151, 108, .5);
}
.streak__cell--done .streak__flame-icon { width: 74%; height: 74%; fill: var(--coral); display: block; }

/* ---------- Brevo form overrides ---------- */
.sib-form { padding: 0 !important; background: transparent !important; text-align: left; }
.sib-form-container { background: transparent; }
#sib-container {
  max-width: 100% !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; border: 0 !important;
}
#sib-form, #sib-form-container { width: 100%; }
#sib-form .sib-form-block, #sib-form .form__entry, #sib-form .entry_block,
#sib-form .form__label-row, #sib-form .sib-input { padding: 0 !important; margin: 0 !important; float: none !important; }
#sib-form .entry__field { border: 0 !important; background: transparent !important; box-shadow: none !important; }

.rk-field { margin-bottom: 14px; }
#sib-form input#EMAIL,
#sib-form input#FIRSTNAME,
#sib-form select#SPECIALTY {
  width: 100%; height: 58px; padding: 0 20px;
  font-family: var(--font); font-size: 1.02rem; color: var(--ink);
  background: var(--offwhite); border: 1.5px solid var(--line);
  border-radius: 14px; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
#sib-form input#EMAIL::placeholder,
#sib-form input#FIRSTNAME::placeholder { color: #9aa7b4; }
#sib-form input#EMAIL:focus,
#sib-form input#FIRSTNAME:focus,
#sib-form select#SPECIALTY:focus {
  outline: none; background-color: #fff; border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(102, 213, 199, .25);
}
/* Specialty dropdown: match the inputs, custom chevron, grey "placeholder" until chosen */
#sib-form select#SPECIALTY {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  padding-right: 48px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%231C2B3A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 20px center;
}
#sib-form select#SPECIALTY:invalid { color: #9aa7b4; }
#sib-form select#SPECIALTY option { color: var(--ink); }

#sib-form .sib-form-block__button.btn-cta {
  width: 100%; height: 58px; padding: 0 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; box-shadow: var(--shadow-teal);
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  letter-spacing: .01em;
}
#sib-form .sib-form-block__button.btn-cta:hover { background-color: var(--teal-600) !important; transform: translateY(-2px); }
#sib-form .sib-form-block__button.btn-cta:active { transform: translateY(0); }
#sib-form .sib-form-block__button.btn-cta svg { fill: var(--navy); }

#sib-form .entry__error { margin-top: 10px !important; padding: 9px 13px !important; border: 0 !important; }
#sib-form .entry__error:empty { display: none !important; }

#sib-form-container .sib-form-message-panel { margin: 0 0 16px !important; padding: 12px 14px !important; max-width: 100% !important; }

.input--hidden { position: absolute !important; left: -9999px !important; }

/* ---------- "What you'll receive" cards ---------- */
.receive { text-align: center; padding-top: clamp(32px, 4vw, 52px); }
.receive .section__title { max-width: 18ch; margin: 0 auto 8px; }
.cards { display: grid; gap: 22px; margin-top: 44px; text-align: left; }
.card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 90px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tint) 55%, #fff), transparent);
  z-index: 0;
}
.card > * { position: relative; z-index: 1; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card__num {
  position: absolute; top: 22px; right: 24px; z-index: 1;
  font-weight: 800; font-size: 1rem; color: var(--navy);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm);
}
.card__icon {
  display: grid; place-items: center; width: 58px; height: 58px;
  border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--teal-700); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card__title { font-size: 1.28rem; margin-bottom: 10px; }
.card__body { color: var(--muted); font-size: 1rem; margin-bottom: 18px; }
.card__tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-ink); text-align: center; line-height: 1.5;
  background: color-mix(in srgb, var(--teal) 16%, #fff);
  padding: 7px 14px; border-radius: var(--r-pill);
}

/* ---------- Social proof ---------- */
.proof { background:
  radial-gradient(1100px 420px at 50% -10%, color-mix(in srgb, var(--sky) 40%, #fff), transparent),
  var(--offwhite); text-align: center; }
.proof__head { max-width: 40ch; margin: 0 auto; }
.proof__rating { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 14px; }
.proof__rating p { font-size: 1.05rem; }
.reviews { display: grid; gap: 22px; margin-top: 46px; text-align: left; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 26px; box-shadow: var(--shadow-sm); margin: 0;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.review__text { margin: 0; font-size: 1.04rem; color: var(--ink); font-weight: 500; line-height: 1.55; }
.review__by { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.review__by strong { color: var(--ink); }
.review__role { color: var(--muted); font-size: .86rem; }

/* ---------- Final CTA ---------- */
.final-cta { padding-block: clamp(40px, 7vw, 80px); }
.final-cta__panel {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(102,213,199,.28), transparent),
    radial-gradient(600px 320px at 100% 100%, rgba(199,223,248,.28), transparent),
    var(--navy);
  color: #eaf1f4; border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px);
  box-shadow: var(--shadow-lg);
}
.final-cta__title { color: #fff; font-size: clamp(1.7rem, 1.1rem + 2.8vw, 2.7rem); margin: 16px auto 14px; max-width: 18ch; }
.final-cta__sub { color: #c4d2dc; max-width: 50ch; margin: 0 auto 22px; font-size: 1.05rem; }
.final-cta__recap {
  display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center;
  margin: 0 auto 28px; font-weight: 600; color: #dceaee;
}
.final-cta__recap li { display: inline-flex; align-items: center; gap: 8px; }
.final-cta__recap span { color: var(--navy); background: var(--teal); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.final-cta__note { margin-top: 16px; color: #9fb2bf; font-size: .86rem; font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-strip__inner { display: grid; gap: 22px; padding-block: 30px; text-align: center; }
.trust-strip__item { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: .94rem; color: var(--muted); }
.trust-strip__item strong { color: var(--ink); }
.trust-strip__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--aqua) 30%, #fff); }
.trust-strip__icon svg { width: 22px; height: 22px; fill: none; stroke: var(--teal-700); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9c6d1; padding-block: 44px 28px; }
.site-footer__inner { display: grid; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer__logo { height: 28px; width: auto; margin-bottom: 12px; }
.site-footer__tag { max-width: 42ch; font-size: .95rem; color: #9fb0bd; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 18px 26px; align-items: center; }
.site-footer__links a { color: #cdd9e2; text-decoration: none; font-weight: 600; font-size: .95rem; }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__bottom { display: flex; flex-direction: column; gap: 6px; padding-top: 20px; font-size: .82rem; color: #8597a6; }

/* ---------- Reveal animation (only active when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; will-change: opacity, transform; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 600px) {
  .cards, .reviews { grid-template-columns: repeat(2, 1fr); }
  .trust-strip__inner { grid-template-columns: repeat(3, 1fr); }
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: end; }
  .site-footer__links { justify-content: flex-end; }
}

@media (min-width: 768px) {
  .trust-chip { display: flex; }
  .final-cta__recap { gap: 12px 30px; }
}

@media (min-width: 980px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; align-items: center; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .brand__logo { height: 32px; }
}

/* Tablet: keep 2 review cards tidy by centring the third */
@media (min-width: 600px) and (max-width: 979px) {
  .reviews .review:nth-child(3) { grid-column: 1 / -1; max-width: 560px; margin-inline: auto; }
}
