@import url("https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&display=swap");

:root {
  --blue-900: #003d82;
  --blue-700: #0056b3;
  --blue-600: #006dcc;
  --blue-100: #e8f2fc;
  --blue-50: #f4f9ff;
  --orange-500: #f27a1a;
  --orange-600: #e8531e;
  --white: #ffffff;
  --gray-900: #1a1a1a;
  --gray-700: #444444;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --page-w: 210mm;
  --page-h: 297mm;
  --page-pad: 15mm;
}

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

@page cover-full {
  size: A4 portrait;
  margin: 0;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  font-size: 10.5pt;
  line-height: 1.55;
  color: var(--gray-900);
  background: #c8d4e0;
  counter-reset: profile-page;
}

/* --- Screen toolbar (hidden when printing) --- */

.profile-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: var(--blue-900);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(0);
  transition: transform 0.32s ease, opacity 0.32s ease;
  will-change: transform;
}

.profile-toolbar.is-scroll-hidden {
  transform: translateY(-100%);
  pointer-events: none;
}

.profile-toolbar__brand {
  font-weight: 800;
  font-size: 0.95rem;
}

.profile-toolbar__actions {
  display: flex;
  gap: 10px;
}

.profile-toolbar a,
.profile-toolbar button {
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.profile-toolbar button.primary,
.profile-toolbar a.primary {
  background: var(--orange-500);
  color: var(--white);
}

.profile-toolbar a:hover,
.profile-toolbar button:hover {
  filter: brightness(1.08);
}

.scroll-top-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(242, 122, 26, 0.4);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.28s ease, visibility 0.28s ease, transform 0.28s ease;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  filter: brightness(1.08);
}

body.is-present .scroll-top-btn {
  display: none;
}

.outline-toggle {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 1000;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-900);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 6px 24px rgba(0, 61, 130, 0.35);
  display: grid;
  place-items: center;
  transition: filter 0.2s ease, transform 0.2s ease;
}

.outline-toggle:hover {
  filter: brightness(1.1);
}

.outline-toggle__bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  position: relative;
}

.outline-toggle__bars::before,
.outline-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.outline-toggle__bars::before {
  top: -6px;
}

.outline-toggle__bars::after {
  top: 6px;
}

.outline-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(8, 20, 40, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.outline-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.outline-panel {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 1101;
  width: min(320px, 88vw);
  background: var(--white);
  box-shadow: 8px 0 40px rgba(0, 40, 90, 0.18);
  transform: translateX(-100%);
  transition: transform 0.32s ease;
  display: flex;
  flex-direction: column;
}

.outline-panel.is-open {
  transform: translateX(0);
}

.outline-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--blue-900);
  color: var(--white);
}

.outline-panel__head h2 {
  font-size: 0.95rem;
  font-weight: 800;
}

.outline-panel__close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.outline-panel__close:hover {
  background: rgba(255, 255, 255, 0.24);
}

.outline-panel__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 0 20px;
}

.outline-list {
  list-style: none;
}

.outline-list li {
  border-bottom: 1px solid var(--gray-100);
}

.outline-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--gray-900);
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease;
}

.outline-list a:hover,
.outline-list a.is-active {
  background: var(--blue-50);
  color: var(--blue-900);
}

.outline-list a span:last-child {
  flex-shrink: 0;
  min-width: 24px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue-700);
  background: var(--blue-50);
  padding: 2px 8px;
  border-radius: 999px;
}

body.is-present .outline-toggle {
  z-index: 1200;
}

body.is-present .outline-backdrop {
  z-index: 1300;
}

body.is-present .outline-panel {
  z-index: 1301;
}

.profile-document {
  padding: 72px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* --- A4 page shell --- */

.page {
  width: var(--page-w);
  min-height: var(--page-h);
  padding: var(--page-pad);
  background: var(--white);
  box-shadow: 0 8px 40px rgba(0, 40, 90, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  page-break-after: always;
  break-after: page;
  counter-increment: profile-page;
  scroll-margin-top: 72px;
}

.page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--blue-700);
  font-size: 8pt;
  color: var(--gray-500);
}

.page__head-brand {
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: 0.02em;
}

.page__head-title {
  font-weight: 600;
  color: var(--blue-700);
}

.page__body {
  flex: 1;
}

.page__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px solid var(--gray-200);
  font-size: 7.5pt;
  color: var(--gray-500);
}

.page__foot-num::before {
  content: counter(profile-page);
}

