/* BigDigit Consultants — layout and styling modeled on Jegtheme's FSE accounting templates */

:root {
  --primary: #0b3b2e;
  --primary-2: #10503f;
  --primary-3: #145c49;
  --accent: #c6f25e;
  --accent-dark: #a9d93a;
  --ink: #0f1f1a;
  --body: #55635e;
  --muted: #8a9893;
  --line: #e3ebe7;
  --bg: #ffffff;
  --bg-soft: #f3f7f4;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 20px 50px -20px rgba(11, 59, 46, .25);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 100px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn__arrow { transition: transform .25s; }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--accent { background: var(--accent); color: var(--primary); }
.btn--accent:hover { background: var(--accent-dark); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-3); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline { border-color: var(--line); color: var(--ink); }
.btn--outline:hover { border-color: var(--primary); background: var(--primary); color: #fff; }
.btn--block { width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--primary-3); margin-bottom: 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--accent); }

.hl { color: var(--accent); position: relative; }

/* Top bar */
.topbar { background: var(--primary); color: rgba(255,255,255,.75); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: .55rem 0; gap: 1rem; }
.topbar__info { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.topbar__info span, .topbar__info a, .topbar__social { display: inline-flex; align-items: center; gap: .5em; }
.topbar__info a { color: inherit; }
.topbar__info a:hover { color: var(--accent); }
.topbar svg { width: 16px; height: 16px; }
.topbar__social a { color: #fff; transition: color .2s; }
.topbar__social a:hover { color: var(--accent); }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 10px 30px -15px rgba(11,59,46,.2); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: 82px; }
.logo { display: inline-flex; align-items: center; gap: .65rem; color: var(--primary); }
.logo__mark { color: var(--accent); width: 42px; height: 42px; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { font-weight: 800; font-size: 1.35rem; line-height: 1; letter-spacing: -.02em; }
.logo__text small { display: block; font-size: .62rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.logo--light { color: #fff; }
.logo--light .logo__text small { color: rgba(255,255,255,.6); }

.nav { margin-left: auto; }
.nav__menu { display: flex; gap: 2rem; }
.nav__menu a { font-weight: 600; color: var(--ink); position: relative; padding: .3em 0; }
.nav__menu a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--accent-dark); transition: width .25s; }
.nav__menu a:hover::after, .nav__menu a.is-active::after { width: 100%; }
.nav__toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; background: var(--primary); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: rgba(255,255,255,.8);
  background:
    radial-gradient(circle at 85% 20%, rgba(198,242,94,.18), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,.06), transparent 35%),
    var(--primary);
  padding: 90px 0 140px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 1.12rem; max-width: 540px; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0; }
.hero__checks { display: flex; gap: 1.5rem; flex-wrap: wrap; font-weight: 600; font-size: .92rem; color: #fff; }
.hero__checks li, .checklist li { display: flex; align-items: center; gap: .55em; }
.hero__checks li::before, .checklist li::before {
  content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent); color: var(--primary); font-size: .7rem; font-weight: 800; flex: none;
}

