/* FinanceKeem website. White page, bold Open Sans, one muted green, dark bands.
   Colors are the ones the live site uses: #5ca581 for highlighted words and the
   green testimonial band, #09c269 for buttons, #20242d for dark bands. */
:root {
  --green: #5ca581;
  --green-ink: #3f7d5e;          /* the same green, darker, for small text on white */
  --btn: #09c269;
  --btn-hover: #1dab65;
  --btn-ink: #ffffff;
  --ink: #20242d;
  --text: #333333;
  --muted: #5d636e;
  --card: #f6f7fa;
  --line: #e5e7eb;
  --gold: #ffd145;
  --mint: #def3e6;
  --radius: 8px;
  --wrap: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: #ffffff; color: var(--text);
  font-family: 'Open Sans', Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.dark :focus-visible, .band-green :focus-visible { outline-color: #ffffff; }

h1, h2, h3 { color: #000; font-weight: 800; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; }
.hl { color: var(--green); }
p { margin: 0 0 14px; }

/* Buttons */
.btn {
  display: inline-block; background: var(--btn); color: var(--btn-ink); text-decoration: none;
  font-weight: 600; font-size: 15px; padding: 13px 38px; border-radius: 6px; border: 0; cursor: pointer;
  font-family: inherit; transition: background .15s ease; text-align: center;
}
.btn:hover { background: var(--btn-hover); }
.btn.small { padding: 10px 24px; font-size: 14px; }
.btn.dark { background: #000; }
.btn.dark:hover { background: #171616; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a.link { text-decoration: none; font-size: 14px; font-weight: 600; color: #111; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a.link:hover, .nav a.link[aria-current="page"] { border-bottom-color: var(--green); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; }

/* Home hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch; background: #fff; }
.hero-copy { padding: 64px 24px 64px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)); display: flex; flex-direction: column; justify-content: center; gap: 22px; }
.hero-copy .lead { font-size: 19px; font-weight: 700; color: #111; margin: 0; }
.hero-copy .sub { font-size: 15px; color: var(--text); margin: 0; }
.hero-copy .rule { border: 0; border-top: 1px solid #999; width: 110px; margin: 4px 0; }
.hero-copy .note { font-size: 14px; color: var(--muted); margin: 0; }
.hero-photo { background: #0e1a1a; min-height: 460px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Plain sections */
section { padding: 64px 0; }
.sec-tight { padding: 40px 0; }
.center { text-align: center; }
.lede { max-width: 760px; font-size: 16px; }
.center .lede { margin-left: auto; margin-right: auto; }

/* Three-up cards with an image */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar img { width: 100%; aspect-ratio: 1 / .95; object-fit: cover; border-radius: 4px; background: var(--card); }
.pillar h3 { margin: 16px 0 6px; }
.pillar p { font-size: 15px; color: var(--text); }

/* Dark bands */
.dark { background: var(--ink); color: #fff; }
.dark h2, .dark h3 { color: #fff; }
.quote { text-align: center; padding: 6px 8px; }
.quote blockquote { margin: 0 0 14px; font-size: 16px; font-weight: 600; line-height: 1.55; }
.quote .who { font-weight: 800; margin: 0; }
.quote .role { font-size: 14px; margin: 0 0 8px; opacity: .92; }
.stars { color: var(--gold); letter-spacing: 3px; font-size: 18px; }
.band-green { background: var(--green); color: #fff; padding: 36px 0; }
.band-green .quote blockquote { font-size: 15px; font-weight: 400; }

/* Carousel (testimonials) */
.carousel { position: relative; }
.carousel .slide { display: none; }
.carousel .slide.on { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.dots button { width: 11px; height: 11px; border-radius: 50%; border: 1px solid currentColor; background: transparent; padding: 0; cursor: pointer; }
.dots button[aria-current="true"] { background: currentColor; }
.card-quote { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 28px 24px; }
.card-quote .stars { color: var(--green); }
.card-quote .quote blockquote { font-weight: 400; color: var(--text); }
.card-quote .quote .who { color: #000; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.step .n { color: var(--green); font-size: 22px; font-weight: 600; }
.step h3 { margin: 4px 0 10px; font-size: 17px; font-weight: 600; color: #111; }
.step p { font-size: 15px; }

/* Guide */
.guide .eyebrow { color: var(--green-ink); font-size: 14px; font-weight: 600; margin: 0 0 6px; }
.guide h2 { font-size: 24px; margin-bottom: 14px; }
.guide .closing { font-style: italic; color: var(--green-ink); }

/* FAQ */
.faq { background: var(--ink); padding: 56px 0; }
.faq details { background: #20242d; border: 1px solid #5d636e; border-radius: 4px; margin-bottom: 8px; color: #fff; }
.faq summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '⌄'; font-size: 20px; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq details[open] { background: #fff; color: var(--text); }
.faq details[open] summary { color: #111; }
.faq .answer { padding: 0 20px 18px; font-size: 15px; }

/* Calls to action */
.cta h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 400; }
.cta p { max-width: 640px; margin: 14px auto 22px; color: var(--muted); font-size: 15px; }
.cta .kicker { letter-spacing: .06em; font-size: 17px; margin: 0 0 6px; color: #111; text-transform: uppercase; }

/* Subscribe band */
.subscribe { background: var(--mint); }
.subscribe h2 { font-size: 30px; }
.subscribe p { color: var(--text); max-width: 560px; }
.subscribe form { display: flex; gap: 10px; flex-wrap: wrap; max-width: 560px; margin-top: 14px; }
.subscribe input[type=email] { flex: 1; min-width: 220px; padding: 12px 14px; border: 1px solid #b9c9be; border-radius: 6px; font: inherit; background: #fff; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-msg { margin: 10px 0 0; font-size: 14px; min-height: 20px; }
.form-msg.ok { color: var(--green-ink); font-weight: 600; }
.form-msg.bad { color: #a32b1c; }

/* Pills and trust line */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 auto; max-width: 880px; padding: 0; list-style: none; }
.pills li { background: #f1f3f1; border: 1px solid #d9ddd6; border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; color: #20242d; }
.pills-title { text-align: center; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6b7280; margin: 0 0 14px; }
.trust { text-align: center; font-weight: 700; color: #111; margin: 18px 0 0; }
.trust .stars { color: #111; letter-spacing: 1px; margin-right: 6px; font-size: 18px; }

/* Retirement / Life page heads */
.page-head { text-align: center; padding: 48px 0 12px; }
.page-head .sub { max-width: 640px; margin: 14px auto 0; color: var(--muted); }
.page-head .btn { margin-top: 22px; }
.fineprint { text-align: center; font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.video { max-width: 860px; margin: 26px auto 0; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.eyebrow-up { color: var(--green-ink); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; }
.pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 26px; }
.pains h3 { color: var(--green-ink); font-size: 16px; margin-bottom: 10px; }
.pains p { font-size: 15px; }

/* Life: portrait band */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: center; }
.about img { border-radius: 4px; width: 100%; max-width: 380px; }
.about h2 { font-size: 24px; margin-bottom: 18px; }
.about .hl { color: #8fd1ad; }
.about p { font-size: 15px; }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13px; color: var(--muted); }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--muted); }

/* Quiz */
.quiz-wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 20px; }
.quiz-by { text-align: center; font-size: 14px; color: var(--muted); max-width: 560px; margin: 0 auto 24px; }
.quiz-card { border: 1px solid var(--line); border-radius: 12px; padding: 34px 28px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.quiz-card h1, .quiz-card h2.q { font-size: clamp(24px, 3.4vw, 32px); text-align: center; }
.quiz-card .desc { text-align: center; color: var(--muted); font-size: 15px; margin: 14px auto 0; max-width: 620px; }
.q-progress { text-align: center; font-size: 13px; font-weight: 600; color: var(--green-ink); margin: 0 0 10px; letter-spacing: .04em; }
.bar { height: 6px; background: var(--line); border-radius: 99px; overflow: hidden; margin: 0 auto 22px; max-width: 420px; }
.bar i { display: block; height: 100%; background: var(--green); transition: width .25s ease; }
.answers { display: grid; gap: 10px; margin-top: 24px; }
.answers button { text-align: left; width: 100%; background: #fff; border: 1.5px solid #cfd4da; border-radius: 8px; padding: 14px 16px; font: inherit; font-size: 16px; cursor: pointer; color: var(--text); }
.answers button:hover { border-color: var(--green); background: #f4faf6; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 24px; }
.scale button { text-align: center; padding: 14px 6px; }
.scale-legend { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.q-actions { display: flex; justify-content: center; margin-top: 22px; }
.linkish { background: none; border: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.quiz-card .center-btn { display: flex; justify-content: center; margin-top: 26px; }
.gate input[type=email] { display: block; width: 100%; max-width: 420px; margin: 22px auto 0; padding: 13px 14px; font: inherit; border: 1.5px solid #cfd4da; border-radius: 8px; }
.score { text-align: center; }
.score .pct { font-size: 64px; font-weight: 800; color: var(--green); line-height: 1; margin: 12px 0 4px; }
.score .label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.score .body { text-align: left; font-size: 15px; margin-top: 22px; }
.pension { display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; align-items: center; margin-top: 56px; }
.pension img { border-radius: 8px; width: 100%; max-width: 280px; margin: 0 auto; }
.pension h2 { font-size: 28px; margin-bottom: 14px; }
.pension p { font-size: 15px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 40px 24px; }
  .hero-photo { min-height: 0; max-height: 520px; }
  .three, .steps, .pains { grid-template-columns: 1fr; }
  .about, .pension { grid-template-columns: 1fr; }
  .about img { margin: 0 auto; }
  section { padding: 44px 0; }
  .menu-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 18px; }
  .nav.open { display: flex; }
  .nav a.link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; }
  .scale { grid-template-columns: repeat(5, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel .slide.on { animation: none; }
  .bar i, .faq summary::after { transition: none; }
}

/* The booking page shown inside a page of the site. */
.divider { border: 0; border-top: 1px solid var(--line); max-width: 1000px; margin: 44px auto 36px; }
.book-embed { max-width: 1000px; margin: 0 auto; scroll-margin-top: 84px; }
.book-embed iframe { width: 100%; height: 760px; border: 0; display: block; background: #fff; }

/* The carrier images from the old site, kept as pictures so the page reads lighter. */
.carriers-img { display: block; margin: 0 auto; width: 100%; max-width: 900px; height: auto; }

/* Life page: the vertical video in place of the portrait. */
.vfilm { position: relative; width: 100%; max-width: 340px; aspect-ratio: 9 / 16; background: #000; border-radius: 8px; overflow: hidden; margin: 0 auto; }
.vfilm video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.vplay { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.18); cursor: pointer; display: grid; place-items: center; padding: 0; }
.vplay span { width: 74px; height: 74px; border-radius: 50%; background: rgba(255,255,255,.94); color: #111; display: grid; place-items: center; font-size: 26px; padding-left: 5px; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.vplay:hover span { background: #fff; }
.vfilm.playing .vplay { display: none; }
.pains.ruled h3 { border-bottom: 1px solid #000; padding-bottom: 8px; }

/* A video that lives on the page, with the same play button as the Life page's. */
.video { position: relative; }
.video video { width: 100%; height: 100%; display: block; background: #000; object-fit: cover; }
.video.playing .vplay { display: none; }
