.a4-layout {
  background: #e8ecf2;
}

:root {
  --a4-font-label: 12px;
  --a4-font-caption: 12px;
  --a4-font-body: 14px;
  --a4-font-body-lg: 15px;
  --a4-font-title: 24px;
  --a4-font-title-sm: 20px;
  --a4-font-stat: 28px;
  --a4-font-cover-title: 32px;
  --a4-line: 1.46;
}

html.a4-layout {
  font-size: 16px;
}

.a4-sheet__body,
.a4-measure-stage,
.a4-sheet__body * {
  font-family: var(--font-body);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.a4-sheet__body .section-label,
.a4-sheet__body .section-title,
.a4-sheet__body .cover-brand,
.a4-sheet__body .cover h1,
.a4-sheet__body .stat-value,
.a4-sheet__body .index-num,
.a4-measure-stage .section-label,
.a4-measure-stage .section-title {
  font-family: var(--font-display);
}

.a4-layout .page {
  display: none;
}

.a4-document {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}

.a4-sheet {
  width: var(--a4-sheet-width-px, 210mm);
  height: var(--a4-sheet-height-px, 297mm);
  min-height: var(--a4-sheet-height-px, 297mm);
  max-height: var(--a4-sheet-height-px, 297mm);
  background: #fff;
  box-shadow:
    0 1px 2px rgba(16, 22, 28, 0.05),
    0 8px 32px rgba(16, 22, 28, 0.08);
  box-sizing: border-box;
  padding: var(--a4-sheet-margin-px, var(--a4-margin-mm, 0mm));
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

html.a4-embedded .a4-document {
  transform: scale(var(--a4-view-scale, 1));
  transform-origin: top center;
  width: var(--a4-sheet-width-px, 210mm);
  margin-left: auto;
  margin-right: auto;
}

html.a4-print .a4-document,
html.a4-capture .a4-document {
  transform: none !important;
}

.a4-sheet__body {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}

.a4-sheet__body .section,
.a4-sheet__body header.section {
  max-width: none;
  margin: 0;
  border-left: none;
  border-right: none;
}

.a4-sheet__body .section + .section,
.a4-sheet__body header.section + .section,
.a4-sheet__body .section + header.section {
  border-top: 1px solid var(--border);
}

.a4-sheet__body .a4-section-chunk.section--gray {
  background: var(--secondary);
}

.a4-sheet__body .a4-section-chunk.section--primary {
  background: var(--primary);
  color: #fff;
}

.a4-sheet__body .cover {
  display: flex;
  flex-direction: column;
  position: relative;
  align-items: stretch;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.a4-sheet--cover .cover-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.a4-sheet--cover .cover-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(0, 87, 255, 0.96) 0%,
    rgba(0, 87, 255, 0.9) 36%,
    rgba(0, 87, 255, 0.6) 60%,
    rgba(0, 87, 255, 0.35) 100%
  );
}

.a4-sheet--cover .cover-hero-bg img {
  position: absolute;
  right: -4%;
  top: 42%;
  transform: translateY(-50%);
  width: 56%;
  height: auto;
  max-height: 72%;
  min-height: 0;
  object-fit: contain;
  object-position: center right;
  opacity: 0.7;
}

.a4-sheet--cover .a4-sheet__body {
  height: 100%;
  overflow: hidden;
}

.a4-sheet--cover .cover-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 56%;
  padding: 26px 24px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.a4-sheet--cover .cover-logo {
  margin-bottom: 16px;
}

.a4-sheet--cover .cover-title {
  font-size: var(--a4-font-cover-title);
  line-height: 1.2;
}

.a4-sheet--cover .cover-sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.a4-sheet--cover .cover-meta {
  margin-top: 18px;
  padding-top: 14px;
  gap: 8px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.a4-sheet--cover .cover-points {
  margin-top: 14px;
  padding-top: 12px;
}

.a4-sheet--cover .cover-points li {
  font-size: 12px;
  line-height: 1.5;
}

.a4-sheet__body .cover-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.a4-sheet--cover .cover-footer {
  padding: 12px 22px 14px;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.a4-sheet--cover .cover-footer-item h3 {
  font-size: 12px;
  margin-bottom: 4px;
}

.a4-sheet--cover .cover-footer-item p {
  font-size: 11px;
  line-height: 1.45;
}

.a4-sheet__body .cover-copy {
  justify-content: flex-start;
}

.a4-sheet__body .cover-meta {
  grid-template-columns: repeat(2, 1fr);
}

.a4-sheet__body .a4-section-chunk.section--gray,
.a4-sheet__body .section.section--gray {
  background: #f6f8fb;
}

.a4-sheet__body > .section,
.a4-sheet__body > header.section:not(.cover),
.a4-sheet__body > .a4-section-chunk {
  padding: 18px 22px;
  box-sizing: border-box;
}

.a4-sheet__body > header.section.cover {
  padding: 0;
}

.a4-sheet__body .index-item {
  background: var(--surface);
  border-left: 3px solid var(--primary);
  box-shadow: 0 1px 2px rgba(15, 20, 25, 0.04);
}

.a4-sheet__body .index-num {
  color: var(--accent);
  opacity: 1;
}

.a4-sheet__body .overview-divider {
  height: 1px;
  margin: 14px 0 12px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--border) 100%);
  border: none;
}

.a4-sheet__body .stat {
  border-top: 2px solid var(--primary);
}

@media (min-width: 640px) {
  .a4-sheet__body .cover-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .a4-sheet--cover .cover-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.a4-sheet__body .card-grid--a4-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a4-sheet__body .ref-grid--a4-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a4-sheet__body .process-gantt {
  overflow-x: visible;
}

.a4-sheet__body .gantt-chart {
  min-width: 0;
}

.a4-sheet__number {
  position: absolute;
  right: max(var(--a4-margin-mm, 0mm), 8mm);
  bottom: max(calc(var(--a4-margin-mm, 0mm) * 0.6), 5mm);
  font-family: var(--font-display);
  font-size: var(--a4-font-label);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.a4-sheet--primary .a4-sheet__number {
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 820px) {
  body:not(.a4-layout) .a4-document {
    padding: 16px 12px 32px;
    gap: 16px;
  }
}

html.a4-embedded,
html.a4-embedded body {
  margin: 0;
  height: 100%;
  overflow: hidden;
}

html.a4-embedded .a4-layout {
  height: 100%;
  overflow-x: auto;
  overflow-y: auto;
  background: #e8ecf2;
}

html.a4-embedded .a4-document {
  min-height: 100%;
  overflow: visible;
  scroll-snap-type: none;
}

.a4-measure-stage .section,
.a4-measure-stage header.section,
.a4-measure-stage .a4-section-chunk {
  padding: 16px 20px;
  max-width: none;
  margin: 0;
  border-left: none;
  border-right: none;
}

/* ── A4 sheet: override web-first spacing inside fixed pages ── */
.a4-sheet__body .section,
.a4-sheet__body header.section,
.a4-sheet__body .a4-section-chunk {
  padding: 10px 14px;
  border-bottom: none;
}

.a4-sheet__body .section-label {
  font-family: var(--font-display);
  font-size: var(--a4-font-label);
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: 0.12em;
}

.a4-sheet__body .section-title {
  font-family: var(--font-display);
  font-size: var(--a4-font-title);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.a4-sheet__body .section-title.a4-section-title--continued {
  font-size: var(--a4-font-title-sm);
  margin-bottom: 10px;
}

.a4-sheet__body .section-desc {
  font-size: var(--a4-font-body-lg);
  line-height: var(--a4-line);
  margin-bottom: 8px;
  max-width: none;
}

.a4-sheet__body .index-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.a4-sheet__body .index-item {
  padding: 10px 12px;
  gap: 10px;
}

.a4-sheet__body .index-num {
  font-size: 13px;
  min-width: 24px;
}

.a4-sheet__body .index-text strong {
  font-size: var(--a4-font-body);
  line-height: 1.35;
}

.a4-sheet__body .index-text span {
  font-size: var(--a4-font-caption);
  line-height: 1.4;
}

.a4-sheet__body .split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.a4-sheet__body .flat-box {
  padding: 12px 14px;
}

.a4-sheet__body .box-label {
  font-size: var(--a4-font-label);
  margin-bottom: 6px;
}

.a4-sheet__body .box-list li {
  font-size: var(--a4-font-body);
  line-height: 1.45;
  padding: 3px 0 3px 12px;
}

.a4-sheet__body .stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.a4-sheet__body .stat {
  padding: 10px 12px;
}

.a4-sheet__body .stat-value {
  font-size: var(--a4-font-stat);
  line-height: 1.2;
}

.a4-sheet__body .stat-label {
  font-size: var(--a4-font-label);
  margin-top: 2px;
}

.a4-sheet__body .stat-desc {
  font-size: var(--a4-font-caption);
  line-height: 1.35;
}

.a4-sheet__body .background-note,
.a4-sheet__body .section-note,
.a4-sheet__body .scope-summary,
.a4-sheet__body .ref-note,
.a4-sheet__body .ai-governance-note {
  padding: 10px 12px;
  margin-top: 0;
}

.a4-sheet__body .background-note h3,
.a4-sheet__body .section-note h3,
.a4-sheet__body .scope-summary h3,
.a4-sheet__body .ref-note h3,
.a4-sheet__body .ai-governance-note h3 {
  font-size: var(--a4-font-body-lg);
  margin-bottom: 6px;
}

.a4-sheet__body .background-note li,
.a4-sheet__body .section-note li,
.a4-sheet__body .scope-summary li,
.a4-sheet__body .ref-note li,
.a4-sheet__body .ai-governance-note li {
  font-size: var(--a4-font-body);
  line-height: 1.45;
}

.a4-sheet__body .card-grid:not(.card-grid--a4-compact):not(.card-grid--a4-compact-row) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.a4-sheet__body .card-grid:not(.card-grid--a4-compact) .card-img {
  aspect-ratio: auto;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
}

.a4-sheet__body .card-grid:not(.card-grid--a4-compact) .card-body {
  padding: 10px 12px;
}

.a4-sheet__body .card-grid:not(.card-grid--a4-compact) .card h3 {
  font-size: 11px;
  margin-bottom: 4px;
}

.a4-sheet__body .card-grid:not(.card-grid--a4-compact) .card p {
  font-size: var(--a4-font-caption);
  line-height: 1.4;
}

.a4-sheet__body .ai-automation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.a4-sheet__body .ai-automation-grid .card-body {
  padding: 10px 12px;
}

.a4-sheet__body .ai-automation-grid .card h3 {
  font-size: 11px;
}

.a4-sheet__body .ai-automation-grid .card p {
  font-size: var(--a4-font-caption);
  line-height: 1.4;
}

.a4-sheet__body .package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.a4-sheet__body .package {
  padding: 12px 14px;
}

.a4-sheet__body .package-tier {
  font-size: var(--a4-font-label);
}

.a4-sheet__body .package h3 {
  font-size: 13px;
  margin: 4px 0;
}

.a4-sheet__body .package-price {
  font-size: 18px;
}

.a4-sheet__body .package-features li {
  font-size: var(--a4-font-caption);
  line-height: 1.35;
  padding: 2px 0;
}

.a4-sheet__body .process-track {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.a4-sheet__body .process-phase {
  padding: 0 4px;
}

.a4-sheet__body .process-phase h3 {
  font-size: 11px;
  margin: 4px 0;
}

.a4-sheet__body .process-phase p {
  font-size: var(--a4-font-caption);
  line-height: 1.35;
}

.a4-sheet__body .process-phase-dur {
  font-size: var(--a4-font-caption);
}

.a4-sheet__body .process-deliverables li {
  font-size: 8px;
  line-height: 1.3;
}

.a4-sheet__body .process-gantt-title {
  font-size: 11px;
  margin-bottom: 6px;
}

.a4-sheet__body .gantt-chart {
  font-size: 8px;
  gap: 4px;
}

.a4-sheet__body .gantt-chart-head,
.a4-sheet__body .gantt-chart-row {
  gap: 4px;
}

.a4-sheet__body .gantt-chart-label {
  font-size: 8px;
  min-width: 52px;
}

.a4-sheet__body .gantt-bar {
  height: 14px;
}

.a4-sheet__body .process-note {
  font-size: var(--a4-font-caption);
  line-height: 1.4;
  margin-top: 6px;
}

.a4-sheet__body .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.a4-sheet__body .step {
  padding: 10px 12px;
}

.a4-sheet__body .step h4 {
  font-size: 11px;
  margin-bottom: 4px;
}

.a4-sheet__body .step p {
  font-size: var(--a4-font-caption);
  line-height: 1.4;
}

.a4-sheet__body .ref-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.a4-sheet__body .ref-grid--a4-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.a4-sheet__body .ref-thumb {
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  aspect-ratio: auto;
}

.a4-sheet__body .ref-thumb img {
  min-height: 0;
  height: 100%;
  object-fit: cover;
}

.a4-sheet__body .ref-body {
  padding: 8px 10px;
}

.a4-sheet__body .ref-body h4 {
  font-size: 11px;
  margin-bottom: 3px;
}

.a4-sheet__body .ref-body p {
  font-size: var(--a4-font-caption);
  line-height: 1.35;
}

.a4-sheet__body .stack-list {
  gap: 6px;
  margin-top: 8px;
}

.a4-sheet__body .stack-chip {
  font-size: var(--a4-font-caption);
  padding: 3px 8px;
}

.a4-sheet__body .company-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.a4-sheet__body .company-values {
  gap: 8px;
}

.a4-sheet__body .company-value {
  padding: 10px 12px;
}

.a4-sheet__body .company-value h4 {
  font-size: var(--a4-font-body);
}

.a4-sheet__body .company-intro {
  font-size: var(--a4-font-body-lg);
  color: var(--text-sub);
  line-height: var(--a4-line);
  margin-bottom: 12px;
}

.a4-sheet__body .company-intro-note {
  font-size: var(--a4-font-body);
  color: var(--text-muted);
  line-height: var(--a4-line);
  margin-bottom: 12px;
}

.a4-sheet__body .company-value h3 {
  font-size: var(--a4-font-body);
}

.a4-sheet__body .company-value p {
  font-size: var(--a4-font-caption);
  line-height: 1.4;
}

.a4-sheet__body .company-info p {
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet__body .cta-contacts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.a4-sheet__body .cta-item {
  padding: 10px 12px;
}

.a4-sheet__body .cta-item h3 {
  font-size: 11px;
}

.a4-sheet__body .cta-item p {
  font-size: var(--a4-font-label);
}

.a4-sheet__body .cta-next,
.a4-sheet__body .cta-commitments {
  padding: 10px 12px;
  margin-bottom: 8px;
}

.a4-sheet__body .cta-next h3,
.a4-sheet__body .cta-commitments h3 {
  font-size: 11px;
  margin-bottom: 6px;
}

.a4-sheet__body .cta-next li,
.a4-sheet__body .cta-commitments li {
  font-size: var(--a4-font-label);
  line-height: 1.4;
}

.a4-sheet__body .cta-note {
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet--scaled .a4-sheet__body {
  overflow: hidden;
}

.a4-measure-stage .a4-sheet__body {
  overflow: visible;
}

@media print {
  html,
  html.a4-embedded,
  html.a4-print,
  body,
  html.a4-embedded body,
  html.a4-print body {
    overflow: visible !important;
    height: auto !important;
    background: #fff !important;
  }

  html.a4-embedded .a4-layout,
  html.a4-print .a4-layout,
  .a4-layout {
    overflow: visible !important;
    height: auto !important;
    background: #fff !important;
  }

  .page {
    display: none !important;
  }

  .a4-document {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    gap: 0 !important;
    transform: none !important;
  }

  .a4-sheet {
    width: var(--a4-sheet-width-px, 210mm) !important;
    height: var(--a4-sheet-height-px, 297mm) !important;
    min-height: var(--a4-sheet-height-px, 297mm) !important;
    max-height: var(--a4-sheet-height-px, 297mm) !important;
    margin: 0 auto !important;
    padding: var(--a4-sheet-margin-px, var(--a4-margin-mm, 0mm)) !important;
    box-shadow: none !important;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .a4-sheet:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .a4-sheet__body {
    transform: none !important;
    overflow: hidden !important;
  }

  .section--primary {
    background: var(--primary) !important;
    color: #fff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

html.a4-print,
html.a4-print body,
html.a4-print .a4-layout {
  overflow: visible !important;
  height: auto !important;
  background: #fff !important;
}

html.a4-print .a4-document {
  display: block !important;
  padding: 0 !important;
  gap: 0 !important;
  transform: none !important;
}

html.a4-print .a4-sheet {
  box-shadow: none !important;
}

/* Capture / PDF: shadow only (layout matches page view) */
html.a4-capture .a4-sheet {
  box-shadow: none !important;
}

html.a4-capture .a4-sheet__body {
  transform: none !important;
}

html.a4-capture .section--primary {
  background: var(--primary) !important;
  color: #fff !important;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html.a4-capture * {
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* A4 sheets: proposal.html @media / vw must not alter paginated layout */
body.a4-layout .a4-sheet__body .cover {
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  overflow: hidden !important;
}

body.a4-layout .a4-sheet__body .cover-title {
  font-size: var(--a4-font-cover-title) !important;
}

body.a4-layout .a4-sheet__body .cover-copy {
  max-width: 56% !important;
  padding: 26px 24px 12px !important;
}

body.a4-layout .a4-sheet__body .package-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.a4-layout .a4-sheet__body .process-track {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.a4-layout .a4-sheet__body .steps {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

body.a4-layout .a4-sheet__body .company-grid {
  grid-template-columns: 1fr 1fr !important;
}

body.a4-layout .a4-sheet__body .ai-automation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.a4-layout .a4-sheet__body .split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.a4-layout .a4-sheet__body .index-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Solutions 01–06: single A4 page, 3×2 grid filling sheet height */
.a4-sheet__body:has(.card-grid--a4-compact) {
  display: flex;
  flex-direction: column;
}

.a4-sheet__body .a4-section-chunk--solutions,
.a4-sheet__body #solutions.a4-section-chunk--solutions,
.a4-sheet__body #solutions:has(.card-grid--a4-compact) {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

.a4-sheet__body .a4-section-chunk--solutions .section-desc,
.a4-sheet__body #solutions .section-desc {
  margin-bottom: 16px;
  font-size: 13px;
  line-height: 1.55;
  max-width: none;
}

.a4-sheet__body .card-grid--a4-compact,
.a4-sheet__body .card-grid--a4-compact-row,
.a4-measure-stage .card-grid--a4-compact,
.a4-measure-stage .card-grid--a4-compact-row {
  flex: 0 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: 10px;
  align-content: start;
  min-height: 0;
}

.a4-sheet__body .card-grid--a4-compact-row,
.a4-measure-stage .card-grid--a4-compact-row {
  grid-template-rows: minmax(0, 1fr);
}

.a4-sheet__body .card-grid--a4-compact .card,
.a4-sheet__body .card-grid--a4-compact-row .card,
.a4-measure-stage .card-grid--a4-compact .card,
.a4-measure-stage .card-grid--a4-compact-row .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  height: auto;
  box-shadow: 0 1px 2px rgba(15, 20, 25, 0.04);
}

.a4-sheet__body .card-grid--a4-compact .card-img,
.a4-sheet__body .card-grid--a4-compact-row .card-img,
.a4-measure-stage .card-grid--a4-compact .card-img,
.a4-measure-stage .card-grid--a4-compact-row .card-img {
  aspect-ratio: auto;
  flex: 0 0 48px;
  width: 100%;
  min-height: 48px;
  max-height: 48px;
  height: 48px;
  background: linear-gradient(180deg, #edf3ff 0%, #f9fbff 100%);
  border-bottom: 1px solid var(--border);
}

.a4-sheet__body .card-grid--a4-compact .card-img img,
.a4-sheet__body .card-grid--a4-compact-row .card-img img,
.a4-measure-stage .card-grid--a4-compact .card-img img,
.a4-measure-stage .card-grid--a4-compact-row .card-img img {
  min-height: 0;
  height: 100%;
  width: 100%;
  object-fit: contain;
  padding: 3px 8px;
}

.a4-sheet__body .card-grid--a4-compact .card-body,
.a4-sheet__body .card-grid--a4-compact-row .card-body,
.a4-measure-stage .card-grid--a4-compact .card-body,
.a4-measure-stage .card-grid--a4-compact-row .card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  min-height: 0;
}

.a4-sheet__body .card-grid--a4-compact .card-num,
.a4-sheet__body .card-grid--a4-compact-row .card-num,
.a4-measure-stage .card-grid--a4-compact .card-num,
.a4-measure-stage .card-grid--a4-compact-row .card-num {
  font-family: var(--font-display);
  font-size: var(--a4-font-label);
  margin-bottom: 4px;
}

.a4-sheet__body .card-grid--a4-compact .card h3,
.a4-sheet__body .card-grid--a4-compact-row .card h3,
.a4-measure-stage .card-grid--a4-compact .card h3,
.a4-measure-stage .card-grid--a4-compact-row .card h3 {
  font-family: var(--font-display);
  font-size: 12px;
  margin-bottom: 4px;
  line-height: 1.3;
}

.a4-sheet__body .card-grid--a4-compact .card p,
.a4-sheet__body .card-grid--a4-compact-row .card p,
.a4-measure-stage .card-grid--a4-compact .card p,
.a4-measure-stage .card-grid--a4-compact-row .card p {
  font-family: var(--font-body);
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet__body .card-grid--a4-compact .card-deliverables,
.a4-sheet__body .card-grid--a4-compact-row .card-deliverables,
.a4-measure-stage .card-grid--a4-compact .card-deliverables,
.a4-measure-stage .card-grid--a4-compact-row .card-deliverables {
  margin-top: 6px;
  padding-top: 4px;
  gap: 2px;
}

.a4-sheet__body .card-grid--a4-compact .card-deliverables li,
.a4-sheet__body .card-grid--a4-compact-row .card-deliverables li,
.a4-measure-stage .card-grid--a4-compact .card-deliverables li,
.a4-measure-stage .card-grid--a4-compact-row .card-deliverables li {
  font-family: var(--font-body);
  font-size: var(--a4-font-caption);
  padding-left: 10px;
  line-height: 1.35;
}

.a4-sheet__body .card-grid--a4-compact .card-tags,
.a4-sheet__body .card-grid--a4-compact-row .card-tags,
.a4-measure-stage .card-grid--a4-compact .card-tags,
.a4-measure-stage .card-grid--a4-compact-row .card-tags {
  margin-top: 6px;
  gap: 4px;
}

.a4-sheet__body .card-grid--a4-compact .tag,
.a4-sheet__body .card-grid--a4-compact-row .tag,
.a4-measure-stage .card-grid--a4-compact .tag,
.a4-measure-stage .card-grid--a4-compact-row .tag {
  font-size: 8px;
  padding: 1px 5px;
}

/* ── Page-specific A4 compact layout (no flex stretch) ── */
.a4-sheet--cover .cover-meta div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}

.a4-sheet--cover .cover-meta dt {
  margin-bottom: 0;
  flex-shrink: 0;
}

.a4-sheet--cover .cover-meta dd {
  word-break: keep-all;
  line-height: 1.35;
  white-space: normal;
  font-size: 12px;
}

.a4-sheet__body .a4-banner {
  width: 100%;
  height: 96px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.a4-sheet__body .a4-banner img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.a4-sheet--index .index-overview {
  margin-bottom: 12px;
}

.a4-sheet--index .index-overview-card {
  padding: 12px 14px;
}

.a4-sheet--index .index-overview-card p {
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet--index .index-grid {
  gap: 6px;
}

.a4-sheet--index .index-item {
  padding: 10px 12px;
}

.a4-sheet--index .index-text strong {
  font-size: 12px;
}

.a4-sheet--index .index-text span {
  font-size: var(--a4-font-label);
}

.a4-sheet--index .index-footer {
  margin-top: 10px;
  padding: 10px 12px;
}

.a4-sheet--index .index-footer h3 {
  font-size: 12px;
  margin-bottom: 8px;
}

.a4-sheet--index .index-footer li {
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet--background .background-banner {
  height: 84px;
}

.a4-sheet--background .split-grid {
  margin-bottom: 12px;
}

.a4-sheet--solutions .solutions-summary {
  margin-top: 10px;
  padding: 10px 12px;
}

.a4-sheet--solutions .solutions-summary p {
  font-size: var(--a4-font-label);
  line-height: 1.45;
  margin: 0;
}

.a4-sheet--ai .ai-automation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.a4-sheet--ai .ai-automation-card {
  padding: 12px 14px;
}

.a4-sheet--ai .ai-automation-card h3 {
  font-size: 12px;
  margin-bottom: 6px;
}

.a4-sheet--ai .ai-automation-card p {
  font-size: var(--a4-font-label);
  line-height: 1.45;
  margin-bottom: 8px;
}

.a4-sheet--ai .ai-automation-card li {
  font-size: var(--a4-font-caption);
  line-height: 1.35;
}

.a4-sheet--effects .effects-banner {
  height: 84px;
}

.a4-sheet--effects .effects-kpi-row .card-body {
  padding: 12px 14px;
}

.a4-sheet--effects .effects-kpi-row .card h3 {
  font-size: 12px;
  word-break: keep-all;
}

.a4-sheet--effects .effects-kpi-row .card p {
  font-size: var(--a4-font-label);
  line-height: 1.45;
  word-break: keep-all;
}

.a4-sheet--effects .effects-summary {
  margin-top: 10px;
  padding: 10px 12px;
}

.a4-sheet--effects .effects-summary li {
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet--packages .package-note {
  margin-top: 10px;
  padding: 10px 12px;
}

.a4-sheet--packages .package-note li {
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet--references .ref-metrics {
  margin-top: 10px;
}

.a4-sheet--references .ref-metrics .stat-value {
  font-size: 22px;
}

.a4-sheet--references .ref-metrics .stat-label {
  font-size: 11px;
}

.a4-sheet--references .ref-metrics .stat-desc {
  font-size: var(--a4-font-caption);
}

.a4-sheet--references .ref-grid {
  margin-bottom: 10px;
}

.a4-sheet--references .ref-note {
  margin-bottom: 8px;
}

.a4-sheet--company .company-visual {
  height: 140px;
  margin-top: 10px;
}

.a4-sheet--company .company-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a4-sheet--company .company-footer {
  margin-top: 10px;
  padding: 10px 12px;
}

.a4-sheet--company .company-footer li {
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet--contact .a4-sheet__body > .section--primary {
  height: 100%;
  box-sizing: border-box;
  padding: 4px 0 0;
  gap: 12px;
}

.a4-sheet--contact .section-desc {
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 4px;
}

.a4-sheet--contact .cta-contacts {
  margin-bottom: 4px;
}

.a4-sheet--contact .cta-item dd {
  font-size: 13px;
}

.a4-sheet--contact .cta-next {
  padding: 12px 14px;
}

.a4-sheet--contact .cta-steps li {
  font-size: 11px;
  line-height: 1.45;
  padding: 8px 10px;
}

.a4-sheet--contact .cta-commitments {
  gap: 8px;
}

.a4-sheet--contact .cta-commitment {
  padding: 10px 12px;
  font-size: var(--a4-font-label);
  line-height: 1.45;
}

.a4-sheet--contact .cta-note {
  font-size: 11px;
  margin-top: 4px;
  padding-top: 8px;
}

.a4-sheet--process .process-track {
  margin-bottom: 10px;
}

.a4-sheet--process .process-gantt {
  margin-bottom: 8px;
}

.a4-sheet__body .card p,
.a4-sheet__body .card h3,
.a4-sheet__body .stat-label,
.a4-sheet__body .index-text strong {
  word-break: keep-all;
}

/* PDF/html2canvas export: capture-only chrome */
html.a4-capture .a4-sheet__body {
  transform: none !important;
}

.a4-sheet__body .section-title--sub {
  font-size: var(--a4-font-title-sm);
  margin-bottom: 6px;
}

.a4-sheet__body .ai-automation-banner {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #edf3ff 0%, #fff 100%);
}

.a4-sheet__body .ai-automation-banner img {
  display: block;
  width: 100%;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  padding: 4px 10px;
}

.a4-sheet__body .card-img,
.a4-sheet__body .ref-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #edf3ff 0%, #f9fbff 100%);
}

.a4-sheet__body .card-img img,
.a4-sheet__body .ref-thumb img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
  padding: 4px 8px;
}

.a4-sheet__body .a4-banner {
  height: 64px;
  margin-bottom: 8px;
  border: none;
  background: transparent;
}

.a4-sheet__body .a4-banner img {
  object-fit: contain;
  object-position: left center;
}

.a4-sheet__body .effects-stats {
  margin-bottom: 8px;
}

.a4-sheet__body .effects-kpi-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.a4-sheet__body .effects-kpi-row .card-body {
  padding: 10px 12px;
}

.a4-sheet__body .effects-kpi-row .card h3 {
  font-size: var(--a4-font-body-lg);
}

.a4-sheet__body .process-gantt {
  display: none;
}

.a4-sheet__body .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.a4-sheet__body .steps .step {
  padding: 8px 10px;
}

.a4-sheet__body .steps .step h4 {
  font-size: var(--a4-font-body-lg);
  margin-bottom: 4px;
}

.a4-sheet__body .steps .step p {
  font-size: var(--a4-font-body);
  line-height: var(--a4-line);
}

.a4-sheet__body .ref-grid--compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.a4-sheet__body .ref-grid--compact .ref-thumb {
  min-height: 52px;
  max-height: 52px;
}

.a4-sheet__body .ref-grid--compact .ref-thumb img {
  height: 52px;
}

.a4-sheet__body .ref-grid--compact .ref-body {
  padding: 8px 10px;
}

.a4-sheet__body .ref-grid--compact .ref-body h4 {
  font-size: var(--a4-font-body);
  margin-bottom: 2px;
}

.a4-sheet__body .ref-grid--compact .ref-body p {
  font-size: 12px;
  line-height: 1.4;
}

.a4-sheet__body .solutions-ref-block {
  margin-top: 10px;
}

.a4-sheet__body .solutions-ref-block .section-title--sub {
  font-size: var(--a4-font-title-sm);
  margin-bottom: 4px;
}

.a4-sheet__body .solutions-ref-block .section-desc {
  margin-bottom: 8px;
  font-size: var(--a4-font-body);
}

.a4-sheet__body .solutions-ref-block .overview-divider {
  margin-bottom: 10px;
}

.a4-sheet__body .company-info--compact {
  margin-top: 0;
  padding: 10px 12px;
  background: var(--secondary);
  border: 1px solid var(--border);
}

.a4-sheet__body .company-info--compact dl {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 12px;
}

.a4-sheet__body .company-info--compact dt {
  font-size: var(--a4-font-caption);
  color: var(--text-muted);
}

.a4-sheet__body .company-info--compact dd {
  font-size: var(--a4-font-body);
  line-height: var(--a4-line);
}

/* ── Marketing proposal (mkt-doc) A4 overrides ── */
.a4-sheet__body .mkt-doc .cover {
  display: block;
  min-height: auto;
}

.a4-sheet__body .mkt-doc .cover-inner {
  display: block;
}

.a4-sheet__body .mkt-doc .cover-copy {
  padding: 24px 20px 12px;
}

.a4-sheet__body .mkt-doc .cover-title-line {
  font-size: 26px;
}

.a4-sheet__body .mkt-doc .cover-visual {
  min-height: auto;
  padding: 12px 20px 16px;
}

.a4-sheet__body .mkt-doc .cover-sheet {
  display: none;
}

.a4-sheet__body .mkt-doc .cover-viewport {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.a4-sheet__body .mkt-doc .cover-viewport-shot {
  aspect-ratio: 16 / 10;
  max-height: 160px;
}

.a4-sheet__body .mkt-doc .cover-viewport-shot img {
  height: 100%;
}

.a4-sheet__body .mkt-doc .cover-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.a4-sheet__body .mkt-doc .manifest {
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 16px 20px 20px;
}

.a4-sheet__body .mkt-doc .spec-sheet-header {
  display: none;
}

.a4-sheet__body .mkt-doc .spec-row {
  grid-template-columns: 56px 1fr;
  gap: 8px;
  padding: 14px 16px;
}

.a4-sheet__body .mkt-doc .spec-row .spec-desc,
.a4-sheet__body .mkt-doc .spec-row .spec-deliverables {
  grid-column: 1 / -1;
}

.a4-sheet__body .mkt-doc .package {
  grid-template-columns: 56px 1fr;
  gap: 12px;
  padding: 16px;
}

.a4-sheet__body .mkt-doc .package-list {
  grid-column: 1 / -1;
  grid-template-columns: 1fr 1fr;
}

.a4-sheet__body .mkt-doc .ref-card {
  break-inside: avoid;
}

.a4-sheet__body .mkt-doc .ref-domain {
  display: none;
}

.a4-sheet__body .mkt-doc .process-track {
  grid-template-columns: repeat(2, 1fr);
}

.a4-sheet__body .mkt-doc .section-title {
  font-size: var(--a4-font-title);
}

.a4-sheet__body .mkt-doc .ref-shot {
  aspect-ratio: 16 / 9;
  max-height: 140px;
}

.a4-sheet__body .mkt-doc .ref-shot img {
  height: 100%;
}

.a4-sheet__body .mkt-doc .shot-mosaic img {
  height: 72px;
}

.a4-sheet__body .mkt-doc .visual-band img {
  height: 120px;
}

.a4-sheet__body .mkt-doc .bp-hatch-overlay::before {
  display: none;
}

html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .cover-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .cover-sheet {
  display: block;
  opacity: 0.35;
}

html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .spec-sheet-header {
  display: grid;
  grid-template-columns: 56px 1fr 1.5fr 1fr;
  font-size: 8px;
}

html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .spec-row {
  grid-template-columns: 56px 1fr 1.5fr 1fr;
}

html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .spec-row .spec-desc,
html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .spec-row .spec-deliverables {
  grid-column: auto;
}

html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .ref-grid {
  grid-template-columns: repeat(3, 1fr);
}

html[data-a4-orientation="landscape"] .a4-sheet__body .mkt-doc .process-track {
  grid-template-columns: repeat(4, 1fr);
}
