/* ==========================================================================
   myCredit System — video landing pages
   Shared stylesheet for mcs_landing1.html, mcs_landing2.html, mcs_landing3.html

   Same structure as the Cashflow Manager set (cfm_landing.css); the brand
   palette, type scale and footer lockup are what differ. Kept as its own file
   so either brand can be changed without touching the other.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy:        #0a2352;   /* headlines */
  --navy-soft:   #17356e;   /* body copy */
  --blue:        #0f63c4;   /* primary / links */
  --blue-light:  #1380ea;   /* gradient top */
  --blue-deep:   #0161be;   /* gradient bottom */
  --blue-hover:  #0a56ad;
  --blue-active: #084a97;
  --label:       #1257c7;   /* icon captions */
  --tagline:     #4a78bc;   /* masthead tagline */
  --green:       #45be4b;   /* accent rule (baked into the artwork too) */
  --sky:         #e2effd;   /* icon circle tint (also baked into the icon PNGs) */
  --rule:        #cfe0f4;   /* hairline dividers */
  --page:        #ffffff;
  --focus:       #0f63c4;

  --shell:       1100px;    /* the page box — nothing gets wider than this */
  --shell-bg:    #eceff4;   /* light grey surround on screens wider than the box */
  --container:   1040px;    /* content inset inside the box */
  --btn-radius:  12px;      /* Join Now / Contact Me corners */
  --measure:     780px;     /* comfortable line length for body copy */

  /* All three myCredit System videos are 16:9. */
  --video-aspect: 16 / 9;

  --font: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
          Arial, "Helvetica Neue", sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--shell-bg);
}

/* The body is the page box: capped at --shell and centred, so the footer
   banner stops at the same edge as everything else on wide monitors. */
body {
  margin: 0 auto;
  max-width: var(--shell);
  background: var(--page);
  box-shadow: 0 0 0 1px rgba(10, 35, 82, 0.06);
  color: var(--navy-soft);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

img { max-width: 100%; height: auto; display: block; border: 0; }

h1, h2, p, figure { margin: 0; }

a { color: var(--blue); }

:where(a, button):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* --------------------------------------------------------------------------
   3. Masthead — logo + three-line brand tagline
   -------------------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 34px);
  padding: clamp(20px, 3vw, 30px) 0 clamp(14px, 2vw, 22px);
}

/* Layout wrapper only — the logo is not a link. It keeps the image out of
   the flex flow's shrinking and gives it its own row on small screens. */
.masthead__logo { flex: 0 0 auto; }

.masthead__logo img { width: clamp(200px, 32vw, 340px); }

.masthead__rule {
  align-self: stretch;
  width: 1px;
  min-height: 76px;
  background: var(--rule);
  flex: 0 0 auto;
}

.masthead__tagline {
  color: var(--tagline);
  font-size: clamp(11px, 1.4vw, 16px);
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.45;
  text-transform: uppercase;
  text-align: left;
}

.masthead__tagline sup {
  font-size: 0.7em;
  vertical-align: super;
  line-height: 0;
}

/* --------------------------------------------------------------------------
   4. Video eyebrow — "Video 1 of 3" badge + episode title
   -------------------------------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: clamp(14px, 2.5vw, 26px);
  padding-bottom: clamp(14px, 2vw, 20px);
}

/* Gradient pill. No play glyph in this brand's badge. */
.badge {
  display: inline-flex;
  align-items: center;
  padding: clamp(9px, 1.3vw, 14px) clamp(20px, 2.6vw, 32px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-deep) 100%);
  color: #fff;
  font-size: clamp(15px, 1.9vw, 21px);
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.eyebrow__divider {
  align-self: stretch;
  width: 1px;
  background: var(--rule);
  flex: 0 0 auto;
}

