/* ==========================================================================
   Website Design for Accounting Firms — Bespoke Scoped Stylesheet
   Crafted to Impeccable standards: no lazy cards, no kickers/eyebrows,
   no thick colored left-borders, architectural comparison plates, dark fields.
   ========================================================================== */

.cpa-website-page {
  --web-paper: #f8f7f2;
  --web-white: #ffffff;
  --web-ink: #122026;
  --web-muted: #516269;
  --web-bronze: #86612d;
  --web-gold: #c59e3c;
  --web-teal: #155e56;
  --web-teal-light: #228277;
  --web-forest: #0e3732;
  --web-crimson: #952a1e;
  --web-crimson-bg: #fdf2f0;
  --web-rule: #cfd3ca;
  --web-soft: #edece4;
  --web-panel: #e5e2d6;
  --web-dark: #102226;
  --web-dark-surface: #172d33;
  --web-dark-card: #1e3840;
  --web-dark-rule: #284b54;
  --web-inverse: #d8e5e0;
  --web-serif: var(--font-serif), "Cormorant Garamond Variable", Georgia, serif;
  --web-sans: var(--font-sans), "DM Sans Variable", -apple-system, BlinkMacSystemFont, sans-serif;
  --web-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  color: var(--web-ink);
  background: var(--web-paper);
  font-family: var(--web-sans);
  font-size: 16px;
  line-height: 1.75;
  color-scheme: light;
  isolation: isolate;
  padding-top: clamp(120px, 10vw, 150px);
}

.cpa-website-page *,
.cpa-website-page *::before,
.cpa-website-page *::after {
  box-sizing: border-box;
}

.cpa-website-page ::selection {
  background: #cbe3df;
  color: #122026;
}

.cpa-website-page h1,
.cpa-website-page h2,
.cpa-website-page h3,
.cpa-website-page h4,
.cpa-website-page p,
.cpa-website-page figure,
.cpa-website-page blockquote {
  margin: 0;
}

.cpa-website-page h1,
.cpa-website-page h2,
.cpa-website-page h3,
.cpa-website-page h4 {
  color: inherit;
  text-wrap: balance;
}

.cpa-website-page p {
  max-width: 72ch;
}

.cpa-website-page p + p {
  margin-top: 18px;
}

