/* Palette and shape follow the CGS design tokens (ContentGenerationSystem/app/Cgs.App/wwwroot/css/tokens.css): brand green on blue-grey neutrals.
   #059669 is 3.8:1 on white, so --brand (non-text marks) and --brand-action (text, buttons, links; 5.5:1) are separate tokens. All text pairs meet WCAG AA. */
:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --text: #111827;
  --muted: #556070;
  --border: #e2e6ea;
  --border-strong: #c9d0d7;
  --brand: #059669;        /* icons, focus ring: marks that carry no text */
  --brand-soft: #ecfdf5;
  --brand-action: #047857; /* links, buttons, active nav */
  --brand-action-hover: #065f46;
  --brand-contrast: #ffffff;
  --focus: #059669;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgb(16 24 40 / 6%);
  --weight-regular: 400;
  --weight-medium: 550;
  --weight-bold: 650;
  --max: 72rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Dark follows the OS unless the visitor picked a theme with the header toggle (html[data-theme], set by js/theme.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17191c;
    --surface: #1e2125;
    --surface-2: #25292e;
    --text: #e6edf3;
    --muted: #a3a9b0;
    --border: #2f3338;
    --border-strong: #42474e;
    --brand: #34d399;
    --brand-soft: #0f2a22;
    --brand-action: #34d399;
    --brand-action-hover: #6ee7b7;
    --brand-contrast: #0b1311;
    --focus: #34d399;
    --shadow-sm: none;
  }
}
:root[data-theme="dark"] {
  --bg: #17191c;
  --surface: #1e2125;
  --surface-2: #25292e;
  --text: #e6edf3;
  --muted: #a3a9b0;
  --border: #2f3338;
  --border-strong: #42474e;
  --brand: #34d399;
  --brand-soft: #0f2a22;
  --brand-action: #34d399;
  --brand-action-hover: #6ee7b7;
  --brand-contrast: #0b1311;
  --focus: #34d399;
  --shadow-sm: none;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 1rem/1.65 var(--font);
}

main { flex: 1; }

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 1rem;
}

a { color: var(--brand-action); text-underline-offset: 0.2em; }
a:hover { color: var(--brand-action-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.5rem 1rem;
  background: var(--brand-action);
  color: var(--brand-contrast);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  z-index: 10;
}
.skip-link:focus { top: 0; }

/* Header and footer */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-block: 0.875rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand strong { font-weight: var(--weight-bold); }

.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list a { padding-inline: 0.75rem; border-radius: var(--radius-sm); color: var(--muted); font-weight: var(--weight-medium); text-decoration: none; }
.nav-list a:hover { color: var(--text); background: var(--surface-2); }
.nav-list a[aria-current="page"] { color: var(--brand-action); background: var(--brand-soft); }

.site-footer {
  margin-top: 4rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem 2rem;
  padding-block: 2rem;
}
.footer-brand { display: block; }
.footer-logo { height: auto; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; font-weight: var(--weight-bold); }
.copyright { margin: 0; }

@media (min-width: 48rem) {
  .footer-inner { align-items: start; }
  .copyright { grid-column: 1 / -1; }
}

/* Home */
.hero {
  padding-block: clamp(4rem, 12vw, 8rem);
  background: radial-gradient(60rem 26rem at 90% -10%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 70%);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero-art { display: none; }
.hero-art img { width: 100%; max-width: 20rem; height: auto; margin-inline: auto; }
@media (min-width: 48rem) {
  .hero-grid { grid-template-columns: 1fr minmax(0, 20rem); }
  .hero-art { display: block; }
}
.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-action);
  font-size: 0.8125rem;
  font-weight: var(--weight-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero h1 {
  font-weight: var(--weight-bold);
  text-wrap: balance;
  max-width: 18ch;
  margin: 0 0 1.25rem;
  font-size: clamp(2.5rem, 7vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lead { max-width: 40rem; margin: 0 0 2rem; color: var(--muted); font-size: 1.25rem; }

.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--brand-action);
  color: var(--brand-contrast);
  min-height: 44px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  font-weight: var(--weight-bold);
  text-decoration: none;
}
.button:hover { background: var(--brand-action-hover); color: var(--brand-contrast); }

/* Document pages (privacy, terms) */
.page { padding-block: 3rem 0; }
.prose { max-width: 52rem; }
.prose h1 { font-weight: var(--weight-bold); margin: 0 0 1.5rem; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.15; letter-spacing: -0.02em; }
.prose h2 { font-weight: var(--weight-bold); margin: 2.5rem 0 0.75rem; font-size: 1.5rem; line-height: 1.25; }
.prose p, .prose li { max-width: 70ch; }
.prose ul { padding-left: 1.25rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border); border-radius: var(--radius); }
.data-table { width: 100%; min-width: 42rem; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th, .data-table td { padding: 0.75rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table thead th { background: var(--surface); }
/* .prose sets overflow-wrap: anywhere, which lets the auto table layout squeeze columns to a few letters; break-word only wraps words that cannot fit. */
.data-table th, .data-table td { overflow-wrap: break-word; }
.data-table tbody th { min-width: 8rem; }
.data-table tbody tr:last-child > * { border-bottom: 0; }

/* Section pages */
.button-secondary { background: var(--surface); color: var(--brand-action); box-shadow: inset 0 0 0 1px var(--border-strong); margin-left: 0.5rem; }
.button-secondary:first-child { margin-left: 0; }
.button-secondary:hover { background: var(--brand-soft); color: var(--brand-action); }
.prose .lead { margin-bottom: 1.5rem; }
.section { padding-block: 3rem 0; }
.section-title { margin: 0 0 1.5rem; font-size: 1.75rem; letter-spacing: -0.02em; font-weight: var(--weight-bold); }
.card-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-block: 1.5rem; }
.card { padding: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1rem; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1875rem; font-weight: var(--weight-bold); }
.card p { margin: 0 0 1rem; color: var(--muted); }
.card > :last-child { margin-bottom: 0; }
.card-link { font-weight: var(--weight-bold); }
.cta { margin-top: 2rem; }
.contact-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.contact-list dt { color: var(--muted); font-weight: var(--weight-bold); }
.contact-list dd { margin: 0; }

/* Cookie banner and footer link button */
.cookie-banner {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgb(0 0 0 / 0.12);
}
.cookie-banner p { flex: 1 1 24rem; margin: 0; }
.cookie-actions { display: flex; gap: 0.75rem; }
.cookie-actions .button { margin: 0; }
button.button { border: 0; cursor: pointer; font: inherit; font-weight: var(--weight-bold); }
.link-button { padding: 0; background: none; border: 0; color: var(--muted); font: inherit; font-weight: var(--weight-medium); cursor: pointer; }
.nav-list .link-button { padding-inline: 0.75rem; }
.link-button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 0.35em; }

/* Mobile */
.nav-list a, .link-button { display: inline-block; padding-block: 0.4rem; }  /* roughly 44px tap targets */
img, svg { max-width: 100%; height: auto; }
.prose, .prose p, .prose li { overflow-wrap: anywhere; }

@media (max-width: 40rem) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .hero p .button { display: block; margin: 0 0 0.75rem; text-align: center; }
  .cookie-actions { width: 100%; }
  .cookie-actions .button { flex: 1; text-align: center; }
  .contact-list { grid-template-columns: 1fr; gap: 0.25rem; }
  .contact-list dd { margin-bottom: 0.75rem; }
}

