/* Budget Assistant home page. Dark, orange accent, Montserrat. No inline styles or scripts (strict CSP). */

@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/montserrat-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0f12; --bg-2: #11141a; --surface: #161a21; --surface-2: #1c212a; --line: #262c36; --line-2: #343c49;
  --ink: #f3f4f6; --ink-2: #d5d9df; --muted: #9aa4b1;
  --accent: #ff6700; --accent-hover: #ff7b1f; --accent-ink: #14171c; --accent-soft: rgba(255, 103, 0, .14); --accent-text: #ff9a55;
  --ok: #6ee7a0; --warn: #fbbf24;
  --radius: 16px; --radius-md: 10px; --wrap: 1180px;
  --font: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 700; text-transform: uppercase; }
h1.h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; text-transform: uppercase; }
h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .86em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; color: var(--ink-2); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.roof { height: 4px; background: var(--accent); }
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(13, 15, 18, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; }
.mark svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--muted); font-size: .88rem; font-weight: 600; }
.nav a:not(.btn):hover { color: var(--ink); }
.menu-btn { display: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 22px; font: inherit; font-size: .82rem;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent);
  border: 0; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; transition: background-color .15s, transform .15s;
}
.btn:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn:active { transform: scale(.98); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: .75rem; }
.btn.big { min-height: 54px; padding: 0 30px; font-size: .88rem; border-radius: 12px; box-shadow: 0 10px 30px rgba(255, 103, 0, .28); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.ghost:hover { background: var(--surface); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2; opacity: .55;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, transparent 1.4px); background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 25%, #000 30%, transparent 80%);
}
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow.g1 { width: 620px; height: 620px; left: 50%; top: -260px; transform: translateX(-60%); background: rgba(255, 103, 0, .28); }
.glow.g2 { width: 520px; height: 520px; right: -140px; top: 120px; background: rgba(91, 80, 255, .16); }
.glow.g3 { width: 420px; height: 420px; left: 50%; top: -180px; transform: translateX(-50%); background: rgba(255, 103, 0, .22); }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 7px 16px; border-radius: 999px; background: var(--accent-soft); border: 1px solid rgba(255, 103, 0, .35); color: var(--accent-text); font-size: .76rem; font-weight: 700; letter-spacing: .04em; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.grad { background: linear-gradient(90deg, var(--accent) 0%, #ffb067 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 680px; margin: 22px auto 30px; color: var(--ink-2); font-size: clamp(1.02rem, 1.6vw, 1.2rem); }
.cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.note { margin: 18px 0 0; color: var(--muted); font-size: .82rem; }
.frame { margin: 0; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03); }
.frame img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; object-position: top left; }
.hero-shot { margin-top: 48px; width: 100%; max-width: 1040px; box-shadow: 0 40px 120px rgba(255, 103, 0, .16), 0 40px 100px rgba(0, 0, 0, .6); }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.marquee .track { display: flex; width: max-content; gap: 14px; padding: 16px 0; animation: scroll 42s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.marquee span { white-space: nowrap; padding: 7px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: .82rem; font-weight: 600; background: var(--surface); }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow { margin: 0 0 12px; color: var(--accent-text); font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.sub { max-width: 680px; margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; }
.center .sub, .center h2 { margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 44px; }
.grid .card { transition: border-color .2s, transform .2s; }
.grid .card:hover { border-color: rgba(255, 103, 0, .5); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 10px 0 0; font-size: .94rem; }
.ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.two.cards { align-items: stretch; margin-top: 40px; gap: 18px; }
.two.flip > :first-child { order: 0; }
.ticks, .crosses { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li, .crosses li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: .95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23ff9a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.crosses li::before { content: "!"; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: rgba(251, 191, 36, .14); color: var(--warn); font-size: .72rem; font-weight: 800; display: grid; place-items: center; line-height: 1; }

/* ---------- Gallery ---------- */
.gallery { margin-top: 40px; }
.gallery-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; color: var(--muted); padding: 9px 16px; border-radius: 9px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected=true], .seg button[aria-pressed=true] { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.caption { margin: 18px 4px 0; color: var(--muted); font-size: .95rem; }
.caption strong { color: var(--ink); }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.steps li { position: relative; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps .num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.steps p { margin: 10px 0 0; color: var(--muted); font-size: .94rem; }

/* ---------- Calculator ---------- */
.calc { padding: 28px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc label { display: grid; gap: 6px; color: var(--muted); font-size: .74rem; font-weight: 600; }
.calc label.full { grid-column: 1 / -1; }
.calc input { width: 100%; min-height: 44px; padding: 0 12px; font: inherit; font-size: .95rem; font-weight: 600; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; font-variant-numeric: tabular-nums; }
.calc-out { margin-top: 22px; padding: 22px; border-radius: 14px; background: linear-gradient(135deg, #ff6700, #ff8a3d); color: var(--accent-ink); }
.calc-out .label { font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.calc-out .big { margin: 4px 0; font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.calc-out .muted { color: rgba(20, 23, 28, .78); font-size: .88rem; font-weight: 600; min-height: 1.4em; }
.calc-out.neg { background: linear-gradient(135deg, #c8362a, #e0584b); color: #fff; }
.calc-out.neg .muted { color: rgba(255, 255, 255, .86); }

/* ---------- Chat mock ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; padding: 28px; position: relative; }
.tag { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--muted); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bubble { max-width: 92%; padding: 14px 18px; border-radius: 16px; font-size: .92rem; line-height: 1.55; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); font-weight: 600; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink-2); border-bottom-left-radius: 4px; }
.bubble.prop { align-self: flex-start; background: var(--accent-soft); border: 1px dashed rgba(255, 103, 0, .5); color: var(--ink-2); }

/* ---------- Stats ---------- */
.stats { padding: 56px 0; border-block: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 24px; text-align: center; }
.stat-row .n { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-row .l { color: var(--muted); font-size: .88rem; font-weight: 600; }

/* ---------- Download ---------- */
.dl { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 64px 28px; border-color: var(--line-2); background: radial-gradient(ellipse 70% 120% at 50% 0%, #1f1a17, var(--surface)); }
.dl .sub { margin-inline: auto; margin-bottom: 30px; }
.dl .meta { margin: 20px 0 0; color: var(--muted); font-size: .84rem; }
.soon { display: inline-block; padding: 14px 22px; border: 1px dashed var(--line-2); border-radius: 12px; color: var(--ink-2); }
.hash { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 20px auto 0; padding: 10px 12px 10px 16px; background: #0a0c0f; border: 1px solid var(--line); border-radius: 12px; text-align: left; }
.hash .k { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.hash code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: none; padding: 0; color: var(--ink-2); font-size: .8rem; }
.copy { flex: none; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); padding: 6px 14px; border-radius: 8px; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; }
.copy:hover { border-color: var(--accent); }
.verify { max-width: 760px; margin: 14px auto 0; text-align: left; color: var(--muted); font-size: .88rem; }
.verify summary { cursor: pointer; text-align: center; color: var(--accent-text); font-weight: 600; }
.dl .smart { max-width: 640px; margin: 24px auto 0; color: var(--muted); font-size: .82rem; text-align: center; }
.dl .meta, .dl .soon { text-align: center; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; color: var(--muted); font-size: .95rem; }

/* ---------- Prose & footer ---------- */
.prose h2 { margin: 36px 0 12px; font-size: 1.15rem; text-transform: none; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 20px; }
.footer { padding: 48px 0 32px; border-top: 1px solid var(--line); background: var(--bg-2); }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { margin: 12px 0 0; max-width: 340px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.foot-links a { color: var(--muted); font-size: .88rem; font-weight: 600; }
.foot-links a:hover { color: var(--ink); }
.fine { margin-top: 28px; color: var(--muted); font-size: .78rem; }

/* ---------- Motion ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .grid .card { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .section { padding: 68px 0; }
  .two { grid-template-columns: 1fr; gap: 32px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; font-size: 1rem; }
  .nav .btn { margin-top: 10px; }
  .hero { padding-top: 48px; }
  .calc-grid { grid-template-columns: 1fr; }
  .hash { flex-wrap: wrap; }
}
