/* ==========================================================================
   PulseCheck — shared stylesheet
   Rebuilt from the original Framer site. Breakpoints match the original:
     phone    <  810px
     tablet    810px – 1099px
     desktop  >= 1100px
   ========================================================================== */

/* --------------------------------------------------------------- tokens -- */
:root {
  /* brand + ink */
  --brand: #635ded;
  --brand-wash: #f4f4ff;
  --ink: #121212;
  --ink-soft: #1a1a1a;
  --body: #787878;
  --muted: #969696;
  --quote: #696969;
  --card-desc: #73738a;
  --link: #575757;

  /* surfaces */
  --white: #fff;
  --surface-card: #f8f8ff;
  --surface-well: #f4f4ff;
  --surface-step: #fbfbfe;
  --surface-features: #fdfcff;

  /* layout */
  --container: 1100px;
  --container-narrow: 1000px;
  --gutter: 20px;

  /* radii */
  --r-card: 20px;
  --r-md: 16px;
  --r-btn: 10px;
  --r-badge: 4px;

  /* 1px strokes. The original draws these with a ::after overlay
     (Framer's data-border), so they sit inside the radius and never
     affect layout. Values taken from the live site. */
  --stroke-ghost: #ecebff;   /* white buttons that also carry a shadow   */
  --stroke-plain: #e6e6e6;   /* "View a Live Report" — no shadow         */
  --stroke-card: #e0dffe;    /* feature cards, media wells, step wells   */
  --stroke-badge: #635ded;   /* step number badge                        */
  --stroke-plan: #ededed;    /* Free plan card                           */
  --stroke-plan-paid: #bcb9fa; /* the four paid plan cards               */
  --stroke-panel: #eeedfa;   /* all-features panel                       */
  --stroke-form: #e3e3e3;    /* contact form card                        */

  --shadow-btn: 0 2px 4px rgba(31, 30, 30, 0.05);

  /* Springs, ported from the original's own solver.
     text  = spring(bounce 0,   0.4s) -> critically damped, no overshoot
     quote = spring(bounce 0.4, 1.0s) -> ~9.5% overshoot */
  --spring-text: linear(0, 0.024, 0.082, 0.159, 0.245, 0.332, 0.415, 0.493, 0.565, 0.628, 0.684, 0.733, 0.776, 0.812, 0.843, 0.869, 0.892, 0.91, 0.926, 0.939, 0.95, 0.959, 0.966, 0.972, 0.977, 0.981, 0.985, 0.988, 0.99, 0.992, 0.993, 0.995, 0.996, 0.996, 0.997, 0.998, 0.998, 0.999, 0.999, 1);
  --spring-quote: linear(0, 0.006, 0.023, 0.049, 0.083, 0.123, 0.168, 0.217, 0.27, 0.324, 0.379, 0.435, 0.49, 0.544, 0.597, 0.648, 0.696, 0.742, 0.785, 0.826, 0.863, 0.897, 0.928, 0.956, 0.981, 1.003, 1.023, 1.039, 1.054, 1.065, 1.075, 1.082, 1.088, 1.091, 1.094, 1.095, 1.094, 1.093, 1.091, 1.088, 1.084, 1.08, 1.075, 1.07, 1.065, 1.06, 1.055, 1.05, 1.044, 1.039, 1.034, 1.03, 1.026, 1.021, 1.017, 1.014, 1.01, 1.008, 1.005, 1.002, 1, 0.998, 0.997, 0.995, 0.994, 0.993, 0.992, 0.992, 0.991, 0.991, 0.991, 0.991, 0.991, 0.991, 0.992, 0.992, 0.992, 0.993, 0.993, 0.994, 0.994, 0.995, 0.995, 0.996, 0.996, 0.997, 0.997, 0.998, 0.998, 0.998, 0.999, 0.999, 0.999, 1);
  /* badge = spring(bounce 0.5, 2.0s) -> ~16% overshoot */
  --spring-badge: linear(0, 0.017, 0.064, 0.134, 0.221, 0.318, 0.421, 0.526, 0.628, 0.725, 0.814, 0.893, 0.963, 1.021, 1.069, 1.106, 1.133, 1.151, 1.16, 1.163, 1.16, 1.152, 1.14, 1.126, 1.11, 1.093, 1.076, 1.059, 1.044, 1.029, 1.016, 1.005, 0.996, 0.988, 0.982, 0.978, 0.975, 0.974, 0.973, 0.974, 0.975, 0.977, 0.98, 0.982, 0.985, 0.988, 0.991, 0.993, 0.995, 0.998, 0.999, 1.001, 1.002, 1.003, 1.004, 1.004, 1.004, 1.004, 1.004, 1.004, 1.004, 1.003, 1.003, 1.002, 1.002, 1.002, 1.001, 1);
  /* the tween used by the plain block reveals */
  --ease-block: cubic-bezier(0.6, 0, 0.4, 1);

  /* type */
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --tight: -0.03em;
}