.page--cover .page__head,
.page--cover .page__foot,
.page--back .page__head,
.page--back .page__foot {
  display: none;
}

.page--cover {
  padding: 0;
  background: #001530;
  color: var(--white);
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.cover-bg {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1497366216548-37526070297c?w=1400&h=2000&fit=crop&q=80") center/cover no-repeat;
  transform: scale(1.03);
}

.cover-bg--back {
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1400&h=2000&fit=crop&q=80");
}

.cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(0, 61, 130, 0.92) 0%, rgba(0, 29, 61, 0.88) 45%, rgba(0, 40, 85, 0.94) 100%);
}

.cover-overlay--back {
  background: linear-gradient(160deg, rgba(0, 29, 61, 0.94), rgba(0, 61, 130, 0.88));
}

.cover-accent {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid rgba(242, 122, 26, 0.45);
  border-radius: 24px;
  z-index: 1;
}

.cover-accent--tl {
  top: 18mm;
  left: 15mm;
  transform: rotate(-8deg);
}

.cover-accent--br {
  right: 15mm;
  bottom: 22mm;
  transform: rotate(12deg);
  border-color: rgba(255, 255, 255, 0.2);
}

.page--cover::before {
  display: none;
}

.page--back {
  padding: 0;
  background: #001530;
  color: var(--white);
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.cover-content {
  position: relative;
  z-index: 1;
  padding: 20mm;
  width: 100%;
}

.cover-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--blue-900);
  font-weight: 800;
  font-size: 1.45rem;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.cover-logo--back {
  margin-bottom: 28px;
}

.cover-eyebrow {
  font-size: 9pt;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 10px;
}

.cover-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.cover-badges span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 8pt;
  font-weight: 600;
}

.page--cover h1 {
  font-size: 22pt;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.page--cover h2 {
  font-size: 13pt;
  font-weight: 500;
  opacity: 0.92;
  margin-bottom: 32px;
  line-height: 1.5;
}

.cover-tag {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  font-size: 10pt;
  margin-bottom: 40px;
}

.cover-contact {
  font-size: 9.5pt;
  opacity: 0.85;
  line-height: 1.8;
}

.cover-contact a {
  color: inherit;
  text-decoration: none;
}

h1.page-title {
  font-size: 18pt;
  color: var(--blue-900);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--orange-500);
  display: inline-block;
}

h2 {
  font-size: 12pt;
  color: var(--blue-700);
  margin: 14px 0 8px;
}

h3 {
  font-size: 10.5pt;
  color: var(--gray-900);
  margin: 10px 0 6px;
}

p {
  margin-bottom: 10px;
  color: var(--gray-700);
}

.lead {
  font-size: 11pt;
  line-height: 1.65;
  color: var(--gray-700);
}

.muted {
  color: var(--gray-500);
  font-size: 9pt;
}

.toc-list {
  list-style: none;
  columns: 2;
  column-gap: 32px;
}

.toc-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px dotted var(--gray-200);
  font-size: 10pt;
  break-inside: avoid;
}

.toc-list li span:first-child {
  font-weight: 600;
  color: var(--gray-900);
}

.toc-list li span:last-child {
  color: var(--blue-700);
  font-weight: 700;
  min-width: 24px;
  text-align: right;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.stat {
  padding: 14px 10px 12px;
  background: linear-gradient(180deg, var(--blue-50), var(--white));
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--blue-100);
  box-shadow: 0 4px 14px rgba(0, 61, 130, 0.06);
}

.icon-badge {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
}

.icon-badge svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.stat strong {
  display: block;
  font-size: 16pt;
  color: var(--blue-900);
  margin-bottom: 4px;
}

.stat span {
  font-size: 8pt;
  color: var(--gray-500);
  line-height: 1.35;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 9.5pt;
}

.profile-table th,
.profile-table td {
  border: 1px solid var(--gray-200);
  padding: 9px 12px;
  text-align: left;
}