/* FAQ */
.faq { margin-block: 1rem 2rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary { padding: 1rem 1.25rem; font-weight: var(--weight-bold); cursor: pointer; }
.faq details[open] summary { color: var(--brand-action); }
.faq details > :not(summary) { margin: 0; padding: 0 1.25rem 1.25rem; }

/* Colour-scheme logos: the light and dark variants are both in the markup; CSS shows the one for the active theme. */
.logo-light { display: block; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }

/* Theme toggle: the sun shows in dark (click for light), the moon in light (click for dark). */
.theme-toggle { display: inline-flex; align-items: center; padding: 0.4rem 0.6rem; background: none; border: 0; border-radius: var(--radius-sm); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--text); background: var(--surface-2); }
.theme-toggle svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Product page (VectorAtlas): light plate for the navy wordmark in dark mode, sample briefing quote, figure, waitlist panel. */
.logo-plate { display: inline-block; padding: 1rem 1.5rem; background: #ffffff; border: 1px solid var(--border); border-radius: var(--radius); }
.logo-plate img { display: block; max-width: 100%; height: auto; }
.sample-briefing { margin: 1rem 0 2rem; padding: 1.25rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--brand); border-radius: var(--radius); }
.sample-briefing p { margin: 0 0 0.75rem; }
.sample-briefing .caption { margin: 0; color: var(--muted); font-size: 0.875rem; }
.product-figure { margin: 2rem 0; }
.product-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--border); }
.cta-panel { margin-top: 3rem; padding: 2rem; background: var(--brand-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.cta-panel h2 { margin-top: 0; }
.hero-art .logo-plate { width: 100%; max-width: 20rem; }

/* Hero band: a full-width deep-green-to-teal band with white text, the counterpart of the navy hero on accountingtekbi.com.
   Green is the brand colour; teal sits beside it and echoes the blue in the logo. White on #064e3b / #0f4c5c is above 9:1.
   Same in light and dark themes, so the hero-specific colours are literals rather than theme tokens. */
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(40rem 22rem at 88% 8%, rgb(52 211 153 / 22%), transparent 70%),
    radial-gradient(34rem 20rem at 0% 110%, rgb(250 204 21 / 10%), transparent 70%),
    linear-gradient(135deg, #064e3b 0%, #065f46 40%, #0f4c5c 100%);
}
.hero .lead { color: rgb(255 255 255 / 88%); }
.hero .eyebrow { background: rgb(255 255 255 / 14%); color: #d1fae5; }
.hero .button { background: #ffffff; color: #064e3b; box-shadow: none; }
.hero .button:hover { background: #ecfdf5; color: #064e3b; }
.hero .button-secondary { background: transparent; color: #ffffff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 65%); }
.hero .button-secondary:hover { background: rgb(255 255 255 / 14%); color: #ffffff; }
.hero .button:focus-visible { outline-color: #ffffff; }
/* On the dark band the home hero always shows the white logo, whichever theme is active. */
.hero-art .logo-light { display: none; }
.hero-art .logo-dark { display: block; }

/* Three-part product hero heading: brand name, tagline, then a smaller supporting line. */
.hero h1 .h1-brand,
.hero h1 .h1-tagline,
.hero h1 .h1-sub { display: block; }
.hero h1 .h1-tagline { margin-top: 0.5rem; font-size: 0.55em; line-height: 1.15; }
.hero h1 .h1-sub { margin-top: 0.75rem; font-size: max(1.125rem, 0.34em); font-weight: var(--weight-regular); letter-spacing: 0; line-height: 1.3; }

/* ---- Zentivue components ---- */

/* Sticky header with a sign-up button */
.site-header { position: sticky; top: 0; z-index: 15; }
/* The generic .nav-list a rule (muted text, no fill) outranks .button, so the header button restates its colours here. */
.nav-list a.button { min-height: 0; padding: 0.4rem 1rem; background: var(--brand-action); color: var(--brand-contrast); }
.nav-list a.button:hover { background: var(--brand-action-hover); color: var(--brand-contrast); }

/* Product-led hero: copy beside an illustrated mock in a soft glow */
.hero-product .hero-grid { grid-template-columns: 1fr; }
.hero-mock { display: block; width: 100%; max-width: 32rem; height: auto; margin-inline: auto; filter: drop-shadow(0 24px 40px rgb(0 0 0 / 28%)); }
@media (min-width: 56rem) {
  .hero-product .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}
.hero-product { padding-block: clamp(3rem, 8vw, 6rem); }
.hero-product h1 { max-width: 16ch; font-size: clamp(2.25rem, 6vw, 3.75rem); }

/* Channel strip */
.channel-strip { padding-block: 1.5rem; border-bottom: 1px solid var(--border); background: var(--surface); }
.channel-strip ul { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; justify-content: center; margin: 0; padding: 0; list-style: none; }
.channel-strip li { padding: 0.35rem 0.9rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 0.9375rem; font-weight: var(--weight-medium); }

/* Feature rows: text and image, alternating */
.feature-row { display: grid; gap: 1.5rem 3rem; align-items: center; padding-block: 2.5rem; }
.feature-row img { display: block; width: 100%; max-width: 30rem; height: auto; margin-inline: auto; border-radius: var(--radius); }
.feature-row h2, .feature-row h3 { margin: 0 0 0.75rem; font-size: 1.625rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: var(--weight-bold); }
.feature-row p { margin: 0 0 1rem; color: var(--muted); }
@media (min-width: 48rem) {
  .feature-row { grid-template-columns: 1fr 1fr; }
  .feature-row:nth-of-type(even) > :first-child { order: 2; }
}

/* How-it-works stepper */
.steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 3.25rem 1.5rem 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 1.25rem; left: 1.5rem; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand-action); color: var(--brand-contrast); font-weight: var(--weight-bold); }
.steps h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: var(--weight-bold); }
.steps p { margin: 0; color: var(--muted); }

/* CTA band */
.cta-band { margin-top: 4rem; padding-block: 3rem; background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #0f4c5c 100%); color: #ffffff; text-align: center; }
.cta-band h2 { margin: 0 0 0.75rem; font-size: clamp(1.75rem, 4vw, 2.25rem); letter-spacing: -0.02em; font-weight: var(--weight-bold); }
.cta-band p { max-width: 40rem; margin: 0 auto 1.5rem; color: rgb(255 255 255 / 88%); }
.cta-band .button { background: #ffffff; color: #064e3b; box-shadow: none; }
.cta-band .button:hover { background: #ecfdf5; color: #064e3b; }
.cta-band :focus-visible { outline-color: #ffffff; }

/* Resources card grid reuses .card-grid; the card title is a link */
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--brand-action); text-decoration: underline; }

/* Footer columns */
.footer-columns { display: grid; gap: 1.5rem 2rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.footer-columns h2 { margin: 0 0 0.5rem; color: var(--text); font-size: 0.9375rem; font-weight: var(--weight-bold); }
.footer-columns ul { margin: 0; padding: 0; list-style: none; }
.footer-columns a { display: inline-block; padding-block: 0.25rem; color: var(--muted); text-decoration: none; }
.footer-columns a:hover { color: var(--text); text-decoration: underline; }
.footer-note { margin: 0; font-size: 0.8125rem; }

@media (max-width: 40rem) {
  .site-header { position: static; }  /* the stacked mobile header is too tall to pin */
  .cta-band .button { display: block; }
}

/* Illustration figures inside prose pages. */
.figure { margin: 1.75rem 0; }
.figure img { display: block; width: 100%; max-width: 30rem; height: auto; margin-inline: auto; border-radius: var(--radius); }
