:root {
  --red: #d4212b;
  --red-dark: #9f1720;
  --red-soft: #fbeaec;
  --green: #1f8a5a;
  --amber: #a56812;
  --ink: #171719;
  --muted: #67676d;
  --soft-muted: #8d8d94;
  --line: #e4e4e7;
  --paper: #ffffff;
  --canvas: #f7f7f8;
  --band: #f1f1f3;
  --shadow: 0 18px 55px rgba(20, 20, 24, 0.1);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(228, 228, 231, 0.85);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 760;
  text-decoration: none;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: #4e4e53;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red-dark); }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--red);
  border-radius: 7px;
  color: white;
  background: var(--red);
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); }
.button.secondary { color: var(--ink); background: white; border-color: var(--line); }
.button.secondary:hover { border-color: #b6b6bb; background: var(--canvas); }
.button.quiet { color: var(--red-dark); background: transparent; border-color: transparent; padding-inline: 4px; }
.button.quiet:hover { color: var(--red); background: transparent; }
.button svg { width: 17px; height: 17px; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.section { padding: 104px 0; }
.section.compact { padding: 72px 0; }
.section.band { background: var(--canvas); border-block: 1px solid var(--line); }
.section.dark { color: white; background: #1c1c1f; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dark .eyebrow { color: #ff9399; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading.center { margin-inline: auto; text-align: center; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: 0; text-wrap: balance; }
h1 { margin-bottom: 18px; font-size: clamp(52px, 8vw, 92px); line-height: 0.96; }
h2 { margin-bottom: 16px; font-size: clamp(34px, 5vw, 58px); line-height: 1.04; }
h3 { margin-bottom: 9px; font-size: 20px; line-height: 1.25; }
.lead { max-width: 650px; color: var(--muted); font-size: clamp(18px, 2.2vw, 23px); line-height: 1.45; }
.dark .lead { color: #c8c8ce; }
.section-copy { color: var(--muted); font-size: 18px; }

.hero {
  min-height: auto;
  padding: 72px 0 0;
  overflow: hidden;
  background: #fbfbfc;
  border-bottom: 1px solid var(--line);
}
.hero-copy { position: relative; z-index: 2; max-width: 790px; }
.hero h1 .accent { color: var(--red); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 16px; }
.microcopy { color: var(--soft-muted); font-size: 13px; }
.built-for { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.built-for > span:first-child { margin-right: 4px; color: var(--muted); font-size: 13px; font-weight: 700; }
.pill {
  padding: 5px 9px;
  color: #4d4d52;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.product-stage {
  position: relative;
  width: min(1320px, calc(100% - 24px));
  height: clamp(360px, 38vw, 500px);
  margin: 58px auto -90px;
}
.desktop-mockup {
  position: absolute;
  inset: 0 10% auto 0;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid #d9d9dd;
  border-radius: 8px;
  background: #f3f3f5;
  box-shadow: var(--shadow);
}
.window-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: white; border-bottom: 1px solid var(--line); }
.window-dot { width: 10px; height: 10px; border-radius: 50%; background: #cfcfd4; }
.app-layout { display: grid; grid-template-columns: 190px 1fr; min-height: 398px; }
.app-sidebar { padding: 20px 14px; background: #f9f9fa; border-right: 1px solid var(--line); }
.app-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 24px; font-weight: 760; }
.app-brand img { width: 30px; height: 30px; border-radius: 7px; }
.app-nav-item { display: flex; gap: 8px; align-items: center; margin: 4px 0; padding: 9px 10px; color: #66666c; border-radius: 6px; font-size: 12px; }
.app-nav-item.active { color: var(--red-dark); background: var(--red-soft); font-weight: 720; }
.app-nav-item svg { width: 15px; }
.app-main { padding: 24px; overflow: hidden; }
.app-topline { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.app-topline small { color: var(--muted); }
.app-topline strong { display: block; font-size: 26px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric { min-height: 88px; padding: 13px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.metric small { color: var(--muted); font-size: 10px; font-weight: 700; }
.metric strong { display: block; margin-top: 13px; font-size: 19px; }
.metric.income strong { color: var(--green); }
.metric.expense strong { color: var(--red-dark); }
.chart-panel { margin-top: 12px; padding: 16px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.chart-head { display: flex; justify-content: space-between; gap: 16px; font-size: 12px; font-weight: 700; }
.bars { height: 130px; margin-top: 18px; display: flex; align-items: end; gap: 7px; border-bottom: 1px solid var(--line); }
.bar { flex: 1; min-width: 10px; background: #d9d9dd; border-radius: 3px 3px 0 0; }
.bar.red { background: #e47b81; }
.bar.green { background: #6eb393; }
.phone-mockup {
  position: absolute;
  right: 0;
  top: 38px;
  width: 245px;
  height: 430px;
  padding: 12px;
  border: 1px solid #cfcfd4;
  border-radius: 36px;
  background: #161619;
  box-shadow: 0 25px 60px rgba(10, 10, 12, 0.22);
}
.phone-screen { height: 100%; overflow: hidden; padding: 22px 13px; border-radius: 27px; background: #f7f7f8; }
.phone-screen .tiny { color: var(--muted); font-size: 10px; }
.phone-screen h3 { margin: 3px 0 15px; font-size: 20px; }
.phone-card { margin-bottom: 9px; padding: 12px; background: white; border: 1px solid var(--line); border-radius: 7px; }
.phone-card small { color: var(--muted); font-size: 9px; }
.phone-card strong { display: block; margin-top: 5px; font-size: 16px; }
.week-row { display: flex; justify-content: space-between; align-items: center; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 10px; }

.problem-grid, .story-grid, .split-feature { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px; align-items: center; }
.check-list { display: grid; gap: 12px; padding: 0; margin: 24px 0 0; list-style: none; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: #45454a; }
.check-list svg { flex: 0 0 auto; width: 19px; color: var(--green); }
.paper-stack { position: relative; min-height: 410px; }
.paper-sheet { position: absolute; inset: 26px 8% 0 5%; padding: 24px; border: 1px solid var(--line); border-radius: 7px; background: white; box-shadow: var(--shadow); transform: rotate(-2deg); }
.paper-sheet.back { inset: 0 4% 25px 12%; transform: rotate(3deg); background: var(--band); }
.paper-line { height: 9px; margin: 10px 0; border-radius: 3px; background: #dedee2; }
.paper-line.short { width: 55%; }
.paper-sheet.front { display: grid; align-content: start; }
.paper-sheet .stamp { justify-self: end; margin-top: 30px; padding: 7px 10px; color: var(--green); border: 2px solid var(--green); font-size: 12px; font-weight: 800; transform: rotate(-4deg); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.feature-card { min-height: 230px; padding: 28px; background: white; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; margin-bottom: 28px; color: var(--red-dark); background: var(--red-soft); border-radius: 7px; }
.feature-icon svg { width: 19px; height: 19px; }
.feature-card p { margin: 0; color: var(--muted); }
.text-link { display: inline-flex; gap: 7px; align-items: center; margin-top: 18px; color: var(--red-dark); font-size: 14px; font-weight: 700; text-decoration: none; }
.text-link svg { width: 16px; }

.workflow { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.workflow-step { position: relative; min-height: 250px; padding: 28px; border-right: 1px solid var(--line); }
.workflow-step:last-child { border-right: 0; }
.workflow-step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 60px; color: var(--red); font-size: 13px; font-weight: 800; }
.workflow-step p { color: var(--muted); }

.export-preview { padding: 22px; border: 1px solid #333339; border-radius: 8px; background: #242428; }
.export-file { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #39393f; }
.export-file:last-child { border-bottom: 0; }
.export-file svg { width: 20px; color: #ff9399; }
.export-file small { color: #9d9da5; }
.export-file .ready { color: #79cca3; font-size: 12px; font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.stat { padding: 30px; background: var(--canvas); }
.stat strong { display: block; font-size: 32px; }
.stat span { color: var(--muted); }

.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.roadmap-column { padding: 26px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.roadmap-column ul { margin: 20px 0 0; padding: 0; list-style: none; }
.roadmap-column li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.roadmap-column li:last-child { border-bottom: 0; }
.status { display: inline-block; padding: 4px 8px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.status.now { color: #176640; background: #e3f4eb; }
.status.building { color: #85520b; background: #fff1d9; }
.status.future { color: #55555b; background: #ececef; }

.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; min-height: 68px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border: 0; background: transparent; color: var(--ink); text-align: left; font-weight: 720; cursor: pointer; }
.faq-question svg { flex: 0 0 auto; width: 18px; transition: transform 180ms ease; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { display: none; max-width: 720px; padding: 0 36px 20px 0; color: var(--muted); }
.faq-item.open .faq-answer { display: block; }

.cta-band { padding: 94px 0; color: white; background: var(--red-dark); }
.cta-inner { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.cta-inner h2 { max-width: 720px; margin: 0; }
.cta-band .button { color: var(--ink); background: white; border-color: white; }

.page-hero { padding: 96px 0 72px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 920px; font-size: clamp(48px, 7vw, 78px); }
.page-hero .lead { max-width: 740px; }
.legal { max-width: 790px; padding-block: 80px 120px; }
.legal h2 { margin-top: 52px; font-size: 30px; }
.legal h3 { margin-top: 30px; }
.legal p, .legal li { color: #4f4f55; }
.legal .notice { padding: 16px; border-left: 3px solid var(--red); background: var(--canvas); }
.legal a { color: var(--red-dark); }

.site-footer { padding: 58px 0 24px; background: #171719; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 50px; }
.footer-brand p { max-width: 290px; color: #a9a9b0; font-size: 14px; }
.footer-column h3 { font-size: 13px; color: #85858d; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-column a { display: block; margin: 10px 0; color: #d4d4d8; font-size: 14px; text-decoration: none; }
.footer-column a:hover { color: white; }
.footer-bottom { margin-top: 45px; padding-top: 18px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #333338; color: #85858d; font-size: 12px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .site-nav { position: fixed; inset: 68px 0 auto; display: none; padding: 18px 20px 28px; flex-direction: column; align-items: stretch; background: white; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 8px 0; font-size: 16px; }
  .menu-button { display: grid; }
  .product-stage { height: 450px; margin-top: 44px; }
  .desktop-mockup { inset-inline: 0 8%; }
  .phone-mockup { top: 88px; width: 210px; height: 390px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .problem-grid, .story-grid, .split-feature { grid-template-columns: 1fr; gap: 42px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
  .workflow-step:nth-child(2) { border-right: 0; }
  .workflow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .roadmap-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .nav-shell, .container { width: min(100% - 28px, var(--max)); }
  .nav-shell { min-height: 62px; }
  .site-nav { top: 62px; }
  .nav-cta { width: 100%; }
  .section { padding: 76px 0; }
  .hero { min-height: auto; padding-top: 52px; }
  h1 { font-size: 46px; }
  .lead { font-size: 18px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .built-for { display: none; }
  .product-stage { width: 100%; height: 260px; margin-top: 24px; margin-bottom: -60px; }
  .desktop-mockup { inset: 0 -170px auto 0; min-height: 250px; }
  .app-layout { min-height: 208px; }
  .app-layout { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { padding: 16px; }
  .phone-mockup { width: 150px; height: 250px; top: 28px; right: -4px; border-radius: 25px; }
  .phone-screen { padding: 14px 9px; border-radius: 18px; }
  .phone-screen h3 { margin-bottom: 8px; font-size: 15px; }
  .phone-card { margin-bottom: 5px; padding: 6px; }
  .phone-card strong { margin-top: 2px; font-size: 12px; }
  .week-row { padding-block: 4px; font-size: 8px; }
  .feature-grid, .stat-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 200px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { min-height: 205px; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-step::before { margin-bottom: 32px; }
  .workflow-step:last-child { border-bottom: 0; }
  .cta-inner { align-items: stretch; flex-direction: column; }
  .cta-inner .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
