/* ==========================================================================
   Cashflow Shifting Membership — video landing pages
   Shared stylesheet for csm_landing1.html, csm_landing2.html, csm_landing3.html

   Same structure and class names as the Cashflow Manager (cfm_landing.css) and
   myCredit System (mcs_landing.css) sets; the palette, type scale and a few
   brand details are what differ. Kept as its own file so any one brand can be
   changed without touching the other two.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --navy:        #04204f;   /* headlines, eyebrow, benefit labels */
  --navy-soft:   #1c3560;   /* body copy */
  --green:       #167a2c;   /* the second half of each headline */
  --blue:        #0057da;   /* primary buttons, badge, links */
  --blue-light:  #1a6ce8;   /* gradient top */
  --blue-deep:   #0050cf;   /* gradient bottom */
  --blue-hover:  #0049b8;
  --blue-active: #003fa1;
  --gold:        #e29c05;   /* the swoosh under the tagline and headlines */
  --note:        #6b7688;   /* benefit sub-labels (page 2) */
  --sky:         #dbeefd;   /* icon circle tint — also baked into the icon PNGs */
  --rule:        #d7e1ee;   /* hairline dividers */
  --page:        #ffffff;
  --focus:       #0057da;

  --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:  999px;     /* Join Now / Contact Me — this brand's are pills */
  --measure:     800px;     /* comfortable line length for body copy */

  /* Overridden per page to match that page's poster crop. Becomes 16 / 9 once
     real 16:9 stills are in place — see README.md. */
  --video-aspect: 16 / 9;

  /* The supplied icons are ~130px artwork with no transparent padding, so this
     is the circle's own diameter rather than a padded box. Capped just above
     the source size to keep them from going soft. */
  --icon-size: clamp(84px, 14vw, 148px);

  --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(4, 32, 79, 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 + "Keep More. Owe Less. Build More."
   -------------------------------------------------------------------------- */
.masthead {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 36px);
  padding: clamp(18px, 2.6vw, 28px) 0 clamp(12px, 1.8vw, 18px);
}

/* Layout wrapper only — the logo is not a link. */
.masthead__logo { flex: 0 0 auto; }

.masthead__logo img { width: clamp(190px, 30vw, 330px); }

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

.masthead__tagline {
  color: var(--navy);
  font-size: clamp(15px, 2.1vw, 25px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-align: left;
  text-wrap: balance;
}

/* The gold swoosh under the tagline, drawn in CSS. It is deliberately shorter
   than the text and slightly rounded, like the one painted into the artwork. */
.masthead__tagline::after {
  content: "";
  display: block;
  width: 66%;
  min-width: 120px;
  height: 4px;
  margin-top: 0.42em;
  border-radius: 999px;
  background: var(--gold);
}

/* --------------------------------------------------------------------------
   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.4vw, 26px);
  padding-bottom: clamp(12px, 1.8vw, 18px);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: clamp(8px, 1.2vw, 13px) clamp(18px, 2.4vw, 28px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-light) 0%, var(--blue-deep) 100%);
  color: #fff;
  font-size: clamp(14px, 1.8vw, 20px);
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Small white disc with a blue triangle, drawn in CSS so it stays crisp. */
.badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.4em;
  height: 1.4em;
  border-radius: 50%;
  background: #fff;
}

.badge__icon::before {
  content: "";
  border-style: solid;
  border-width: 0.28em 0 0.28em 0.44em;
  border-color: transparent transparent transparent var(--blue);
  margin-left: 0.12em;
}

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

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

/* --------------------------------------------------------------------------
   5. Video facade
   Poster image + play affordance. The real player is injected on click by
   csm_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(4, 32, 79, 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(24px, 4vw, 42px) 0 clamp(20px, 3.2vw, 34px);
  text-align: center;
}

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

/* The green half of each headline. */
.pitch__heading .accent { color: var(--green); }

/* Gold swoosh under the headline. Pages 2 and 3 have one in the mockups;
   page 1 does not — add the class to .pitch__heading to turn it on. */
.pitch__heading--ruled::after {
  content: "";
  display: block;
  width: clamp(120px, 17vw, 190px);
  height: 5px;
  margin: 0.34em auto 0;
  border-radius: 999px;
  background: var(--gold);
}

.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;
  box-shadow: 0 4px 14px rgba(0, 87, 218, 0.28);
}

.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(--navy);
}

.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;
}

/* Envelope on Contact Me, drawn as a box with a folded flap across it. */
.btn__envelope {
  position: relative;
  width: 1.28em;
  height: 0.94em;
  border: 0.11em solid currentColor;
  border-radius: 0.12em;
  flex: 0 0 auto;
  overflow: hidden;
}

.btn__envelope::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -0.42em;
  width: 0.86em;
  height: 0.86em;
  border-right: 0.11em solid currentColor;
  border-bottom: 0.11em solid currentColor;
  transform: translateX(-50%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   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(12px, 2.2vw, 24px) 0 clamp(28px, 3.8vw, 44px);
}

.benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(6px, 1.1vw, 14px);
  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);
}

.benefit__icon { width: var(--icon-size); }

.benefit__label {
  color: var(--navy);
  font-size: clamp(15px, 2.1vw, 24px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

/* Only page 2 carries these in the mockups. */
.benefit__note {
  color: var(--note);
  font-size: clamp(11px, 1.5vw, 17px);
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-transform: uppercase;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   8. Footer banner
   Unlike the myCredit System set, these exports are clean and full-bleed —
   the lockup, script line and strapline are all in the artwork, so there is
   no HTML text layered over the photo.
   -------------------------------------------------------------------------- */
.site-footer { margin-top: auto; }

.site-footer img { width: 100%; }

/* --------------------------------------------------------------------------
   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: 12px; padding-top: 20px; }
  .masthead__rule { display: none; }
  .masthead__logo { flex-basis: 100%; display: flex; justify-content: center; }
  .masthead__logo img { width: min(68vw, 280px); }

  .masthead__tagline { text-align: center; font-size: 17px; }
  .masthead__tagline::after { margin-inline: auto; width: 46%; }
}

@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; }

  /* Icon on the left, label (and its sub-line, where there is one) stacked in
     the column to its right. A grid rather than a flex row, so the icon can
     span both text lines and stay centred against them. */
  .benefit {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    column-gap: 18px;
    row-gap: 2px;
    padding: 16px 4px;
    text-align: left;
  }

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

  .benefit__icon { width: 62px; grid-row: 1 / -1; }

  .benefit__label,
  .benefit__note { grid-column: 2; }

  .benefit__label { font-size: 17px; }
  .benefit__note { font-size: 12px; }
}

/* --------------------------------------------------------------------------
   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; box-shadow: none; }
}