/* ---------------------------------------------------------------- reset -- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Sticky footer: on short pages (contact especially) the footer is pushed to
     the bottom of the viewport rather than floating mid-screen. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* height:auto is essential — without it the width/height attributes on <img>
   override aspect-ratio and the images keep their desktop height on phones. */
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Two feature cards carry shorter copy on tablet only, exactly as the
   original does — the narrower card can't hold the full wording. */
.only-tablet { display: none; }
@media (min-width: 810px) and (max-width: 1099.98px) {
  .only-tablet { display: inline; }
  .not-tablet { display: none; }
}

/* ------------------------------------------------------------ structure -- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1 0 auto; /* takes up the slack so the footer lands at the bottom */
}

/* --------------------------------------------------------------- header -- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--container-narrow);
  height: 64px;
  margin-inline: auto;
  padding-inline: 10px;
}

.logo { display: flex; align-items: center; flex: 0 0 auto; }
.logo img { width: 136px; height: 22px; }

.site-nav {
  display: none;
  flex: 1 1 auto;
  justify-content: center;
  gap: 40px;
}

.site-nav a,
.header-actions .text-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--link);
  white-space: nowrap;
  transition: color 0.15s ease;
}
.site-nav a:hover,
.header-actions .text-link:hover { color: var(--ink); }

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-left: auto;
}

@media (min-width: 810px) {
  .site-header__inner { height: 76px; }
  .site-nav { display: flex; }
  .logo { flex: 0 0 200px; padding: 10px; }
  .header-actions { flex: 0 0 200px; padding: 10px; }
}

/* -------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-btn);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--brand); color: var(--white); }
.btn--primary:hover { background: #5751e0; }

/* Two distinct white buttons in the original:
   --ghost   faint lilac stroke + drop shadow (header CTA, Create Account, Contact Us)
   --outline neutral grey stroke, no shadow    ("View a Live Report")
   Strokes are inset shadows so they sit inside the radius and cost no layout. */
.btn--ghost {
  background: var(--white);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--stroke-ghost), var(--shadow-btn);
}

.btn--outline {
  background: var(--white);
  color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--stroke-plain);
}

/* the sparkle sits slightly tighter to the label than the trailing padding */
.btn--icon { padding-left: 15px; }

/* Monochrome icons are masked rather than <img>-embedded so they inherit the
   surrounding text colour — the original ships white and purple sparkle copies. */
.icon {
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}

.btn__icon {
  width: 16px;
  height: 16px;
  -webkit-mask-image: url("/assets/img/icon-sparkle.svg");
          mask-image: url("/assets/img/icon-sparkle.svg");
}

.btn--sm { height: 38px; }

.btn-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* ----------------------------------------------------------------- type -- */
.h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: var(--tight);
}
.h1 em { font-style: normal; font-weight: 800; }

.section-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tight);
}

.section-lead {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--body);
}

@media (min-width: 810px) {
  .h1 { font-size: 60px; }
  .section-title { font-size: 32px; }
  .section-lead { font-size: 18px; }
}
@media (min-width: 1100px) {
  .section-title { font-size: 40px; }
}

/* A centred heading + lead pairing, used by most sections.
   The measured content width is 660px (860 for the wide variant), so the side
   gutter only applies on phones where the copy is edge-to-edge. */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  padding: 40px var(--gutter);
  text-align: center;
}
.section-head--wide { max-width: 860px; }

@media (min-width: 810px) {
  .section-head { padding-inline: 0; }
}

/* ----------------------------------------------------------------- hero -- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero__illustration {
  width: 100%;
  max-width: 990px;
  aspect-ratio: 1820 / 840;
  object-fit: contain;
}

/* floating quote cards — original hides these below the tablet breakpoint */
.hero__quotes { display: none; }

@media (min-width: 810px) {
  .hero__quotes {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 935px;
    max-width: 100%;
    pointer-events: none;
  }
}

