/* ============================================================
   INVOICEJS — shared styles for all pages.
   Brand tokens are identical to the app. Do not drift.
   ============================================================ */
:root {
  --ink: #1c1625;
  --muted: #7a6e88;
  --surface: #f7f5fb;
  --card: #ffffff;
  --line: #e7e0f0;
  --brand: #6b5590;
  --brand-deep: #4a3866;
  --brand-soft: #f1ecf9;
  --gold: #c9a15a;
  --gold-soft: #f8efdc;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;

  /* Layered soft shadows */
  --shadow-sm: 0 1px 2px rgba(28, 22, 37, 0.05), 0 2px 8px rgba(28, 22, 37, 0.05);
  --shadow-md: 0 2px 4px rgba(28, 22, 37, 0.06), 0 8px 24px rgba(28, 22, 37, 0.09);
  --shadow-lg: 0 4px 8px rgba(28, 22, 37, 0.05), 0 12px 32px rgba(28, 22, 37, 0.10), 0 28px 64px rgba(28, 22, 37, 0.08);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--card);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus-visible { left: 0; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.mono { font-family: var(--font-mono); }

section { scroll-margin-top: 84px; }

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, border-color 180ms ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2136; }
.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { border-color: var(--brand); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.05rem; border-radius: var(--r-md); }
.btn-on-dark { background: #fff; color: var(--ink); }
.btn-on-dark:hover { background: var(--gold-soft); }

/* ============ Logo ============ */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}
.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.logo-mark svg {
  width: 100%;
  height: 100%;
}
.logo-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ink);
}

/* ============ Nav ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 72px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.nav-actions .btn { padding: 0.7rem 1.3rem; font-size: 0.95rem; }

.nav-toggle {
  display: inline-flex;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: border-color 150ms ease;
}
.nav-toggle:hover { border-color: var(--brand); }
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown menu: compact popup anchored under the hamburger, top-right.
   Opens/closes with a 160ms fade + lift + scale (reversed on close). */
.menu {
  position: absolute;
  top: calc(100% + 8px);
  /* Align with the right edge of the centered .container (24px page gutter) */
  right: max(24px, calc((100% - 1120px) / 2 + 24px));
  width: 272px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 60px rgba(28, 22, 37, 0.14);
  padding: 8px;
  z-index: 49;
  opacity: 0;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top right;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.menu.open {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 160ms ease, transform 160ms ease;
}
.menu-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 12px 4px;
}
.menu-group + .menu-group {
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 4px;
}
.menu-group a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  transition: background-color 150ms ease, color 150ms ease;
}
.menu-group a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.menu-group a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}
.menu-group a.menu-app { color: var(--brand); font-weight: 600; }
.menu-group a.menu-app:hover { color: var(--brand-deep); }

/* ============ Landing hero ============ */
.hero {
  background:
    radial-gradient(1000px 500px at 85% -10%, var(--brand-soft) 0%, transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3.5rem;
  padding: 5.5rem 0 6rem;
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5.2vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2rem;
}
.hero-sub strong { color: var(--ink); font-weight: 600; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 1.1rem;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Hero invoice mockup */
.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}
.invoice-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.invoice-head {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.invoice-head .inv-number {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.invoice-head .inv-client {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 2px;
}
.invoice-head .inv-status {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.invoice-body { padding: 1.4rem 1.5rem 1.5rem; }
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.invoice-table th {
  text-align: left;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 0.55rem;
  border-bottom: 1px solid var(--line);
}
.invoice-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.invoice-table th:last-child,
.invoice-table td:last-child { text-align: right; }
.invoice-table td.mono { font-size: 0.8rem; font-weight: 500; }
.invoice-totals {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.invoice-totals .trow {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.invoice-totals .mono { font-size: 0.8rem; font-weight: 500; color: var(--ink); }
.invoice-net {
  margin-top: 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 0.95rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.invoice-net .label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}
.invoice-net .mono {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--gold);
}
.hero-badge {
  position: absolute;
  top: -14px;
  left: -18px;
  z-index: 1;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
}

/* ============ Internal page hero ============ */
.page-hero {
  background:
    radial-gradient(900px 420px at 50% -20%, var(--brand-soft) 0%, transparent 65%),
    var(--surface);
  border-bottom: 1px solid var(--line);
  text-align: center;
  padding: 4.5rem 0 4.2rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero .page-sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 36rem;
  margin: 0 auto 2rem;
}
.page-hero .hero-actions {
  justify-content: center;
  margin-bottom: 1rem;
}
.page-hero .legal-date {
  color: var(--muted);
  font-size: 0.95rem;
  margin: -0.4rem 0 1.8rem;
}
.page-hero--compact { padding: 3.6rem 0 3.3rem; }
.page-hero--compact h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); }

/* ============ Trust bar ============ */
.trust {
  background: var(--card);
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem 2.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

/* ============ Section scaffolding ============ */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head {
  max-width: 40rem;
  margin: 0 auto 3.2rem;
  text-align: center;
}
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.9rem;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Left-aligned block heading (features page groups) */
.block-head { max-width: 42rem; margin-bottom: 2.6rem; }
.block-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 0.7rem;
}
.block-head p { color: var(--muted); font-size: 1.05rem; }

/* "See more" link under a section */
.more-wrap { text-align: center; margin-top: 2.6rem; }
.more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  transition: color 150ms ease, gap 150ms ease;
}
.more-link:hover { color: var(--brand-deep); }

/* ============ Features grid (landing) ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 1.05rem;
}
.feature h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}
.feature p { color: var(--muted); font-size: 0.94rem; }

/* ============ Feature checklists (features page) ============ */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.7rem 3rem;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}
.check-item .tick {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #a17c35;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.check-item h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}
.check-item p { color: var(--muted); font-size: 0.93rem; }

/* ============ Why InvoiceJS ============ */
.why-banner {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.8rem 2rem;
}
.why-banner p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.35;
  color: var(--brand-deep);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.why-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.why-card .who {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.why-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
}
.why-card p { color: var(--muted); font-size: 0.95rem; }

/* ============ How it works — landing (3 cards) ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 2rem 1.6rem 1.8rem;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--brand);
  margin-bottom: 0.9rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.step p { color: var(--muted); font-size: 0.95rem; }

/* ============ How it works — full page (vertical flow) ============ */
.flow {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}
.flow-step {
  display: flex;
  gap: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
}
.flow-num {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  display: grid;
  place-items: center;
}
.flow-step h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}
.flow-step p { color: var(--muted); font-size: 0.95rem; }

/* ============ Interface showcase (dashboard mockup) ============ */
.dash-wrap { display: flex; justify-content: center; }
.dash-card {
  width: 100%;
  max-width: 820px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.5rem;
}
.dash-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.pill {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--card);
}
.pill.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pill.new { margin-left: auto; background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.dash-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.dash-net {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem;
  display: grid;
  gap: 0.5rem;
}
.dash-net .label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.dash-net .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.7rem;
  color: var(--gold);
  line-height: 1.2;
  word-break: break-all;
}
.dash-net .meta {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
}

