:root {
  color-scheme: dark;
  --ink: #07111a;
  --ink-mid: #0b1a22;
  --muted: #c7d4d0;
  --muted-soft: #8fa5a8;
  --paper: #f3f1e8;
  --white: #14242d;
  --line: #2e4955;
  --green: #77e0c3;
  --green-dark: #8fe2ca;
  --yellow: #ffb703;
  --coral: #ff8f8f;
  --panel-2: #173640;
  --hero-start: #1a323e;
  --hero-end: #0e202a;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: linear-gradient(180deg, var(--ink) 0%, var(--ink-mid) 46%, #132833 100%); color: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: var(--green-dark); }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.skip-link { background: var(--green); color: #081318; left: 12px; padding: 8px 12px; position: fixed; top: -60px; z-index: 100; }
.skip-link:focus { top: 12px; }
.tool-header { align-items: center; backdrop-filter: blur(18px); background: rgba(7,17,26,.88); border-bottom: 1px solid var(--line); display: flex; gap: 24px; justify-content: space-between; min-height: 68px; padding: 10px max(18px, calc((100vw - var(--max))/2)); position: sticky; top: 0; z-index: 20; }
.tool-brand { align-items: center; color: var(--paper); display: inline-flex; font-weight: 800; gap: 9px; text-decoration: none; }
.tool-brand img { border: 1px solid #1f3b48; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.28); width: 36px; }
.tool-nav { display: flex; font-size: 14px; gap: 20px; }
.tool-nav a { color: var(--muted); text-decoration: none; }
.tool-nav a:hover { color: var(--paper); }
.header-actions { align-items: center; display: flex; gap: 12px; }
.button.small { font-size: 14px; min-height: 40px; padding: 0 13px; }
.language-switch { align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; display: inline-flex; overflow: hidden; }
.language-switch a { color: var(--muted); font-size: 13px; font-weight: 800; min-height: 38px; min-width: 42px; padding: 9px 10px; text-align: center; text-decoration: none; }
.language-switch a + a { border-left: 1px solid var(--line); }
.language-switch a.is-active { background: var(--green); color: #081318; }
.breadcrumb { color: var(--muted); font-size: 14px; margin: 0 auto; max-width: var(--max); padding: 20px 24px 0; }
.breadcrumb a { color: inherit; }
.tool-hero { display: grid; gap: 46px; grid-template-columns: minmax(0,.85fr) minmax(340px,1.15fr); margin: 0 auto; max-width: var(--max); padding: 44px 24px 72px; }
.tool-intro { padding-top: 18px; }
.eyebrow { align-items: center; background: var(--panel-2); border: 1px solid #39606b; border-radius: 999px; color: var(--green-dark); display: inline-flex; font-size: 13px; font-weight: 850; margin: 0 0 12px; min-height: 34px; padding: 0 12px; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: 0; line-height: 1.12; margin-top: 0; }
h1 { font-size: clamp(38px, 5vw, 62px); margin-bottom: 20px; }
h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: 16px; }
h3 { font-size: 20px; }
.lede { color: var(--muted); font-size: 19px; }
.trust-list { color: var(--muted); list-style: none; margin: 26px 0; padding: 0; }
.trust-list li { margin: 8px 0; padding-left: 25px; position: relative; }
.trust-list li::before { color: var(--green-dark); content: "✓"; font-weight: 900; left: 0; position: absolute; }
.hero-close { color: var(--paper); font-size: 17px; font-weight: 750; margin-top: 22px; max-width: 620px; }
.calculator { background: var(--white); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 62px rgba(0,0,0,.34); padding: clamp(22px, 4vw, 36px); }
.media-panel { align-self: start; max-height: 620px; overflow: hidden; }
.media-panel img { border: 1px solid var(--line); border-radius: 22px; margin: 0 auto; max-height: 560px; object-fit: contain; }
.home-hero { align-items: center; }
.calculator h2 { font-size: 25px; }
.field-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 750; }
.field small { color: var(--muted); }
input, select { background: #0e202a; border: 1px solid var(--line); border-radius: 10px; color: var(--paper); min-height: 48px; padding: 10px 12px; width: 100%; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(119,224,195,.24); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button { align-items: center; border: 1px solid transparent; border-radius: 999px; cursor: pointer; display: inline-flex; font-weight: 800; justify-content: center; min-height: 48px; padding: 0 18px; text-decoration: none; transition: background 160ms ease, border-color 160ms ease, transform 160ms ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--green); box-shadow: 0 14px 34px rgba(119,224,195,.18); color: #081318; }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { background: rgba(20,36,45,.72); border-color: var(--line); color: var(--paper); }
.privacy-note { color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.result { background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: 16px; margin-top: 26px; padding: 22px; }
.result[hidden] { display: none; }
.result-kicker { color: var(--green-dark); font-size: 13px; font-weight: 850; margin-bottom: 4px; text-transform: uppercase; }
.result-main { font-size: clamp(31px, 5vw, 45px); font-weight: 900; line-height: 1; margin: 4px 0 18px; }
.result-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.result-stat { background: #14242d; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.result-stat span, .result-stat strong { display: block; }
.result-stat span { color: var(--muted); font-size: 12px; }
.result-recommendation { font-weight: 650; margin: 18px 0 0; }
.result-warning { color: var(--coral); font-weight: 700; }
.content-band { background: rgba(20,36,45,.58); border-top: 1px solid var(--line); padding: 72px 24px; }
.content-inner { margin: 0 auto; max-width: 850px; }
.content-inner + .content-inner { margin-top: 62px; }
.content-inner p, .content-inner li { color: var(--muted); }
.example, .callout { border-left: 4px solid var(--yellow); margin: 28px 0; padding: 8px 0 8px 20px; }
.comparison { border-collapse: collapse; margin: 24px 0; width: 100%; }
.comparison th, .comparison td { border-bottom: 1px solid var(--line); padding: 13px; text-align: left; vertical-align: top; }
.comparison th { background: #0e202a; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 800; }
.related-grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
.related-card { background: #14242d; border: 1px solid var(--line); border-radius: 14px; color: var(--paper); display: block; padding: 18px; text-decoration: none; }
.related-card strong { display: block; margin-bottom: 5px; }
.related-card span { color: var(--muted); font-size: 14px; }
.app-band { align-items: center; background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); color: var(--paper); display: grid; gap: 28px; grid-template-columns: 1fr auto; margin: 0; padding: 48px max(24px, calc((100vw - var(--max))/2)); }
.app-band p { color: #c9d2cf; margin-bottom: 0; max-width: 680px; }
.platform-band { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 28px; grid-template-columns: minmax(0, .85fr) minmax(260px, auto); margin: 0 auto; max-width: var(--max); padding: 64px 24px; }
.platform-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.platform-form { background: var(--white); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 12px; padding: 18px; }
.platform-form .button { width: 100%; }
.honeypot { left: -9999px; opacity: 0; position: absolute; }
.compact-fields { margin-top: 14px; }
.checkbox-line { align-items: flex-start; color: var(--muted); display: flex; gap: 10px; margin-top: 16px; }
.checkbox-line input { flex: 0 0 auto; min-height: auto; margin-top: 5px; width: auto; }
.sticky-install { align-items: center; background: var(--green); border: 1px solid rgba(8, 19, 24, .2); border-radius: 999px; bottom: 14px; box-shadow: 0 14px 38px rgba(0,0,0,.38); color: #081318; display: none; font-weight: 900; justify-content: center; left: 16px; min-height: 48px; padding: 0 18px; position: fixed; right: 16px; text-align: center; text-decoration: none; z-index: 45; }
.tool-footer { color: var(--muted); display: flex; font-size: 14px; gap: 22px; justify-content: space-between; margin: 0 auto; max-width: var(--max); padding: 30px 24px; }
.tool-footer nav { display: flex; flex-wrap: wrap; gap: 14px; }
.article-hero { margin: 0 auto; max-width: 850px; padding: 48px 24px 60px; }
.article-hero h1 { max-width: 800px; }
.article-meta { color: var(--muted); font-size: 14px; }
.article-body { background: rgba(20,36,45,.58); border-top: 1px solid var(--line); padding: 64px 24px; }
.article-body .content-inner > h2 { margin-top: 52px; }
.toc { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin: 28px 0; padding: 18px; }
.toc h2 { font-size: 22px; }
.toc a { color: var(--paper); }
.steps { counter-reset: steps; list-style: none; padding: 0; }
.steps li { border-top: 1px solid var(--line); padding: 18px 0 18px 48px; position: relative; }
.steps li::before { background: var(--green); border-radius: 50%; color: #081318; content: counter(steps); counter-increment: steps; font-weight: 800; height: 32px; left: 0; line-height: 32px; position: absolute; text-align: center; top: 16px; width: 32px; }
.ads-nav { align-items: center; backdrop-filter: blur(18px); background: rgba(7,17,26,.9); border-bottom: 1px solid var(--line); display: flex; gap: 20px; justify-content: space-between; min-height: 68px; padding: 10px max(18px, calc((100vw - 1180px)/2)); position: sticky; top: 0; z-index: 30; }
.ads-nav nav { display: flex; gap: 18px; }
.ads-nav nav a { color: var(--muted); font-size: 14px; text-decoration: none; }
.ads-nav nav a:hover { color: var(--paper); }
.compact-ads-nav nav { gap: 14px; }
.ads-landing { overflow: hidden; }
.ads-hero, .ads-section { margin: 0 auto; max-width: 1180px; padding: 72px 24px; }
.ads-hero { align-items: center; display: grid; gap: 58px; grid-template-columns: minmax(0, 1fr) minmax(280px, 390px); min-height: calc(100vh - 68px); padding-top: 52px; }
.ads-copy h1 { font-size: clamp(42px, 6vw, 72px); line-height: .98; max-width: 850px; }
.compact { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.phone-frame { background: var(--white); border: 1px solid var(--line); border-radius: 34px; box-shadow: 0 28px 70px rgba(0,0,0,.38); margin: 0; padding: 10px; }
.phone-frame img { border-radius: 26px; height: auto; width: 100%; }
.hero-phone-frame { justify-self: center; max-width: 330px; }
.ads-section { border-top: 1px solid rgba(46,73,85,.72); }
.section-heading { max-width: 760px; }
.demo-grid, .example-section, .privacy-compact { align-items: start; display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); }
.feature-grid { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.feature-grid article { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.feature-grid p { color: var(--muted); margin-bottom: 0; }
.demo-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(20px, 3vw, 30px); }
.segmented { border: 0; display: flex; gap: 10px; margin: 0 0 18px; padding: 0; }
.segmented legend { color: var(--muted); font-size: 14px; font-weight: 750; margin-bottom: 8px; width: 100%; }
.segmented label { align-items: center; background: #0e202a; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; display: inline-flex; gap: 8px; min-height: 42px; padding: 0 14px; }
.segmented input { accent-color: var(--green); min-height: auto; width: auto; }
.form-error { color: var(--coral); font-weight: 750; min-height: 1.5em; }
.demo-list { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.demo-row { align-items: center; border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 12px; justify-content: space-between; padding: 12px; }
.demo-row span { color: var(--muted); display: block; font-size: 13px; }
.demo-row strong { color: var(--paper); }
.demo-row .expense { color: var(--coral); }
.demo-row .income { color: var(--green-dark); }
.demo-complete { margin-top: 18px; }
.money-example { background: linear-gradient(135deg, var(--hero-start), var(--hero-end)); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 1px; overflow: hidden; }
.money-example div { background: rgba(7,17,26,.42); display: flex; justify-content: space-between; padding: 18px; }
.money-example span { color: var(--muted); }
.money-example strong { color: var(--paper); }
.money-example .available { background: rgba(119,224,195,.12); }
.flow-grid, .screenshot-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.flow-grid article, .screenshot-grid figure { background: var(--white); border: 1px solid var(--line); border-radius: 18px; margin: 0; padding: 16px; }
.flow-grid img, .screenshot-grid img { border: 1px solid var(--line); border-radius: 16px; margin: 0 auto 16px; max-height: 420px; object-fit: contain; width: auto; }
.flow-grid p { color: var(--muted); margin-bottom: 0; }
.table-wrap { overflow-x: auto; }
.privacy-compact .resource-links { align-self: stretch; background: var(--white); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 12px; padding: 20px; }
.resource-links a { border-bottom: 1px solid var(--line); padding: 0 0 10px; text-decoration: none; }
.resource-links a:last-child { border-bottom: 0; padding-bottom: 0; }
.screenshot-grid { grid-template-columns: repeat(4, 1fr); }
.screenshot-grid figcaption { color: var(--muted); font-weight: 800; text-align: center; }
.final-cta { border-top: 1px solid var(--line); }
.ads-footer { border-top: 0; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
@media (max-width: 760px) {
  .tool-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  .tool-nav { flex-wrap: wrap; gap: 12px; }
  .header-actions { flex-wrap: wrap; width: 100%; }
  .header-actions .button { flex: 1; }
  .tool-hero { grid-template-columns: 1fr; padding-top: 26px; }
  .field-grid, .result-grid, .related-grid, .app-band, .platform-band { grid-template-columns: 1fr; }
  .platform-actions { justify-content: stretch; }
  .platform-actions .button { flex: 1; }
  .ads-nav { align-items: flex-start; flex-direction: column; }
  .ads-nav nav { flex-wrap: wrap; gap: 12px; }
  .ads-hero, .demo-grid, .example-section, .privacy-compact, .feature-grid, .flow-grid, .screenshot-grid { grid-template-columns: 1fr; }
  .ads-hero { min-height: auto; padding-top: 36px; }
  .hero-phone-frame { max-width: 290px; }
  .flow-grid img, .screenshot-grid img { max-height: 520px; }
  .app-band .button { width: 100%; }
  .tool-footer { align-items: flex-start; flex-direction: column; }
  .sticky-install { display: flex; }
  body { padding-bottom: 70px; }
}
@media (max-width: 440px) {
  .field-grid { grid-template-columns: 1fr; }
  .tool-brand span { font-size: 15px; }
  h1 { font-size: 38px; }
  .form-actions .button { width: 100%; }
}