.quote {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 200px;
}
.quote p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--quote);
}
.quote__by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.quote__by img { width: 18px; height: 18px; flex: 0 0 18px; }

/* the four hero cards are staggered vertically */
.hero__quotes .quote:nth-child(1) { padding-top: 140px; }
.hero__quotes .quote:nth-child(2) { padding-top: 20px; }
.hero__quotes .quote:nth-child(3) { padding-top: 0; }
.hero__quotes .quote:nth-child(4) { padding-top: 60px; }

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 660px;
  padding: 0 var(--gutter) 40px;
  text-align: center;
}
@media (min-width: 810px) {
  .hero__text { padding-inline: 0; }
}

/* ------------------------------------------------------------- features -- */
.features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-bottom: 40px;
}
@media (min-width: 810px) { .features { padding-top: 60px; } }

.features__grid {
  display: flex;
  flex-direction: column;
  gap: 25px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.features__row {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 10px;
  background: var(--surface-card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--stroke-card);
}

.feature__text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 40px 20px 10px;
}
.feature__text h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-soft);
  letter-spacing: var(--tight);
}
.feature__text p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--card-desc);
}

/* The media well follows each screenshot's own aspect ratio (the width/height
   attributes on the <img> supply it), which is what makes the desktop card land
   at a 250px-tall well and scale down cleanly at narrower widths. */
.feature__media {
  margin-top: auto;
  background: var(--surface-well);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--stroke-card);
  overflow: hidden;
}
.feature__media img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: top center;
}

/* tablet + desktop: 1-wide + 1-large, then a row of three.
   Widths are percentages so both breakpoints fall out of one rule
   (desktop 1100 -> 352/726/22; tablet 770 -> 246/508/16). */
@media (min-width: 810px) {
  .features__grid { padding-inline: 0; max-width: 770px; }
  .features__row { flex-direction: row; gap: 2%; }
  .feature--sm { width: 32%; }
  .feature--lg { width: 66%; }
  .feature__text { justify-content: center; }
}
@media (min-width: 1100px) {
  .features__grid { max-width: var(--container); }
  /* the original fixes the desktop card at 380px and bottom-aligns the media */
  .feature { height: 380px; }
  .feature__text { min-height: 110px; }
}

/* ------------------------------------------------- quote breakout blocks -- */
.breakout {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 60px 0 100px;
}

.breakout__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--tight);
  text-align: center;
  padding-inline: var(--gutter);
}
@media (min-width: 810px) {
  .breakout__title { font-size: 30px; padding-inline: 0; }
}

/* The stage height is fixed and the artwork is letterboxed inside it, matching
   the original — the illustrations are wider/taller than the band they sit in. */
.breakout__stage { position: relative; width: 100%; }
.breakout__stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.breakout--quotes .breakout__stage { height: 459px; }
.breakout--cta .breakout__stage { height: 300px; }
@media (min-width: 810px) {
  .breakout--cta .breakout__stage { height: 270px; }
}

/* cards pinned over the illustration */
.breakout__stage .quote { position: absolute; }

.breakout--quotes .quote:nth-of-type(1) { top: 28px; left: 20px; }
.breakout--quotes .quote:nth-of-type(2) { top: 382px; left: 180px; width: 174px; }
.breakout--cta .quote { top: 60%; left: 26%; }

@media (min-width: 810px) {
  .breakout--quotes .quote:nth-of-type(1) { top: 40px; left: 8%; }
  .breakout--quotes .quote:nth-of-type(2) { top: 300px; left: 76%; width: 200px; }
  .breakout--cta .quote { top: 55%; left: 19%; }
}

/* --------------------------------------------------------- how it works -- */
.steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  padding: 20px;
}

.step__media {
  order: -1; /* image always leads on phone, whichever side it takes on desktop */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px;
  background: var(--surface-step);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--stroke-card);
}
.step__media img { width: 100%; border-radius: 8px; }

.step__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
}

/* Specificity has to beat `.step__body p` below, which sets the 16px body size. */
.step__body .step__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  background: var(--surface-well);
  border-radius: var(--r-badge);
  box-shadow: inset 0 0 0 1px var(--stroke-badge);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--tight);
  color: var(--brand);
}

.step__title {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: var(--tight);
}

.step__body p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
}

