/* Hallmark · component: bookkeeping inclusions · genre: modern-minimal · theme: Finexa navy/orange
 * states: default · hover · focus · active · disabled · loading · error · success
 * pre-emit critique: P5 H4 E4 S5 R4 V4 · contrast: pass (40–41)
 * Page-specific additions to the established Finexa design. */
#managed-accounting { overflow-x: clip; }
#managed-accounting h1, #managed-accounting h2 { overflow-wrap: anywhere; min-width: 0; }
#managed-accounting .bookkeeping-hero { padding: 64px 0 72px; }
#managed-accounting .service-hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: center; }
#managed-accounting .service-hero h1 { font-size: clamp(34px, 4.3vw, 56px); line-height: 1.08; max-width: 640px; }
#managed-accounting .service-hero-copy .bookkeeping-intro { font-size: 18px; line-height: 1.6; margin: 0; }
#managed-accounting .service-hero-copy .bookkeeping-audience { margin-top: 12px; font-size: 14px; color: var(--text-on-dark-muted); }
#managed-accounting .hero-ctas .btn { white-space: nowrap; }

#managed-accounting .bookkeeping-hero-price { margin: 22px 0 0; color: var(--surface); font: 700 clamp(22px, 2.2vw, 29px)/1.15 var(--heading-font); }
#managed-accounting .bookkeeping-hero-inclusion { max-width: 640px; margin: 10px 0 0; color: var(--text-on-dark-muted); font-size: 15px; line-height: 1.55; }
#managed-accounting .bookkeeping-trust-strip { max-width: 660px; margin: 24px 0 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--surface) 28%, transparent); color: var(--text-on-dark-muted); font-size: 13px; font-weight: 600; line-height: 1.55; }
#managed-accounting .bookkeeping-trust-strip span { padding: 0 5px; color: var(--accent); }
.bookkeeping-pricing { background: var(--warm); border-bottom: 1px solid var(--border-cool); }
.bookkeeping-pricing-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.bookkeeping-pricing h2 { max-width: 520px; }
.bookkeeping-pricing p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.bookkeeping-pricing .btn { margin-top: 26px; }
.bookkeeping-proof { background: var(--surface); padding: 32px; color: var(--text); min-width: 0; border-top: 4px solid var(--accent); }
#managed-accounting .bookkeeping-proof .eyebrow { font-size: 11px; color: var(--accent); }
#managed-accounting .bookkeeping-proof h2 { color: var(--dark); font-size: 27px; line-height: 1.2; }
.bookkeeping-proof ul { padding-left: 20px; margin: 24px 0; display: grid; gap: 10px; font-size: 15px; line-height: 1.4; }
.bookkeeping-proof li::marker { color: var(--accent); }
.bookkeeping-credential { display: flex; align-items: center; gap: 20px; border-top: 1px solid var(--border); padding-top: 24px; }
.bookkeeping-credential img { width: 100px; height: auto; flex-shrink: 0; }
.bookkeeping-credential strong { display: block; color: var(--dark); font-size: 15px; }
#managed-accounting .bookkeeping-credential p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 8px; }
.bookkeeping-award-source { display: inline-block; color: var(--dark); font-size: 12px; line-height: 1.4; margin-top: 8px; text-underline-offset: 3px; white-space: nowrap; }
#managed-accounting > .section { padding: 88px 0; }
.bookkeeping-section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; margin-bottom: 44px; align-items: start; }
.bookkeeping-section-heading p:not(.eyebrow) { font-size: 17px; line-height: 1.7; color: var(--muted); }
.bookkeeping-section-heading strong { color: var(--dark); }
.bookkeeping-section-heading .bookkeeping-tax-note { border-left: 3px solid var(--accent); padding-left: 20px; margin-top: 22px; }
.bookkeeping-catchup .bookkeeping-section-heading { margin-bottom: 0; }
.bookkeeping-catchup .btn { margin-top: 24px; }
.bookkeeping-team { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 80px; align-items: center; }
.bookkeeping-portrait { background: var(--warm); max-width: 380px; }
.bookkeeping-portrait img { display: block; width: 100%; height: auto; }
.bookkeeping-team p:not(.eyebrow) { margin-top: 24px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.bookkeeping-text-link { display: inline-block; margin-top: 24px; font-weight: 700; color: var(--dark); text-decoration: underline; text-underline-offset: 4px; }
.bookkeeping-tools { padding: 42px 0 46px; background: var(--surface-cool); border-bottom: 1px solid var(--border-cool); }
.bookkeeping-tools .container { display: grid; grid-template-columns: minmax(220px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 42px; }
.bookkeeping-tools-intro h2 { color: var(--dark); font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; margin: 8px 0 10px; }
.bookkeeping-tools-intro p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.bookkeeping-software-logos { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; align-items: center; }
.bookkeeping-software-logos li { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.bookkeeping-software-logos img { width: 130px; max-width: 100%; height: 64px; object-fit: contain; }
.bookkeeping-software-logos li:nth-child(2) img { width: 64px; }
.bookkeeping-software-logos li:nth-child(3) img { width: 100px; }
.bookkeeping-software-logos li:nth-child(5) img { width: 125px; height: auto; }
.bookkeeping-software-logos span { font-size: 13px; color: var(--muted); }
.bookkeeping-fit-copy { color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 24px; }
#quote { scroll-margin-top: 110px; }
.bookkeeping-quote-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.bookkeeping-quote-layout > div > p:not(.eyebrow) { color: var(--muted); font-size: 17px; line-height: 1.7; margin-top: 24px; }
.bookkeeping-quote-layout a { color: var(--dark); text-underline-offset: 3px; }
.bookkeeping-quote-embed { min-width: 0; background: var(--surface); border-top: 4px solid var(--accent); }
.bookkeeping-quote-form { padding: 30px; }
.bookkeeping-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.bookkeeping-field { min-width: 0; display: grid; gap: 8px; }
.bookkeeping-field-full { grid-column: 1 / -1; }
.bookkeeping-field label { color: var(--dark); font: 700 14px/1.35 var(--body-font); }
.bookkeeping-field label span[aria-hidden="true"] { color: var(--accent-hover); }
.bookkeeping-optional { color: var(--muted); font-weight: 500; }
.bookkeeping-field input, .bookkeeping-field select, .bookkeeping-field textarea { width: 100%; border: 1px solid var(--border-cool); border-radius: 0; background: var(--surface); color: var(--text); font: 400 16px/1.45 var(--body-font); padding: 12px 13px; }
.bookkeeping-field textarea { resize: vertical; min-height: 120px; }
.bookkeeping-field input:focus, .bookkeeping-field select:focus, .bookkeeping-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.bookkeeping-quote-form .btn { margin-top: 24px; }
.bookkeeping-quote-embed .bookkeeping-form-note { margin: 24px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.6; }
.bookkeeping-form-status { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.bookkeeping-form-note a:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
.bookkeeping-form-success { padding: 34px 30px; background: var(--dark); color: var(--surface); }
.bookkeeping-form-success .eyebrow { color: var(--accent-on-dark); margin: 0 0 10px; }
.bookkeeping-form-success h3 { color: var(--surface); font-size: 27px; line-height: 1.18; margin: 0 0 14px; }
.bookkeeping-form-success p { color: var(--text-on-dark-muted); font-size: 16px; line-height: 1.6; margin: 0; }
.bookkeeping-form-success .bookkeeping-form-success-contact { border-top: 1px solid rgba(255,255,255,.24); margin-top: 22px; padding-top: 18px; }
.bookkeeping-form-success a { color: var(--surface); font-weight: 700; text-underline-offset: 3px; }
@media (max-width: 900px) {
  #managed-accounting .service-hero-inner, .bookkeeping-section-heading, .bookkeeping-pricing-inner, .bookkeeping-team, .bookkeeping-quote-layout { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .bookkeeping-proof { max-width: 600px; }
  .bookkeeping-portrait { max-width: 300px; }
}
@media (max-width: 600px) {
  #managed-accounting .bookkeeping-hero { padding: 32px 0 40px; }
  #managed-accounting .service-hero h1 { font-size: 32px; }
  #managed-accounting .service-hero .eyebrow { font-size: 11px; letter-spacing: .08em; }
  #managed-accounting .service-hero-copy .bookkeeping-intro { font-size: 16px; line-height: 1.55; }
  #managed-accounting .hero-ctas { display: grid; gap: 12px; }
  #managed-accounting .bookkeeping-hero-price { font-size: 24px; }
  #managed-accounting .bookkeeping-hero-inclusion, #managed-accounting .bookkeeping-trust-strip { font-size: 14px; }
  #managed-accounting .hero-ctas .btn { width: 100%; padding-left: 10px; padding-right: 10px; font-size: 14px; }
  #managed-accounting > .section { padding: 56px 0; }
  #managed-accounting h2 { font-size: 30px; }
  .bookkeeping-proof { padding: 24px; }
  #managed-accounting .bookkeeping-proof h2 { font-size: 24px; }
  .bookkeeping-credential { gap: 14px; }
  .bookkeeping-credential img { width: 80px; }
  .bookkeeping-section-heading { margin-bottom: 32px; }
  .bookkeeping-tools { padding: 34px 0; }
  .bookkeeping-tools .container { grid-template-columns: 1fr; gap: 24px; }
  .bookkeeping-software-logos { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .bookkeeping-software-logos li { gap: 8px; }
  .bookkeeping-software-logos img { width: 58px; height: 36px; }
  .bookkeeping-software-logos li:nth-child(2) img { width: 38px; }
  .bookkeeping-software-logos li:nth-child(3) img { width: 56px; }
  .bookkeeping-software-logos li:nth-child(5) img { width: 64px; }
  .bookkeeping-software-logos span { font-size: 10px; text-align: center; }
  .bookkeeping-quote-form { padding: 24px; }
  .bookkeeping-form-success { padding: 28px 24px; }
  .bookkeeping-form-grid { grid-template-columns: 1fr; gap: 16px; }
  .bookkeeping-field-full { grid-column: auto; }
}

/* The illustrated monthly workflow uses the site's existing colour and font tokens. */
.bookkeeping-flow-layout {
  --flow-ease: cubic-bezier(.16, 1, .3, 1);
  --flow-short: 220ms;
  --flow-error: #992b2b;
  --flow-success: #176345;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.bookkeeping-flow-figure { display: flex; flex-direction: column; justify-content: center; margin: 0; background: var(--warm); padding: 20px; min-width: 0; }
.bookkeeping-flow-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.bookkeeping-flow-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; border: 1px solid var(--border-cool); background: var(--surface); color: var(--dark); font: 700 12px/1 var(--body-font); padding: 0 12px; cursor: pointer; white-space: nowrap; }
.bookkeeping-flow-toggle[hidden] { display: none; }
.bookkeeping-flow-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.bookkeeping-flow-art { display: block; width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.flow-grid-dot { fill: var(--dark); opacity: .12; }
.flow-sheet { fill: var(--surface); stroke: var(--dark); stroke-width: 2; transition: fill var(--flow-short) var(--flow-ease), stroke var(--flow-short) var(--flow-ease); }
.flow-sheet-back { fill: var(--surface-cool-strong); stroke: var(--border-cool); stroke-width: 2; }
.flow-outline { fill: none; stroke: var(--dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow-accent { fill: none; stroke: var(--accent-hover); stroke-width: 3; stroke-linecap: round; }
.flow-link { fill: none; stroke: var(--border-cool); stroke-width: 2; stroke-linecap: round; }
.flow-current { fill: none; stroke: var(--accent-hover); stroke-width: 3; stroke-dasharray: 6 28; stroke-linecap: round; animation: bookkeeping-flow-stream 2.8s linear infinite; }
.flow-ledger-head { fill: var(--dark); }
.flow-head-line { fill: none; stroke: var(--surface); stroke-width: 3; stroke-linecap: round; }
.flow-ledger-rule { opacity: .2; }
.flow-check { fill: none; stroke: var(--dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.flow-badge { fill: var(--surface); stroke: var(--dark); stroke-width: 2; }
.flow-tax-surface { fill: var(--surface-cool-strong); }
.flow-review-halo { fill: var(--accent-soft); animation: bookkeeping-flow-halo 4.8s ease-in-out infinite; }
.flow-review-ring { fill: var(--surface); stroke: var(--accent-hover); stroke-width: 2; }
.flow-review-check { fill: none; stroke: var(--dark); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.flow-bar { fill: var(--dark); transform-box: fill-box; transform-origin: center bottom; animation: bookkeeping-flow-bars 5.6s var(--flow-ease) infinite; }
.flow-bar:nth-child(2) { animation-delay: .18s; }
.flow-bar:nth-child(3) { animation-delay: .36s; }
.flow-document { animation: bookkeeping-flow-records 5.6s ease-in-out infinite; }
.flow-node.is-current .flow-sheet, .flow-node.is-current .flow-badge { fill: var(--accent-soft); stroke: var(--accent-hover); }
.flow-node.is-current .flow-check { stroke: var(--accent-hover); }
.flow-node.is-current .flow-tax-surface { fill: var(--accent-soft); stroke: var(--accent-hover); stroke-width: 1.5; }
.flow-node.is-current .flow-bar { fill: var(--accent-hover); }
.bookkeeping-flow-review-note { display: flex; align-items: center; gap: 10px; padding: 16px 0 0; border-top: 1px solid var(--border-cool); color: var(--dark); font-size: 13px; line-height: 1.5; }
.bookkeeping-flow-review-note svg { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: var(--dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.bookkeeping-flow-caption { padding-top: 24px; min-height: 240px; }
.bookkeeping-flow-caption-kicker { color: var(--muted); font-size: 11px; line-height: 1.4; }
.bookkeeping-flow-caption h3 { color: var(--dark); font-size: 23px; line-height: 1.2; margin: 10px 0 12px; }
.bookkeeping-flow-caption p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.bookkeeping-flow-list { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 24px; list-style: none; margin: 0; padding: 0; }
.bookkeeping-flow-item { min-width: 0; border-top: 1px solid var(--border-cool); padding: 8px 0 16px; transition: background-color var(--flow-short) var(--flow-ease); }
.bookkeeping-flow-select { display: flex; width: 100%; align-items: center; gap: 8px; min-height: 44px; border: 0; padding: 0; background: transparent; color: var(--dark); font: 700 15px/1 var(--heading-font); text-align: left; cursor: pointer; white-space: nowrap; }
.bookkeeping-flow-select svg { width: 20px; height: 20px; margin-left: auto; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; opacity: 0; transition: opacity var(--flow-short) var(--flow-ease); }
.bookkeeping-flow-number { color: var(--muted); font: 600 12px/1 var(--body-font); min-width: 20px; }
.bookkeeping-flow-item > p { margin-left: 28px; margin-top: 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.bookkeeping-flow-item.is-current { background: var(--accent-softest); }
.bookkeeping-flow-item.is-current .bookkeeping-flow-select svg { opacity: 1; }
.bookkeeping-flow-select:focus-visible, .bookkeeping-flow-toggle:focus-visible, .bookkeeping-flow-select.is-focus, .bookkeeping-flow-toggle.is-focus { outline: 2px solid var(--dark); outline-offset: 3px; }
.bookkeeping-flow-select:active, .bookkeeping-flow-toggle:active, .bookkeeping-flow-select.is-active, .bookkeeping-flow-toggle.is-active { color: var(--dark); background: var(--surface-cool-strong); }
.bookkeeping-flow-select:disabled, .bookkeeping-flow-toggle:disabled { opacity: .55; cursor: not-allowed; }
.bookkeeping-flow-select[data-state="loading"], .bookkeeping-flow-toggle[data-state="loading"] { cursor: progress; }
.bookkeeping-flow-select[data-state="loading"]::after, .bookkeeping-flow-toggle[data-state="loading"]::after { content: ""; width: 12px; height: 12px; border: 2px solid var(--border-cool); border-top-color: var(--dark); border-radius: 50%; animation: bookkeeping-flow-spin 1s linear infinite; }
.bookkeeping-flow-select[data-state="error"], .bookkeeping-flow-toggle[data-state="error"] { color: var(--flow-error); box-shadow: inset 0 -1px var(--flow-error); }
.bookkeeping-flow-select[data-state="success"], .bookkeeping-flow-toggle[data-state="success"] { color: var(--flow-success); }
.bookkeeping-flow-select[data-state="success"]::after, .bookkeeping-flow-toggle[data-state="success"]::after { content: "✓"; }
.bookkeeping-flow-layout[data-flow-playing="false"] .bookkeeping-flow-art * { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) {
  .bookkeeping-flow-select:hover, .bookkeeping-flow-toggle:hover, .bookkeeping-flow-select.is-hover, .bookkeeping-flow-toggle.is-hover { color: var(--dark); background: var(--surface-cool-strong); }
}
@media (min-width: 640px) {
  .bookkeeping-flow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bookkeeping-flow-figure { padding: 24px; }
  .bookkeeping-flow-art { width: 100%; max-width: 480px; margin-inline: auto; }
}
@media (min-width: 960px) {
  .bookkeeping-flow-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.5fr); gap: 32px; align-items: stretch; }
  .bookkeeping-flow-select { font-size: 16px; }
}
@keyframes bookkeeping-flow-stream { to { stroke-dashoffset: -68; } }
@keyframes bookkeeping-flow-bars { 0%, 100% { transform: scaleY(.7); } 35%, 75% { transform: scaleY(1); } }
@keyframes bookkeeping-flow-records { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes bookkeeping-flow-halo { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes bookkeeping-flow-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bookkeeping-flow-layout *, .bookkeeping-flow-layout *::after { animation: none !important; transition: none !important; }
  .flow-current { stroke-dasharray: none; }
}
