:root {
  --ink: #102235;
  --muted: #607083;
  --navy: #0b2537;
  --teal: #087f83;
  --gold: #d89d25;
  --coral: #d65a43;
  --paper: #f6f1e8;
  --panel: #fffdf7;
  --line: #ded5c7;
  --soft-teal: #e8f5f3;
  --soft-gold: #fff7df;
  --soft-coral: #fff0eb;
  --blue: #263f7a;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background: #e8e1d6;
  font-family: var(--sans);
  line-height: 1.35;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 54px;
}

.index-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
  padding: 30px;
  color: #fffdf7;
  background:
    radial-gradient(circle at 84% 14%, rgba(216, 157, 37, 0.25), transparent 28%),
    linear-gradient(135deg, var(--navy), #173d52 70%, #143441);
  border-radius: 8px;
}

.index-hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.02;
}

.index-hero p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(255, 253, 247, 0.82);
  font-size: 17px;
}

.brand-tile {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  color: #fffdf7;
  background: rgba(8, 127, 131, 0.78);
  border: 1px solid rgba(255, 253, 247, 0.28);
  border-radius: 8px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 247, 0.18);
}

.brand-tile span {
  display: block;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.artifact-card {
  display: grid;
  min-height: 320px;
  color: var(--ink);
  overflow: hidden;
  text-decoration: none;
  background: rgba(255, 253, 247, 0.88);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(16, 34, 53, 0.12);
}

.artifact-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  background: #f2eadf;
}

.artifact-card div {
  padding: 16px;
}

.artifact-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.artifact-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.76);
  border: 1px solid rgba(255, 253, 247, 0.32);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.page {
  width: 210mm;
  min-height: 297mm;
  margin: 24px auto;
  padding: 14mm;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 18px 70px rgba(16, 34, 53, 0.22);
}

.page.one {
  height: 297mm;
  position: relative;
  padding: 11.5mm 14mm 10mm;
}

.page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16mm;
  align-items: start;
  margin-bottom: 8mm;
}

.mark {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2.5mm;
  align-items: center;
  margin-bottom: 5mm;
  color: var(--teal);
  font-size: 3.1mm;
  font-weight: 900;
  text-transform: uppercase;
}

.mark::before {
  width: 8mm;
  height: 8mm;
  content: "";
  background: linear-gradient(135deg, var(--teal), var(--gold));
  border-radius: 2mm;
}

.doc-kicker {
  margin: 0 0 2mm;
  color: var(--coral);
  font-size: 3.3mm;
  font-weight: 900;
  text-transform: uppercase;
}

.doc-title {
  margin: 0;
  font-family: var(--serif);
  font-size: 13.5mm;
  line-height: 0.96;
}

.doc-title em {
  color: var(--teal);
  font-style: normal;
}

.one .doc-title {
  max-width: 132mm;
  font-size: 11.6mm;
  line-height: 0.98;
}

.one .doc-subtitle {
  max-width: 118mm;
  margin-top: 3mm;
  font-size: 3.6mm;
}

.one .page-header {
  margin-bottom: 5mm;
}

.doc-subtitle {
  max-width: 134mm;
  margin: 4mm 0 0;
  color: var(--muted);
  font-size: 4.1mm;
}

.profile-mini {
  display: grid;
  grid-template-columns: 18mm 1fr;
  gap: 3mm;
  align-items: center;
  width: 58mm;
  padding: 3mm;
  background: rgba(255, 253, 247, 0.78);
  border: 0.3mm solid var(--line);
  border-radius: 3mm;
}

.profile-mini img {
  width: 18mm;
  height: 18mm;
  object-fit: cover;
  object-position: 66% 42%;
  border-radius: 2mm;
}

.profile-mini strong,
.profile-mini span {
  display: block;
}

.profile-mini strong {
  font-size: 3.1mm;
}

.profile-mini span {
  color: var(--muted);
  font-size: 2.4mm;
}

