/* ============================================================
   CAPSLEY — Professional Proposal Stylesheet
   Routes Car Rental · Website Revamp Proposal
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
  --primary:       #0f172a;
  --primary-light:  #1e293b;
  --accent:        #2563eb;
  --accent-hover:  #1d4ed8;
  --accent-light:  #3b82f6;
  --accent-bg:     #eff6ff;
  --accent-subtle: #dbeafe;

  --text:          #334155;
  --text-light:    #64748b;
  --text-muted:    #94a3b8;
  --heading:       #0f172a;

  --border:        #e2e8f0;
  --border-light:  #f1f5f9;

  --bg:            #ffffff;
  --bg-alt:        #f8fafc;
  --bg-section:    #f1f5f9;

  --success:       #10b981;
  --success-bg:    #ecfdf5;
  --warning:       #f59e0b;
  --warning-bg:    #fffbeb;
  --danger:        #ef4444;

  --radius:        12px;
  --radius-sm:     8px;
  --radius-lg:     16px;
  --radius-xl:     24px;

  --shadow:        0 4px 24px rgba(15, 23, 42, 0.06);
  --shadow-md:     0 6px 32px rgba(15, 23, 42, 0.08);
  --shadow-lg:     0 10px 48px rgba(15, 23, 42, 0.12);
  --shadow-accent: 0 4px 20px rgba(37, 99, 235, 0.2);

  --font-sans:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:    'Playfair Display', Georgia, serif;

  --header-height: 72px;
  --max-width:     1120px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-alt);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--heading);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }

.serif { font-family: var(--font-serif); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.overline {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* ── Header / Navigation ──────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-icon {
  display: none;
}

.logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  padding: 0.5rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  white-space: nowrap;
}

nav a:hover { color: var(--accent); background: var(--accent-bg); }
nav a.active { color: var(--accent); background: var(--accent-bg); font-weight: 600; }

/* ── Main Container ────────────────────────────────────────── */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem 4rem;
}

.page-header {
  margin-bottom: 3rem;
}

.page-header .overline {
  margin-bottom: 0.75rem;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header .subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, transform 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-md);
}

.card-accent {
  border-left: 4px solid var(--accent);
}