.hero__visual { position: relative; padding: 40px 30px; }
.dash {
  background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
  color: var(--body);
}
.dash__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.dash__title { font-weight: 700; color: var(--ink); }
.dash__pill { background: var(--accent); color: var(--primary); font-weight: 700; font-size: .8rem; padding: .25em .8em; border-radius: 100px; }
.dash__chart { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.dash__chart span { flex: 1; height: var(--h); background: var(--bg-soft); border-radius: 8px 8px 4px 4px; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.dash__chart span:nth-child(odd) { background: #dfe9e4; }
.dash__chart span.is-active { background: var(--primary); }
.dash__chart span:nth-child(2) { animation-delay: .05s; } .dash__chart span:nth-child(3) { animation-delay: .1s; }
.dash__chart span:nth-child(4) { animation-delay: .15s; } .dash__chart span:nth-child(5) { animation-delay: .2s; }
.dash__chart span:nth-child(6) { animation-delay: .25s; } .dash__chart span:nth-child(7) { animation-delay: .3s; }
.dash__chart span:nth-child(8) { animation-delay: .35s; }
@keyframes grow { from { transform: scaleY(0); } }
.dash__rows { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-top: 1.2rem; }
.dash__rows small { display: block; font-size: .78rem; color: var(--muted); }
.dash__rows strong { color: var(--ink); font-size: 1.1rem; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  background: #fff; border-radius: 14px; padding: .85rem 1.1rem; box-shadow: var(--shadow);
  animation: float 5s ease-in-out infinite;
}
.float-card strong { display: block; color: var(--ink); font-size: .9rem; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: .78rem; }
.float-card__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--primary); font-weight: 800; }
.float-card__icon--dark { background: var(--primary); color: var(--accent); }
.float-card--payroll { top: 0; left: -10px; }
.float-card--tax { bottom: 0; right: 0; animation-delay: -2.5s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Features strip */
.features { margin-top: -70px; position: relative; z-index: 2; }
.features__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.feature { display: flex; gap: 1.1rem; padding: 2rem; transition: background .3s; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature h3 { font-size: 1.1rem; margin-bottom: .3em; }
.feature p { margin: 0; font-size: .93rem; }
.feature__icon { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--bg-soft); color: var(--primary); transition: background .3s, color .3s; }
.feature__icon svg { width: 28px; height: 28px; }
.feature:hover { background: var(--primary); }
.feature:hover h3 { color: #fff; }
.feature:hover p { color: rgba(255,255,255,.75); }
.feature:hover .feature__icon { background: var(--accent); }

/* Sections */
.section { padding: 110px 0; }
.section-head { margin-bottom: 3.5rem; }
.section-head--center { text-align: center; max-width: 680px; margin-inline: auto; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: end; }
.section-head--split p { margin-bottom: .6em; }

/* About */
.about__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about__visual { position: relative; padding: 0 0 40px 0; }
.about__panel {
  background: linear-gradient(150deg, var(--primary-2), var(--primary)); border-radius: 24px; padding: 3rem;
  display: grid; gap: 2rem; color: #fff;
}
.about__ring { position: relative; width: 160px; height: 160px; }
.about__ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.about__ring strong { font-size: 2rem; line-height: 1; }
.about__ring small { color: rgba(255,255,255,.7); }
.about__ledger { display: grid; gap: .7rem; }
.about__ledger li { display: flex; justify-content: space-between; padding: .85rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.07); font-size: .93rem; }
.about__ledger b { color: var(--accent); font-weight: 700; }
.about__ledger b.pending { color: rgba(255,255,255,.6); }
.about__badge {
  position: absolute; right: -20px; bottom: 0; display: flex; align-items: center; gap: .8rem;
  background: var(--accent); color: var(--primary); padding: 1.3rem 1.6rem; border-radius: 18px; box-shadow: var(--shadow);
}
.about__badge strong { font-size: 2.6rem; line-height: 1; font-weight: 800; }
.about__badge span { font-weight: 700; line-height: 1.25; font-size: .9rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.5rem; margin: 1.8rem 0 2.2rem; color: var(--ink); font-weight: 600; font-size: .95rem; }

/* Services */
.services { background: var(--bg-soft); }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.service {
  background: #fff; border-radius: var(--radius); padding: 2.4rem 2.2rem; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, background .3s;
  position: relative; overflow: hidden;
}
.service::before { content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 0; background: var(--accent); transition: width .4s; }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service:hover::before { width: 100%; }
.service__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 16px; background: var(--bg-soft); color: var(--primary); margin-bottom: 1.5rem; }
.service__icon svg { width: 30px; height: 30px; }
.service ul { margin: .4rem 0 1.6rem; display: grid; gap: .4rem; font-size: .93rem; color: var(--ink); }
.service ul li::before { content: "—"; color: var(--accent-dark); margin-right: .5em; font-weight: 700; }
.service__link { margin-top: auto; font-weight: 700; color: var(--primary); display: inline-flex; gap: .4em; }
.service__link span { transition: transform .25s; }
.service:hover .service__link span { transform: translateX(4px); }
.service--featured { background: var(--primary); border-color: var(--primary); }
.service--featured h3, .service--featured ul, .service--featured .service__link { color: #fff; }
.service--featured p { color: rgba(255,255,255,.75); }
.service--featured .service__icon { background: var(--accent); }

/* Stats */
.stats { background: var(--accent); padding: 70px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat strong { display: block; font-size: clamp(2.4rem, 4vw, 3.4rem); color: var(--primary); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.stat span { color: var(--primary); font-weight: 600; opacity: .8; }
.stat + .stat { border-left: 1px solid rgba(11,59,46,.15); }

/* Process */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; counter-reset: step; }
.step { position: relative; padding: 2.2rem 1.8rem; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.step:hover { border-color: var(--accent-dark); box-shadow: var(--shadow); }
.step__num {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--primary); color: var(--accent); font-weight: 800; margin-bottom: 1.4rem;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 62px; right: -1.6rem; width: 1.6rem; border-top: 2px dashed var(--accent-dark);
}
.step p { margin: 0; font-size: .95rem; }

/* Why */
.why { background: var(--primary); color: rgba(255,255,255,.75); }
.why h2 { color: #fff; }
.why__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.progress { display: grid; gap: 1.5rem; margin-top: 2.2rem; }
.progress__label { display: flex; justify-content: space-between; color: #fff; font-weight: 600; margin-bottom: .5rem; }
.progress__bar { height: 8px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.progress.is-visible .progress__bar span { width: var(--w); }
.why__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 2rem 1.7rem; transition: background .3s, transform .3s; }
.why-card:nth-child(even) { transform: translateY(30px); }
.why-card h3 { color: #fff; font-size: 1.12rem; }
.why-card h3::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 1.2rem; }
.why-card p { margin: 0; font-size: .93rem; }
.why-card:hover { background: rgba(255,255,255,.1); }

/* Pricing */
.pricing__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; align-items: center; }
.plan { border: 1px solid var(--line); border-radius: 24px; padding: 2.6rem 2.2rem; position: relative; background: #fff; }
.plan__desc { font-size: .93rem; }
.plan__price { font-size: 3.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; line-height: 1; margin: 1.5rem 0; }
.plan__price span { font-size: 1.4rem; vertical-align: top; margin-right: 2px; }
.plan__price small { font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { display: grid; gap: .8rem; padding: 1.5rem 0 2rem; border-top: 1px solid var(--line); margin-bottom: 0; }
.plan li { display: flex; gap: .6em; color: var(--ink); font-size: .95rem; }
.plan li::before { content: "✓"; color: var(--primary-3); font-weight: 800; }
.plan .btn { width: 100%; }
.plan--popular { background: var(--primary); border-color: var(--primary); padding: 3.4rem 2.2rem; box-shadow: var(--shadow); }
.plan--popular h3, .plan--popular .plan__price, .plan--popular li { color: #fff; }
.plan--popular .plan__desc, .plan--popular .plan__price small { color: rgba(255,255,255,.7); }
.plan--popular ul { border-color: rgba(255,255,255,.15); }
.plan--popular li::before { color: var(--accent); }
.plan__tag { position: absolute; top: 1.4rem; right: 1.4rem; background: var(--accent); color: var(--primary); font-size: .75rem; font-weight: 700; padding: .3em .9em; border-radius: 100px; }

/* Testimonials */
.testimonials { background: var(--bg-soft); }
.testimonials__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 2.3rem 2rem; display: flex; flex-direction: column; position: relative; }
.quote::after { content: "”"; position: absolute; top: .4rem; right: 1.6rem; font-size: 6rem; line-height: 1; color: var(--bg-soft); font-family: Georgia, serif; }
.quote__stars { color: #f5b301; letter-spacing: .15em; margin-bottom: 1rem; }
.quote blockquote { margin: 0 0 1.8rem; color: var(--ink); font-size: 1.02rem; }
.quote figcaption { margin-top: auto; display: flex; align-items: center; gap: .9rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.quote figcaption strong { display: block; color: var(--ink); line-height: 1.3; }
.quote figcaption small { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--primary); color: var(--accent); font-weight: 800; font-size: .9rem; flex: none; }

/* FAQ */
.faq__inner { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; align-items: start; }
.faq__intro { position: sticky; top: 120px; }
.faq__list { display: grid; gap: 1rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 0 1.6rem; transition: border-color .3s, background .3s; }
.faq details[open] { border-color: var(--primary); background: var(--bg-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 1.3rem 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background:
    linear-gradient(var(--primary), var(--primary)) center / 12px 2px no-repeat,
    linear-gradient(var(--primary), var(--primary)) center / 2px 12px no-repeat,
    var(--bg-soft);
  transition: background-color .3s;
}
/* The + and − are two 2px bars, so they sit exactly in the middle of the circle. */
.faq details[open] summary::after { background:
  linear-gradient(var(--primary), var(--primary)) center / 12px 2px no-repeat,
  var(--accent); }
.faq details p { padding-bottom: 1.3rem; margin: 0; }

/* Contact */
.contact { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-2) 100%); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(198,242,94,.18), transparent 70%); top: -200px; left: -150px; }
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.contact h2 { color: #fff; }
.contact__list { display: grid; gap: 1.3rem; margin-top: 2rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; }
.contact__list small { display: block; font-size: .8rem; color: rgba(255,255,255,.55); }
.contact__list a, .contact__list span:not(.contact__icon) { color: #fff; font-weight: 600; }
.contact__list a:hover { color: var(--accent); }
.contact__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.08); color: var(--accent); flex: none; }
.contact__icon svg { width: 22px; height: 22px; }
.contact__form { background: #fff; border-radius: 24px; padding: 2.6rem; display: grid; gap: 1rem; box-shadow: 0 40px 80px -30px rgba(0,0,0,.5); }
.contact__form h3 { font-size: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact__form label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.contact__form input, .contact__form select, .contact__form textarea, .newsletter input {
  font: inherit; font-size: .95rem; width: 100%; padding: .85em 1em; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s;
}
.contact__form input:focus, .contact__form select:focus, .contact__form textarea:focus, .newsletter input:focus { outline: none; border-color: var(--primary); background: #fff; }
.contact__form textarea { resize: vertical; }

/* Footer */
.footer { background: #072a21; color: rgba(255,255,255,.6); padding-top: 80px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 3rem; padding-bottom: 60px; }
.footer h4 { color: #fff; font-size: 1.1rem; margin-bottom: 1.3rem; }
.footer ul { display: grid; gap: .7rem; }
.footer ul a:hover, .footer__bottom a:hover { color: var(--accent); }
.footer__brand p { margin: 1.3rem 0; max-width: 300px; }
.footer__social { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .25s, color .25s; }
.footer__social svg { width: 18px; height: 18px; }
.footer__social:hover { background: var(--accent); color: var(--primary); }
.newsletter { display: flex; gap: .5rem; margin-top: 1rem; }
.newsletter input { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; border-radius: 100px; }
.newsletter input:focus { background: rgba(255,255,255,.1); border-color: var(--accent); }
.newsletter .btn { padding: .8em 1.3em; white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.6rem 0; border-top: 1px solid rgba(255,255,255,.08); font-size: .88rem; }
.footer__bottom p { margin: 0; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1080px) {
  .hero__inner, .about__inner, .why__inner, .faq__inner, .contact__inner { grid-template-columns: 1fr; gap: 3.5rem; }
  .hero__visual { max-width: 560px; }
  .section-head--split { grid-template-columns: 1fr; gap: 1rem; }
  .services__grid, .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .pricing__grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .faq__intro { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .about__visual { max-width: 560px; }
}

@media (max-width: 960px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
    padding: .5rem 20px 1rem; display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a { display: block; padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .nav__menu a::after { display: none; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .features__grid { grid-template-columns: 1fr; }
  .feature + .feature { border-left: 0; border-top: 1px solid var(--line); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
}

@media (max-width: 640px) {
  .topbar__info .topbar__email, .topbar__social span { display: none; }
  .section { padding: 80px 0; }
  .hero { padding: 60px 0 120px; }
  .hero__visual { padding: 52px 0 64px; }
  .float-card--payroll { left: 0; top: -6px; }
  .float-card--tax { bottom: -6px; }
  .dash { padding: 20px; }
  .dash__chart { height: 130px; }
  .services__grid, .testimonials__grid, .process__grid, .why__cards, .checklist, .form-row, .footer__grid { grid-template-columns: 1fr; }
  .why-card:nth-child(even) { transform: none; }
  .about__panel { padding: 2rem; }
  .about__badge { right: 0; }
  .contact__form { padding: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .progress__bar span { width: var(--w); }
}

/* ---------- Federal filing calendar ---------- */
.deadlines { background: var(--bg-soft); }
.dl { max-width: 960px; margin-inline: auto; }
.dl__tabs { display: none; gap: .5rem; padding: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 100px; width: fit-content; margin: 0 auto 2.2rem; max-width: 100%; overflow-x: auto; }
.dl.is-tabbed .dl__tabs { display: flex; }
.dl__tab { appearance: none; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; font-size: .95rem; padding: .75em 1.4em; border-radius: 100px; cursor: pointer; white-space: nowrap; transition: background .25s, color .25s; }
.dl__tab:hover { background: var(--bg-soft); }
.dl__tab[aria-selected="true"] { background: var(--primary); color: #fff; }
.dl__tab:focus-visible, .est-check input:focus-visible + span, .estimator select:focus-visible, .estimator input:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.dl__panel[hidden] { display: none; }
.dl__panel + .dl__panel { margin-top: 3rem; }
.dl.is-tabbed .dl__panel + .dl__panel { margin-top: 0; }
.dl.is-tabbed .dl__panel-title { display: none; }
.dl__who { text-align: center; margin: 0 0 1.2rem; }
.dl__next { display: none; margin: 0 auto 2rem; padding: .8rem 1.4rem; border-radius: 28px; line-height: 1.5; background: var(--primary); color: rgba(255,255,255,.8); font-size: .93rem; width: fit-content; max-width: 100%; text-align: center; }
.dl__next.is-ready { display: block; }
.dl__next strong { color: var(--accent); }
.dl__next em { font-style: normal; color: #fff; font-weight: 700; }
.dl__list { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 1rem; }
.dl__item { display: grid; grid-template-columns: 84px 1fr; gap: 1.5rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem 1.8rem; transition: border-color .3s, box-shadow .3s; }
.dl__item:hover { box-shadow: var(--shadow); }
.dl__item.is-next { border-color: var(--primary); box-shadow: 0 0 0 3px var(--accent); }
.dl__date { display: grid; place-items: center; align-content: center; width: 84px; height: 84px; border-radius: 16px; background: var(--primary); color: var(--accent); text-align: center; line-height: 1; }
.dl__date b { font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.dl__date span { font-size: 1.9rem; font-weight: 800; color: #fff; margin-top: .25rem; }
.dl__item--ongoing .dl__date { background: var(--accent); color: var(--primary); }
.dl__item--ongoing .dl__date span { color: var(--primary); }
.dl__body h3 { font-size: 1.12rem; margin: 0 0 .5rem; }
.dl__body ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .94rem; }
.dl__body li { position: relative; padding-left: 1.3rem; margin: 0; }
.dl__body li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-dark); }
.dl__note { margin: 2rem auto 0; max-width: 760px; text-align: center; font-size: .85rem; color: var(--muted); }

/* ---------- Price estimator ---------- */
.estimator-section { padding-top: 0 !important; }
.estimator { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.6rem; align-items: start; max-width: 1100px; margin-inline: auto; }
.estimator__form { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 24px; padding: 2.4rem; display: grid; gap: 1.8rem; }
.est-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.est-field legend, .est-group h3 { font-size: 1.05rem; font-weight: 700; color: var(--ink); padding: 0; margin: 0 0 .9rem; }
.est-checks { display: flex; flex-wrap: wrap; gap: .7rem; }
.est-check { position: relative; cursor: pointer; }
.est-check input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.est-check span { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.2em; border-radius: 100px; background: #fff; border: 2px solid var(--line); font-weight: 600; color: var(--ink); transition: background .2s, border-color .2s, color .2s; }
.est-check span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--muted); transition: background .2s, border-color .2s; }
.est-check input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.est-check input:checked + span::before { background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.7 2.7L12 5.5' fill='none' stroke='%230b3b2e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; border-color: var(--accent); }
.est-group[hidden] { display: none; }
.est-group { padding-top: 1.6rem; border-top: 1px solid var(--line); }
.est-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.estimator label:not(.est-check) { display: grid; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.estimator select, .estimator input[type="number"] { font: inherit; font-size: .95rem; width: 100%; height: 3.1rem; padding: 0 1em; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); }
.estimator select:focus, .estimator input[type="number"]:focus { outline: none; border-color: var(--primary); }
.estimator__result { background: var(--primary); color: rgba(255,255,255,.75); border-radius: 24px; padding: 2.4rem; position: sticky; top: 130px; box-shadow: var(--shadow); }
.estimator__result .eyebrow { margin-bottom: 1.2rem; }
.est-total { display: grid; gap: .1rem; margin-bottom: 1.4rem; }
.est-total small { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.6); }
.est-total strong { font-size: clamp(2rem, 4vw, 2.7rem); color: #fff; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.est-total span { font-size: .88rem; }
.est-total--sub strong { font-size: 1.7rem; color: var(--accent); }
.est-total[hidden] { display: none; }
.est-lines { list-style: none; margin: 0 0 1.2rem; padding: 1.2rem 0 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: .6rem; font-size: .92rem; }
.est-lines li { display: flex; justify-content: space-between; gap: 1rem; margin: 0; }
.est-lines li span:last-child { color: #fff; font-weight: 600; white-space: nowrap; }
.est-first { margin: 0 0 1.6rem; padding: .9rem 1.1rem; border-radius: 12px; background: rgba(255,255,255,.08); font-size: .93rem; }
.est-first strong { color: var(--accent); }
.est-empty { margin-bottom: 1.6rem; padding: 1rem 1.2rem; border-radius: 12px; background: rgba(255,255,255,.08); }
.est-empty[hidden], [data-out="results"][hidden] { display: none; }
.est-disclaimer { margin: 1.2rem 0 0; font-size: .8rem; color: rgba(255,255,255,.55); }

.pricing__cta { text-align: center; margin: 2.5rem 0 0; font-weight: 600; color: var(--ink); }
.pricing__cta a { color: var(--primary-3); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1080px) {
  .estimator { grid-template-columns: 1fr; }
  .estimator__result { position: static; }
}
@media (max-width: 640px) {
  .dl__tabs { border-radius: 18px; flex-direction: column; width: 100%; }
  .dl__item { grid-template-columns: 1fr; gap: 1rem; padding: 1.3rem; }
  .dl__date { width: 72px; height: 72px; }
  .estimator__form, .estimator__result { padding: 1.6rem; }
  .est-row { grid-template-columns: 1fr; }
}

/* ---------- Industries ---------- */
.industries__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.industry { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; transition: transform .3s, box-shadow .3s, border-color .3s; box-sizing: border-box; }
.wp-block-group.industry > * { margin-block: 0; }
.industry:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.industry__icon { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--primary); color: var(--accent); margin-bottom: 1.4rem !important; transition: background .3s, color .3s; }
.industry__icon svg { width: 30px; height: 30px; }
.industry:hover .industry__icon { background: var(--accent); color: var(--primary); }
.industry h3 { font-size: 1.2rem; margin: 0 0 .7rem !important; }
.industry p { font-size: .94rem; margin: 0 0 1.4rem !important; }
.wp-block-list.industry__tags, .industry__tags { list-style: none; padding: 0; margin: auto 0 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; }
.industry__tags li { margin: 0; padding: .35em .85em; border-radius: 100px; background: var(--bg-soft); color: var(--primary); font-size: .8rem; font-weight: 600; }
.industries__more { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; flex-wrap: wrap; margin-top: 2.5rem !important; padding: 1.8rem 2.2rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--accent-dark); box-sizing: border-box; }
.industries__more p { margin: 0; flex: 1 1 420px; color: var(--body); }
.industries__more strong { color: var(--ink); }
@media (max-width: 1080px) { .industries__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .industries__grid { grid-template-columns: 1fr; }
  .industries__more { padding: 1.5rem; }
  .industries__more p { flex-basis: 100%; }
}

/* Eight menu links: drop the header button before the menu runs out of room. */
@media (max-width: 960px) { .header__cta { display: none; } }

/* ---------- Consultation form: industry and services ---------- */
.svc-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.svc-field legend { padding: 0; margin-bottom: .5rem; font-size: .85rem; font-weight: 600; color: var(--ink); }
.svc-field legend small { font-weight: 500; color: var(--muted); }
.svc-checks { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact__form label.svc-check { display: block; position: relative; cursor: pointer; font-size: .85rem; }
.svc-check input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; cursor: pointer; }
.svc-check span { display: inline-flex; align-items: center; gap: .45em; padding: .55em .95em; border-radius: 100px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.svc-check span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 2px solid var(--muted); box-sizing: border-box; flex: none; transition: background .2s, border-color .2s; }
.svc-check input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.svc-check input:checked + span::before { border-color: var(--accent); background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='%230b3b2e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }
.svc-check input:focus-visible + span { outline: 3px solid var(--accent-dark); outline-offset: 2px; }
.svc-check:hover span { border-color: var(--primary); }

/* Footer phone and email */
.footer__contact { display: grid; gap: .6rem; margin: 0 0 1.3rem; }
.footer__contact li { display: flex; align-items: center; gap: .6rem; }
.footer__contact svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.footer__contact a:hover { color: var(--accent); }
@media (max-width: 960px) { .topbar__social span { display: none; } }

/* Four service cards: one row on wide screens, two by two below 1240px. */
@media (max-width: 1240px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .services__grid { grid-template-columns: 1fr; } }

/* Feature switches: <body data-hide="estimator"> hides every element marked data-feature="estimator". */
[data-hide~="estimator"] [data-feature="estimator"] { display: none !important; }

/* ---------- Pricing: service price cards ---------- */
.pricing__grid { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan--popular, .wp-block-group.plan--popular { padding: 2.6rem 2.2rem; }
.plan__desc { margin-bottom: 0 !important; }
.plan__from { margin: 1.5rem 0 .4rem !important; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.plan .plan__price { margin: 0 0 1rem !important; }
.plan__note { margin: 0 0 1.5rem !important; font-size: .88rem; line-height: 1.6; }
.plan__label { margin: 0 0 1rem !important; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-3); }
.plan ul.plan__features, .wp-block-list.plan__features { border-top: 0; padding: 0 0 1.6rem; gap: .7rem; }
.plan__features li { font-size: .92rem; line-height: 1.45; align-items: flex-start; }
.plan__addon { margin: auto 0 1.4rem !important; padding: .85rem 1rem; border-radius: 12px; background: var(--bg-soft); font-size: .85rem; line-height: 1.5; color: var(--body); }
.plan--popular .plan__from, .plan--popular .plan__note { color: rgba(255,255,255,.7); }
.plan--popular .plan__label { color: var(--accent); border-color: rgba(255,255,255,.15); }
.plan--popular .plan__addon { background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); }

.pricing__extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; margin-top: 2.5rem !important; }
.pricing__extras > * { margin: 0; }
.pricing__bundle { padding: 2rem 2.2rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px dashed var(--accent-dark); }
.pricing__bundle h3 { margin: 0 0 .5rem !important; font-size: 1.2rem; }
.pricing__bundle p { margin: 0; }
.pricing__start { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1.2rem; padding: 2rem 2.2rem; border-radius: var(--radius); background: var(--primary); color: rgba(255,255,255,.8); }
.pricing__start > * { margin: 0 !important; }
.pricing__start strong { color: #fff; }
@media (max-width: 1080px) { .pricing__extras { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; } }
@media (max-width: 640px) { .pricing__bundle, .pricing__start { padding: 1.6rem; } }

/* Four pricing cards: one row on wide screens, two by two below 1240px, stacked on phones. */
@media (min-width: 1241px) { .pricing__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1240px) { .pricing__grid { grid-template-columns: repeat(2, 1fr); max-width: none; } }
@media (max-width: 640px) { .pricing__grid { grid-template-columns: 1fr; max-width: 480px; } }

/* ---------- Pricing cards: shared rows line up across cards ---------- */
.plan__price small:first-child:not(:last-child), .plan__price sub:first-child:not(:last-child) { margin-right: .3rem; margin-left: 0; font-size: .95rem; font-weight: 500; color: var(--muted); letter-spacing: 0; vertical-align: baseline; }
.plan--popular .plan__price small, .plan--popular .plan__price sub { color: rgba(255,255,255,.7); }
.plan .plan__price { margin: 1.4rem 0 .6rem !important; }
.plan .plan__note { margin: 0 0 1.5rem !important; }
.plan__note:empty { margin-bottom: 0 !important; }
.plan__features-wrap { padding-bottom: 1.6rem; }
.wp-block-group.plan__features-wrap > * { margin: 0; }
.plan ul.plan__features, .wp-block-list.plan__features { padding: 0; margin: 0; }
.plan__features-wrap .plan__group { margin: 1.2rem 0 .7rem !important; font-size: .82rem; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.plan__features-wrap .plan__group:first-child { margin-top: 0 !important; }
.plan__addon strong { color: var(--ink); font-weight: 700; }
.plan--popular .plan__addon strong { color: #fff; }

@supports (grid-template-rows: subgrid) {
  .pricing__grid { row-gap: 0; }
  .pricing__grid > .plan { display: grid; grid-row: span 8; grid-template-rows: subgrid; row-gap: 0; margin-bottom: 1.6rem; }
  .pricing__grid > .plan > * { align-self: start; }
  .pricing__grid > .plan > .plan__addon { margin-top: 0 !important; }
  .pricing__grid > .plan > :last-child { align-self: end; }
  .pricing__extras { margin-top: .9rem !important; }
}

/* Keep each price on one line; slightly smaller figures when four cards share a row. */
.plan .plan__price { white-space: nowrap; }
@media (min-width: 1241px) { .pricing__grid .plan .plan__price { font-size: 2.6rem; } }

/* ---------- Pricing tabs (same switcher as the filing calendar) ---------- */
.pricing__tabs .dl__tabs { margin-bottom: 2.4rem; }
.pricing__tabs.is-tabbed .dl__tabs { display: flex; }
.pricing__panel[hidden] { display: none !important; }
.pricing__panel + .pricing__panel { margin-top: 2.5rem; }
.pricing__tabs.is-tabbed .pricing__panel + .pricing__panel { margin-top: 0; }
.pricing__panel-title { text-align: center; margin: 0 0 1.5rem !important; }
.pricing__tabs.is-tabbed .pricing__panel-title { display: none; }
.wp-block-group.pricing__tabs > *, .wp-block-group.pricing__panel > * { margin-block: 0; }
.pricing__panel--single .pricing__grid { grid-template-columns: minmax(0, 560px) !important; justify-content: center; max-width: none; }
.plan__addon:empty { padding: 0; background: none; }
/* A card without an add-on keeps the row (for alignment) but shows no box; WordPress may leave whitespace, so test for the label. */
.plan__addon:not(:has(strong)) { padding: 0; background: none; }
.pricing__tabs .dl__tabs { margin: 0 auto 2.4rem !important; }

/* Header: the Free Consultation button shows at every desktop width (tighter spacing where room is short);
   in the hamburger menu it becomes the menu's last item instead. */
@media (min-width: 961px) and (max-width: 1079px) { .header__inner { gap: 1.2rem; } .nav__menu { gap: 1.2rem; } }
.nav__cta-item { display: none; }
@media (max-width: 960px) {
  .nav__menu .nav__cta-item { display: block; padding-top: 1rem; }
  .nav__menu .nav__cta-item a { display: flex; padding: .85em 1.4em; border-bottom: 0; color: var(--primary); }
}

/* Form submission: spam trap and status messages */
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; line-height: 1.5; }
.form-status[hidden] { display: none; }
.form-status--success { background: #eaf8cf; color: var(--primary); }
.form-status--error { background: #fde8e8; color: #9b1c1c; }
.form-status ul { margin: .4rem 0 0; padding-left: 1.2rem; list-style: disc; font-weight: 500; }
.form-status--dark { margin-top: .8rem; padding: 0; background: none; font-size: .85rem; }
.form-status--dark.form-status--success { color: var(--accent); }
.form-status--dark.form-status--error { color: #ffb4b4; }
.contact__form [aria-invalid="true"], .newsletter [aria-invalid="true"] { border-color: #c0392b; }
form[aria-busy="true"] button[type="submit"] { opacity: .7; cursor: progress; }

/* reCAPTCHA v2 checkbox (contact form): reserve its height so nothing jumps while it loads */
.form-captcha { min-height: 78px; min-width: 0; max-width: 100%; overflow: hidden; border-radius: 4px; }
.form-captcha--invalid { outline: 2px solid #c0392b; outline-offset: 3px; }
.form-captcha noscript .form-status { margin: 0; }
