/* The Safe Money funnel (financekeem.com/safemoney).
   Built for someone 55 or older on a phone: big type, high contrast, plain
   words, one thing to do per screen. Colors are the live site's (site.css):
   sage #5ca581 for highlighted words and labels, bright green #09c269 kept for
   the one next action, charcoal #20242d for headlines. Poppins for headlines
   (as on the onboarding page), Open Sans for everything else (as on the site). */
:root {
  --sage: #5ca581;
  --sage-ink: #3f7d5e;
  --go: #09c269;
  --go-hover: #1dab65;
  --ink: #20242d;
  --muted: #5b6168;
  --bg: #f4f6f6;
  --card: #ffffff;
  --line: #dfe3e6;
  --bad: #b3261e;
  --display: 'Poppins', 'Open Sans', Arial, sans-serif;
  --body: 'Open Sans', Arial, Helvetica, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--body); font-size: 19px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sage-ink); }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
[hidden] { display: none !important; }

.sm-head { display: flex; justify-content: center; padding: 18px 16px 6px; }
.sm { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 20px 48px; }
.sm-screen { display: flex; flex-direction: column; gap: 18px; }
.sm-screen.sm-wide { max-width: 760px; margin: 0 auto; }
.sm:has(.sm-wide:not([hidden])) { max-width: 820px; }

h1, h2 { font-family: var(--display); font-weight: 800; color: var(--ink); margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 8.5vw, 50px); }
h2 { font-size: clamp(28px, 7vw, 38px); }
.sm-h2 { font-size: clamp(24px, 6vw, 32px); margin-top: 18px; }
.hl { color: var(--sage); }
h1:focus, h2:focus { outline: none; }

/* Small uppercase label with a short sage dash in front, like the onboarding page. */
.sm-label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: 14px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-ink);
}
.sm-label::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--sage); flex: none; }

.sm-sub { margin: 0; color: var(--muted); font-size: 20px; }
.sm-fine { margin: 0; color: var(--muted); font-size: 16px; text-align: center; }

/* The one next action. Bright green is used nowhere else. */
.sm-go {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 64px; padding: 16px 22px;
  font: 700 21px/1.2 var(--body); color: #fff; background: var(--go); border: 0; border-radius: 14px; cursor: pointer;
  box-shadow: 0 10px 24px -12px rgba(9, 194, 105, .9); transition: background-color .15s ease, transform .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.sm-go:hover { background: var(--go-hover); }
.sm-go:active { transform: scale(.98); }
.sm-go[disabled] { opacity: .6; cursor: progress; }

.sm-trust { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
.sm-trust img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.sm-trust p { margin: 0; font-size: 17px; color: var(--muted); line-height: 1.45; }
.sm-trust strong { color: var(--ink); }

/* Quiz */
.sm-bar { height: 8px; background: #e3e8e6; border-radius: 99px; overflow: hidden; }
.sm-bar span { display: block; height: 100%; width: 0; background: var(--sage); border-radius: 99px; transition: width .35s ease; }
.sm-back {
  align-self: flex-start; min-height: 44px; padding: 8px 4px; font: 600 17px var(--body); color: var(--muted);
  background: none; border: 0; cursor: pointer;
}
.sm-back:hover { color: var(--ink); }
.sm-answers { display: flex; flex-direction: column; gap: 12px; }
.sm-answer {
  display: flex; align-items: center; width: 100%; min-height: 64px; padding: 16px 20px; text-align: left;
  font: 600 20px/1.3 var(--body); color: var(--ink); background: var(--card);
  border: 2px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.sm-answer:hover { border-color: var(--sage); box-shadow: 0 0 18px 0 rgba(9, 194, 105, .25); }
/* A chosen answer glows green, so it is plain at a glance what was picked. */
.sm-answer.on {
  border-color: var(--go); background: #e8f4ed;
  box-shadow: 0 0 0 4px rgba(9, 194, 105, .22), 0 0 26px 4px rgba(9, 194, 105, .45);
}
/* Pick all that apply: a round tick on the right, filled once chosen. */
.sm-multi { justify-content: space-between; gap: 14px; }
.sm-multi::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--card) center / 16px no-repeat;
  transition: background-color .15s ease, border-color .15s ease;
}
.sm-multi.on::after {
  border-color: var(--go); background-color: var(--go);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.sm-go[disabled]#q-next { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sm-answer:active { transform: scale(.99); }

/* Contact */
form { display: flex; flex-direction: column; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 17px; }
input {
  font: 400 20px var(--body); color: var(--ink); padding: 14px 16px; min-height: 58px;
  background: var(--card); border: 2px solid var(--line); border-radius: 12px;
}
input:focus { outline: none; border-color: var(--sage); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sm-msg { margin: 0; min-height: 0; font-weight: 600; color: var(--bad); }
.sm-msg:empty { display: none; }

/* Results and booked */
.sm-split, .sm-book { display: flex; flex-direction: column; gap: 18px; }
.sm-video { border-radius: 16px; overflow: hidden; background: var(--ink); aspect-ratio: 9 / 16;
  /* Both videos are filmed on a phone: tall, centered, never taller than the screen. */
  width: min(100%, 400px, calc(78vh * 9 / 16)); margin-inline: auto; align-self: center; }
.sm-video video { width: 100%; height: 100%; display: block; background: var(--ink); }
.sm-video { position: relative; }
.sm-sound { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: rgba(9, 194, 105, .95); color: #fff; font: 700 16px/1 var(--body); cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .3); }
.sm-sound::before { content: ''; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 9v6h4l5 5V4L7 9H3zm13.5 3A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.sm-sound:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* What clients say, and the card about Hakeem. */
.sm-proof { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.sm-card { margin: 0; padding: 18px 20px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
figure.sm-card { border-left: 4px solid var(--sage); display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.sm-card blockquote { margin: 0; font-size: 18px; }
.sm-card figcaption { font-size: 15px; color: var(--muted); font-weight: 600; }
.sm-about { display: flex; align-items: center; gap: 16px; }
.sm-about img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; flex: none; }
.sm-about p { margin: 0; font-size: 17px; color: var(--muted); line-height: 1.45; }
.sm-about strong { color: var(--ink); }

@media (min-width: 960px) {
  .sm:has(#s-results:not([hidden])) { max-width: 1180px; }
  #s-results.sm-wide { max-width: none; }
  /* The headline sits in the middle of the page. */
  #s-results > .sm-label, #s-results > h1, #s-results > .sm-sub { max-width: 900px; margin-inline: auto; text-align: center; }
  #s-results > .sm-label { justify-content: center; }
  /* Video left, calendar right. The video stays in view while the calendar scrolls. */
  .sm-split { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: 8px; }
  .sm-split .sm-video { width: min(100%, calc(84vh * 9 / 16)); margin: 0; position: sticky; top: 24px; }
  .sm-split .sm-h2 { margin-top: 0; }
  /* Three even cards in one row, the same height. */
  .sm-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 28px; align-items: stretch; }
  .sm-about { flex-direction: column; align-items: flex-start; justify-content: center; }
}
.sm-video:empty { display: none; }
.sm-embed iframe { width: 100%; border: 0; display: block; min-height: 420px; background: var(--card); border-radius: 16px; }
.sm-when { margin: 0; font: 700 22px/1.35 var(--body); color: var(--ink); }
.sm-list { margin: 0; padding-left: 24px; display: grid; gap: 6px; }

.sm-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 18px 16px 26px; font-size: 15px; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  .sm-go, .sm-answer, .sm-bar span, .sm-multi::after { transition: none; }
}
