/* Budgy showcase page (index.html, en/index.html). Builds on style.css tokens. */
body.landing { font-size: 17px; }
/* Undo the legal-page layout from style.css (narrow main, flex header). */
body.landing main { max-width: none; margin: 0; padding: 0; }
body.landing header.topbar { display: block; margin: 0; }
body.landing footer.site-footer { margin-top: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--text); }
.nav .lang a[aria-current="page"] { color: var(--accent); font-weight: 600; }
@media (max-width: 640px) { .nav .section-link { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: #fff; }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0e1116; } }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-store { background: #12151c; color: #fff; cursor: default; }
@media (prefers-color-scheme: dark) { .btn-store { background: #f1f3f6; color: #12151c; } }
.btn-store small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.2; }
.btn-store span { display: block; font-size: 17px; line-height: 1.2; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 32px; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 18px 0 16px; }
.hero p.lead { font-size: 19px; line-height: 1.55; color: var(--muted); margin: 0 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.ticks li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 6px; }

/* Phone mock (the app is light-themed, so the screen stays light) */
.phone { width: 300px; max-width: 100%; margin: 0 auto; background: #12151c; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px -20px rgba(18,21,28,.45); }
.screen { background: #f6f7f9; color: #12151c; border-radius: 34px; overflow: hidden; padding: 18px 14px 14px; font-size: 13px; line-height: 1.4; }
.screen .bar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 15px; margin: 4px 4px 12px; }
.screen .bar i { width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 1px solid #e3e6eb; }
.balance { background: #12151c; color: #fff; border-radius: 20px; padding: 16px; }
.balance .label { color: #b9bfcb; font-size: 12px; }
.balance .amount { font-size: 28px; font-weight: 700; margin: 2px 0; font-variant-numeric: tabular-nums; }
.balance .meta { color: #b9bfcb; font-size: 11px; }
.balance .track { height: 6px; background: #2a2f3a; border-radius: 3px; margin: 10px 0 12px; overflow: hidden; }
.balance .track b { display: block; width: 42%; height: 100%; background: #4fd1a5; border-radius: 3px; }
.balance .split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.balance .split div { background: #1e232d; border-radius: 12px; padding: 8px 10px; }
.balance .split small { display: block; color: #b9bfcb; font-size: 10px; }
.balance .split strong { font-variant-numeric: tabular-nums; font-size: 13px; }
.list { background: #fff; border: 1px solid #e3e6eb; border-radius: 18px; margin-top: 12px; padding: 4px 12px; }
.list h4 { margin: 8px 0 2px; font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef0f3; }
.row:last-child { border-bottom: none; }
.tile { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.tile svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.row .name { flex: 1; min-width: 0; }
.row .name b { display: block; font-size: 13px; }
.row .name small { color: #5b6170; font-size: 11px; }
.row .amt { font-weight: 600; font-variant-numeric: tabular-nums; }
.amt.plus { color: #0b6e55; }
.fab { width: 48px; height: 48px; border-radius: 16px; background: #0b6e55; color: #fff; display: grid; place-items: center; margin: 12px auto 0; font-size: 26px; font-weight: 400; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 4vw, 38px); line-height: 1.15; letter-spacing: -.015em; margin: 10px 0 12px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.alt .feature { background: var(--bg); }
.feature .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.feature .ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin: 0 0 6px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* Analysis showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.analysis { background: #fff; color: #12151c; border: 1px solid #e3e6eb; border-radius: 24px; padding: 22px; max-width: 420px; margin: 0 auto; width: 100%; }
.analysis h4 { margin: 0 0 14px; font-size: 15px; }
.donut-row { display: flex; align-items: center; gap: 20px; }
.donut { width: 128px; height: 128px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(#2b5bb5 0 45%, #0b6e55 45% 62%, #5b3fb5 62% 73%, #d9741f 73% 82%, #b03a2e 82% 91%, #3e9bc2 91% 100%); }
.donut::after { content: ""; width: 84px; height: 84px; border-radius: 50%; background: #fff; grid-area: 1 / 1; }
.donut span { grid-area: 1 / 1; z-index: 1; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; font-size: 13px; }
.legend li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.badge-up { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 600; color: #0b6e55; background: #e5f4ee; padding: 4px 10px; border-radius: 999px; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before { content: "✓"; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { border: 1px solid var(--border); border-radius: 20px; padding: 22px; background: var(--surface); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .step::before { color: #0e1116; } }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* Privacy band */
.privacy { background: #12151c; color: #fff; border-radius: 28px; padding: 40px 28px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center; }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; padding: 32px 20px; } }
.privacy h2 { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; margin: 0 0 12px; }
.privacy p { color: #b9bfcb; margin: 0 0 16px; }
.privacy a { color: #4fd1a5; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.privacy li { background: #1e232d; border-radius: 14px; padding: 12px 14px; font-weight: 600; }
.privacy li::before { content: "✕"; color: #4fd1a5; margin-right: 10px; }

/* Pricing */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--border); border-radius: 24px; padding: 26px; background: var(--surface); }
.plan.premium { border: 2px solid var(--accent); }
.plan h3 { margin: 0; font-size: 22px; }
.plan .price { font-size: 32px; font-weight: 700; margin: 8px 0 4px; }
.plan .sub { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15.5px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.prices span { background: var(--accent-soft); color: var(--text); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.prices strong { color: var(--accent); }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 17px; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* Final call + footer */
.final { text-align: center; padding: 72px 0; }
.final h2 { font-size: clamp(28px, 4.5vw, 40px); margin: 0 0 12px; }
.final p { color: var(--muted); margin: 0 auto 26px; max-width: 32em; }
.final .cta { justify-content: center; }
.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }

/* Anchored sections land below the sticky bar. */
section[id] { scroll-margin-top: 72px; }
