/* Future Life homepage — design 3a from the homepage redesign handoff.
   Colours, type and spacing are the design's; the responsive rules are not,
   because the design is a fixed 1180px artboard and roughly two thirds of
   this site's traffic is new parents on a phone. Every section that is a
   two-column grid collapses to one, and the two marquees keep running.

   Separate from styles-505-11-0-1-55.css, which is the old site builder's
   stylesheet and still dresses the inner pages. Nothing here leaks into
   those: everything is under .fl- or a section class this page alone uses. */

:root {
  --navy-deep: #0b3b56;
  --navy: #0f4d6e;
  --navy-brand: #004f70;
  --sky: #4ba3dc;
  --sky-wills: #42a4dc;
  --link: #2e88c4;
  --bg-blue: #e0edf6;
  --bg-page: #eef4f9;
  --border: #dce8f1;
  --body: #38607a;
  --body-alt: #41647a;
  --muted: #527a93;
  --ink: #123a4e;
  --ink-deep: #0f2f42;
  --amber: #f5a623;
  --pad-x: 56px;
  --ticker-h: 104px;

  /* The design is a 1180px artboard, and pinning everything to it meant the
     page was a fixed physical size: right on a 1400px laptop, small and lost
     on a 2000px monitor. Morgan was viewing it at 175% zoom to make it look
     the way it should, which is the tell (11 Aug).
     So the container grows with the screen instead — 1180 up to about a
     1440 display, widening to 1560 beyond that. Capped, because a line of
     body text running the full width of a 2560px monitor is unreadable. */
  --maxw: clamp(1180px, 78vw, 1560px);
  /* Height of the fixed furniture above the hero (accent bar + header), so
     the hero can size itself to leave the ticker exactly at the fold. */
  --header-h: 101px;
}

/* Proxima Soft is the licensed family; Poppins is the fallback and is close
   enough in weight and roundness that a kit failure is not a broken page. */
.fl-home {
  margin: 0;
  font-family: proxima-soft, Poppins, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}
.fl-home * { box-sizing: border-box; }
.fl-home img { max-width: 100%; }
.fl-home a { text-decoration: none; }

.fl-accent-bar { height: 5px; background: linear-gradient(90deg, var(--navy), var(--sky)); }

/* ---- Header ------------------------------------------------------------ */
.fl-header {
  display: flex; align-items: center; gap: 36px;
  padding: 18px var(--pad-x); background: #fff; border-bottom: 1px solid var(--border);
}
.fl-header .fl-logo { height: 52px; width: auto; display: block; }
.fl-nav { display: flex; gap: 30px; margin-left: auto; font-weight: 600; font-size: 15px; }
.fl-nav a { color: var(--body-alt); padding-bottom: 3px; }
.fl-nav a:hover { color: var(--navy); }
.fl-nav a[aria-current="page"] { color: var(--navy); border-bottom: 2px solid var(--sky); }