@media (min-width: 810px) {
  .step {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    padding: 40px 35px;
  }
  .step__media { order: 0; width: 354px; flex: 0 0 354px; height: 260px; }
  .step__media img { height: 100%; object-fit: cover; }
  .step__body { width: 414px; flex: 0 0 414px; }
  /* Alternate sides: image left on steps 1 and 3, right on 2 and 4.
     nth-of-type (not nth-child) so the sibling .section-head div isn't counted. */
  .step:nth-of-type(even) .step__media { order: 2; }
}

@media (min-width: 1100px) {
  .step {
    justify-content: space-around;
    width: 940px;
    padding: 40px 0;
  }
  .step__media { width: 376px; flex: 0 0 376px; height: 276px; }
  .step__media img { width: 360px; }
}

/* -------------------------------------------------------------- pricing -- */
.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 40px var(--gutter) 0;
}

.plans {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding-inline: var(--gutter); /* phones inset the stacked cards a little further */
}

.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 0 20px;
  background: var(--white);
  border-radius: var(--r-md);
  /* the four paid tiers carry a lilac stroke; Free is plain grey */
  box-shadow: inset 0 0 0 1px var(--stroke-plan-paid);
  text-align: center;
}
.plan--free { box-shadow: inset 0 0 0 1px var(--stroke-plan); }
.plan img { width: 120px; height: 120px; }

.plan__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.plan__name strong {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: var(--tight);
}
.plan__name span { font-size: 13px; font-weight: 500; color: var(--muted); }
.plan__price { font-size: 14px; font-weight: 500; }

@media (min-width: 810px) {
  .plans { flex-direction: row; justify-content: space-between; gap: 10px; }
  .plan { flex: 1 1 0; gap: 18px; padding: 10px 0 30px; }
}
@media (min-width: 1100px) {
  /* at desktop the 20px inset comes from .pricing instead */
  .plans { gap: 15px; padding-inline: 0; }
}

/* all-features panel */
.all-features {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 var(--gutter) 20px;
  background: var(--surface-features);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px var(--stroke-panel);
}
.all-features h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tight);
  text-align: center;
  padding: 40px 0;
}

.all-features__lists {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 900px;
  padding-inline: 30px; /* keeps the stacked lists 250px wide on phones */
}
.all-features__lists ul {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.all-features__lists li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.all-features__lists li .icon {
  width: 16px;
  height: 16px;
  background-color: var(--brand);
  -webkit-mask-image: url("/assets/img/icon-check.svg");
          mask-image: url("/assets/img/icon-check.svg");
}

@media (min-width: 810px) {
  .all-features { padding-bottom: 40px; }
  .all-features__lists {
    flex-direction: row;
    justify-content: space-around;
    gap: 20px;
    padding-inline: 0;
  }
  .all-features__lists ul { flex: 0 1 250px; }
}

/* --------------------------------------------------------- final cta cap -- */
.cta__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  padding: 40px var(--gutter);
  text-align: center;
}
.cta__text .section-title { max-width: 500px; }

@media (min-width: 810px) {
  .cta__text { padding-inline: 0; }
}

/* --------------------------------------------------------------- footer -- */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding: 20px;
  font-size: 16px;
}
.site-footer__links > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.site-footer__links p { color: var(--ink-soft); }
.site-footer__links a { color: var(--link); transition: color 0.15s ease; }
.site-footer__links a:hover { color: var(--ink); }

@media (min-width: 810px) {
  .site-footer__links {
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 40px;
    font-size: 14px;
  }
  .site-footer__links > div { flex-direction: row; gap: 40px; }
  .site-footer__links > div:last-child { justify-content: flex-end; }
}

/* Decorative oversized wordmark + sunken badge.
   The band takes the wordmark's own 1506:301 ratio and the image scales to the
   full width, so nothing is ever cropped. object-fit:cover on a fixed 300px
   band (the original approach) trimmed the letters top and bottom, and got
   worse the wider the viewport. overflow:hidden is still needed to clip the
   badge, which starts 150px below its resting position. */
.site-footer__mark {
  position: relative;
  width: 100%;
  aspect-ratio: 1506 / 301;
  /* Floor the band so the 153px badge always fits — on a narrow screen the
     wordmark's own ratio would collapse it to ~78px and clip the badge. */
  min-height: 300px;
  overflow: hidden;
  flex: none;
  display: flex;
  align-items: center;
}
.site-footer__wordmark {
  display: block;
  width: 100%;
  height: auto;
}
/* Vertically centred in the band, whatever height that band resolves to.
   It animates up from +150px, which is where the un-animated state sits. */
