@font-face {
  font-family: Manrope;
  src: url(/fonts/manrope-400.ttf) format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(/fonts/manrope-600.ttf) format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --bg: #f6f8fb;
  --ink: #182230;
  --muted: #525e71;
  --blue: #1d4ed8;
  --blue-dark: #1e40af;
  --pale: #edf4ff;
  --white: #fff;
  --line: #dce5f1;
  --orange: #f97316;
  --green: #087a55;
  --red: #c62828;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }
img { display: block; flex: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3, strong { font-weight: 600; }
.wrap { width: min(100% - 64px, 1120px); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; padding: 12px; background: var(--white); transform: translateY(-150%); z-index: 2; }
.skip:focus { transform: none; }

.masthead { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; white-space: nowrap; }
.header-nav, .header-actions, .actions { display: flex; align-items: center; gap: 12px; }
.header-nav { gap: clamp(16px, 3vw, 38px); font-size: 14px; color: var(--muted); }
.header-nav a { display: grid; align-items: center; min-height: 44px; }
.header-nav a:hover, .text-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 17px; min-height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.primary { background: var(--blue); color: var(--white); }
.primary:hover { background: var(--blue-dark); }
.outline { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.outline:hover { color: var(--blue); background: var(--pale); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 600; }

.hero { display: grid; grid-template-columns: 1.08fr 1fr; align-items: center; gap: clamp(24px, 5vw, 68px); padding-block: 66px 80px; }
.hero h1 { font-size: clamp(43px, 6.25vw, 76px); line-height: 1.02; letter-spacing: -.06em; }
.hero h1 span { display: block; color: var(--blue); }
.hero-copy p { max-width: 46ch; margin-top: 24px; font-size: 18px; color: var(--muted); }
.actions { margin-top: 24px; gap: 22px; flex-wrap: wrap; }
.hero .primary { min-height: 50px; }
.preview { background: radial-gradient(ellipse at top right, #d6e7ff, #edf4ff 68%); border-radius: 28px; padding: clamp(16px, 4vw, 48px); }
.preview-card { background: var(--white); padding: clamp(16px, 2.5vw, 26px); border-radius: 20px; box-shadow: 0 20px 42px #24477a1a; }
.preview-head { display: flex; gap: 9px; align-items: center; margin-bottom: 18px; }
.preview-note { margin-left: auto; font-size: 12px; color: var(--muted); }
.preview-balance { display: grid; background: var(--pale); color: var(--blue-dark); border-radius: 14px; padding: 15px 18px; }
.preview-balance span { font-size: 13px; }
.preview-balance strong { font-size: clamp(31px, 4vw, 43px); line-height: 1.25; letter-spacing: -.05em; }
.ledger { margin-top: 8px; }
.ledger div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0 0; }
.ledger dt { display: grid; font-size: 14px; }
.ledger dt span { color: var(--muted); font-size: 12px; }
.ledger dd { white-space: nowrap; font-size: 14px; font-weight: 600; }
.income { color: var(--green); }
.expense { color: var(--red); }

.section { margin-bottom: 64px; }
.section h2 { font-size: clamp(27px, 3.8vw, 43px); line-height: 1.12; letter-spacing: -.045em; }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.features article { min-width: 0; border-radius: 18px; background: var(--white); padding: 22px; }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--pale); color: var(--blue); font-size: 21px; border-radius: 11px; margin-bottom: 15px; }
.features h3 { font-size: 17px; line-height: 1.35; }
.features p, .steps span, .install p { margin-top: 8px; font-size: 15px; color: var(--muted); }

.flow { display: grid; grid-template-columns: 1fr .84fr; align-items: center; gap: clamp(26px, 6vw, 92px); padding: clamp(22px, 4vw, 48px); background: var(--white); border-radius: 24px; }
.steps { list-style: none; counter-reset: step; margin: 24px 0 0; padding: 0; display: grid; gap: 17px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 33px 1fr; align-items: start; column-gap: 12px; }
.steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; min-height: 33px; border-radius: 10px; background: var(--pale); color: var(--blue); font-size: 14px; font-weight: 600; }
.steps span { margin-top: 2px; }
.report { display: grid; gap: 14px; background: var(--bg); padding: clamp(18px, 3vw, 32px); border-radius: 18px; font-size: 15px; }
.report figcaption { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.accent-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex: none; }
.report-title { font-size: 20px; font-weight: 600; }
.report-total { border-top: 1px solid var(--line); padding-top: 12px; font-weight: 600; color: var(--blue-dark); }

.install { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--pale); border-radius: 24px; padding: clamp(22px, 4vw, 40px); }
.install-action { display: grid; justify-items: center; gap: 8px; }
.install-action > span { font-size: 12px; white-space: nowrap; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }

@media (max-width: 900px) {
  .hero { padding-block: 46px 60px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 730px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 72px; gap: 10px; }
  .header-nav { display: none; }
  .hero, .flow { grid-template-columns: 1fr; }
  .hero { padding-block: 28px 52px; gap: 28px; }
  .hero-copy p { margin-top: 16px; font-size: 16px; }
  .preview-card { max-width: 470px; margin-inline: auto; }
  .section { margin-bottom: 44px; }
  .install { align-items: flex-start; flex-direction: column; }
  .install-action { justify-items: start; }
}
@media (max-width: 410px) {
  .wrap { width: calc(100% - 28px); }
  .brand { font-size: 14px; gap: 7px; }
  .masthead .brand img { width: 29px; height: 29px; }
  .header-actions { gap: 5px; }
  .header-actions .button { font-size: 12px; padding-inline: 8px; }
  .actions { gap: 4px 16px; }
  .features { grid-template-columns: 1fr; }
}
