/* BudgetGo site foundations, ported from the app's design system (dark Home theme, Manrope). */
@font-face { font-family: Manrope; src: url('../fonts/manrope-variable.ttf') format('truetype'); font-weight: 200 800; font-display: swap; }

:root {
  --background: #101010;
  --surface: #19191c;
  --surface-high: #303030;
  --surface-highest: #393939;
  --ink: #f8f8f5;
  --muted: #b9b9b5;
  --divider: rgba(248, 248, 245, .07);
  --primary: #7132f5;
  --secondary: #b994f5;
  --lime: #98ef5a;
  --on-lime: #101010;
  --coral: #ff6b6b;
  --trend-up: #ffa194;
  --orange: #eb9b4b;
  --recap: #faa657;
  --on-recap: #321600;
  --glass: rgba(32, 32, 36, .6);
  --financial: linear-gradient(135deg, #824fff 0%, #7132f5 55%, #5d2ce3 100%);
  --radius-row: 16px;
  --radius-card: 24px;
  --radius-data: 28px;
  --radius-hero: 32px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--background); color-scheme: dark; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--background); color: var(--ink); font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-weight: 700; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.menu-open { overflow: hidden; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Focus uses a double box-shadow ring instead of an outline, so it reads on light and dark fills. */
:where(a, button, summary):focus-visible { outline: none; box-shadow: 0 0 0 3px var(--background), 0 0 0 6px var(--ink); border-radius: 999px; }
summary:focus-visible { border-radius: 12px; }

.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--background); }
.skip-link:focus { top: 12px; }

/* Type */
h2 { font-size: clamp(40px, 5.4vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em; }
h2 span { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--secondary); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow--lime { color: var(--ink); }
.lead { max-width: 30rem; color: var(--muted); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(36px, 5vw, 64px); }

/* Buttons — the app's lime action pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 26px; border: 0; border-radius: 999px; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .25s, box-shadow .25s, transform .35s var(--ease); }
.btn svg { width: 18px; height: 18px; }
.btn--lime { background: var(--lime); color: var(--on-lime); box-shadow: 0 10px 40px rgba(152, 239, 90, .22); }
.btn--lime:hover { background: #a9f572; box-shadow: 0 14px 50px rgba(152, 239, 90, .34); }
.btn--light { background: #fff; color: #101010; }
.btn--light:hover { background: #e4e4e0; }
.btn--ghost { background: var(--surface); color: var(--ink); }
.btn--ghost:hover { background: var(--surface-high); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; box-shadow: none; }
.app-badge img { height: 52px; width: auto; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 15px; }
.text-link svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translate(3px, -3px); }

/* Header — floating glass bar like the app's tab bar */
.site-header { position: fixed; inset: 14px 0 auto; z-index: 50; pointer-events: none; }
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; padding: 0 10px 0 18px; border-radius: 999px; background: rgba(25, 25, 28, .62); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); pointer-events: auto; transition: background .3s; }
.site-header.is-scrolled .nav-row { background: rgba(25, 25, 28, .86); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; letter-spacing: -.04em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links > a:not(.btn) { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: var(--surface-high); cursor: pointer; }
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { content: ""; position: relative; display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s; }
.menu-toggle span::before { position: absolute; top: -5px; }
.menu-toggle span::after { position: absolute; top: 5px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* FAQ */
.faq { padding: clamp(80px, 10vw, 140px) 0; }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 110px); }
.faq h2 { font-size: clamp(36px, 4vw, 56px); }
.faq__help { margin-top: 24px; color: var(--muted); }
.faq__help a, .faq__list a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.faq__list details { border-bottom: 1px solid var(--divider); }
.faq__list details:first-child { border-top: 1px solid var(--divider); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: 18px; list-style: none; cursor: pointer; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23f8f8f5' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list p { padding: 0 48px 26px 0; color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Footer */
.site-footer { padding: 72px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { margin-top: 16px; color: var(--muted); font-size: 14px; }
.footer-grid h3 { margin-bottom: 18px; font-size: 14px; font-weight: 800; }
.footer-grid div > a:not(.brand) { display: block; width: fit-content; margin: 12px 0; color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-grid div > a:not(.brand):hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--divider); color: var(--muted); font-size: 12px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-links { position: fixed; top: 92px; left: var(--gutter); right: var(--gutter); display: none; flex-direction: column; align-items: stretch; gap: 4px; padding: 18px; border-radius: 28px; background: rgba(25, 25, 28, .97); backdrop-filter: blur(24px); }
  .nav-links.open { display: flex; }
  .nav-links > a:not(.btn) { padding: 12px 8px; font-size: 18px; }
  .nav-links .btn { margin-top: 8px; }
  .section-head { display: block; }
  .section-head .lead { margin-top: 20px; }
  .faq__grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-bottom { flex-direction: column; }
  .faq__list summary { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}
