:root {
  --ink: #111513; --ink-soft: #3c4440; --muted: #69726d; --line: rgba(17,21,19,.08);
  --green: #1f8a5b; --glow: #3ccf86; --mint: #7fe3ad; --gold: #f0b35b; --radius: 28px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: #fbfaf7; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 28px; } }

/* header */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 0; text-decoration: none; color: #fff; }
.brand img { height: 92px; width: auto; filter: drop-shadow(0 8px 16px rgba(0,0,0,.4)); }
.brand .wordmark { margin-left: -16px; }
@media (max-width: 639px) { .brand img { height: 62px; } .brand .wordmark { margin-left: -11px; } }
.wordmark { font-weight: 700; letter-spacing: .32em; font-size: clamp(.95rem, 1.6vw, 1.15rem); color: var(--gold); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
  padding: 11px 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease; }
.pill:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(18,19,31,.18); }
.pill svg { width: 16px; height: 16px; }
.pill:disabled { opacity: .6; cursor: default; transform: none; }

/* hero: the dark charcoal + green section (same look as QBOConsultants) */
.home { background: #0d100e; }  /* dark behind the page, so no white shows when scrolling past the edges */
.hero-shell { min-height: 100vh; min-height: 100dvh; display: flex; }
.hero { position: relative; overflow: hidden; color: #fff; flex: 1; display: flex;
  background:
    radial-gradient(900px 520px at 100% 110%, rgba(60,207,134,.55), transparent 62%),
    radial-gradient(640px 420px at 72% 18%, rgba(60,207,134,.16), transparent 60%),
    radial-gradient(520px 360px at 8% 100%, rgba(240,179,91,.14), transparent 60%),
    radial-gradient(700px 500px at 0% 0%, rgba(120,130,125,.35), transparent 60%),
    linear-gradient(155deg, #343937 0%, #1a1e1c 45%, #090b0a 100%); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%); -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 75%); }
.hero-inner { width: 100%; display: flex; flex-direction: column; position: relative; z-index: 1; }
.hero .pill { background: #fff; color: var(--ink); }
.hero .pill:hover { box-shadow: 0 8px 28px rgba(60,207,134,.35); }
.hero-body { flex: 1; display: grid; gap: 32px; align-content: center; padding: 32px 0 40px; }
@media (min-width: 900px) { .hero-body { grid-template-columns: 1.15fr .85fr; align-items: center; padding: 40px 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); padding: 6px 14px; border-radius: 999px; color: rgba(255,255,255,.88); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 4px rgba(60,207,134,.22); flex: none; }
h1.headline { font-size: clamp(2.2rem, 8.6vw, 4.6rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 24px 0 36px; }
.headline .line1 { white-space: nowrap; }
.typed-line { display: block; font-weight: 300; letter-spacing: -.03em; min-height: 1.15em; white-space: nowrap; margin-top: .06em; color: var(--mint); }
.caret { display: inline-block; width: 3px; height: .85em; margin-left: 6px; background: var(--glow); vertical-align: -.04em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { justify-self: center; width: 100%; max-width: 480px; }
/* Growth chart: draws in once, then holds still */
.chart-card { animation: cardFloat 5s ease-in-out 1s infinite; will-change: transform; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.10); border-radius: 22px;
  padding: 18px 18px 10px; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(6px); }
.chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.chart-title { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 600; }
.chart-trend { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--mint);
  background: rgba(60,207,134,.12); border: 1px solid rgba(60,207,134,.25); padding: 4px 10px; border-radius: 999px; }
.chart-trend svg { width: 15px; height: 15px; }
.growth { width: 100%; height: auto; display: block; overflow: visible; }
.g-grid line { stroke: rgba(255,255,255,.08); stroke-width: 1; stroke-dasharray: 3 5; }
/* Chart sequence: bars rise left to right, then the line draws left to right, then the dot pulses.
   main.js replays it slowly (--k: 2) every so often. Bars and line never move on their own; only the card floats. */
.growth { --k: 1; }
.growth.slow { --k: 2.2; }
.g-bars rect { fill: rgba(255,255,255,.07); transform-box: fill-box; transform-origin: bottom; }
.g-line { filter: drop-shadow(0 4px 10px rgba(60,207,134,.45)); stroke-dasharray: 1; }
.g-pulse { fill: rgba(127,227,173,.35); transform-box: fill-box; transform-origin: center; animation: pulse 2.8s ease-out calc(3.9s * var(--k)) infinite; }
.growth.play .g-bars rect { transform: scaleY(0); animation: barUp calc(.6s * var(--k)) cubic-bezier(.2,.8,.2,1) calc(var(--d, 0s) * var(--k)) forwards; }
.growth.play .g-line { stroke-dashoffset: 1; animation: drawLine calc(2s * var(--k)) cubic-bezier(.45,.05,.25,1) calc(1.45s * var(--k)) forwards; }
.growth.play .g-area { opacity: 0; animation: fadeIn calc(1s * var(--k)) ease calc(2.7s * var(--k)) forwards; }
.growth.play .g-end { opacity: 0; animation: fadeIn calc(.4s * var(--k)) ease calc(3.4s * var(--k)) forwards; }
@media (prefers-reduced-motion: reduce) { .growth.play .g-bars rect { transform: none; } .growth.play .g-line { stroke-dashoffset: 0; } .growth.play .g-area, .growth.play .g-end { opacity: 1; } .chart-card { animation: none; } }
.g-labels text { fill: rgba(255,255,255,.45); font-size: 12px; font-weight: 600; text-anchor: middle; letter-spacing: .06em; font-family: inherit; }
@keyframes barUp { to { transform: scaleY(1); } }
@keyframes cardFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
@media (max-width: 899px) { .hero-art { max-width: 420px; } }
.hero-foot { display: flex; justify-content: space-between; gap: 12px; padding: 18px 0 22px; font-size: .82rem; color: rgba(255,255,255,.5); }
.hero-foot a { color: rgba(255,255,255,.6); text-decoration: none; } .hero-foot a:hover { color: #fff; }

/* contact pop-up */
.contact-modal[hidden] { display: none; }
.contact-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.contact-backdrop { position: fixed; inset: 0; background: rgba(6,8,7,.6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s; }
.contact-box { position: relative; width: min(520px, 100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4); animation: rise .22s ease-out; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.contact-box h2 { margin: 0; font-size: 1.8rem; letter-spacing: -.02em; }
.contact-sub { margin: 4px 0 18px; color: var(--muted); }
.contact-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f2ef; cursor: pointer; font-size: 1rem; }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.contact-form input, .contact-form textarea { font: inherit; font-weight: 400; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(17,21,19,.16); background: #fff; color: var(--ink); width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--glow); outline-offset: 1px; border-color: transparent; }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form button { justify-self: start; }
.field-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.ok { color: var(--green); } .form-status.err { color: #b3261e; }

/* privacy / 404 pages */
.page-hero { margin: 0; padding: 0 0 48px; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(900px 520px at 100% 110%, rgba(60,207,134,.45), transparent 62%), linear-gradient(155deg, #343937 0%, #1a1e1c 45%, #090b0a 100%); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -.03em; line-height: 1.08; margin: 24px 0 8px; }
.page-hero p { color: rgba(255,255,255,.72); margin: 0; }
.legal { max-width: 780px; padding: 56px 0 88px; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.legal p { color: var(--ink-soft); font-size: 1.04rem; }
footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: .9rem; }
.foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.foot nav a { margin-right: 18px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