.outcome-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4mm;
  margin: 8mm 0;
}

.metric {
  min-height: 34mm;
  padding: 4mm;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.78);
  border: 0.3mm solid var(--line);
  border-radius: 3mm;
}

.one .outcome-band {
  gap: 3mm;
  margin: 5.5mm 0;
}

.one .metric {
  min-height: 30mm;
  padding: 3.2mm;
}

.one .metric b {
  font-size: 6mm;
}

.one .metric strong {
  font-size: 3mm;
}

.one .metric span {
  font-size: 2.35mm;
}

.metric b {
  display: block;
  margin-bottom: 1.6mm;
  color: var(--teal);
  font-size: 7mm;
  line-height: 1;
}

.metric strong {
  display: block;
  margin-bottom: 1mm;
  font-size: 3.4mm;
}

.metric span {
  color: var(--muted);
  font-size: 2.55mm;
}

.plain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5mm;
}

.plain-panel {
  padding: 4.4mm;
  background: rgba(255, 253, 247, 0.76);
  border: 0.3mm solid var(--line);
  border-radius: 3mm;
}

.plain-panel h2,
.section-title {
  margin: 0 0 3mm;
  font-size: 5.3mm;
  line-height: 1.05;
}

.plain-panel p,
.plain-panel li {
  font-size: 3.15mm;
}

.one .plain-grid {
  gap: 3.8mm;
}

.one .plain-panel {
  padding: 3.5mm;
}

.one .plain-panel h2 {
  margin-bottom: 2mm;
  font-size: 4.6mm;
}

.one .plain-panel p,
.one .plain-panel li {
  font-size: 2.85mm;
}

.plain-panel p {
  margin: 0 0 3mm;
}

.plain-panel ul {
  margin: 0;
  padding-left: 5mm;
}

.ladder-clear {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3mm;
  margin: 6mm 0;
}

.one .ladder-clear {
  gap: 2.2mm;
  margin: 4.2mm 0;
}

.one .step {
  padding: 3mm;
}

.one .step b {
  margin-bottom: 1mm;
  font-size: 3.5mm;
}

.one .step span {
  font-size: 2.35mm;
}

.step {
  padding: 3.6mm;
  color: #fffdf7;
  border-radius: 3mm;
}

.step:nth-child(1) { background: var(--navy); }
.step:nth-child(2) { background: var(--teal); }
.step:nth-child(3) { background: var(--gold); }
.step:nth-child(4) { background: var(--coral); }

.step b,
.step span {
  display: block;
}

.step b {
  margin-bottom: 1.5mm;
  font-size: 4mm;
}

.step span {
  font-size: 2.7mm;
}

.fomo {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3mm;
  margin-top: 5mm;
}

.one .fomo {
  gap: 2.2mm;
  margin-top: 4mm;
}

.one .fomo div {
  padding: 2.6mm;
}

.one .fomo b {
  font-size: 2.65mm;
}

.one .fomo span {
  font-size: 2.28mm;
}

.fomo div {
  padding: 3.2mm;
  background: rgba(255, 247, 223, 0.86);
  border: 0.3mm solid rgba(216, 157, 37, 0.42);
  border-radius: 3mm;
}

.fomo b,
.fomo span {
  display: block;
}

.fomo b {
  margin-bottom: 1mm;
  color: var(--coral);
  font-size: 3mm;
}

.fomo span {
  font-size: 2.55mm;
}

.footer-line {
  position: absolute;
  right: 14mm;
  bottom: 10mm;
  left: 14mm;
  display: flex;
  justify-content: space-between;
  padding-top: 3mm;
  color: var(--muted);
  border-top: 0.3mm solid var(--line);
  font-size: 2.7mm;
}

.one .footer-line {
  bottom: 5mm;
  font-size: 2.35mm;
}

.book .page {
  height: auto;
}

.chapter {
  margin-bottom: 10mm;
}

.chapter h2 {
  margin: 0 0 4mm;
  font-family: var(--serif);
  font-size: 10mm;
  line-height: 1;
}

