:root {
  --brand-blue: #074f89;
  --brand-blue-deep: #063863;
  --brand-green: #8fbf45;
  --ink-strong: #11263e;
  --ink-normal: #233246;
  --ink-soft: #627285;
  --line: #d8e4ef;
  --line-soft: #e6eef6;
  --page-bg: #dfe5ec;
  --surface: #ffffff;
  --green-soft: #f5fcf7;
  --blue-soft: #f5f9ff;
  --purple-soft: #f9f4ff;
  --shadow: 0 18px 36px rgba(14, 33, 58, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--page-bg);
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--ink-normal);
  padding: 12px;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.action-bar {
  width: min(210mm, 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 auto 12px;
}

.back-home {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0b5ea3 0%, #074f89 100%);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(7, 79, 137, 0.24);
}

.download-pdf {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #9ecb49 0%, #7eab2d 100%);
  color: #ffffff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(126, 171, 45, 0.24);
}

.document-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.page {
  width: 210mm;
  height: 297mm;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 7.8mm 7mm 6.4mm;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-details {
  padding-top: 6.2mm;
}

.top-brand {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6mm;
  margin-bottom: 5.8mm;
}

.brand-logo {
  width: 46mm;
  height: auto;
  display: block;
}

.brand-copy {
  text-align: right;
}

.doc-label {
  margin: 0 0 1mm;
  color: #718193;
  font-size: 3mm;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.brand-tagline {
  margin: 0;
  color: var(--brand-blue);
  font-size: 4mm;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 1.4mm;
  color: var(--brand-green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 3mm;
  font-weight: 700;
}

.intro-banner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 5.2mm;
  padding: 4.6mm 5.2mm;
  border-radius: 4.4mm;
  background: linear-gradient(135deg, #0c4f8f 0%, #073b69 100%);
  color: #ffffff;
}

.intro-copy h1 {
  margin: 0;
  font-size: 8.7mm;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.intro-text {
  margin: 3.1mm 0 0;
  max-width: 94%;
  font-size: 3.3mm;
  line-height: 1.5;
  color: #e3edf8;
}

.intro-summary {
  border-left: 0.35mm solid rgba(255, 255, 255, 0.32);
  padding-left: 5mm;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.summary-title {
  margin: 0 0 2.8mm;
  font-size: 4.15mm;
  font-weight: 600;
}

.summary-list,
.solution-list,
.detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.summary-list {
  display: flex;
  flex-direction: column;
  gap: 2.5mm;
}

.summary-list li {
  position: relative;
  padding-left: 4mm;
  font-size: 3.2mm;
  line-height: 1.42;
  color: #e9f2fb;
}

.summary-list li::before,
.solution-list li::before,
.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3mm;
  width: 1.8mm;
  height: 1.8mm;
  border-radius: 50%;
  background: var(--brand-green);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3.6mm;
  border: 1px solid var(--line);
  border-radius: 3.5mm;
  overflow: hidden;
  background: #fbfdff;
}

.feature-item {
  text-align: center;
  padding: 2.6mm 2.1mm 2.2mm;
  border-right: 1px solid var(--line-soft);
}

.feature-item:last-child {
  border-right: 0;
}

.feature-icon {
  width: 8.3mm;
  height: 8.3mm;
  display: block;
  margin: 0 auto 1.7mm;
  object-fit: contain;
}

.feature-title {
  margin: 0 0 0.7mm;
  color: #24409b;
  font-size: 2.75mm;
  font-weight: 700;
}

.feature-copy {
  margin: 0;
  color: #27374a;
  font-size: 2.6mm;
  line-height: 1.32;
}

.solution-showcase {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3mm;
  margin-top: 4mm;
  align-items: start;
}

.solution-card {
  border: 1px solid var(--line);
  border-radius: 4.2mm;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.solution-card-ecommerce {
  background: linear-gradient(180deg, #f7fff9 0%, #f3fcf5 100%);
  border-color: #d7efdd;
}

.solution-card-api {
  background: linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
  border-color: #dce8fb;
}

.solution-card-business {
  background: linear-gradient(180deg, #fbf7ff 0%, #f7f2fd 100%);
  border-color: #e6d9f9;
}

.solution-visual img {
  width: 100%;
  display: block;
}

.solution-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0mm 3.7mm 3.6mm;
}

.solution-pill,
.detail-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 6.3mm;
  padding: 0 3mm;
  border-radius: 999px;
  border: 0.3mm solid currentColor;
  font-size: 2.45mm;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.pill-green,
.detail-pill-green {
  color: #24a064;
  background: #f4fff8;
}

.pill-blue,
.detail-pill-blue {
  color: #2a63dd;
  background: #f4f8ff;
}

.pill-purple,
.detail-pill-purple {
  color: #8a55d3;
  background: #fbf6ff;
}

.solution-body h2 {
  margin: 2.8mm 0 1.8mm;
  color: var(--ink-strong);
  font-size: 5.1mm;
  line-height: 1.14;
  font-weight: 700;
}

.solution-text {
  margin: 0;
  color: #58697a;
  font-size: 2.95mm;
  line-height: 1.53;
}

.solution-list {
  display: flex;
  flex-direction: column;
  gap: 2.1mm;
  margin-top: 2.8mm;
}

.solution-list li,
.detail-list li {
  position: relative;
  padding-left: 4.2mm;
  color: #2c3d4f;
  font-size: 2.9mm;
  line-height: 1.42;
  font-weight: 500;
}

.token-block {
  margin-top: 2.4mm;
  padding-top: 2.4mm;
  border-top: 1px solid rgba(125, 145, 168, 0.18);
}

.overview-note {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 4mm;
  margin-top: 3.2mm;
  padding: 3.2mm 3.8mm;
  border: 1px solid #dce7f2;
  border-radius: 3.8mm;
  background:
    radial-gradient(circle at top right, rgba(143, 191, 69, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.overview-note-copy h2 {
  margin: 0.8mm 0 0;
  color: #143154;
  font-size: 4.2mm;
  line-height: 1.24;
  font-weight: 700;
}

.overview-note-label {
  margin: 0;
  color: #7a8b9d;
  font-size: 2.3mm;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview-note-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.8mm;
}

.overview-note-list li {
  position: relative;
  padding-left: 4mm;
  color: #314255;
  font-size: 2.8mm;
  line-height: 1.42;
  font-weight: 500;
}

.overview-note-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.2mm;
  width: 1.7mm;
  height: 1.7mm;
  border-radius: 50%;
  background: var(--brand-green);
}

.token-label {
  margin: 0 0 1.6mm;
  color: #7d8c9b;
  font-size: 2.25mm;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.token-row,
.detail-chip-row,
.cta-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6mm;
}

.token,
.detail-chip,
.cta-step {
  display: inline-flex;
  align-items: center;
  gap: 1.2mm;
  min-height: 5.4mm;
  padding: 0 2.2mm;
  border-radius: 1.9mm;
  border: 1px solid rgba(185, 198, 212, 0.9);
  background: rgba(255, 255, 255, 0.82);
  color: #5f6d7c;
  font-size: 2.3mm;
  font-weight: 600;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.token img {
  width: 3mm;
  height: 3mm;
  display: block;
}

.token-shopify {
  border-color: rgba(154, 222, 187, 0.95);
  color: #108043;
  background: rgba(244, 251, 247, 0.95);
}

.token-woo {
  border-color: rgba(232, 220, 240, 0.95);
  color: #7f54b3;
  background: rgba(251, 247, 252, 0.95);
}

.details-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page2-hero {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3.2mm;
  align-items: center;
  margin-bottom: 2.1mm;
}

.page2-hero-copy h2 {
  margin: 0;
  color: #112a46;
  font-size: 7.2mm;
  line-height: 1.02;
  font-weight: 700;
}

.page2-hero-copy h2 span {
  display: block;
  color: #1670c9;
}

.page2-hero-copy p:last-child {
  margin: 2.2mm 0 0;
  color: #435466;
  font-size: 3mm;
  line-height: 1.42;
  max-width: 102mm;
}

.page2-hero-visual {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: flex-end;
  overflow: hidden;
}

.page2-hero-visual svg {
  position: relative;
  z-index: 0;
  width: 100%;
  max-width: 76mm;
  height: auto;
  display: block;
}

.setup-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3mm;
  margin-bottom: 2.5mm;
}

.setup-card {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 13mm 1fr;
  gap: 3mm;
  align-items: center;
  border: 1px solid #dbe6f1;
  border-radius: 4mm;
  padding: 4mm 4.2mm;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  background-clip: padding-box;
  box-shadow: 0 8px 20px rgba(14, 33, 58, 0.04);
  overflow: hidden;
}

.setup-card-core {
  background:
    radial-gradient(circle at top right, rgba(45, 102, 199, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.setup-card-advanced {
  background:
    radial-gradient(circle at top right, rgba(143, 191, 69, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fcfef9 100%);
}

.setup-card-icon {
  width: 13mm;
  height: 13mm;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.setup-card-core .setup-card-icon {
  background: linear-gradient(135deg, #1c6bdd 0%, #0d5aa2 100%);
  color: #ffffff;
}

.setup-card-advanced .setup-card-icon {
  background: linear-gradient(135deg, #8fbf45 0%, #6b981d 100%);
  color: #ffffff;
}

.setup-card-icon svg {
  width: 7.4mm;
  height: 7.4mm;
}

.setup-card-copy h3 {
  margin: 0 0 1mm;
  font-size: 4.5mm;
  line-height: 1.12;
  font-weight: 700;
}

.setup-card-core .setup-card-copy h3 {
  color: #145ccb;
}

.setup-card-advanced .setup-card-copy h3 {
  color: #5d8e17;
}

.setup-card-copy p {
  margin: 0;
  color: #4f6073;
  font-size: 3mm;
  line-height: 1.5;
}

.compare-section {
  margin-top: 0.4mm;
}

.compare-section-head h3 {
  margin: 0 0 2.4mm;
  color: #122a45;
  font-size: 5mm;
  font-weight: 700;
}

.compare-table-wrap {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 4mm;
  border: 1px solid #d7e3ee;
  background:
    radial-gradient(circle at top right, rgba(45, 102, 199, 0.05), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  background-clip: padding-box;
  box-shadow: 0 10px 24px rgba(14, 33, 58, 0.04);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid #dfebf5;
  border-right: 1px solid #e3edf6;
  padding: 2.15mm 2.6mm;
  font-size: 2.75mm;
  line-height: 1.4;
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.compare-table th:last-child,
.compare-table td:last-child {
  border-right: 0;
}

.compare-table thead th {
  background: #ffffff;
  font-size: 2.95mm;
  font-weight: 700;
}

.compare-table thead th:first-child {
  width: 54%;
  text-align: left;
  color: #132a45;
}

.compare-table thead th:nth-child(2) {
  width: 23%;
  color: #1f66d2;
  text-align: center;
}

.compare-table thead th:nth-child(3) {
  width: 23%;
  color: #628d1d;
  text-align: center;
}

.compare-table tbody td:first-child {
  color: #26374b;
}

.compare-table tbody td:nth-child(2),
.compare-table tbody td:nth-child(3) {
  text-align: center;
}

.compare-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5mm;
  height: 5mm;
  font-size: 2.4mm;
  font-weight: 700;
}

.compare-status.is-yes {
  border-radius: 50%;
}

.compare-status.is-blue {
  color: #ffffff;
  background: #2468d6;
}

.compare-status.is-green {
  color: #ffffff;
  background: #8fbf45;
}

.compare-status.is-no {
  color: #203147;
  font-size: 3.3mm;
}

.page2-bottom-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 3mm;
  margin-top: 4.2mm;
  align-items: start;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.7mm;
}

.detail-list-compact li {
  font-size: 2.9mm;
}

.info-panel {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--line);
  border-radius: 3.8mm;
  padding: 3.6mm 3.8mm;
  background-clip: padding-box;
  overflow: hidden;
}

.info-panel h3 {
  margin: 0 0 2.1mm;
  font-size: 4.45mm;
  line-height: 1.16;
  font-weight: 700;
}

.info-panel p {
  margin: 0;
  color: #495a6d;
  font-size: 2.95mm;
  line-height: 1.48;
}

.info-panel-green {
  background:
    radial-gradient(circle at top right, rgba(143, 191, 69, 0.12), transparent 34%),
    linear-gradient(180deg, #f7fbf2 0%, #f2f8ee 100%);
  border-color: #d9e8c7;
}

.info-panel-green h3 {
  color: #567f19;
}

.info-panel-blue {
  background:
    radial-gradient(circle at top right, rgba(45, 102, 199, 0.12), transparent 34%),
    linear-gradient(180deg, #f6f9ff 0%, #eef4ff 100%);
  border-color: #d8e4fb;
}

.info-panel-blue h3 {
  color: #1d62b5;
}

.contact-strip {
  display: grid;
  grid-template-columns: 1fr auto auto auto 1fr;
  align-items: center;
  gap: 3mm;
  margin-top: auto;
  padding-top: 3mm;
  color: #7ca941;
}

.contact-line {
  height: 0.3mm;
  background: #b5d27d;
}

.contact-divider {
  width: 0.3mm;
  height: 5mm;
  background: #b5d27d;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 1.5mm;
  color: #2b313a;
  font-size: 2.8mm;
  font-weight: 500;
}

.contact-item svg {
  width: 4.1mm;
  height: 4.1mm;
  color: #8fbf45;
}

@media (max-width: 900px) {
  body {
    padding: 8px;
  }

  .action-bar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .back-home,
  .download-pdf {
    justify-content: center;
  }

  .page {
    width: 100%;
    height: auto;
    padding: 20px;
  }

  .top-brand,
  .intro-banner,
  .solution-showcase,
  .overview-note,
  .page2-hero,
  .setup-card-grid,
  .page2-bottom-grid,
  .contact-strip {
    grid-template-columns: 1fr;
  }

  .compare-table-wrap {
    overflow-x: auto;
  }

  .page2-hero-visual {
    display: none;
  }

  .intro-summary {
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding-left: 0;
    padding-top: 16px;
  }

  .contact-strip {
    gap: 10px;
  }

  .contact-line,
  .contact-divider {
    display: none;
  }
}

@page {
  size: A4 portrait;
  margin: 0;
}

@media print {
  html,
  body {
    width: 210mm;
    min-width: 210mm;
    background: #ffffff;
  }

  body {
    padding: 0;
    background: #ffffff;
  }

  .action-bar {
    display: none;
  }

  .document-stack {
    display: block;
    gap: 0;
  }

  .page {
    width: 210mm;
    height: 297mm;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    break-inside: avoid;
    page-break-inside: avoid;
    break-after: page;
    page-break-after: always;
  }

  .top-brand {
    display: flex;
    gap: 6mm;
  }

  .intro-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }

  .solution-showcase {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page2-hero {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
  }

  .setup-card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .page2-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 0.82fr;
  }

  .contact-strip {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    gap: 3mm;
  }

  .page2-hero-visual {
    display: flex;
  }

  .intro-summary {
    border-top: 0;
    border-left: 0.35mm solid rgba(255, 255, 255, 0.32);
    padding-top: 0;
    padding-left: 5mm;
  }

  .compare-table-wrap {
    overflow: hidden;
  }

  .contact-line,
  .contact-divider {
    display: block;
  }

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