/* Income with Intent: the public site. Same colors and fonts as the app. No outside requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage.woff2") format("woff2");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --paper: #f1eff5; --surface: #ffffff; --ink: #241a2e; --ink-2: #4a3f57; --muted: #6a6176; --line: #ddd8e4; --track: #e5e1ec;
  --jade: #0a7559; --focus: #5b4bc4;
  --band: #241a2e; --on-band: #f6f3fa; --on-band-2: #c9bfd6; --band-jade: #3cc79c;
  /* The four parts of a plan, in order. */
  --p1: #5b4bc4; --p2: #d9822b; --p3: #0e8f6e; --p4: #2f80c9;
  --display: "Bricolage Grotesque", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17121d; --surface: #211a29; --ink: #f1ecf6; --ink-2: #d4cbde; --muted: #a79db3; --line: #342b3e; --track: #2d2537;
    --jade: #3cc79c; --focus: #a99dff; --band: #2a2034;
    --p1: #8676f0; --p2: #eba150; --p3: #3cc79c; --p4: #5aa6ea;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--body); }
h1, h2, h3 { font-family: var(--display); font-stretch: 85%; letter-spacing: -0.01em; margin: 0; }
p { margin: 0; }
a { color: var(--jade); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Header band, like the app's */
.masthead { background: var(--band); color: var(--on-band); }
.masthead-row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 19px; font-stretch: 85%; letter-spacing: -0.015em; }
.mark { display: inline-flex; gap: 3px; padding: 7px 6px; border-radius: 8px; background: var(--on-band); }
.mark i { display: block; width: 9px; height: 7px; border-radius: 2px; background: var(--band); }
.mark i + i { width: 7px; background: #0e8f6e; }
.topnav { margin-left: auto; display: flex; gap: 4px; }
.topnav a { color: var(--on-band-2); text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 10px; border-radius: 8px; }
.topnav a:hover { color: var(--on-band); }
@media (max-width: 640px) { .topnav { display: none; } }

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(48px, 8vw, 88px); }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1; font-weight: 800; font-stretch: 78%; letter-spacing: -0.02em; max-width: 15ch; text-wrap: balance; }
.lede { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; }
.status { margin-top: 28px; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jade) 22%, transparent); }
.ask { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* The paycheck split: the page's one picture */
.paycheck { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 3vw, 32px); }
.paycheck-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.paycheck-title { font-weight: 700; color: var(--muted); font-size: 15px; }
.paycheck-total { font-size: clamp(36px, 4.4vw, 48px); font-weight: 800; font-stretch: 80%; line-height: 1; }
.split { display: flex; gap: 4px; height: 44px; margin: 20px 0 8px; }
.seg { display: block; flex: 0 1 calc(var(--w) - 3px); border-radius: 8px; transform-origin: left center; }
.s1 { background: var(--p1); } .s2 { background: var(--p2); } .s3 { background: var(--p3); } .s4 { background: var(--p4); }
@media (prefers-reduced-motion: no-preference) {
  .seg { animation: fill .7s cubic-bezier(.2,.7,.2,1) both; }
  .seg.s2 { animation-delay: .25s; } .seg.s3 { animation-delay: .5s; } .seg.s4 { animation-delay: .75s; }
  @keyframes fill { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
}
.split-list { list-style: none; margin: 0; padding: 0; }
.split-list li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.split-list li:first-child { border-top: 0; }
.split-list b { display: block; font-weight: 700; line-height: 1.3; }
.split-list small { display: block; color: var(--muted); font-size: 14px; }
.split-list .num { font-size: 20px; font-weight: 700; }
.key { width: 14px; height: 14px; border-radius: 4px; }
.paycheck figcaption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; font-weight: 800; font-stretch: 80%; max-width: 20ch; text-wrap: balance; }
.section-lede { margin-top: 12px; color: var(--ink-2); max-width: 36em; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 700; }
h3 + p { margin-top: 6px; color: var(--ink-2); }

/* The four steps: a real sequence, so they're numbered */
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; padding-top: 18px; border-top: 4px solid var(--p1); }
.steps li:nth-child(2) { border-color: var(--p2); } .steps li:nth-child(3) { border-color: var(--p3); } .steps li:nth-child(4) { border-color: var(--p4); }
.steps h3::before { content: counter(step) ". "; color: var(--muted); }
.promises { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 40px; max-width: 920px; }
@media (max-width: 720px) { .promises { grid-template-columns: 1fr; } }
.promises p { color: var(--ink-2); }
.promises b { color: var(--ink); }

/* Free and Pro */
.tiers { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 920px; }
@media (max-width: 720px) { .tiers { grid-template-columns: 1fr; } }
.tier { border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; background: var(--paper); }
.tier.pro { background: var(--band); color: var(--on-band); border-color: var(--band); }
.tier.pro .tier-note { color: var(--on-band-2); }
.tier ul { margin: 14px 0 0; padding: 0; list-style: none; }
.tier li { padding: 8px 0 8px 28px; position: relative; }
.tier li::before { content: ""; position: absolute; left: 0; top: 15px; width: 14px; height: 10px; border-radius: 3px; background: var(--jade); }
.tier.pro li::before { background: var(--band-jade); }
.tier-note { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Your data */
.data-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
@media (max-width: 880px) { .data-grid { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 40px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* Footer */
.footer { background: var(--band); color: var(--on-band); padding: 40px 0 48px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark.small { font-size: 17px; }
.footnav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footnav a { color: var(--on-band); font-weight: 700; font-size: 15px; }
.fine { margin-top: 14px; font-size: 14px; color: var(--on-band-2); max-width: 60em; }
.fine:first-of-type { margin-top: 28px; }