.eyebrow__title {
  color: var(--navy);
  font-size: clamp(15px, 1.85vw, 20px);
  font-weight: 500;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   5. Video facade
   Poster image + play affordance. The real player is injected on click by
   mcs_video.js, so nothing third-party loads until the visitor asks for it.
   -------------------------------------------------------------------------- */
.video {
  position: relative;
  aspect-ratio: var(--video-aspect);
  overflow: hidden;
  border-radius: 10px;
  background: #0b1320;
  box-shadow: 0 6px 24px rgba(10, 35, 82, 0.14);
}

.video__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.video__play:hover,
.video__play:focus-visible { background: rgba(4, 20, 46, 0.18); }

.video__play:focus-visible { outline-offset: -4px; }

/* Play circle. Hidden when the poster already has one drawn into it — see the
   data-poster-play="baked" note in the HTML. */
.video__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(56px, 9vw, 96px);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: rgba(10, 20, 40, 0.32);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.video__play-icon::before {
  content: "";
  border-style: solid;
  border-width: 0.55em 0 0.55em 0.9em;
  border-color: transparent transparent transparent #fff;
  margin-left: 0.22em;
  font-size: clamp(18px, 2.6vw, 28px);
}

.video__play:hover .video__play-icon,
.video__play:focus-visible .video__play-icon {
  transform: scale(1.06);
  background: rgba(10, 20, 40, 0.5);
}

.video[data-poster-play="baked"] .video__play-icon { display: none; }

.video iframe,
.video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

/* --------------------------------------------------------------------------
   6. Pitch — headline, supporting copy, calls to action
   -------------------------------------------------------------------------- */
.pitch {
  padding: clamp(26px, 4.5vw, 46px) 0 clamp(22px, 3.5vw, 36px);
  text-align: center;
}

.pitch__heading {
  color: var(--navy);
  font-size: clamp(27px, 4.3vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.pitch__copy {
  max-width: var(--measure);
  margin: clamp(12px, 1.8vw, 20px) auto 0;
  font-size: clamp(16px, 2.1vw, 23px);
  line-height: 1.4;
  text-wrap: pretty;
}

.actions {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(14px, 2vw, 26px);
  margin-top: clamp(22px, 3vw, 34px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 250px;
  min-height: 58px;
  padding: 14px 32px;
  border: 2px solid transparent;
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, filter 0.18s ease, transform 0.18s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-deep) 100%);
  border-color: transparent;
  color: #fff;
}

.btn--primary:hover { filter: saturate(1.05) brightness(1.06); }
.btn--primary:active { filter: brightness(0.94); }

.btn--secondary {
  background: #fff;
  border-color: var(--blue);
  color: var(--blue);
}

.btn--secondary:hover {
  background: var(--sky);
  border-color: var(--blue-hover);
  color: var(--blue-hover);
}

/* Chevron, drawn in CSS so it stays crisp at any size. */
.btn__chevron {
  width: 0.46em;
  height: 0.46em;
  border-top: 0.13em solid currentColor;
  border-right: 0.13em solid currentColor;
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* --------------------------------------------------------------------------
   7. Benefits — three icons with hairline dividers between them
   -------------------------------------------------------------------------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  padding: clamp(14px, 2.5vw, 26px) 0 clamp(30px, 4vw, 46px);
}

.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.9vw, 10px);
  padding-inline: clamp(8px, 2vw, 24px);
  text-align: center;
}

.benefit + .benefit::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4%;
  bottom: 4%;
  width: 1px;
  background: var(--rule);
}

/* The PNGs carry ~26% transparent padding, so the visible circle reads
   smaller than the box. Sized so the circle lands where the mockup has it. */
.benefit__icon { width: clamp(104px, 19vw, 202px); }

.benefit__label {
  color: var(--label);
  font-size: clamp(13px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-transform: uppercase;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   8. Footer banner
   The artwork carries its own headline and green rule. The brand lockup is
   live text over the photo — the supplied exports had it clipped, and as text
   it also stays legible at phone sizes. See README.md.
   -------------------------------------------------------------------------- */
.site-footer { margin-top: auto; }

.banner { position: relative; }

.banner img { width: 100%; }

.banner__lockup {
  position: absolute;
  left: 7.7%;
  bottom: 7%;
  right: 7.7%;
  color: #fff;
  text-shadow: 0 1px 14px rgba(0, 20, 45, 0.35);
}

/* Footer 2 sits on pale wood, so its lockup is brand blue with no shadow. */
.banner--ink-blue .banner__lockup {
  color: #0f3fa0;
  text-shadow: none;
}

.banner__brand {
  display: block;
  font-size: clamp(16px, 3vw, 33px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.banner__tagline {
  display: block;
  margin-top: 0.18em;
  font-size: clamp(11px, 1.9vw, 21px);
  font-weight: 400;
  line-height: 1.25;
}

.banner__tagline sup {
  font-size: 0.62em;
  vertical-align: super;
  line-height: 0;
}

/* --------------------------------------------------------------------------
   9. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .eyebrow { justify-content: center; text-align: center; }
  .eyebrow__title { flex-basis: 100%; }
  .eyebrow__divider { display: none; }
}

@media (max-width: 720px) {
  .masthead { gap: 14px; padding-top: 22px; }
  .masthead__rule { display: none; }
  .masthead__logo { flex-basis: 100%; display: flex; justify-content: center; }
  .masthead__logo img { width: min(72vw, 300px); }
  /* The three phrases keep their own lines here — run together on one line
     they read as a single run-on ("Take Action Build Your Future ..."). */
  .masthead__tagline {
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.08em;
    line-height: 1.5;
  }
}

@media (max-width: 560px) {
  .container { padding-inline: 16px; }

  .actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { width: 100%; min-width: 0; }

  /* Stack the three benefits and swap the vertical rules for horizontal ones. */
  .benefits { grid-template-columns: 1fr; gap: 0; }

  .benefit {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 4px;
    text-align: left;
  }

  .benefit + .benefit::before {
    left: 4px;
    right: 4px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .benefit__icon { width: 64px; flex: 0 0 auto; }
  .benefit__label { font-size: 15px; }

  .banner__lockup { bottom: 8%; }
}

/* --------------------------------------------------------------------------
   10. Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  html { background: #fff; }
  body { max-width: none; box-shadow: none; }
  .video__play { display: none; }
  .btn { border: 1px solid #000; color: #000; background: #fff; }
}
