/* SpendLah site. Periwinkle theme, system fonts, light + dark. */
:root {
  --bg: #F1F1F7;
  --surface: #FFFFFF;
  --accent: #6165E0;
  --accent-text: #4A4ECC;      /* accent for text on bg, >= 4.5:1 */
  --on-accent: #FFFFFF;
  --tint: #E4E5FA;
  --coral: #E06C5F;
  --mint: #29B594;
  --text: #17171C;
  --muted: #5B5B68;
  --line: #DCDCE6;
  --shadow: 0 1px 2px rgba(30,30,70,.06), 0 12px 32px rgba(60,60,140,.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141417; --surface: #201F26; --accent: #8A8EF4; --accent-text: #A3A6FA;
    --on-accent: #141417; --tint: #2C2C44; --text: #F2F2F7; --muted: #A9A9B8;
    --line: #34343F; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(720px, 100% - 40px); margin-inline: auto; }

/* header */
.site-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.site-header nav { display: flex; gap: 22px; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; padding: 8px 0; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding: 40px 0 72px; }
h1 { font-size: clamp(40px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 18px; font-weight: 800; }
.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 30em; margin: 0 0 28px; }
.badge-slot { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px; border: 2px dashed var(--accent); border-radius: 12px; color: var(--accent-text); font-size: 15px; font-weight: 600; }
.reqs { margin: 14px 0 0; font-size: 14px; color: var(--muted); }

/* the capture line: the one memorable element */
.capture { margin: 0 0 30px; max-width: 460px; }
.capture-bar { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 999px; padding: 14px 18px; box-shadow: var(--shadow); font-size: 19px; font-weight: 500; min-height: 56px; }
.capture-bar .plus { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; line-height: 1; }
.typed { overflow: hidden; white-space: nowrap; border-right: 2px solid var(--accent); width: 9ch; animation: type 1.4s steps(9) .5s both, blink .8s step-end 1.9s 3; font-family: var(--font); }
@keyframes type { from { width: 0; } to { width: 9ch; } }
@keyframes blink { 50% { border-color: transparent; } }
.logged { display: flex; align-items: center; gap: 12px; margin: 10px 0 0 18px; padding: 12px 16px; background: var(--tint); border-radius: 16px; animation: pop .35s ease 2s both; }
.logged .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--coral); flex: none; }
.logged b { display: block; font-size: 16px; }
.logged span { font-size: 14px; color: var(--muted); }
.logged .amt { margin-left: auto; font-weight: 700; font-size: 18px; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .typed { animation: none; width: 9ch; border-color: transparent; }
  .logged { animation: none; }
  html { scroll-behavior: auto; }
}

/* phone frame */
.phone { width: min(300px, 100%); margin-inline: auto; background: #0E0E12; padding: 9px; border-radius: 46px; box-shadow: var(--shadow); }
.phone img, .phone video { border-radius: 38px; width: 100%; height: auto; aspect-ratio: 506 / 1100; object-fit: cover; object-position: top; background: var(--surface); }

/* sections */
section { padding: 64px 0; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 750; }
h3 { font-size: 20px; margin: 28px 0 6px; letter-spacing: -.01em; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.flip .phone { order: -1; }
.feature p { color: var(--muted); max-width: 30em; margin: 0 0 14px; }
.feature ul { padding-left: 1.1em; color: var(--muted); max-width: 30em; margin: 0; }
.feature li { margin-bottom: 6px; }
.feature .phone { width: min(260px, 100%); }
.note { font-size: 14px; color: var(--muted); }
.more { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 28px; padding: 0; list-style: none; margin: 24px 0 0; }
.more li { padding-top: 12px; border-top: 2px solid var(--line); font-weight: 600; }
.more li span { display: block; font-weight: 400; color: var(--muted); font-size: 15px; }

/* privacy promise */
.promise { background: var(--accent); color: var(--on-accent); padding: 56px 0; }
.promise h2 { color: inherit; }
.promise ul { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 32px; }
.promise li { font-weight: 600; font-size: 18px; line-height: 1.35; }
.promise a { color: inherit; font-weight: 600; }
.promise p { margin: 22px 0 0; }
.promise { --on-accent: #FFFFFF; }
@media (prefers-color-scheme: dark) { .promise { --on-accent: #141417; } }
.promise { color: var(--on-accent); }

/* FAQ */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 650; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-text); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p, details ol { margin: 0 0 16px; color: var(--muted); max-width: 40em; }

/* long-form pages */
.page { padding: 28px 0 72px; }
.page h1 { font-size: clamp(34px, 5vw, 48px); letter-spacing: -.03em; }
.page h2 { font-size: 26px; margin-top: 44px; }
.page p, .page li { max-width: 40em; }
.page li { margin-bottom: 6px; }
.meta { color: var(--muted); font-size: 15px; }
table { border-collapse: collapse; width: 100%; margin: 14px 0; background: var(--surface); border-radius: 12px; overflow: hidden; font-size: 15px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; background: var(--tint); }
tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.card { background: var(--surface); border-radius: 18px; padding: 22px 24px; box-shadow: var(--shadow); margin: 16px 0; }
.card p { margin: 0 0 8px; }
.ph { background: var(--tint); padding: 0 .3em; border-radius: 4px; font-family: var(--mono); font-size: .9em; }
.gallery { display: flex; gap: 18px; overflow-x: auto; padding: 8px 4px 20px; scroll-snap-type: x proximity; }
.gallery figure { margin: 0; flex: none; width: 200px; scroll-snap-align: start; }
.gallery img { border-radius: 22px; box-shadow: var(--shadow); width: 200px; height: auto; }
.gallery figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }
.btn { display: inline-block; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 650; padding: 12px 20px; border-radius: 12px; }
.btn.alt { background: var(--tint); color: var(--text); }

footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
footer p { margin: 0 0 8px; max-width: 46em; }

@media (max-width: 820px) {
  .hero, .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature.flip .phone { order: 0; }
  .hero { padding-top: 16px; }
  section { padding: 44px 0; }
  .site-header nav { gap: 14px; }
}
@media (max-width: 400px) { body { font-size: 16px; } .site-header { flex-wrap: wrap; gap: 4px 16px; } .site-header nav { gap: 14px; flex-wrap: wrap; } .site-header nav a { font-size: 14px; } }
.narrow.left { margin-inline: 0; }
.icon-round { border-radius: 27px; }
ul.gallery { list-style: none; margin: 0; }