.profile-table th {
  background: var(--blue-50);
  color: var(--blue-900);
  font-weight: 700;
  width: 38%;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.pillar {
  padding: 16px;
  border-radius: 8px;
  border-left: 4px solid var(--blue-700);
  background-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?w=600&h=200&fit=crop&q=80");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.pillar:nth-child(2) {
  background-image: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?w=600&h=200&fit=crop&q=80");
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
}

.pillar h2 {
  margin-top: 0;
  position: relative;
  z-index: 1;
}

.pillar p {
  position: relative;
  z-index: 1;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.check-list li {
  padding-left: 22px;
  position: relative;
  font-size: 9.5pt;
  color: var(--gray-700);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230056b3'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.service-card {
  padding: 14px 16px 14px 58px;
  margin-bottom: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  break-inside: avoid;
  position: relative;
  background: linear-gradient(90deg, var(--blue-50), var(--white) 28%);
}

.service-card--visual .icon-badge {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 32px;
  height: 32px;
}

.service-card--visual .icon-badge svg {
  width: 18px;
  height: 18px;
}

.service-card h2 {
  margin-top: 0;
  font-size: 11pt;
}

.product-shot {
  position: relative;
  margin: 10px 0 14px;
  padding: 10px;
  background: linear-gradient(180deg, var(--gray-100), var(--white));
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 40, 90, 0.08);
}

.product-shot .product-hero {
  margin: 0;
  border: 0;
  border-radius: 8px;
  max-height: 100mm;
}

.product-shot__label {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 7.5pt;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-500);
}

.product-hero {
  width: 100%;
  max-height: 110mm;
  object-fit: cover;
  border-radius: 8px;
  margin: 10px 0 14px;
  border: 1px solid var(--gray-200);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  list-style: none;
}

.feature-grid li {
  padding: 8px 10px 8px 28px;
  background: var(--blue-50);
  border-radius: 6px;
  font-size: 9pt;
  font-weight: 600;
  color: var(--blue-900);
  position: relative;
}

.feature-grid li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230056b3'%3E%3Cpath d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 16px 0;
  font-size: 8.5pt;
  font-weight: 600;
  color: var(--blue-900);
}

.timeline span {
  padding: 8px 12px;
  background: var(--blue-50);
  border-radius: 6px;
  white-space: nowrap;
}

.timeline em {
  color: var(--orange-500);
  font-style: normal;
}

.case-block {
  margin-bottom: 14px;
}

.case-block ul {
  margin: 4px 0 8px 18px;
  font-size: 9.5pt;
  color: var(--gray-700);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery__item {
  position: relative;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 40, 90, 0.1);
}

.gallery__item img,
.gallery img {
  width: 100%;
  height: 48mm;
  object-fit: cover;
  display: block;
}

.gallery__item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(transparent, rgba(0, 29, 61, 0.85));
  color: var(--white);
  font-size: 7.5pt;
  font-weight: 600;
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.leader {
  text-align: center;
  padding: 16px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  break-inside: avoid;
  background: linear-gradient(180deg, var(--white), var(--blue-50));
  box-shadow: 0 4px 16px rgba(0, 40, 90, 0.06);
}

.leader img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 12px rgba(0, 61, 130, 0.15);
}

.leader h2 {
  font-size: 10pt;
  margin: 0 0 4px;
}

.leader p {
  font-size: 8.5pt;
  margin: 0;
}

.matrix-table td:last-child {
  text-align: center;
  font-weight: 700;
  color: var(--blue-700);
}

.roadmap-list {
  list-style: none;
}

.roadmap-list li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: 9.5pt;
}

.roadmap-list strong {
  min-width: 72px;
  color: var(--orange-600);
}

.back-content h1 {
  font-size: 20pt;
  margin-bottom: 16px;
}

.back-content p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.back-thanks {
  margin-top: 32px;
  font-size: 14pt;
  font-weight: 700;
  color: var(--orange-500);
}

.back-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  max-width: 420px;
  margin: 24px auto 0;
  text-align: left;
}

.back-contact-grid p {
  margin: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.back-contact-grid strong {
  display: block;
  font-size: 7.5pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.7;
  margin-bottom: 4px;
}

.back-contact-grid span {
  font-size: 9.5pt;
}

.section-banner {
  width: 100%;
  height: 42mm;
  object-fit: cover;
  border-radius: 10px;
  margin: 14px 0;
  border: 1px solid var(--gray-200);
}

.section-banner--top {
  margin-top: 0;
  margin-bottom: 16px;
}

.case-visual__banner {
  width: 100%;
  height: 52mm;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 14px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.compare-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.compare-card h4 {
  font-size: 8pt;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.compare-card p {
  font-size: 9pt;
  margin: 0;
}

.compare-card--before {
  background: #fff5f5;
  border-color: #fecaca;
}

.compare-card--before h4 {
  color: #b91c1c;
}

.compare-card--after {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.compare-card--after h4 {
  color: #15803d;
}

.case-metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, var(--blue-900), var(--blue-700));
  color: var(--white);
  border-radius: 10px;
}

.case-metric strong {
  font-size: 22pt;
  line-height: 1;
}

.case-metric span {
  font-size: 9pt;
  opacity: 0.9;
}

.tech-stack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0;
}

.tech-stack-card {
  padding: 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--blue-50);
}