.site-footer__badge {
  position: absolute;
  top: calc(50% - 76.5px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 153px;
  height: 153px;
  background: var(--brand);
  border-radius: 42px;
  color: var(--white);
}
.site-footer__badge .icon {
  width: 111px;
  height: 111px;
  -webkit-mask-image: url("/assets/img/mark-sparkle.svg");
          mask-image: url("/assets/img/mark-sparkle.svg");
}

/* ----------------------------------------------------------- text pages -- */
/* Privacy / Terms. The original centres an 800px column, sets the whole body
   at 15px/1.5 in #3b3b3b, separates every block with a 20px top margin, and
   renders the page title as a word-animated 40px heading. */
.prose-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 800px;
  margin-inline: auto;
  padding: 20px var(--gutter) 40px;
}

.prose-page__title {
  width: 100%;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tight);
  color: var(--ink);
}
@media (min-width: 810px) {
  .prose-page { padding: 40px 0; }
  .prose-page__title { font-size: 32px; }
}
@media (min-width: 1100px) {
  .prose-page__title { font-size: 40px; line-height: 48px; }
}

.prose {
  width: 100%;
  font-size: 15px;
  line-height: 1.5;
  color: #3b3b3b;
}
.prose > * + * { margin-top: 20px; }
.prose h2 {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: #3b3b3b;
}
.prose p { font-size: 15px; line-height: 1.5; }
.prose ul { list-style: disc; padding-left: 30px; }
.prose li { font-size: 15px; line-height: 1.5; }
.prose li + li { margin-top: 0; }
.prose strong { font-weight: 700; }
.prose a { color: inherit; text-decoration: underline; }
.prose a:hover { color: var(--brand); }

/* ------------------------------------------------------------ contact -- */
/* A bordered 400px form card centred under the heading, with a character
   illustration pinned to its right on tablet and up. */
.contact-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  max-width: 660px;
  margin-inline: auto;
  padding: 20px var(--gutter) 40px;
  text-align: center;
}
@media (min-width: 810px) {
  .contact-page { padding: 40px 0; }
}

.contact-page__title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: var(--tight);
}
@media (min-width: 810px) { .contact-page__title { font-size: 32px; } }
@media (min-width: 1100px) { .contact-page__title { font-size: 40px; line-height: 48px; } }

.contact-page__lead {
  font-size: 14px;
  font-weight: 400;
  color: var(--body);
}
@media (min-width: 810px) { .contact-page__lead { font-size: 18px; } }

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
  max-width: 400px;
  padding: 40px;
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--stroke-form);
  text-align: left;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  font-size: 12px;
  font-weight: 500;
  color: #888;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: var(--r-btn);
  background: rgba(187, 187, 187, 0.15);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  color: var(--ink);
}
.contact-form input { height: 40px; }
.contact-form textarea { height: 100px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #999; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--brand);
}

.contact-form .btn {
  width: 100%;
  font-size: 14px;
  font-weight: 600;
}
.contact-form .btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }

