/* Working Dollars public site. Brand (2026-10-19): Berry & teal, from the "first light" logo:
   primary = the path (teal), highlight = the first light (berry pink), star = the goal (gold).
   Role names, not color names, so a rebrand only changes values here. Light by default, dark
   follows the visitor's switch. No JavaScript needed anywhere on the site. */
:root {
  --bg: #fffbfc;
  --surface: #f8f1f4;
  --line: #efe3e8;
  --fg: #1d2e35;
  --fg-2: #4a5a61;
  --primary: #128c8c;
  --primary-deep: #0b6b6b;
  --primary-soft: #ddf2f1;
  --highlight: #f27ba0;
  --highlight-deep: #c2185b;
  --highlight-soft: #fde6ee;
  --star: #e5a82e;
  --star-deep: #a8740f;
  --star-soft: #fbf0d6;
  --accent: #0e7c7c;
  --accent-ink: #ffffff;
  --display: "Nunito", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
/* Light by default; dark when the visitor turns it on (the switch in the header). */
:root[data-theme="dark"] {
  --bg: #121d21;
  --surface: #1a282d;
  --line: #2c3f46;
  --fg: #f4f1f2;
  --fg-2: #b3c1c6;
  --primary: #3cc3c3;
  --primary-deep: #3cc3c3;
  --primary-soft: #133437;
  --highlight: #f48fb1;
  --highlight-deep: #f7a8c4;
  --highlight-soft: #3a1f2a;
  --star: #f2c66b;
  --star-deep: #f2c66b;
  --star-soft: #3a3018;
  --accent: #3cc3c3;
  --accent-ink: #0e2226;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

.stripe { height: 4px; background: linear-gradient(90deg, var(--highlight), var(--primary) 50%, var(--star)); background: linear-gradient(90deg in oklab, var(--highlight), var(--primary) 50%, var(--star)); }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 760px; }

/* Header */
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 16px; }
.site-header .wrap > .nav { margin-left: auto; }
.site-header .wrap { max-width: 1260px; }
.brand { font-family: var(--display); font-weight: 900; font-size: 1.25rem; letter-spacing: -0.01em; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; flex-shrink: 0; }
.brand svg { width: 40px; height: 32px; }
.nav { display: flex; align-items: center; gap: 4px 18px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--fg-2); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav .btn { color: var(--accent-ink); }
.menu { display: none; }
@media (max-width: 1240px) {
  .site-header .wrap > .nav { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; font-weight: 800; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] .nav { display: flex; flex-direction: column; align-items: stretch; position: absolute; right: 0; top: calc(100% + 8px); background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px; min-width: 230px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); z-index: 5; }
  .menu[open] .nav a { padding: 8px 10px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 800; text-decoration: none; border-radius: 999px; padding: 13px 24px; border: 2px solid transparent; font-size: 16px; line-height: 1.2; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--fg); }
.btn-ghost:hover { border-color: var(--fg-2); }
.btn-small { padding: 8px 16px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 26px; }
.fine { font-size: 14px; color: var(--fg-2); }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 900; letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin: 14px 0 0; letter-spacing: -0.03em; }
h1 em, .grad { font-style: normal; color: var(--primary-deep); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 14px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--fg-2); max-width: 58ch; margin: 18px 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-deep); background: var(--primary-soft); border-radius: 999px; padding: 6px 14px; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--highlight-deep); margin: 0 0 8px; }
p { margin: 0 0 14px; }

/* Sections */
section { padding-block: clamp(48px, 8vw, 88px); }
.hero { padding-top: clamp(32px, 6vw, 64px); }
.band { background: var(--surface); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 22px; background: var(--bg); }
.band .card { background: var(--bg); }
.card.top { border-top: 5px solid var(--c, var(--primary)); }
.c-highlight { --c: var(--highlight); }
.c-star { --c: var(--star); }
.c-primary { --c: var(--primary); }
.card p:last-child { margin-bottom: 0; }

.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.steps li { list-style: none; counter-increment: step; position: relative; padding: 22px 22px 22px 76px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 20px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 900; background: var(--primary-soft); color: var(--primary-deep); }
.steps { padding: 0; margin: 0; }

.split { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { padding-left: 32px; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); box-shadow: inset 0 0 0 6px var(--primary-soft), inset 0 0 0 20px var(--primary); }
.crosses li::before { background: var(--highlight-soft); box-shadow: inset 0 0 0 6px var(--highlight-soft), inset 0 0 0 20px var(--highlight); }

.stakes { font-family: var(--display); font-weight: 900; font-size: clamp(1.4rem, 3.4vw, 2.1rem); line-height: 1.25; max-width: 30ch; margin: 0 auto; text-wrap: balance; }
.quote { border-left: 5px solid var(--star); padding: 6px 0 6px 20px; font-size: 1.15rem; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--bg); transition: border-color .15s, box-shadow .15s; }
.faq details + details { margin-top: 12px; }
.faq details:hover { border-color: var(--primary); }
.faq details[open] { border-color: var(--primary); box-shadow: 0 8px 24px rgba(18, 140, 140, 0.10); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px 18px 22px; font-family: var(--display); font-weight: 800; font-size: 1.1rem; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-deep); font-size: 1.35rem; font-weight: 700; line-height: 1; transition: transform .2s, background .2s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--primary); color: #fff; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--fg-2); max-width: 68ch; line-height: 1.65; }
@media (prefers-reduced-motion: reduce) { .faq details, .faq summary::after { transition: none; } }
.faq h2 { margin-top: 36px; }