.tech-stack-card h2 {
  margin-top: 0;
  font-size: 10pt;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-badges span {
  padding: 5px 10px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  font-size: 8pt;
  font-weight: 600;
  color: var(--blue-900);
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.star-rating svg {
  width: 14px;
  height: 14px;
  fill: var(--gray-200);
}

.star-rating svg.is-on {
  fill: #f59e0b;
}

.star-rating em {
  margin-left: 6px;
  font-style: normal;
  font-size: 8pt;
  font-weight: 700;
  color: var(--blue-700);
}

.pricing-table th {
  background: linear-gradient(180deg, var(--blue-100), var(--blue-50));
}

.page__head-brand::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: var(--orange-500);
  border-radius: 2px;
  vertical-align: middle;
}

.toc-list li span:last-child {
  color: var(--blue-700);
  font-weight: 700;
  min-width: 24px;
  text-align: right;
  background: var(--blue-50);
  padding: 2px 8px;
  border-radius: 999px;
}

@media print {
  html,
  body {
    background: var(--white);
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .profile-toolbar,
  .present-controls,
  .scroll-top-btn,
  .outline-toggle,
  .outline-panel,
  .outline-backdrop {
    display: none !important;
    visibility: hidden !important;
  }

  .profile-document {
    padding: 0 !important;
    gap: 0 !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    position: static !important;
  }

  .page {
    display: flex !important;
    flex-direction: column;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 210mm;
    height: 297mm;
    min-height: 297mm;
    max-height: 297mm;
    padding: var(--page-pad);
    margin: 0;
    box-shadow: none;
    overflow: hidden;
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
    aspect-ratio: auto !important;
    transition: none !important;
    animation: none !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

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

  .page--cover,
  .page--back {
    page: cover-full;
    padding: 0;
  }

  .page--cover .cover-bg,
  .page--cover .cover-overlay,
  .page--back .cover-bg,
  .page--back .cover-overlay {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .page--cover .cover-content,
  .page--back .cover-content {
    padding: 20mm;
  }

  .page__body {
    overflow: visible !important;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}

@media screen and (max-width: 800px) {
  .profile-document {
    padding: 64px 8px 24px;
  }

  .page {
    width: 100%;
    min-height: auto;
    padding: 16px;
  }

  .stats,
  .two-column,
  .check-list,
  .feature-grid,
  .gallery,
  .leader-grid {
    grid-template-columns: 1fr;
  }

  .toc-list {
    columns: 1;
  }
}

/* --- Presentation / landscape slide mode --- */

body.is-present {
  overflow: hidden;
  background: #070f1a;
}

body.is-present .profile-toolbar {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-100%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

body.is-present .profile-document {
  padding: 0;
  gap: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

body.is-present .page {
  display: flex !important;
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(94vw, calc(94vh * 16 / 9));
  height: min(94vh, calc(94vw * 9 / 16));
  min-height: 0;
  max-height: 94vh;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 10mm 12mm;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.52s ease-in-out, visibility 0.52s ease-in-out;
  backface-visibility: hidden;
}

body.is-present .page.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

body.is-present .page__body {
  overflow-y: auto;
  overflow-x: hidden;
  font-size: 0.94em;
}

body.is-present .page--cover,
body.is-present .page--back {
  padding: 0;
}

body.is-present .cover-content {
  padding: 12mm;
}

body.is-present .stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

body.is-present .gallery__item img,
body.is-present .gallery img {
  height: 32mm;
}

body.is-present .product-shot .product-hero {
  max-height: 68mm;
}

body.is-present .case-visual__banner {
  height: 38mm;
}

body.is-present .section-banner,
body.is-present .section-banner--top {
  height: 28mm;
}

@media (prefers-reduced-motion: reduce) {
  body.is-present .page {
    transition: none;
  }
}

.present-controls {
  display: none;
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1100;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 12px;
  background: rgba(8, 20, 40, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--white);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

body.is-present .present-controls {
  display: flex;
}

.present-controls button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.present-controls button:hover {
  background: rgba(255, 255, 255, 0.22);
}

#presentExit {
  width: auto;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

#presentCounter {
  min-width: 64px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.present-progress {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 3px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
}

.present-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--orange-500);
  transition: width 0.52s ease-in-out;
}
