/* BudgetGen website. One stylesheet for every page; matches the app:
   Poppins, ink on a light grey page, white cards, black pill buttons. */

@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("/fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url("/fonts/poppins-medium.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("/fonts/poppins-semibold.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("/fonts/poppins-bold.woff2") format("woff2"); }

:root {
  --ink: #111111;
  --text: #161616;
  --muted: #5f5f5f;
  --page: #f5f5f5;
  --card: #ffffff;
  --line: #e2e2e2;
  --soft: #e9e9e9;
  --good: #1e7a4a;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  --radius: 20px;
  --max: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-underline-offset: 3px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 999px; z-index: 10;
}
.skip:focus { left: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(245, 245, 245, 0.85); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .nav-link { display: none; }
@media (min-width: 768px) { .nav .nav-link { display: inline; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  background: var(--ink); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 1rem;
  border: 0; cursor: pointer; transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 0.9rem; }

.store { display: inline-flex; flex-direction: column; gap: 8px; }
.store-badge img { height: 54px; width: auto; }
.store-soon {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 14px; background: var(--ink); color: #fff; text-decoration: none;
}
.store-soon svg { width: 26px; height: 26px; fill: #fff; }
.store-soon span { display: flex; flex-direction: column; line-height: 1.2; }
.store-soon small { font-size: 0.72rem; opacity: 0.8; }
.store-soon strong { font-size: 1.05rem; font-weight: 600; }

/* Sections */
section { padding: 72px 0; }
section.tight { padding: 40px 0; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Hero */
.hero { padding: 40px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-phone { justify-self: center; width: min(340px, 82vw); filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12)); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-top: 16px; }
.check svg { width: 20px; height: 20px; }
@media (min-width: 768px) {
  .hero { padding: 72px 0 88px; }
  .hero .wrap { grid-template-columns: 1.1fr 0.9fr; }
  /* Short enough to sit whole on a laptop screen. */
  .hero-phone { width: min(300px, 36vw); }
}

/* Cards and grids */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.grid { display: grid; gap: 20px; }
@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.ask { display: grid; gap: 28px; margin-top: 40px; }
.ask figure { margin: 0; }
.ask .bubble {
  display: inline-block; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 20px 20px 4px 20px;
  font-weight: 500; font-size: 0.95rem; margin-bottom: 12px;
}
.ask figure { display: flex; flex-direction: column; align-items: flex-end; }
/* The card pictures carry the app's own card and shadow. */
.ask img { width: 100%; }
@media (min-width: 768px) { .ask { grid-template-columns: repeat(3, 1fr); align-items: start; } }

.feature .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; }

/* The still picture sits under the animation that replaces it, so the box
   never changes size. */
.art { position: relative; width: 220px; height: 220px; margin: 0 auto 8px; }
.art img, .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

.steps { counter-reset: step; }
.steps .card { position: relative; }
.steps .num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px;
}

/* Pricing */
.plans { display: grid; gap: 20px; max-width: 760px; margin: 40px auto 0; }
@media (min-width: 768px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { text-align: left; position: relative; }
.plan.best { outline: 2px solid var(--ink); }
.plan .tag { position: absolute; top: -12px; left: 24px; background: var(--ink); color: #fff; font-size: 0.75rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.plan .price { font-size: 2.2rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.plan .per { color: var(--muted); font-size: 0.95rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding-left: 28px; position: relative; margin-bottom: 8px; }
.plan li::before { content: ""; position: absolute; left: 4px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }

/* FAQ */
.faq { max-width: 760px; margin: 32px auto 0; }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+" / ""; position: absolute; right: 24px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content: "\2013" / ""; }
.faq details > div { padding: 0 24px 20px; color: var(--muted); }

/* Closing call */
.cta { background: var(--ink); color: #fff; border-radius: 28px; padding: 48px 28px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, 0.78); }
.cta .store-soon { background: #fff; color: var(--ink); }
.cta .store-soon svg { fill: var(--ink); }

/* Long-form pages (policies, support) */
.doc { max-width: 760px; margin: 0 auto; padding: 48px var(--gutter) 72px; }
.doc h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
.doc h2 { font-size: 1.35rem; margin-top: 40px; letter-spacing: -0.01em; }
.doc h3 { margin-top: 24px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc .card { margin: 24px 0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 0.95rem; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; margin-top: 24px; }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { margin: 0; color: var(--muted); font-size: 0.9rem; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: center; } }

/* Fade-up as a section comes into view. Hidden only once the script runs,
   so without JavaScript everything simply shows. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
