:root {
  --ink: #121923;
  --ink-soft: #3c4758;
  --muted: #697587;
  --line: #dfe4eb;
  --paper: #ffffff;
  --canvas: #f5f7f9;
  --blue: #245bb3;
  --blue-dark: #194487;
  --green: #087f5b;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
[id] { scroll-margin-top: 76px; }
:where(a, button, input, summary):focus-visible { outline: 3px solid #69a1f5; outline-offset: 3px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.home-wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.home-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(18,25,35,.92);
  color: #fff;
  backdrop-filter: blur(14px);
}
.home-nav-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-logo { display: inline-flex; align-items: center; flex-shrink: 0; text-decoration: none; font-size: 21px; font-weight: 800; }
.home-logo span { margin-right: 5px; padding: 4px 7px; background: #fff; color: var(--ink); }
.home-links { display: flex; align-items: center; gap: 30px; }
.home-links > a { color: #d7dde5; text-decoration: none; font-size: 13px; font-weight: 650; }
.home-links > a:hover { color: #fff; }
.home-mobile-login { display: none; }
.home-nav-actions { display: flex; align-items: center; gap: 10px; }
.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 5px;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.menu-button[aria-expanded="true"] { border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.08); }

.home-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 5px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.home-button:hover { transform: translateY(-1px); }
.home-button-primary { background: #fff; color: var(--ink); }
.home-button-primary:hover { background: #eef2f6; }
.home-button-blue { background: var(--blue); color: #fff; }
.home-button-blue:hover { background: var(--blue-dark); }
.home-button-outline { border-color: rgba(255,255,255,.35); background: rgba(18,25,35,.34); color: #fff; }
.home-button-outline:hover { border-color: #fff; background: rgba(18,25,35,.68); }
.home-button-quiet { border-color: var(--line); background: #fff; color: var(--ink); }
.home-button-quiet:hover { border-color: #b8c1ce; background: #f7f9fb; }

.home-hero {
  min-height: min(760px, 92vh);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 132px 0 82px;
  overflow: hidden;
  background-color: #111923;
  background-image: url('../img/plusfiscal-control-fiscal-demo.jpg');
  background-position: center 25%;
  background-size: cover;
  color: #fff;
}
.home-hero::before { content: ""; position: absolute; inset: 0; background: rgba(11,17,26,.82); }
.home-hero::after { content: ""; position: absolute; inset: 0 46% 0 0; background: rgba(11,17,26,.3); }
.home-hero-content { position: relative; z-index: 1; max-width: 900px; }
.home-eyebrow { margin: 0 0 18px; color: #c9d6e8; font-size: 12px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.home-hero h1 { max-width: 900px; margin: 0; font-size: clamp(46px, 6vw, 72px); line-height: 1.02; font-weight: 780; }
.home-hero .home-lead { max-width: 760px; margin: 24px 0 0; color: #e0e5ec; font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.home-proof { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; color: #c9d1dc; font-size: 12px; font-weight: 650; }
.home-proof span { display: inline-flex; align-items: center; gap: 7px; }
.home-proof span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #33b68a; }
.enterprise-hero { min-height: 620px; }

.home-section { padding: 86px 0; }
.home-section-alt { border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; background: var(--canvas); }
.home-section-dark { background: var(--ink); color: #fff; }
.home-section-head { max-width: 800px; margin-bottom: 38px; }
.home-kicker { display: block; margin-bottom: 13px; color: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; }
.home-section-dark .home-kicker { color: #86aae5; }
.home-section h2 { margin: 0; font-size: clamp(31px, 4.1vw, 50px); line-height: 1.08; font-weight: 760; }
.home-section-head > p { margin: 18px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }
.home-section-dark .home-section-head > p { color: #c9d1dc; }

.outcome-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 44px; border: 1px solid var(--line); background: #fff; }
.outcome-card { min-height: 218px; padding: 28px 26px; border-right: 1px solid var(--line); }
.outcome-card:last-child { border-right: 0; }
.outcome-card > span { color: var(--blue); font-size: 11px; font-weight: 800; }
.outcome-card h3 { margin: 34px 0 10px; font-size: 20px; }
.outcome-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }

.product-figure { margin: 0; }
.product-frame { overflow: hidden; border: 1px solid #2f3845; background: #0d131c; box-shadow: 0 28px 80px rgba(0,0,0,.2); }
.product-frame img { width: 100%; height: auto; }
.product-figure figcaption { margin-top: 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.workflow { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-step { min-height: 220px; padding: 26px 28px; border-right: 1px solid var(--line); }
.workflow-step:last-child { border-right: 0; }
.workflow-step b { display: block; color: var(--blue); font-size: 12px; }
.workflow-step h3 { margin: 36px 0 10px; font-size: 20px; }
.workflow-step p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); border: 1px solid var(--line); background: #fff; }
.pricing-plan { display: flex; min-height: 470px; flex-direction: column; padding: 34px 32px; border-right: 1px solid var(--line); }
.pricing-plan:last-child { border-right: 0; }
.pricing-plan-featured { box-shadow: inset 0 4px 0 var(--blue); }
.pricing-audience { color: var(--blue); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.pricing-plan h3 { margin: 13px 0 9px; font-size: 27px; }
.pricing-plan > div:first-child p { min-height: 68px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.pricing-price { min-height: 105px; padding: 23px 0; border-top: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; }
.pricing-price strong { font-size: 34px; line-height: 1; }
.pricing-price > span { margin-left: 5px; color: var(--muted); font-size: 12px; }
.pricing-price small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.pricing-plan ul { flex: 1; margin: 22px 0; padding: 0; list-style: none; }
.pricing-plan li { padding: 10px 0; border-bottom: 1px solid #edf0f4; color: var(--ink-soft); font-size: 13px; }
.pricing-plan li::before { content: "✓"; margin-right: 8px; color: var(--green); font-weight: 800; }
.pricing-plan .home-button { width: 100%; }
.pricing-terms { margin: 15px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.specialized-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 34px; }
.specialized-card { padding: 26px 28px; border: 1px solid var(--line); background: var(--canvas); }
.specialized-card h3 { margin: 12px 0 9px; font-size: 20px; }
.specialized-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.specialized-card a { display: inline-flex; margin-top: 20px; color: var(--blue); font-size: 13px; font-weight: 750; text-decoration: none; }

.enterprise-evaluation { display: grid; grid-template-columns: 1.05fr 1fr .95fr; gap: 30px; align-items: start; padding: 34px; border: 1px solid var(--line); background: #fff; }
.enterprise-evaluation h3 { margin: 0 0 10px; font-size: 25px; }
.enterprise-evaluation p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.enterprise-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.enterprise-fields label { color: var(--ink-soft); font-size: 11px; font-weight: 700; }
.enterprise-fields input[type="number"] { width: 100%; min-height: 42px; margin-top: 7px; padding: 9px 10px; border: 1px solid #cfd5dc; border-radius: 4px; color: var(--ink); }
.enterprise-fields .enterprise-check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.enterprise-result { padding-left: 26px; border-left: 1px solid var(--line); }
.enterprise-result small { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.enterprise-result strong { display: block; margin-top: 8px; font-size: 21px; }
.enterprise-result p { min-height: 68px; margin: 8px 0 18px; }

.truth-band { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.truth-band h2 { font-size: clamp(30px,4vw,48px); }
.truth-band p { color: #c8d0db; line-height: 1.7; }
.truth-list { border-top: 1px solid #36404d; }
.truth-item { display: grid; grid-template-columns: 125px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid #36404d; }
.truth-item strong { color: #8eb2eb; font-size: 12px; }
.truth-item span { color: #d9dfe7; font-size: 13px; line-height: 1.55; }

.faq-list { max-width: 850px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 22px 0; cursor: pointer; font-size: 15px; font-weight: 720; }
.faq-list p { margin: -4px 0 23px; color: var(--muted); font-size: 14px; line-height: 1.65; }

.home-cta { padding: 74px 0; border-top: 1px solid #d8dfe8; background: #e9eef4; }
.home-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 34px; }
.home-cta h2 { max-width: 690px; margin: 0; font-size: clamp(30px,4vw,46px); line-height: 1.1; }
.home-cta p { max-width: 680px; margin: 15px 0 0; color: var(--muted); line-height: 1.65; }
.home-cta-actions { display: flex; flex-wrap: wrap; flex-shrink: 0; gap: 10px; }

.home-footer { padding: 48px 0 26px; background: var(--ink); color: #c8d0da; }
.home-footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 42px; }
.home-footer h3 { margin: 0 0 14px; color: #fff; font-size: 13px; }
.home-footer p, .home-footer a { color: #aeb8c6; font-size: 12px; line-height: 1.7; }
.home-footer a { display: block; margin: 7px 0; text-decoration: none; }
.home-footer .home-logo { display: inline-flex; color: #fff; font-size: 19px; }
.home-footer a:hover { color: #fff; }
.home-footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid #313b48; color: #8f9aaa; font-size: 11px; line-height: 1.6; }

@media (max-width: 980px) {
  .home-links, .home-nav-actions .home-button-outline { display: none; }
  .menu-button { display: inline-grid; place-items: center; }
  .home-links.is-open {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1;
    display: flex;
    height: calc(100vh - 68px);
    height: calc(100dvh - 68px);
    min-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 22px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-top: 1px solid rgba(255,255,255,.12);
    background: #121923;
    box-shadow: 0 18px 36px rgba(0,0,0,.28);
    -webkit-overflow-scrolling: touch;
  }
  .home-links.is-open > a { padding: 17px 0; border-bottom: 1px solid #333d4a; font-size: 16px; }
  .home-links.is-open > .home-mobile-login { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 18px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.55); border-radius: 5px; color: #fff; font-weight: 750; }
  .home-hero { min-height: 730px; background-position: 64% center; }
  .home-hero::after { inset: 0; }
  .enterprise-evaluation { grid-template-columns: 1fr 1fr; }
  .enterprise-result { grid-column: 1 / -1; padding: 24px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .home-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .home-footer-grid > div:last-child { grid-column: 2 / -1; }
}

@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }
  [id] { scroll-margin-top: 68px; }
  .home-wrap { width: min(100% - 28px, var(--max)); }
  .home-nav-inner { min-height: 62px; }
  .home-links.is-open { height: calc(100vh - 62px); height: calc(100dvh - 62px); padding-right: 20px; padding-left: 20px; }
  .home-nav-actions .home-button-primary { min-height: 40px; padding: 9px 12px; }
  .home-hero { min-height: 700px; padding: 108px 0 58px; background-position: 62% center; }
  .home-hero h1 { font-size: 42px; line-height: 1.04; }
  .home-hero .home-lead { font-size: 17px; }
  .home-hero-actions { flex-direction: column; align-items: stretch; }
  .home-proof { display: grid; gap: 10px; }
  .home-section { padding: 66px 0; }
  .home-section-head { margin-bottom: 30px; }
  .home-section-head > p { font-size: 15px; }
  .outcome-grid { grid-template-columns: 1fr; margin-bottom: 30px; }
  .outcome-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .outcome-card:last-child { border-bottom: 0; }
  .outcome-card h3 { margin-top: 20px; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-step { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .workflow-step:last-child { border-bottom: 0; }
  .workflow-step h3 { margin-top: 22px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-plan { min-height: 0; padding: 28px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .pricing-plan:last-child { border-bottom: 0; }
  .pricing-plan > div:first-child p { min-height: 0; }
  .specialized-grid { grid-template-columns: 1fr; }
  .specialized-card { padding: 24px 22px; }
  .enterprise-evaluation { grid-template-columns: 1fr; padding: 24px 20px; }
  .enterprise-fields { grid-template-columns: 1fr; }
  .enterprise-result { grid-column: auto; }
  .truth-band { grid-template-columns: 1fr; gap: 28px; }
  .truth-item { grid-template-columns: 1fr; gap: 7px; }
  .home-cta-inner { align-items: flex-start; flex-direction: column; }
  .home-cta-actions { width: 100%; }
  .home-cta-actions .home-button { flex: 1 1 100%; }
  .home-footer-grid { grid-template-columns: 1fr; }
  .home-footer-grid > div:last-child { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
