/* ========================================
   Reset & Base
   ======================================== */

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

html {
  font-size: 13pt;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #222;
  background: #d4d4d4;
  line-height: 1.55;
}

a {
  color: #1a5fb4;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================================
   A4 Page Shell
   ======================================== */

.page {
  position: relative;
  width: 210mm;
  min-height: 297mm;
  margin: 20px auto;
  padding: 16mm 18mm;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

/* ========================================
   Cover
   ======================================== */

.cover {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #fafafa;
  min-height: 297mm;
  page-break-after: always;
}

.cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('pt-bg.png') center/cover no-repeat;
  opacity: .04;
  pointer-events: none;
}

.cover-content {
  position: relative;
  max-width: 420px;
}

.cover-logo {
  display: block;
  max-width: 220px;
  height: auto;
  margin: 0 auto 28px;
}

.cover-label {
  font-size: .82rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #888;
  margin-bottom: 14px;
}

.cover h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 16px;
  line-height: 1.25;
}

.cover-subtitle {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 32px;
}

.cover-meta {
  border-top: 1px solid #ddd;
  padding-top: 18px;
}

.cover-meta p {
  font-size: .9rem;
  color: #777;
  margin-bottom: 3px;
}

/* ========================================
   Section Titles
   ======================================== */

h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1.5px solid #ccc;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
  margin-top: 16px;
  margin-bottom: 8px;
}

h4 {
  font-size: .95rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 3px;
}

p {
  margin-bottom: 8px;
  color: #444;
  font-size: .95rem;
}

ul {
  margin-bottom: 10px;
  padding-left: 18px;
}

li {
  margin-bottom: 3px;
  color: #444;
  font-size: .92rem;
}

/* ========================================
   Principles (2x2 grid)
   ======================================== */

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.principle-card {
  padding: 12px 14px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
}

.principle-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1a5fb4;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.principle-card h4 {
  margin-bottom: 2px;
}

.principle-card p {
  font-size: .8rem;
  color: #555;
  margin-bottom: 0;
}

/* ========================================
   Tables (Modern, Clean & Fit A4)
   ======================================== */

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 12px;
  font-size: .8rem;
}

th,
td {
  padding: 6px 10px;
  text-align: left;
  vertical-align: top;
  line-height: 1.45;
  color: #334155;
}

thead th {
  background: #0f2b5c;
  color: #ffffff;
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: 0.3px;
  border: none;
}

.extras-table,
.catalog-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 12px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  overflow: hidden;
  background: #ffffff;
}

.extras-table thead th,
.catalog-table thead th {
  background: #0d3b7a;
  color: #ffffff;
  font-weight: 600;
  font-size: .78rem;
  padding: 7px 10px;
  border-bottom: 1.5px solid #08244d;
}

.extras-table tbody tr:nth-child(even),
.catalog-table tbody tr:nth-child(even) {
  background-color: #f8fafc;
}

.extras-table td,
.catalog-table td {
  padding: 4.5px 8px;
  font-size: .77rem;
  line-height: 1.4;
  border-bottom: 1px solid #e2e8f0;
  white-space: normal !important;
}

.extras-table td:first-child,
.catalog-table td:first-child {
  font-weight: 600;
  color: #0f172a;
  width: 28%;
  border-right: 1px solid #e2e8f0;
}

.extras-table td:last-child,
.catalog-table td:last-child,
.extras-table td:nth-child(2),
.catalog-table td:nth-child(2) {
  color: #334155 !important;
  font-weight: 400;
}

.extras-table tbody tr:last-child td,
.catalog-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  color: #666;
  width: 46%;
}

.comparison-table td:last-child {
  color: #222;
  font-weight: 500;
}

.info-table {
  margin-bottom: 16px;
}

.info-label {
  font-weight: 600;
  color: #222;
  width: 110px;
  white-space: nowrap;
}

.table-note {
  font-size: .76rem;
  color: #64748b;
  margin-top: -4px;
  margin-bottom: 10px;
}

/* ========================================
   Product Cards (compact, 2-3 per page)
   ======================================== */

.product {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8e8e8;
}

.product:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 6px;
}

.product-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: #aaa;
  flex-shrink: 0;
  min-width: 24px;
}

.product-header h3 {
  margin: 0;
  font-size: .92rem;
  font-weight: 700;
  color: #111;
  flex-grow: 1;
}

.product-price {
  font-size: .82rem;
  font-weight: 600;
  color: #1a5fb4;
  white-space: nowrap;
  flex-shrink: 0;
}

.product-desc {
  font-size: .82rem;
  color: #555;
  margin-bottom: 6px;
  margin-left: 36px;
}

.product-features {
  margin-left: 36px;
  padding-left: 16px;
  margin-bottom: 6px;
}

.product-features li {
  font-size: .8rem;
  color: #555;
  margin-bottom: 2px;
}

.product-note-inline {
  margin-left: 36px;
  font-size: .78rem;
  color: #92400e;
  background: #fffbeb;
  border-left: 2px solid #d97706;
  padding: 5px 10px;
  border-radius: 0 3px 3px 0;
  margin-top: 4px;
}

/* ========================================
   Two Column
   ======================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 10px;
}

.two-col h3 {
  margin-top: 0;
}

/* ========================================
   Steps (inline)
   ======================================== */

.steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.step {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  background: #fafafa;
}

.step-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1a5fb4;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
}

.step h4 {
  margin-bottom: 1px;
  font-size: .82rem;
}

.step p {
  font-size: .75rem;
  color: #666;
  margin-bottom: 0;
}

/* ========================================
   Extras Table
   ======================================== */