.cpa-website-page h1 {
  font-family: var(--web-serif);
  font-size: clamp(3.1rem, 5vw, 5.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.cpa-website-page h1 em {
  color: var(--web-teal);
  font-style: italic;
  font-weight: inherit;
}

.cpa-website-page h2 {
  font-family: var(--web-serif);
  font-size: clamp(2.3rem, 3.4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.cpa-website-page h2 em {
  font-style: italic;
  color: var(--web-teal);
  font-weight: inherit;
}

.cpa-website-page h3 {
  font-family: var(--web-serif);
  font-size: clamp(1.6rem, 2.2vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cpa-website-page h4 {
  font-family: var(--web-sans);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

.web-wrap {
  width: min(1280px, calc(100% - 48px));
  margin-inline: auto;
}

@media (max-width: 640px) {
  .web-wrap {
    width: min(100% - 32px, 1280px);
  }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.web-hero {
  padding: 24px 0 64px;
}

.web-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.web-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--web-panel);
  border: 1px solid var(--web-rule);
  color: var(--web-bronze);
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.web-badge-active {
  background: var(--web-forest);
  border-color: var(--web-forest);
  color: #fff;
}

.web-hero-head {
  max-width: 980px;
  margin-bottom: 32px;
}

.web-hero-head h1 {
  margin-bottom: 24px;
}

.web-lead {
  font-size: clamp(1.125rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: var(--web-ink);
  max-width: 82ch;
  margin-bottom: 32px;
}

.web-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin-bottom: 48px;
}

.web-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--web-forest);
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--web-forest);
  transition: all 0.2s ease;
}

.web-btn-primary:hover {
  background: var(--web-teal);
  border-color: var(--web-teal);
}

.web-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: var(--web-ink) !important;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--web-rule);
  transition: all 0.2s ease;
}

.web-btn-secondary:hover {
  background: var(--web-soft);
  border-color: var(--web-ink);
}

.web-hero-figure {
  margin: 32px 0 0 0;
  border: 1px solid var(--web-rule);
  background: #ffffff;
  overflow: hidden;
}

.web-hero-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.web-hero-caption {
  padding: 14px 20px;
  background: var(--web-panel);
  border-top: 1px solid var(--web-rule);
  font-size: 0.8125rem;
  color: var(--web-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.web-hero-caption-tag {
  font-family: var(--web-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--web-teal);
}

/* ==========================================================================
   Telemetry Stat Ribbon
   ========================================================================== */

.web-stats-strip {
  border-top: 1px solid var(--web-rule);
  border-bottom: 1px solid var(--web-rule);
  background: var(--web-white);
  padding: 32px 0;
}

.web-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .web-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .web-stats-grid {
    grid-template-columns: 1fr;
  }
}

.web-stat-card {
  padding: 16px 20px;
  border-left: 1px solid var(--web-rule);
}

.web-stat-card:first-child {
  border-left: none;
}

.web-stat-value {
  font-family: var(--web-mono);
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  font-weight: 700;
  color: var(--web-forest);
  line-height: 1.1;
  margin-bottom: 6px;
}

.web-stat-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--web-ink);
  margin-bottom: 4px;
}

.web-stat-desc {
  font-size: 0.8125rem;
  color: var(--web-muted);
  line-height: 1.45;
}

/* ==========================================================================
   Sticky Sub-Navigation Rail
   ========================================================================== */

.web-nav-bar {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: rgba(248, 247, 242, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--web-rule);
  padding: 10px 0;
}

.web-nav-links {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

.web-nav-links::-webkit-scrollbar {
  display: none;
}

.web-nav-links a {
  color: var(--web-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 2px;
  transition: all 0.15s ease;
}

.web-nav-links a:hover {
  color: var(--web-ink);
  background: var(--web-soft);
}

/* ==========================================================================
   Sections General
   ========================================================================== */

.web-section {
  padding: clamp(64px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--web-rule);
  scroll-margin-top: 130px;
}

.web-section-head {
  max-width: 860px;
  margin-bottom: 48px;
}

.web-section-head h2 {
  margin-bottom: 16px;
}

.web-section-head p {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--web-muted);
}

/* ==========================================================================
   Editorial Cards and Comparison Plates
   ========================================================================== */

.web-card-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 800px) {
  .web-card-grid-2 {
    grid-template-columns: 1fr;
  }
}

.web-card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .web-card-grid-3 {
    grid-template-columns: 1fr;
  }
}

.web-card {
  background: var(--web-white);
  border: 1px solid var(--web-rule);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.web-card-head {
  margin-bottom: 20px;
}

.web-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--web-muted);
  margin-bottom: 8px;
  display: block;
}

.web-card-tag.crimson {
  color: var(--web-crimson);
}

.web-card-tag.teal {
  color: var(--web-teal);
}

.web-card-tag.bronze {
  color: var(--web-bronze);
}

.web-card h3,
.web-card h4 {
  margin-bottom: 12px;
}

.web-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--web-ink);
}

.web-card-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--web-rule);
  font-size: 0.8125rem;
  color: var(--web-muted);
}

/* ==========================================================================
   Dark Field Architectural Plates
   ========================================================================== */

.web-dark-field {
  background: var(--web-dark);
  color: var(--web-inverse);
  padding: clamp(32px, 5vw, 56px);
  border: 1px solid var(--web-dark-rule);
}

.web-dark-field h2,
.web-dark-field h3 {
  color: #ffffff;
}

.web-dark-field p {
  color: #c0cfcb;
}

/* ==========================================================================
   8-Stage Journey Board (AccountingWebsiteAnatomy)
   ========================================================================== */

.web-journey-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.web-journey-row {
  display: grid;
  grid-template-columns: 240px 1fr 1fr;
  gap: 24px;
  padding: 24px 28px;
  background: var(--web-white);
  border: 1px solid var(--web-rule);
  align-items: start;
}