.fl-pill {
  display: inline-block; background: var(--navy); color: #fff;
  font-weight: 600; font-size: 14px; padding: 11px 22px; border-radius: 999px;
}
.fl-pill:hover { background: var(--navy-deep); color: #fff; }

/* ---- Hero -------------------------------------------------------------- */
/* Sized so the hero fills the first screen and the blue ticker lands right at
   the bottom of it — the two are meant to be seen together on landing
   (Morgan, 11 Aug). svh rather than vh, or mobile browser chrome pushes the
   ticker below the fold, which is the one place it must not be.
   A floor of 560px stops it collapsing on a short laptop window. */
.fl-hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center; align-content: center;
  padding: 64px var(--pad-x) 56px; background: var(--bg-blue);
  min-height: max(560px, calc(100vh - var(--ticker-h) - var(--header-h)));
  min-height: max(560px, calc(100svh - var(--ticker-h) - var(--header-h)));
}
.fl-badge {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #1a6ea3;
  font-weight: 600; font-size: 13px; padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.fl-hero h1 {
  font-weight: 800; font-size: clamp(52px, 3.3vw, 68px); line-height: 1.08; margin: 0 0 18px;
  color: var(--navy-deep); text-wrap: pretty;
}
.fl-hero p { font-size: clamp(18px, 1.1vw, 23px); line-height: 1.6; color: var(--body); margin: 0 0 30px; max-width: 52ch; }
.fl-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.fl-cta {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; box-shadow: 0 6px 16px rgba(15, 77, 110, .3);
}
.fl-cta:hover { background: var(--navy-deep); color: #fff; }
.fl-call { color: var(--navy); font-weight: 600; font-size: 16px; padding: 15px 10px; }
.fl-call:hover { color: var(--link); }
.fl-hero-img {
  width: 100%; height: clamp(420px, 26vw, 540px); object-fit: cover; border-radius: 24px;
  box-shadow: 0 18px 40px rgba(15, 61, 90, .22);
}

/* ---- Marquees ---------------------------------------------------------- */
/* Travel exactly ONE copy, so the loop lands on an identical frame. The
   percentage therefore depends on how many copies are on the track: -50% for
   two, a third for three, a quarter for four.
   Why more than two: the track must still be wider than the window AFTER it
   has travelled a copy, or you watch it run out — one copy of the partner
   logos is 1109px against a 1985px screen, so with two copies the right-hand
   third of the band went white every cycle (Morgan, 11 Aug). Three copies of
   the ticker cover a 3234px screen; four of the logos cover 3327px. */
@keyframes fl-marquee-3 { to { transform: translateX(-33.3333%); } }
@keyframes fl-marquee-4 { to { transform: translateX(-25%); } }
.fl-marquee { overflow: hidden; position: relative; }
.fl-marquee-track { display: flex; width: max-content; }
/* Movement that cannot be stopped is a genuine accessibility problem for
   vestibular disorders, and this page is read by exhausted new parents. */
@media (prefers-reduced-motion: reduce) {
  .fl-marquee-track { animation: none; }
  .fl-marquee { overflow-x: auto; }
}
/* No pause-on-hover. The handoff had it as optional and it is a bad option
   here: these bands run the full width of the page, so a cursor resting
   anywhere near them stops the loop and it reads as broken (Morgan, 11 Aug). */

.fl-ticker { padding: 26px 0; background: var(--navy); }
.fl-ticker .fl-marquee-track { gap: 0; animation: fl-marquee-3 39s linear infinite; }
.fl-ticker-group { display: flex; gap: 48px; align-items: center; flex: none; margin-right: 48px; }
.fl-fade-l, .fl-fade-r { position: absolute; top: 0; bottom: 0; width: 120px; z-index: 1; pointer-events: none; }
.fl-ticker .fl-fade-l { left: 0; background: linear-gradient(90deg, var(--navy), rgba(15, 77, 110, 0)); }
.fl-ticker .fl-fade-r { right: 0; background: linear-gradient(270deg, var(--navy), rgba(15, 77, 110, 0)); }
.fl-check { display: flex; align-items: center; gap: 12px; }
.fl-check i {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--sky); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-style: normal;
}
.fl-check span { font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; }
.fl-rating { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.fl-stars { color: var(--amber); font-size: 18px; letter-spacing: 3px; line-height: 1; white-space: nowrap; }
.fl-rating-src { display: flex; align-items: center; gap: 10px; }
.fl-rating-src .fl-score { font-weight: 600; font-size: 26px; color: #fff; line-height: 1; }
.fl-rating-src .fl-src-name { font-weight: 700; font-size: 15px; color: #fff; white-space: nowrap; }
.fl-chip { background: #fff; border-radius: 5px; padding: 3px 8px; display: inline-flex; }
.fl-chip img { height: 14px; display: block; }
.fl-src-icon { height: 20px; width: 20px; object-fit: contain; }

/* ---- How we help ------------------------------------------------------- */
.fl-steps { padding: clamp(72px, 5.5vw, 108px) var(--pad-x); background: var(--bg-page); }
.fl-steps h2 { font-weight: 700; font-size: clamp(34px, 2.15vw, 44px); color: var(--navy-deep); margin: 0 0 8px; text-align: center; }
.fl-steps .fl-sub { text-align: center; color: var(--muted); margin: 0 0 44px; font-size: clamp(17px, 1.05vw, 22px); }
.fl-step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 2vw, 36px); }
/* The design's 28px padding made these 422 wide by 147 tall — thin strips
   under a 540px hero, which read as offcuts rather than as the three things
   the whole page is built around (Morgan, 10 Aug). The step number carries
   the visual weight now, and a floor on the height keeps all three matched
   whether their titles run to one line or three. */
.fl-step {
  background: #fff; border-radius: 24px;
  padding: clamp(56px, 3.7vw, 78px) clamp(48px, 3.1vw, 66px);
  box-shadow: 0 4px 14px rgba(15, 61, 90, .07);
  display: flex; flex-direction: column; gap: 18px;
  /* Top-aligned, and NO fixed height. Two short lines cannot fill a 380px
     card however they are arranged: pinned to the bottom it had a hole in the
     middle; centred it had holes top AND bottom, and the three step labels
     stopped lining up because the third title runs to an extra line
     (Morgan, 11 Aug). The grid already stretches all three to match the
     tallest, so letting the content set the height gives equal cards that are
     actually full. The numeral is what gives them their size. */
  justify-content: flex-start;
}
/* "Step 1" leads the card, in the title face and larger than the words under
   it — it was a 14.5px tracked label, which left the card to be filled by two
   lines of body text and it never could be (Morgan, 11 Aug). Making the step
   the headline and the promise the supporting line fills the card and gives
   the three of them an obvious reading order. */
.fl-step-label {
  margin: 0; font-weight: 800; line-height: 1;
  font-size: clamp(34px, 2.3vw, 46px); color: var(--sky);
}
.fl-step h3 {
  font-weight: 700; font-size: clamp(21px, 1.4vw, 27px); margin: 0; color: var(--navy-deep);
  line-height: 1.4; text-wrap: pretty;
}

/* ---- Partner banner ---------------------------------------------------- */
.fl-partners { padding: 24px 0 20px; background: #fff; border-bottom: 1px solid var(--border); }
.fl-partners .fl-marquee-track { gap: 0; align-items: center; animation: fl-marquee-4 40s linear infinite; }
.fl-partner-group { display: flex; gap: 90px; align-items: center; flex: none; margin-right: 90px; }
/* Above the logos rather than laid over the left of them (Morgan, 11 Aug).
   Overlaid, it needed a white gradient to sit on and the logos still ran
   under it — and the two with big negative margins rode up over the words.
   The padding below has to clear the largest of those margins, or a logo
   still reaches the text. */
.fl-partners-label {
  padding: 0 var(--pad-x) 28px;
}
.fl-partners-label span {
  font-weight: 700; font-size: 15px; color: var(--muted);
  letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
}
.fl-partners .fl-fade-r { width: 140px; right: 0; background: linear-gradient(270deg, #fff, rgba(255, 255, 255, 0)); z-index: 2; }
/* The design's own heights and negative margins: these five logos carry very
   different amounts of built-in whitespace, so they are trimmed back to a
   common optical size rather than a common box. */
.fl-partner-group img { display: block; }
/* Recropped too (11 Aug): 54% ink against the original's 22%, so the -34px
   margin that used to claw back its whitespace is gone. 92px puts its
   artwork at about 50px, level with the rest. */
.fl-p-bounty { height: 92px; }
.fl-p-daisy { height: 60px; }
/* Morgan recropped this one (11 Aug): 66% ink against the original's 25%, so
   it no longer needs the 150px-and-negative-margin trick to look the right
   size. 76px puts its artwork at about 50px, matching the others. */
.fl-p-babytoddler { height: 76px; }
.fl-p-toddle { height: 56px; }
.fl-p-babyshow { height: 60px; }

/* ---- Booking tile ------------------------------------------------------ */
.fl-booking {
  /* Fluid, like the rest of the page: the tile is the tallest thing on the
     page after the hero, so a fixed 64px reads as cramped on a big screen
     (Morgan, 11 Aug). The horizontal value is overridden further down by the
     content-width rule; only the vertical one matters here. */
  padding: clamp(120px, 11vw, 256px) var(--pad-x); background: var(--bg-blue);
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.fl-booking-copy { color: var(--navy-brand); }
.fl-booking-copy h2 { font-weight: 700; font-size: clamp(40px, 2.5vw, 52px); margin: 0 0 16px; line-height: 1.15; }
.fl-booking-copy h2 span { color: var(--sky-wills); }
.fl-booking-copy p { color: var(--body); line-height: 1.7; margin: 0 0 26px; font-size: clamp(17px, 1.05vw, 22px); }
.fl-rated { display: flex; align-items: center; gap: 10px; }
.fl-rated .fl-stars { font-size: 16px; letter-spacing: 2px; }
.fl-rated span:last-child { font-size: 15px; color: var(--body); }

/* No card, no box — the form sits straight on the background, and the field
   outline IS the styling. Borrowed from the wills site so the two read as one
   firm. */
.fl-form { display: flex; flex-direction: column; gap: 18px; }
.fl-field { border: 2px solid var(--navy-brand); border-radius: 8px; padding: 0 12px 12px; margin: 0; min-width: 0; }
.fl-field legend { font-size: 15.5px; color: var(--sky-wills); padding: 0 8px; margin-left: 12px; }
/* 16px, not the design's 15.5px: anything under 16px makes iOS Safari zoom
   the page the instant the field is tapped, which on a phone throws the rest
   of the form off screen. */
.fl-field input {
  border: none; outline: none; width: 100%; height: 30px; font-family: inherit;
  font-size: 16px; background: transparent; padding: 0 8px; color: var(--ink-deep);
}
.fl-consent {
  font-size: 15.5px; color: var(--ink-deep); display: flex; align-items: center;
  gap: 12px; cursor: pointer;
}
.fl-consent input { width: 20px; height: 20px; accent-color: var(--navy-brand); margin: 0; flex: none; }
.fl-consent a { color: var(--sky-wills); font-style: italic; }
.fl-consent a:hover { text-decoration: underline; }
.fl-submit {
  background: var(--sky-wills); color: #fff; border: none; font-family: inherit;
  font-weight: 500; font-size: 17px; padding: 16px; border-radius: 999px; cursor: pointer;
}
.fl-submit:hover { background: #2f8fc6; }
.fl-submit:disabled { opacity: .6; cursor: not-allowed; }
.fl-form-status { font-size: 15px; margin: 0; min-height: 20px; }
.fl-form-status.fl-error { color: #b00020; }
.fl-thanks { font-size: 17px; line-height: 1.6; color: var(--navy-brand); }
.fl-thanks strong { display: block; font-size: 20px; margin-bottom: 6px; }

/* ---- Trusted partner --------------------------------------------------- */
.fl-trusted {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 56px var(--pad-x); background: var(--navy-deep); color: #fff;
}
.fl-trusted img { width: 100%; height: clamp(340px, 21vw, 440px); object-fit: cover; border-radius: 20px; }
.fl-trusted .fl-eyebrow {
  font-weight: 600; font-size: 14px; color: #8fc6e8; letter-spacing: .08em;
  text-transform: uppercase; margin-bottom: 12px;
}
.fl-trusted h2 { font-weight: 700; font-size: clamp(32px, 2vw, 41px); margin: 0 0 16px; }
.fl-trusted p { line-height: 1.7; color: #cfe4f2; margin: 0 0 26px; font-size: clamp(16px, 1vw, 21px); }
/* Required disclosure sitting inside a body-copy section: smaller and quieter
   than the paragraph it qualifies, but held above the contrast floor. It is a
   caveat a reader has to be able to read, not decoration to be lost against
   the background. */
.fl-trusted p.fl-smallprint {
  font-size: 14px; line-height: 1.6; color: #a9c8dc; margin: -14px 0 26px; max-width: 78ch;
}
.fl-sky-pill {
  display: inline-block; background: var(--sky); color: #fff; font-weight: 700;
  font-size: 15px; padding: 13px 26px; border-radius: 999px;
}
.fl-sky-pill:hover { background: #2f8fc6; color: #fff; }

/* ---- Footer ------------------------------------------------------------ */
.fl-footer {
  background: var(--navy-deep); padding: 48px var(--pad-x);
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  text-align: center; color: #fff;
}
.fl-footer img { width: 168px; height: auto; }
.fl-footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: 15px; }
.fl-footer-links a { color: #cfe4f2; }
.fl-footer-links a:hover { color: #fff; text-decoration: underline; }
.fl-footer p { margin: 0; font-size: 15px; }
.fl-footer p a { color: #fff; text-decoration: underline; }
/* Required disclosure, not decoration — see the note in index.html. */
.fl-regulatory {
  font-size: 13px; line-height: 1.6; color: #a9c8dc; max-width: 78ch;
  border-top: 1px solid rgba(255, 255, 255, .14); padding-top: 20px;
}

/* ---- Content width ----------------------------------------------------- */
/* Full-bleed backgrounds, capped content, no wrapper divs: the horizontal
   padding grows to absorb anything beyond --maxw and never drops below
   --pad-x. Deliberately last in the file — every section above sets `padding`
   as a shorthand, which resets padding-inline, so this has to come after them
   to win.
   The two marquees are left full width on purpose: a ticker that stops short
   of the edges stops reading as a ticker. */
.fl-header, .fl-hero, .fl-steps, .fl-booking, .fl-trusted, .fl-footer {
  padding-inline: max(var(--pad-x), (100% - var(--maxw)) / 2);
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .fl-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; }
  .fl-hero h1 { font-size: 40px; }
  .fl-hero-img { height: 320px; }
  .fl-step-grid { grid-template-columns: 1fr; }
  .fl-booking { grid-template-columns: 1fr; gap: 36px; }
  .fl-booking-copy h2 { font-size: 32px; }
  .fl-trusted { grid-template-columns: 1fr; gap: 28px; }
  .fl-trusted img { height: 260px; }
}
@media (max-width: 720px) {
  :root { --pad-x: 20px; }
  /* Logo and the quote button share the top row, the two links sit centred
     underneath. All three will not fit across a phone — 418px of content in
     335px — so the pill was wrapping on its own and looking like an accident
     (Morgan, 11 Aug). This is the same wrap, done on purpose. */
  .fl-header { gap: 12px; flex-wrap: wrap; justify-content: space-between; }
  .fl-header .fl-logo { height: 42px; }
  .fl-header > a:first-child { order: 0; }
  .fl-pill { order: 1; padding: 10px 18px; }
  .fl-nav {
    order: 2; flex-basis: 100%; margin-left: 0;
    justify-content: center; gap: 26px; font-size: 15px;
  }

  /* Nothing to undo here any more — the logos are cropped and share one
     height at every width. Just tighten the spacing for a narrow screen. */
  .fl-partner-group { gap: 52px; margin-right: 52px; }
  .fl-hero h1 { font-size: 32px; }
  .fl-hero p { font-size: 16px; }
  .fl-hero-img { height: 240px; border-radius: 18px; }
  .fl-cta, .fl-pill { padding: 13px 22px; }
  .fl-steps h2, .fl-booking-copy h2, .fl-trusted h2 { font-size: 26px; }
}