.form-status {
  width: 100%;
  padding: 12px;
  border-radius: var(--r-btn);
  font-size: 13px;
  line-height: 1.5;
}
.form-status[hidden] { display: none; }
.form-status--ok { background: #eef8f0; color: #1f7a3d; }
.form-status--error { background: #fdeeee; color: #b3261e; }

/* Character illustration, hidden on phones like the original.
   A fixed 208x403 box with object-fit:contain — not the artwork's own ratio,
   so it must not be left to size itself from the image. */
.contact-character { display: none; }
@media (min-width: 810px) {
  .contact-character {
    display: block;
    position: absolute;
    top: 180px;
    left: 559px;
    width: 208px;
    height: 403px;
    object-fit: contain;
    z-index: 1;
    pointer-events: none;
  }
}

/* ------------------------------------------------------- report modal -- */
/* "View a Live Report" opens app.pulsecheck.pro/demo in a centred overlay.
   Measured from the original: 960x740 white panel, 20px radius, on a
   rgba(0,0,0,.8) backdrop, with the scroll lock applied to <html>.
   Closes on Escape or a backdrop click; there is no close button. */
.report-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}
.report-modal[hidden] { display: none; }

.report-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.report-modal__panel {
  position: relative;
  /* fixed at desktop, shrinks to fit rather than overflowing on small screens */
  width: min(960px, calc(100vw - 40px));
  height: min(740px, calc(100vh - 40px));
  background: var(--white);
  border-radius: var(--r-card);
  overflow: clip;
}
/* focused programmatically on open so keyboard users land inside the dialog —
   but the ring shouldn't be drawn, the original has none */
.report-modal__panel:focus { outline: none; }

.report-modal__panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----------------------------------------------------------- animation -- */
/* Four distinct entrance animations, matching the original's own config:
     words  spring(bounce 0,   0.4s), y10, 75ms per-word stagger, onInView
     block  tween cubic-bezier(.6,0,.4,1) 0.5s, y20, onInView
     quote  spring(bounce 0.4, 1.0s), y10, 0.5s delay, onInView
     hero   spring(bounce 0.4, 1.0s), y10, delays 1/1.5/2/2.5s, on load
   The hidden start state is scoped to .js-reveal, which main.js only adds once
   it knows it can animate — so no-JS and reduced-motion users get plain
   visible content instead of an empty page. */

/* -- block reveal (section leads, step badge/title/body, feature cards) ---- */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s var(--ease-block), transform 0.5s var(--ease-block);
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* the five feature cards stagger 0 / .5 / 1 / 1.5 / 2s once the row is in view */
.js-reveal .feature.reveal { transition-delay: 0s; }
.js-reveal .features__row:first-child .feature:nth-child(2).reveal { transition-delay: 0.5s; }
.js-reveal .features__row:last-child  .feature:nth-child(1).reveal { transition-delay: 1s; }
.js-reveal .features__row:last-child  .feature:nth-child(2).reveal { transition-delay: 1.5s; }
.js-reveal .features__row:last-child  .feature:nth-child(3).reveal { transition-delay: 2s; }

/* -- word-level stagger on the big section headings ----------------------- */
/* The heading itself stays visible; only its word spans animate. */
.js-reveal .reveal[data-reveal="words"] {
  opacity: 1;
  transform: none;
  transition: none;
}
.js-reveal .reveal[data-reveal="words"] .reveal-word {
  display: inline-block;
  opacity: 0.001;
  transform: translateY(10px);
  transition: opacity 0.4s var(--spring-text), transform 0.4s var(--spring-text);
}
.js-reveal .reveal[data-reveal="words"].is-visible .reveal-word {
  opacity: 1;
  transform: none;
}

/* -- quote cards pinned over the breakout illustrations ------------------- */
/* The .is-visible rule must be restated here: `.reveal[data-reveal="quote"]`
   and `.reveal.is-visible` have equal specificity, so without this the later
   rule would win and the card would stay invisible forever. */
.js-reveal .reveal[data-reveal="quote"] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1s var(--spring-quote) 0.5s, transform 1s var(--spring-quote) 0.5s;
}
.js-reveal .reveal[data-reveal="quote"].is-visible {
  opacity: 1;
  transform: none;
}

/* -- hero quote cards: run on load, not on scroll ------------------------ */
.js-reveal .hero__quotes .quote {
  opacity: 0.001;
  transform: translateY(10px);
  transition: opacity 1s var(--spring-quote), transform 1s var(--spring-quote);
}
.js-reveal .hero__quotes .quote:nth-child(1) { transition-delay: 1s; }
.js-reveal .hero__quotes .quote:nth-child(2) { transition-delay: 1.5s; }
.js-reveal .hero__quotes .quote:nth-child(3) { transition-delay: 2s; }
.js-reveal .hero__quotes .quote:nth-child(4) { transition-delay: 2.5s; }
.js-reveal .hero__quotes.is-visible .quote { opacity: 1; transform: none; }

/* -- footer badge spins up into place ------------------------------------
   The original animates {opacity 0, rotate 0, y 150} -> {opacity 1, rotate -90,
   y 0} on a spring(bounce 0.5, 2s) — it rises and turns a quarter-revolution
   with a pronounced overshoot. The settled state is rotated -90deg.

   The trigger sits on the surrounding band, not the badge: the badge's own
   start transform pushes it outside an overflow:hidden parent, so observing it
   directly can never intersect. The band carries .reveal but must not itself
   fade, hence the reset below. */
.site-footer__badge { transform: translateX(-50%) rotate(-90deg); }

.js-reveal .site-footer__mark.reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.js-reveal .site-footer__mark .site-footer__badge {
  opacity: 0;
  transform: translateX(-50%) translateY(150px) rotate(0deg);
  transition: opacity 2s var(--spring-badge), transform 2s var(--spring-badge);
}
.js-reveal .site-footer__mark.is-visible .site-footer__badge {
  opacity: 1;
  transform: translateX(-50%) rotate(-90deg);
}