.dash-list { display: grid; gap: 0.55rem; }
.dash-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.9rem;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
}
.avatar.v { background: var(--brand-soft); color: var(--brand); }
.avatar.g { background: var(--gold-soft); color: #a17c35; }
.dash-row .client { min-width: 0; }
.dash-row .client .name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-row .client .num { font-size: 0.76rem; color: var(--muted); }
.dash-row .amt {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.84rem;
  white-space: nowrap;
}
.status {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.status.draft { background: #eeebf2; color: var(--muted); }
.status.sent { background: var(--brand-soft); color: var(--brand); }
.status.paid { background: var(--gold-soft); color: #a17c35; }

/* ============ About ============ */
.about-card {
  max-width: 42rem;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: 2.5rem;
  text-align: center;
}
.about-card .eyebrow { margin-bottom: 0.8rem; }
.about-card h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 1rem;
}
.about-card p { color: var(--muted); font-size: 1.02rem; }
.about-card p + p { margin-top: 0.9rem; }

/* ============ Legal pages ============ */
.legal-wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3.5rem 24px 4.5rem;
}
.legal-summary {
  background: var(--gold-soft);
  border: 1px solid #ecdcbd;
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem;
  font-size: 0.97rem;
  color: var(--ink);
  margin-bottom: 2.4rem;
}
.legal-summary strong { font-weight: 700; }
.legal-wrap h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  margin: 2.4rem 0 0.7rem;
}
.legal-wrap p, .legal-wrap li { color: #4e4459; font-size: 0.98rem; }
.legal-wrap p + p { margin-top: 0.7rem; }
.legal-wrap ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem 0;
}
.legal-wrap a { color: var(--brand); }

/* ============ Final CTA ============ */
.cta-final {
  background:
    radial-gradient(900px 400px at 50% 120%, rgba(107, 85, 144, 0.55) 0%, transparent 70%),
    var(--ink);
  color: #fff;
  text-align: center;
  padding: 5.5rem 0;
}
.cta-final .eyebrow { color: var(--gold); }
.cta-final h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 38rem;
  margin: 0 auto 1.1rem;
}
.cta-final p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
  max-width: 32rem;
  margin: 0 auto 2.2rem;
}

/* ============ Footer ============ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 16rem;
}
.footer h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer ul { list-style: none; display: grid; gap: 0.6rem; }
.footer ul a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 150ms ease;
}
.footer ul a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 450ms ease, transform 450ms ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 4rem 0 4.5rem;
    text-align: center;
  }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { justify-self: center; }
  .why-grid, .steps { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .check-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* Wider floating card on small screens — still a popup, never fullscreen */
  .menu { width: calc(100vw - 32px); right: 16px; }
}

@media (max-width: 520px) {
  .section { padding: 4rem 0; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .dash-row { grid-template-columns: 40px 1fr auto; }
  .dash-row .amt { display: none; }
  .invoice-card { transform: none; }
  .hero-badge { left: 0; }
  .flow-step { flex-direction: column; gap: 1rem; }
  .nav-actions .btn { padding: 0.7rem 1rem; }
}

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .btn:hover, .feature:hover { transform: none; }
}