.card-highlight {
  background: linear-gradient(135deg, var(--accent-bg) 0%, #faf5ff 100%);
  border-color: var(--accent-subtle);
}

/* ── Section Dividers ──────────────────────────────────────── */
.section {
  margin-bottom: 3rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-title .num {
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.5rem 0;
}

.divider-thick {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  margin: 3rem 0;
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
  font-size: 0.9rem;
}

thead {
  background: var(--primary);
  color: #fff;
}

thead th {
  padding: 1rem 1.25rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

tbody td {
  padding: 0.875rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 0; }

tbody tr:hover { background: var(--bg-alt); }

tfoot {
  background: var(--bg-alt);
  font-weight: 700;
}

tfoot td {
  padding: 1rem 1.25rem;
  border-top: 2px solid var(--primary);
}

.amount { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }

/* ── Badges & Pills ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-accent { background: var(--accent-bg); color: var(--accent); }
.badge-success { background: var(--success-bg); color: #047857; }
.badge-warning { background: var(--warning-bg); color: #92400e; }
.badge-primary { background: var(--primary); color: #fff; }

/* ── Feature List Items ────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--accent-subtle);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.feature-card h4 { margin-bottom: 0.5rem; }

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0;
  line-height: 1.6;
}

.feature-card .tag {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

/* icon background variants */
.icon-blue    { background: #eff6ff; color: #2563eb; }
.icon-purple  { background: #faf5ff; color: #7c3aed; }
.icon-green   { background: #ecfdf5; color: #059669; }
.icon-amber   { background: #fffbeb; color: #d97706; }
.icon-rose    { background: #fff1f2; color: #e11d48; }
.icon-cyan    { background: #ecfeff; color: #0891b2; }
.icon-slate   { background: #f1f5f9; color: #475569; }

/* ── Timeline ──────────────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15px;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-subtle), var(--border));
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 1;
}

.timeline-dot.completed { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-dot.current   { background: var(--accent);  box-shadow: 0 0 0 2px var(--accent), 0 0 0 6px rgba(37,99,235,0.15); }

.timeline-item h4 { margin-bottom: 0.25rem; }

.timeline-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.timeline-body {
  font-size: 0.9rem;
  color: var(--text-light);
}

.timeline-body ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
}

.timeline-body ul li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.timeline-body ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ── Summary Boxes ─────────────────────────────────────────── */
.summary-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.summary-box .big-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.summary-box .big-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ── Checklist ─────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0.6rem 0 0.6rem 2rem;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.9rem;
}

.checklist li:last-child { border-bottom: 0; }

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 20px;
  height: 20px;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── Page Navigation (prev/next) ───────────────────────────── */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  gap: 1rem;
}

.page-nav a {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  max-width: 280px;
}

.page-nav a:hover {
  border-color: var(--accent-subtle);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

.page-nav a .nav-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.page-nav a .nav-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--heading);
  margin-top: 0.15rem;
}

.page-nav .next { margin-left: auto; text-align: right; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
}

.footer strong { color: var(--text-light); }

/* ── Cover Page ────────────────────────────────────────────── */
.cover {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 40%, #0f172a 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cover::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.cover::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cover-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cover .doc-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 2rem;
}

.client-logo-wrapper {
  background: #ffffff;
  padding: 1rem 2rem;
  border-radius: var(--radius-lg);
  display: inline-block;
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.client-logo-wrapper img {
  max-height: 70px;
  width: auto;
  object-fit: contain;
}

.cover h1 {
  font-size: 3.25rem;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.cover h1 span {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cover .tagline {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3rem;
  line-height: 1.6;
}

.cover-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  text-align: left;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.cover-meta .meta-group h5 {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.cover-meta .meta-group p {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
  font-weight: 500;
}

.cover-meta .meta-group p.small {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 400;
}

/* ── Table of Contents ─────────────────────────────────────── */
.toc {
  max-width: 560px;
  margin: 0 auto 3rem;
}

.toc-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.2s;
}

.toc-item:hover { padding-left: 0.5rem; }

.toc-item .toc-num {
  width: 28px;
  height: 28px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 1rem;
  flex-shrink: 0;
}

.toc-item .toc-label {
  flex: 1;
  font-weight: 500;
  color: var(--heading);
}

.toc-item .toc-page {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Signature Block ───────────────────────────────────────── */
.sig-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 2rem;
}

.sig-block {
  border-top: 2px solid var(--primary);
  padding-top: 1.5rem;
}

.sig-block .sig-line {
  border-bottom: 1px solid var(--border);
  height: 60px;
  margin-bottom: 0.5rem;
}

.sig-block .sig-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.sig-block .sig-name {
  font-weight: 600;
  color: var(--heading);
  margin-top: 0.25rem;
}

/* ── Callout ───────────────────────────────────────────────── */
.callout {
  background: var(--accent-bg);
  border: 1px solid var(--accent-subtle);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.callout-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.callout p { margin: 0; font-size: 0.9rem; color: var(--text); }

.callout-warning {
  background: var(--warning-bg);
  border-color: #fde68a;
}

.callout-success {
  background: var(--success-bg);
  border-color: #a7f3d0;
}

/* ── Gantt-like bars ───────────────────────────────────────── */
.gantt-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.gantt-label {
  width: 140px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  flex-shrink: 0;
  text-align: right;
}

.gantt-track {
  flex: 1;
  height: 28px;
  background: var(--bg-section);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.gantt-fill {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}

.gantt-fill.blue   { background: linear-gradient(90deg, #2563eb, #3b82f6); }
.gantt-fill.purple { background: linear-gradient(90deg, #7c3aed, #8b5cf6); }
.gantt-fill.green  { background: linear-gradient(90deg, #059669, #10b981); }
.gantt-fill.amber  { background: linear-gradient(90deg, #d97706, #f59e0b); }
.gantt-fill.rose   { background: linear-gradient(90deg, #e11d48, #f43f5e); }
.gantt-fill.cyan   { background: linear-gradient(90deg, #0891b2, #06b6d4); }
.gantt-fill.slate  { background: linear-gradient(90deg, #475569, #64748b); }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .header-inner { padding: 0 1rem; }
  nav a { padding: 0.4rem 0.6rem; font-size: 0.78rem; }

  .main { padding: 2rem 1rem 3rem; }

  .cover h1 { font-size: 2.25rem; }
  .cover-meta { grid-template-columns: 1fr; gap: 1.25rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .summary-row  { grid-template-columns: 1fr 1fr; }
  .sig-grid     { grid-template-columns: 1fr; gap: 2rem; }

  .page-nav { flex-direction: column; }
  .page-nav a { max-width: 100%; }
  .page-nav .next { text-align: left; }

  .gantt-label { width: 100px; font-size: 0.7rem; }
}

@media (max-width: 480px) {
  nav { display: none; }
  .summary-row { grid-template-columns: 1fr; }
}

/* ── Print ─────────────────────────────────────────────────── */
@media print {
  .header, .footer, .page-nav { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  .cover { min-height: auto; padding: 3rem 2rem; }
  .feature-card:hover { transform: none; box-shadow: none; }

  .section { page-break-inside: avoid; }
  h2, h3 { page-break-after: avoid; }
  table { page-break-inside: avoid; }
}

/* ── Utilities ─────────────────────────────────────────────── */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }

/* Confidential watermark */
.watermark {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.06);
  font-weight: 700;
  transform: rotate(-5deg);
  pointer-events: none;
  z-index: 0;
}

/* ═══ PRINT LOGIC ═══ */
@media print {
  @page {
    size: A4;
    margin: 0;
  }
  
  html, body {
    width: 210mm !important;
    background: #ffffff !important;
    font-size: 11pt; /* slightly smaller base size for PDF */
  }
  
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .print-page {
    /* Flow natively as one continuous document without forced blank breaks */
    padding: 20mm 15mm;
    position: relative;
    box-sizing: border-box;
  }
  
  .cover-page {
    break-before: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
  }
  
  /* Make cover section take full page safely */
  .cover {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    padding-top: 40mm;
    padding-bottom: 20mm;
  }
  
  /* Ensure main block uses proper margins in PDF */
  .print-page .main {
    max-width: 100%;
    padding: 0;
    margin: 0;
  }
  
  .print-header {
    display: none !important;
  }
  
  .print-header-text {
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  
  /* Hide print header on the very first physical page using complex selectors if necessary or keep it.
     Actually, cover page covers the top anyway if it has a dark bg. */
  .cover {
    position: relative;
    z-index: 1001; /* covers header */
  }
  
  .table-wrap {
    page-break-inside: avoid;
  }
  
  .feature-card {
    page-break-inside: avoid;
  }
  
  .section {
    page-break-inside: avoid;
    margin-bottom: 10mm;
  }
  
  .footer {
    display: none;
  }
}
