
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #09253b;
  --ink-2: #173b53;
  --muted: #607180;
  --line: #dce6ec;
  --soft: #f4f8fa;
  --white: #ffffff;
  --green: #16855b;
  --green-2: #2eaa75;
  --green-soft: #eaf8f1;
  --blue: #1767c4;
  --blue-soft: #edf5ff;
  --orange: #e77f2f;
  --orange-soft: #fff3e9;
  --purple: #7554c9;
  --purple-soft: #f3efff;
  --red: #c64545;
  --red-soft: #fff0f0;
  --shadow: 0 18px 55px rgba(9, 37, 59, .10);
  --shadow-sm: 0 8px 24px rgba(9, 37, 59, .08);
  --radius: 24px;
  --radius-sm: 15px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(220,230,236,.8);
}
.header-inner {
  min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.brand-mark { display: inline-flex; align-items: end; gap: 3px; height: 29px; }
.brand-mark i { width: 7px; display: block; border-radius: 3px 3px 1px 1px; background: var(--green); }
.brand-mark i:nth-child(1){height:13px;background:#52c58b}
.brand-mark i:nth-child(2){height:21px;background:#23a66e}
.brand-mark i:nth-child(3){height:29px;background:#0f7651}
.main-nav { display: flex; align-items: center; gap: 27px; font-weight: 600; font-size: 14px; }
.main-nav a { color: var(--ink-2); }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--green); }
.nav-contact { border: 1px solid var(--line); padding: 10px 15px; border-radius: 999px; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }

.hero {
  background:
    radial-gradient(circle at 10% 20%, rgba(46,170,117,.10), transparent 28%),
    linear-gradient(135deg, #f8fbfc 0%, #ffffff 58%, #eff8f4 100%);
  overflow: hidden;
}
.hero-grid { min-height: 590px; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 48px; padding: 70px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--green); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.eyebrow::before { content:""; width: 28px; height: 2px; background: currentColor; }
h1,h2,h3,p { margin-top: 0; }
h1 { font-size: clamp(44px, 5.2vw, 72px); line-height: 1.05; letter-spacing: -.055em; margin-bottom: 24px; }
h2 { font-size: clamp(31px, 4vw, 48px); line-height: 1.12; letter-spacing: -.045em; margin-bottom: 17px; }
h3 { font-size: 21px; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 10px; }
.lead { color: var(--ink-2); font-size: 19px; max-width: 660px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 49px; padding: 0 20px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 800; transition: .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--green), #0f7651); box-shadow: 0 10px 26px rgba(22,133,91,.22); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-danger { background: var(--red); color: #fff; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: 13px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.check { width: 19px; height: 19px; border-radius: 50%; display:inline-grid; place-items:center; background: var(--green-soft); color: var(--green); font-size: 12px; font-weight: 900; }
.hero-visual { position: relative; min-height: 440px; }
.hero-image {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  border-radius: 32px; box-shadow: var(--shadow);
}
.hero-float {
  position: absolute; left: -38px; bottom: 34px; width: min(360px, 78%);
  background: rgba(255,255,255,.95); border: 1px solid rgba(255,255,255,.8);
  border-radius: 20px; padding: 20px; box-shadow: var(--shadow);
}
.float-label { color: var(--muted); font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.float-value { font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.float-bars { display: grid; grid-template-columns: repeat(5,1fr); align-items: end; height: 58px; gap: 8px; margin-top: 14px; }
.float-bars i { border-radius: 7px 7px 3px 3px; background: linear-gradient(180deg, #59c98d, #16855b); }

.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat { padding: 24px 22px; display: flex; gap: 14px; align-items: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right:0; }
.stat-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items:center; color: var(--green); background: var(--green-soft); flex:0 0 auto; }
.stat strong { display:block; font-size:14px; }
.stat span { color: var(--muted); font-size:12px; }

.section { padding: 92px 0; }
.section-soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 35px; }
.section-head p { color: var(--muted); max-width: 630px; margin-bottom: 0; }

.audience-switch {
  display: inline-flex; padding: 5px; border-radius: 999px; background: #eaf0f4; margin-bottom: 32px;
}
.audience-switch button { border: 0; background: transparent; padding: 11px 17px; border-radius: 999px; color: var(--muted); font-weight: 800; }
.audience-switch button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

.tool-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.tool-card {
  position: relative; padding: 25px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; min-height: 300px; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(9,37,59,.02); transition: .25s ease;
}
.tool-card:hover { transform: translateY(-6px); border-color: #bdd6c9; box-shadow: var(--shadow-sm); }
.tool-icon { width: 52px; height: 52px; display:grid; place-items:center; border-radius: 16px; margin-bottom: 22px; }
.tool-icon svg { width: 27px; height: 27px; }
.tool-card.business .tool-icon { background: var(--blue-soft); color: var(--blue); }
.tool-card.private .tool-icon { background: var(--green-soft); color: var(--green); }
.tool-tag { position: absolute; right: 20px; top: 20px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tool-card p { color: var(--muted); font-size: 14px; }
.tool-link { margin-top: auto; display:inline-flex; align-items:center; gap:8px; font-weight:800; color: var(--green); }

.split-feature { display: grid; grid-template-columns: .85fr 1.15fr; border-radius: 28px; overflow: hidden; background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.split-image { min-height: 500px; object-fit: cover; width: 100%; height: 100%; }
.split-content { padding: 62px; display:flex; flex-direction:column; justify-content:center; }
.split-content p { color: #d5e2ea; }
.steps { display:grid; gap: 18px; margin-top: 20px; }
.step { display:grid; grid-template-columns: 42px 1fr; gap: 14px; align-items:start; }
.step b { width: 42px; height:42px; border-radius: 50%; display:grid; place-items:center; background: rgba(89,201,141,.15); color:#7de1ae; }
.step strong { display:block; margin-bottom:3px; }
.step span { color:#b9cad4; font-size:14px; }

.cta-panel {
  background: linear-gradient(135deg, #0b2b45, #0d6048);
  color:#fff; border-radius: 28px; padding: 56px; display:flex; align-items:center; justify-content:space-between; gap:32px;
}
.cta-panel p { color:#d4e4e1; margin-bottom:0; max-width:690px; }

.site-footer { background:#071f33; color:#fff; padding: 58px 0 25px; }
.footer-grid { display:grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 45px; }
.site-footer p,.site-footer a { color:#b9cad4; font-size:13px; }
.footer-title { font-weight:800; margin-bottom:15px; }
.footer-links { display:grid; gap:9px; }
.footer-bottom { border-top:1px solid rgba(255,255,255,.12); margin-top:40px; padding-top:22px; display:flex; justify-content:space-between; gap:20px; color:#8fa7b6; font-size:12px; }

/* Tool pages */
.tool-hero { padding: 70px 0 48px; background: linear-gradient(180deg,#f7fafb,#fff); border-bottom: 1px solid var(--line); }
.tool-hero-grid { display:grid; grid-template-columns: 1fr 360px; gap:50px; align-items:center; }
.tool-hero h1 { font-size: clamp(38px,5vw,62px); max-width:850px; }
.tool-hero p { color:var(--ink-2); font-size:18px; max-width:720px; }
.tool-hero-card { min-height:260px; border-radius:26px; overflow:hidden; position:relative; box-shadow:var(--shadow-sm); }
.tool-hero-card img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }
.tool-hero-card::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent,rgba(5,26,42,.35)); }

.tool-workspace { padding: 48px 0 90px; background:#f7fafb; }
.tool-layout { display:grid; grid-template-columns: minmax(0,1.08fr) minmax(340px,.92fr); gap:28px; align-items:start; }
.panel { background:#fff; border:1px solid var(--line); border-radius:22px; padding:28px; box-shadow:0 1px 0 rgba(9,37,59,.02); }
.panel h2 { font-size:27px; margin-bottom:8px; }
.panel-intro { color:var(--muted); font-size:14px; margin-bottom:25px; }
.form-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:18px; }
.field { display:grid; gap:7px; }
.field.full { grid-column:1/-1; }
label { font-size:13px; font-weight:800; color:var(--ink-2); }
.help { color:var(--muted); font-size:11px; font-weight:500; }
.input-wrap { position:relative; }
input, select, textarea {
  width:100%; min-height:48px; border:1px solid #cad8e0; border-radius:11px; padding:0 13px; background:#fff; color:var(--ink);
  outline:none; transition:.15s;
}
textarea { padding:13px; min-height:110px; resize:vertical; }
input:focus,select:focus,textarea:focus { border-color:var(--green); box-shadow:0 0 0 4px rgba(22,133,91,.09); }
.input-wrap .suffix { position:absolute; right:13px; top:50%; transform:translateY(-50%); color:var(--muted); font-size:12px; pointer-events:none; }
.input-wrap input { padding-right:58px; }
.range-row { display:grid; grid-template-columns:1fr 76px; gap:12px; align-items:center; }
input[type="range"] { min-height:auto; padding:0; accent-color:var(--green); border:0; box-shadow:none; }
.checkbox-row { display:flex; gap:10px; align-items:flex-start; padding:13px; border:1px solid var(--line); border-radius:12px; }
.checkbox-row input { width:19px; height:19px; min-height:0; margin-top:2px; accent-color:var(--green); }
.option-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.option-btn { border:1px solid var(--line); background:#fff; padding:13px 10px; border-radius:12px; font-weight:700; color:var(--ink-2); }
.option-btn.active { border-color:var(--green); background:var(--green-soft); color:var(--green); }
.form-actions { display:flex; flex-wrap:wrap; gap:11px; margin-top:25px; }

.result-panel { position:sticky; top:100px; background:linear-gradient(180deg,#0b2b45,#0a344f); color:#fff; border:0; }
.result-panel h2 { color:#fff; }
.result-empty { color:#b9cad4; padding:28px 0; }
.result-empty svg { width:55px; height:55px; color:#76d5a6; margin-bottom:18px; }
.result-kicker { color:#8dddb2; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.result-big { font-size:clamp(34px,5vw,54px); line-height:1.05; font-weight:800; letter-spacing:-.05em; margin:8px 0 5px; }
.result-sub { color:#c8d7df; font-size:13px; }
.metric-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin:23px 0; }
.metric { background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.10); border-radius:14px; padding:15px; }
.metric span { color:#bcd0db; font-size:11px; display:block; margin-bottom:5px; }
.metric strong { font-size:19px; display:block; letter-spacing:-.02em; }
.result-section { border-top:1px solid rgba(255,255,255,.13); padding-top:19px; margin-top:19px; }
.result-section h3 { font-size:16px; color:#fff; }
.result-list { display:grid; gap:10px; padding:0; margin:0; list-style:none; }
.result-list li { display:flex; justify-content:space-between; gap:15px; color:#c7d7df; font-size:13px; }
.result-list li strong { color:#fff; text-align:right; }
.notice { padding:14px 15px; border-radius:12px; background:rgba(255,255,255,.08); color:#d6e4e9; font-size:12px; margin-top:18px; }
.notice.warning { background:rgba(231,127,47,.18); color:#ffe0c7; }
.notice.danger { background:rgba(198,69,69,.22); color:#ffd5d5; }
.result-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.result-actions .btn { min-height:43px; padding:0 15px; font-size:13px; }
.result-actions .btn-secondary { background:rgba(255,255,255,.08); color:#fff; border-color:rgba(255,255,255,.18); }

.progress { height:10px; border-radius:999px; background:rgba(255,255,255,.12); overflow:hidden; }
.progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#50c98a,#9be6bd); }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:14px; margin-top:18px; }
.data-table { width:100%; border-collapse:collapse; font-size:13px; min-width:600px; }
.data-table th,.data-table td { text-align:left; padding:12px 13px; border-bottom:1px solid var(--line); }
.data-table th { background:#f4f8fa; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.data-table tr:last-child td { border-bottom:0; }
.debt-row { display:grid; grid-template-columns:1.2fr .8fr .65fr .8fr .65fr 42px; gap:9px; align-items:end; margin-bottom:10px; }
.remove-row { width:42px; height:48px; border:1px solid #f0caca; color:var(--red); background:var(--red-soft); border-radius:10px; font-weight:900; }
.leak-list { display:grid; gap:10px; margin-top:18px; }
.leak-item { display:grid; grid-template-columns:1fr auto; gap:12px; background:rgba(255,255,255,.08); padding:13px; border-radius:12px; }
.leak-item small { color:#bcd0db; display:block; }
.leak-item strong { text-align:right; }
.week-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:11px; margin-top:18px; }
.week-card { border:1px solid var(--line); border-radius:13px; padding:14px; background:#fff; }
.week-card strong { display:block; margin-bottom:5px; }
.week-card span { color:var(--muted); font-size:12px; }
.article-content { max-width:820px; padding:70px 0; }
.article-content h1 { font-size:52px; }
.article-content p,.article-content li { color:var(--ink-2); }
.article-content h2 { font-size:30px; margin-top:40px; }
.back-link { display:inline-flex; gap:8px; align-items:center; color:var(--green); font-weight:800; margin-bottom:24px; }

@media print {
  .site-header,.site-footer,.tool-hero,.form-panel,.result-actions { display:none !important; }
  body,.tool-workspace { background:#fff; }
  .tool-layout { display:block; }
  .result-panel { position:static; color:#000; background:#fff; border:1px solid #ddd; box-shadow:none; }
  .result-panel h2,.result-panel h3,.metric strong,.result-list li strong { color:#000; }
  .result-sub,.result-list li,.metric span,.notice { color:#333; }
  .metric,.notice,.leak-item { background:#f5f5f5; border:1px solid #ddd; }
}

@media (max-width: 960px) {
  .main-nav { position:fixed; inset:76px 0 auto 0; background:#fff; padding:22px; display:none; flex-direction:column; align-items:stretch; border-bottom:1px solid var(--line); }
  .main-nav.open { display:flex; }
  .menu-toggle { display:block; }
  .hero-grid { grid-template-columns:1fr; min-height:auto; }
  .hero-visual { min-height:400px; }
  .hero-float { left:20px; }
  .stats-grid { grid-template-columns:repeat(2,1fr); }
  .stat:nth-child(2) { border-right:0; }
  .stat:nth-child(-n+2) { border-bottom:1px solid var(--line); }
  .tool-grid { grid-template-columns:repeat(2,1fr); }
  .split-feature { grid-template-columns:1fr; }
  .split-image { max-height:440px; }
  .tool-hero-grid { grid-template-columns:1fr; }
  .tool-hero-card { display:none; }
  .tool-layout { grid-template-columns:1fr; }
  .result-panel { position:static; }
  .footer-grid { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 680px) {
  .container { width:min(calc(100% - 24px),var(--max)); }
  .header-inner { min-height:67px; }
  .main-nav { inset:67px 0 auto 0; }
  .brand { font-size:17px; }
  .hero-grid { padding:45px 0; gap:32px; }
  h1 { font-size:42px; }
  h2 { font-size:33px; }
  .lead { font-size:16px; }
  .hero-visual { min-height:330px; }
  .hero-float { left:12px; right:12px; width:auto; bottom:12px; }
  .stats-grid { grid-template-columns:1fr; }
  .stat { border-right:0; border-bottom:1px solid var(--line); }
  .stat:last-child { border-bottom:0; }
  .section { padding:65px 0; }
  .section-head { display:block; }
  .tool-grid { grid-template-columns:1fr; }
  .tool-card { min-height:260px; }
  .split-content { padding:36px 25px; }
  .cta-panel { padding:36px 24px; display:block; }
  .cta-panel .btn { margin-top:23px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .footer-bottom { display:block; }
  .tool-hero { padding:45px 0 32px; }
  .tool-hero h1 { font-size:40px; }
  .tool-workspace { padding:28px 0 65px; }
  .panel { padding:20px; border-radius:17px; }
  .form-grid { grid-template-columns:1fr; }
  .field.full { grid-column:auto; }
  .option-grid { grid-template-columns:1fr; }
  .metric-grid { grid-template-columns:1fr 1fr; }
  .debt-row { grid-template-columns:1fr 1fr; border:1px solid var(--line); border-radius:13px; padding:12px; }
  .debt-row .remove-row { grid-column:2; justify-self:end; }
  .week-grid { grid-template-columns:1fr; }
}