/* Call to action band */
.cta { border-radius: 28px; padding: clamp(28px, 5vw, 56px); background: linear-gradient(135deg, var(--primary-soft), var(--star-soft)); text-align: center; }
.cta .actions { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .wrap { display: grid; gap: 18px; padding-block: 28px; font-size: 14px; color: var(--fg-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--fg); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Spacing helpers (inline styles are blocked by the security policy) */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 16px; }
.mt-l { margin-top: 36px; }

/* Light/dark switch (shown only when the small theme script runs) */
.header-tools { display: flex; align-items: center; gap: 10px; }
.theme-toggle { border: 1px solid var(--line); background: var(--bg); color: var(--fg); border-radius: 999px; width: 40px; height: 40px; font-size: 18px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.theme-toggle:hover { border-color: var(--fg-2); }
.theme-toggle[hidden] { display: none; }

/* How it works: the logo's path. The first stop is lit (you've already started); a star-gold stop
   waits at the end. */
.path-intro { color: var(--fg-2); margin: -6px 0 8px; }
.path-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.path-steps > li { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 20px; background: var(--bg); padding: 20px; }
.path-steps h3 { margin: 12px 0 4px; }
.path-steps p { margin: 0 0 12px; color: var(--fg-2); font-size: 15px; }
.stop-dot { display: block; width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--star); background: var(--bg); }
.stop-dot.lit { border-color: var(--highlight); background: var(--highlight); box-shadow: 0 0 0 6px var(--highlight-soft); }
.stop-star { width: 28px; height: 28px; fill: var(--star); }
.levels { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px; }
.levels li { border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.path-steps .time { margin-top: auto; align-self: flex-start; background: var(--primary-soft); color: var(--primary-deep); border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
/* Wide screens: the stops step up like stairs, each a little higher than the last. */
@media (min-width: 900px) {
  .path-steps { align-items: start; }
  .path-steps > li:nth-child(1) { margin-top: 72px; }
  .path-steps > li:nth-child(2) { margin-top: 48px; }
  .path-steps > li:nth-child(3) { margin-top: 24px; }
}

/* Feelings-first cards: the reader's worry in their own words, then what changes. */
.section-intro { color: var(--fg-2); margin: -6px 0 18px; max-width: 60ch; }
.card .worry { margin: 0 0 10px; font-size: 14px; font-style: italic; color: var(--fg-2); }

/* Home hero: the words, then two sample app screens over the brand's rising path. */
.hero-split { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero-split { grid-template-columns: 1.05fr 1fr; } }
.hero-art { position: relative; margin: 0 auto; width: 100%; max-width: 520px; aspect-ratio: 1 / 1.1; }
.hero-art .path-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone { position: absolute; width: 46%; border: 7px solid #1d2e35; border-radius: 28px; overflow: hidden; background: #fffbfc; box-shadow: 0 18px 40px rgba(29, 46, 53, 0.18); }
.phone img { display: block; width: 100%; height: auto; }
.phone.back { left: 7%; top: 3%; transform: rotate(-5deg); }
.phone.front { right: 5%; top: 13%; transform: rotate(4deg); }
.hero-art figcaption { position: absolute; left: 0; right: 0; bottom: -6px; text-align: center; }
.spot { display: block; width: 56px; height: 56px; margin-bottom: 10px; }
.phone-solo { margin: 0 auto; width: min(300px, 80%); text-align: center; }
.phone-solo .phone { position: relative; width: 100%; transform: rotate(2deg); margin-bottom: 12px; }
@media (min-width: 900px) { .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps.four li { padding: 72px 20px 20px; }
.faq .kicker + h2 { margin-top: 0; }

/* Home questions: short answers, always showing, in cards. */
.qa-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.qa-card { border: 1px solid var(--line); border-radius: 20px; background: var(--bg); padding: 22px; }
.qa-card h3 { margin: 14px 0 6px; font-size: 1.1rem; }
.qa-card p { margin: 0; color: var(--fg-2); line-height: 1.6; }
.qa-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-deep); }
.qa-icon.c-highlight { background: var(--highlight-soft); color: var(--highlight-deep); }
.qa-icon.c-star { background: var(--star-soft); color: var(--star-deep); }
.qa-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qa-more { margin: 20px 0 0; color: var(--fg-2); max-width: 75ch; }
.qa-more strong { color: var(--fg); }

/* FAQ: the "still have a question" box. */
.concern { display: flex; gap: 16px; align-items: flex-start; margin-top: 40px; padding: 22px; border-radius: 20px; background: var(--star-soft); }
.concern h3 { margin: 0 0 6px; }
.concern p { margin: 0; color: var(--fg-2); }
.concern .qa-icon { flex-shrink: 0; background: var(--bg); }