.chapter h3 {
  margin: 0 0 2mm;
  color: var(--teal);
  font-size: 4.4mm;
}

.chapter p,
.chapter li {
  font-size: 3.5mm;
}

.stage-table {
  display: grid;
  gap: 2mm;
}

.stage-row {
  display: grid;
  grid-template-columns: 24mm 1fr 44mm;
  gap: 3mm;
  align-items: stretch;
  padding: 3mm;
  background: rgba(255, 253, 247, 0.8);
  border: 0.3mm solid var(--line);
  border-radius: 3mm;
}

.stage-row b {
  color: var(--teal);
}

.stage-row span,
.stage-row p {
  margin: 0;
  font-size: 3.05mm;
}

.az-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2mm;
}

.az-grid div {
  padding: 2mm;
  background: rgba(255, 253, 247, 0.82);
  border: 0.25mm solid var(--line);
  border-radius: 2mm;
  font-size: 2.65mm;
}

.az-grid b {
  color: var(--coral);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4mm;
}

.pricing-sheet {
  min-height: 0;
  height: 297mm;
  padding: 12mm 14mm;
}

.pricing-sheet .page-header {
  margin-bottom: 6mm;
}

.pricing-sheet .doc-title {
  max-width: 126mm;
  font-size: 11.2mm;
  line-height: 0.98;
}

.pricing-sheet .doc-subtitle {
  max-width: 122mm;
  margin-top: 3mm;
  font-size: 3.45mm;
}

.pricing-sheet .price-grid {
  gap: 3mm;
}

.price-card {
  padding: 4mm;
  background: rgba(255, 253, 247, 0.82);
  border: 0.3mm solid var(--line);
  border-radius: 3mm;
}

.price-card h2 {
  min-height: 13mm;
  margin: 0 0 3mm;
  font-size: 4.1mm;
}

.pricing-sheet .price-card {
  padding: 3.2mm;
}

.pricing-sheet .price-card h2 {
  min-height: 10mm;
  margin-bottom: 2mm;
  font-size: 3.65mm;
}

.pricing-sheet .price-card strong {
  margin-bottom: 1.5mm;
  font-size: 5.7mm;
}

.pricing-sheet .price-card p {
  font-size: 2.55mm;
}

.price-card strong {
  display: block;
  margin-bottom: 2mm;
  color: var(--teal);
  font-size: 6.5mm;
}

.price-card p {
  margin: 0;
  color: var(--muted);
  font-size: 2.85mm;
}

.notes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4mm;
  margin-top: 6mm;
}

.pricing-sheet .notes {
  gap: 3mm;
  margin-top: 4mm;
}

.notes div {
  padding: 4mm;
  background: rgba(255, 253, 247, 0.78);
  border: 0.3mm solid var(--line);
  border-radius: 3mm;
}

.pricing-sheet .notes div {
  padding: 3.2mm;
}

.pricing-sheet .notes h2 {
  margin-bottom: 1.5mm;
  font-size: 3.85mm;
}

.pricing-sheet .notes p,
.pricing-sheet .notes li {
  font-size: 2.75mm;
}

.notes h2 {
  margin: 0 0 2mm;
  font-size: 4.4mm;
}

.notes p,
.notes li {
  font-size: 3.1mm;
}

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

@media print {
  body {
    background: transparent;
  }

  .page {
    margin: 0;
    box-shadow: none;
    break-after: page;
  }

  .site-shell {
    width: auto;
    padding: 0;
  }
}

@media (max-width: 980px) {
  .artifact-grid,
  .price-grid,
  .fomo {
    grid-template-columns: 1fr 1fr;
  }

  .index-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .artifact-grid,
  .price-grid,
  .plain-grid,
  .outcome-band,
  .ladder-clear,
  .notes {
    grid-template-columns: 1fr;
  }

  .page {
    width: min(100%, 210mm);
    min-height: auto;
  }
}