.web-journey-row:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

@media (max-width: 920px) {
  .web-journey-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.web-stage-num {
  font-family: var(--web-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--web-teal);
  line-height: 1;
  margin-bottom: 4px;
}

.web-stage-title {
  font-family: var(--web-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--web-ink);
  margin-bottom: 6px;
}

.web-stage-job {
  font-size: 0.8125rem;
  color: var(--web-muted);
  line-height: 1.5;
}

.web-stage-brochure {
  padding: 14px 18px;
  background: var(--web-paper);
  border: 1px solid var(--web-rule);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--web-ink);
}

.web-stage-brochure .badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--web-crimson);
  display: block;
  margin-bottom: 6px;
}

.web-stage-tqp {
  padding: 14px 18px;
  background: rgba(21, 94, 86, 0.05);
  border: 1px solid rgba(21, 94, 86, 0.2);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--web-ink);
  font-weight: 500;
}

.web-stage-tqp .badge {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--web-teal);
  display: block;
  margin-bottom: 6px;
}

/* ==========================================================================
   Service Architecture Matrix (ServiceArchitectureMatrix)
   ========================================================================== */

.web-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .web-matrix-grid {
    grid-template-columns: 1fr;
  }
}

.web-matrix-card {
  background: var(--web-white);
  border: 1px solid var(--web-rule);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.web-matrix-card h4 {
  font-family: var(--web-serif);
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.web-matrix-trigger {
  font-size: 0.8125rem;
  color: var(--web-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.web-matrix-questions {
  background: var(--web-panel);
  padding: 14px 16px;
  border: 1px solid var(--web-rule);
  margin-bottom: 16px;
}

.web-matrix-questions ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--web-ink);
}

.web-matrix-footer {
  padding-top: 14px;
  border-top: 1px solid var(--web-rule);
  font-size: 0.8125rem;
  color: var(--web-muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.web-matrix-footer strong {
  color: var(--web-ink);
}

/* ==========================================================================
   Readiness Diagnostic Board (AccountingReadinessChecklist)
   ========================================================================== */

.web-readiness-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.web-readiness-item {
  background: var(--web-white);
  border: 1px solid var(--web-rule);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

@media (max-width: 860px) {
  .web-readiness-item {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.web-readiness-left h4 {
  font-size: 1.15rem;
  color: var(--web-ink);
  margin-bottom: 6px;
}

.web-readiness-sub {
  font-size: 0.8125rem;
  color: var(--web-bronze);
  font-weight: 600;
  margin-bottom: 10px;
}

.web-readiness-eval {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--web-muted);
}

.web-readiness-rec {
  padding: 16px 20px;
  background: rgba(21, 94, 86, 0.05);
  border: 1px solid rgba(21, 94, 86, 0.2);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--web-forest);
  font-weight: 500;
}

.web-readiness-rec-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--web-teal);
  display: block;
  margin-bottom: 6px;
}

/* ==========================================================================
   CTA Box
   ========================================================================== */

.web-cta-box {
  background: var(--web-white);
  border: 1px solid var(--web-rule);
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  text-align: center;
  max-width: 900px;
  margin: 64px auto 0;
}

.web-cta-box h2 {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  margin-bottom: 16px;
}

.web-cta-box p {
  margin: 0 auto 32px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--web-muted);
}

.web-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}
.web-country-routes { margin: 0; border-top: 2px solid var(--web-ink); }
.web-country-routes > div { display: grid; gap: 12px; padding: 24px 0; border-bottom: 1px solid var(--web-rule); }
.web-country-routes dt { font-weight: 600; font-size: 1.1rem; line-height: 1.5; color: var(--web-ink); }
.web-country-routes dd { margin: 0; font-size: 1rem; line-height: 1.75; color: var(--web-muted); }
@media (min-width: 800px) { .web-country-routes > div { grid-template-columns: 1fr 2fr; gap: 32px; } }