.extras-table td:first-child {
  font-weight: 500;
  white-space: nowrap;
  color: #222;
}

.extras-table td:last-child {
  white-space: nowrap;
  font-weight: 500;
  color: #1a5fb4;
}

/* ========================================
   Contact
   ======================================== */

.contact-logo {
  display: block;
  width: 52px;
  height: auto;
  margin: 0 auto 10px;
  border-radius: 6px;
}

.contact-box {
  padding: 18px 24px;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 14px;
  text-align: center;
}

.contact-name {
  font-size: .95rem;
  font-weight: 600;
  color: #111;
}

.contact-box p {
  color: #555;
  margin-bottom: 3px;
  font-size: .85rem;
}

.contact-box a {
  color: #1a5fb4;
  font-weight: 500;
}

.contact-note {
  font-size: .82rem;
  color: #777;
  text-align: center;
}

/* ========================================
   Print Button
   ======================================== */

.print-actions {
  text-align: center;
  padding: 16px;
}

.print-actions button {
  padding: 10px 28px;
  font-size: .88rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #1a5fb4;
  border: 1px solid #155a9c;
  border-radius: 4px;
  cursor: pointer;
  transition: background .15s;
}

.print-actions button:hover {
  background: #155a9c;
}

/* ========================================
   Print
   ======================================== */

.print-header,
.print-footer {
  display: none !important;
}

@media print {
  html {
    font-size: 11pt;
  }

  body {
    background: #fff;
    margin: 0;
  }

  .no-print {
    display: none !important;
  }

  .page {
    width: 100%;
    margin: 0;
    padding: 8mm 15mm;
    box-shadow: none;
    min-height: auto;
    border: none;
  }

  .cover {
    min-height: 100vh;
    page-break-after: always;
  }

  .cover::before {
    opacity: .04;
  }

  .product {
    page-break-inside: avoid;
  }

  .contact-box {
    page-break-inside: avoid;
  }

  .principles {
    page-break-inside: avoid;
  }

  .steps {
    page-break-inside: avoid;
  }




  .two-col {
    page-break-inside: avoid;
  }
}

@page {
  size: A4;
  margin: 10mm 8mm;
}

/* ========================================
   Layanan Premium Table
   ======================================== */

.premium-table td:first-child {
  font-weight: 600;
  color: #111;
}

.premium-table td:nth-child(2) {
  color: #334155;
}

.premium-table td:nth-child(3) {
  white-space: nowrap;
  font-weight: 500;
  color: #1a5fb4;
}

.premium-label {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #1a5fb4;
  background: #e8f0fe;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ========================================
   Program Mitra (Promo Section)
   ======================================== */

.promo-section {
  background: #f0f5ff;
  border: 1.5px solid #c4d6f0;
  border-radius: 6px;
  padding: 20px 22px;
  margin-top: 16px;
  margin-bottom: 16px;
  page-break-inside: avoid;
}

.promo-badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #fff;
  background: #1a5fb4;
  padding: 4px 12px;
  border-radius: 3px;
  margin-bottom: 10px;
}

.promo-section h3 {
  margin-top: 4px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0d3b7a;
  margin-bottom: 8px;
}

.promo-section p {
  color: #2c4a70;
}

.promo-benefits {
  list-style: none;
  padding-left: 0;
  margin-bottom: 12px;
}

.promo-benefits li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 5px;
  font-size: .85rem;
  color: #1e3a5f;
}

.promo-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
  color: #1a5fb4;
}

.promo-capacity {
  font-size: .82rem;
  font-weight: 600;
  color: #92400e;
  background: #fffbeb;
  border-left: 3px solid #d97706;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  margin-top: 8px;
}

.price-strike {
  text-decoration: line-through;
  color: #999;
  font-weight: 400;
}

.price-promo {
  font-weight: 700;
  color: #1a5fb4;
}

/* ========================================
   Cost of Inaction Callout
   ======================================== */

.coi-callout {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 4px;
  padding: 12px 16px;
  margin-bottom: 14px;
  page-break-inside: avoid;
}

.coi-callout p {
  font-size: .82rem;
  color: #78350f;
  margin-bottom: 4px;
}

.coi-callout strong {
  color: #92400e;
}

/* ========================================
   Enhanced CTA
   ======================================== */

.cta-highlight {
  text-align: center;
  padding: 16px 20px;
  background: #f0f5ff;
  border: 1.5px solid #c4d6f0;
  border-radius: 6px;
  margin-top: 14px;
  page-break-inside: avoid;
}

.cta-highlight p {
  color: #1e3a5f;
  font-size: .88rem;
  margin-bottom: 6px;
}

.cta-highlight .cta-main {
  font-size: 1rem;
  font-weight: 700;
  color: #0d3b7a;
  margin-bottom: 4px;
}

.cta-highlight .cta-sub {
  font-size: .78rem;
  color: #5b7da5;
}

/* ========================================
   Print
   ======================================== */

@media print {
  body { background: #fff; }
  .page { margin: 0; box-shadow: none; overflow: visible; break-before: always; page-break-before: always; }
  .page:first-child { break-before: auto; page-break-before: auto; }
  .no-print { display: none !important; }

  /* Jangan potong elemen di tengah */
  .svc-card, .principle-card, .vm-grid, .card,
  .legal-list, .step, .contact-box, .coi-callout,
  .promo-section, .vp-box, .product, .two-col,
  .premium-table, .comparison-table, .extras-table, .catalog-table,
  .info-table, .cta-highlight, .steps {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Heading jangan sendirian di bawah halaman */
  h2, h3 {
    break-after: avoid;
    page-break-after: avoid;
  }

  /* Tabel row jangan terpotong */
  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}