/* InvoiceNow public site. Tokens first (docs/design-direction.md): every
   colour, size and duration below the token block refers to a token. The
   accent is InvoiceNow's own, shared with the seller app. */
:root {
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.125rem; --text-xl: 1.375rem;
  --text-2xl: clamp(1.875rem, 1.3rem + 2.4vw, 2.75rem);
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-6: 24px;
  --space-8: 32px; --space-12: 48px; --space-16: 64px; --space-20: 80px;
  --radius-sm: 6px; --radius-md: 10px;
  --width: 1120px; --width-narrow: 760px;
  --duration-fast: 120ms;
  --surface: #ffffff; --surface-alt: #f5f6f7; --surface-raised: #ffffff;
  --text: #1b1f23; --text-muted: #555f69; --border: #d6dade; --border-strong: #76808a;
  --accent: #1f6f5c; --accent-hover: #185a4b; --accent-text: #ffffff; --accent-soft: #e3f1ed;
  --focus: #1a5fb4;
  --ok: #1d6b2f; --ok-soft: #e6f4e8;
  --shadow-raised: 0 1px 2px rgb(0 0 0 / 0.06), 0 4px 12px rgb(0 0 0 / 0.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #15181b; --surface-alt: #1b1f23; --surface-raised: #22272c;
    --text: #e7eaed; --text-muted: #a3adb7; --border: #2e353b; --border-strong: #77828c;
    --accent: #5cc3a6; --accent-hover: #7dd3ba; --accent-text: #0b1512; --accent-soft: #163029;
    --focus: #8ab4f8;
    --ok: #8fd19e; --ok-soft: #15301c;
    --shadow-raised: none;
  }
}
@media (prefers-reduced-motion: reduce) { :root { --duration-fast: 0ms; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: var(--text-md)/1.6 var(--font-sans); color: var(--text); background: var(--surface);
  -webkit-text-size-adjust: 100%; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; margin: 0; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sprite { display: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--space-2); top: -100px; background: var(--surface); color: var(--text);
  padding: var(--space-2) var(--space-3); z-index: 2; }
.skip:focus { top: var(--space-2); }
.wrap { max-width: var(--width); margin: 0 auto; padding: 0 var(--space-4); }
.wrap-narrow { max-width: var(--width-narrow); }
@media (min-width: 720px) { .wrap { padding: 0 var(--space-8); } }
.muted { color: var(--text-muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: var(--space-2) var(--space-6); border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; text-decoration: none; transition: background-color var(--duration-fast), border-color var(--duration-fast); }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-text); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { color: var(--text); border-color: var(--text); }
.btn-small { padding: var(--space-1) var(--space-4); background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-small:hover { color: var(--text); border-color: var(--text); }

/* Masthead */
.masthead { border-bottom: 1px solid var(--border); background: var(--surface); }
.masthead-inner { display: flex; align-items: center; gap: var(--space-4); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--text); text-decoration: none;
  font-weight: 700; min-height: 44px; margin-right: auto; }
.brand:hover { color: var(--text); }
.brand-by { font-weight: 400; color: var(--text-muted); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.mark-bg { fill: var(--accent); }
.mark-fg { fill: var(--accent-text); }
.mark-line { stroke: var(--accent); stroke-width: 2; stroke-linecap: round; fill: none; }
.masthead-nav { display: none; gap: var(--space-1); }
.masthead-nav a { color: var(--text-muted); text-decoration: none; padding: var(--space-2) var(--space-3);
  min-height: 44px; display: inline-flex; align-items: center; border-radius: var(--radius-sm); }
.masthead-nav a:hover { color: var(--text); background: var(--surface-alt); }
@media (min-width: 760px) { .masthead-nav { display: flex; } }
@media (max-width: 420px) { .brand-by { display: none; } }

/* Hero */
.hero { padding: var(--space-12) 0 var(--space-16); }
.hero-grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 1fr; } .hero { padding: var(--space-20) 0; } }
.eyebrow { color: var(--accent); font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--space-3); }
.hero h1 { font-size: var(--text-2xl); letter-spacing: -0.01em; margin-bottom: var(--space-4); }
.lede { font-size: var(--text-lg); color: var(--text-muted); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.cta-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--text-muted); max-width: 34em; }
.hero-art { margin: 0; }
.art { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; font-family: var(--font-sans);
  font-variant-numeric: tabular-nums; }
.art-paper { fill: var(--surface-raised); stroke: var(--border); }
.art-raised { fill: var(--surface-raised); stroke: var(--border-strong); }
.art-sunken { fill: var(--surface-alt); }
.art-accent { fill: var(--accent); }
.art-ink { fill: var(--text-muted); }
.art-soft { fill: var(--border); }
.art-rule { fill: var(--border); }
.art-ok { fill: var(--ok-soft); stroke: var(--ok); stroke-width: 1.5; }
.art-tick { fill: none; stroke: var(--ok); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.art-title { fill: var(--text); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.art-small, .art-small-left { fill: var(--text-muted); font-size: 8.5px; }
.art-num { fill: var(--text); font-size: 9.5px; }
.art-label { fill: var(--text); font-size: 11px; font-weight: 600; }
.art-total { fill: var(--text); font-size: 15px; font-weight: 700; }
.art-num-strong { fill: var(--text); font-size: 15px; font-weight: 700; }

/* Bands */
.band { padding: var(--space-16) 0; border-top: 1px solid var(--border); }
.band-alt { background: var(--surface-alt); }
.band h2, .closing h2 { font-size: var(--text-xl); }
@media (min-width: 720px) { .band h2, .closing h2 { font-size: 1.75rem; } }
.section-lede { color: var(--text-muted); margin-top: var(--space-2); }
.band h3 { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; margin-bottom: var(--space-3); }
.icon-lg { width: 36px; height: 36px; }

.steps { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: var(--space-6); border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.step p, .feature p, .audience p { color: var(--text-muted); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: var(--space-1);
  border-radius: 50%; background: var(--accent-soft); color: var(--text); font-size: var(--text-sm); font-variant-numeric: tabular-nums; }

.features { display: grid; gap: var(--space-4); margin-top: var(--space-8); }
@media (min-width: 600px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { padding: var(--space-6); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.feature h3 { font-size: var(--text-md); }

.audience { display: grid; gap: var(--space-6); margin-top: var(--space-8); }
@media (min-width: 720px) { .audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .audience { grid-template-columns: repeat(4, 1fr); } }
.audience li { border-top: 3px solid var(--accent); padding-top: var(--space-4); }

/* FAQ */
.faq { margin-top: var(--space-8); border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4); min-height: 56px; padding: var(--space-3) 0; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 24px; text-align: center; font-size: var(--text-xl); line-height: 1;
  color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 var(--space-6); color: var(--text-muted); max-width: 44em; }

/* Closing call to action */
.closing { padding: var(--space-16) 0; border-top: 1px solid var(--border); }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-6); }

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface-alt); padding: var(--space-12) 0; font-size: var(--text-sm); }
.footer-grid { display: grid; gap: var(--space-8); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { font-weight: 700; font-size: var(--text-md); margin-bottom: var(--space-1); }
.footer-head { font-size: var(--text-sm); color: var(--text-muted); font-weight: 600; margin-bottom: var(--space-2); }
.footer li { min-height: 32px; display: flex; align-items: center; gap: var(--space-2); }
.footer a { display: inline-flex; align-items: center; min-height: 32px; }
.tag { font-size: 0.75rem; padding: 0 var(--space-2); border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text-muted); }
