:root {
  --document-bg: #050505;
  --document-panel: #0b0b0b;
  --document-raised: #111;
  --document-line: #2c2c2c;
  --document-strong: #4a4a4a;
  --document-text: #f5f5f1;
  --document-muted: #aaa9a3;
  --document-quiet: #777772;
  --document-silver: #d6d6d0;
}

.pdf-html-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 4%, rgba(255, 255, 255, .055), transparent 26rem),
    var(--document-bg);
  color: var(--document-text);
}

.document-shell {
  width: min(1240px, calc(100% - 40px));
  min-width: 0;
  margin: 0 auto;
  padding: 46px 0 120px;
}

.document-shell .breadcrumbs {
  margin-bottom: 30px;
}

.document-cover {
  min-height: min(760px, calc(100vh - 150px));
  padding: clamp(34px, 6vw, 84px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  align-items: end;
  gap: 50px;
  border: 1px solid var(--document-line);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .99) 0%, rgba(0, 0, 0, .93) 40%, rgba(0, 0, 0, .45) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .78)),
    url("../hero-supercar.png") 70% center / cover no-repeat,
    #050505;
}

.document-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(135deg, transparent 55%, rgba(255, 255, 255, .035)),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, .018) 80px);
  pointer-events: none;
}

.document-cover__content,
.document-cover__mark,
.section-heading,
.section-content {
  min-width: 0;
}

.document-kicker,
.page-number {
  margin: 0 0 18px;
  color: var(--document-muted);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.document-cover h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.1rem, 7.4vw, 7.8rem);
  font-weight: 300;
  letter-spacing: -.065em;
  line-height: .87;
  overflow-wrap: anywhere;
}

.document-subtitle {
  max-width: 750px;
  margin: 30px 0 0;
  color: #d6d6d0;
  font-size: clamp(1.05rem, 1.8vw, 1.45rem);
  line-height: 1.45;
}

.document-takeaway {
  max-width: 720px;
  margin: 24px 0 0;
  padding-left: 20px;
  border-left: 1px solid #74746e;
  color: #aeada7;
  font-size: .98rem;
  line-height: 1.6;
}

.document-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.document-cover__mark {
  align-self: end;
  justify-self: end;
  display: grid;
  justify-items: end;
  gap: 16px;
  color: #a3a39d;
  font-size: .78rem;
  letter-spacing: .1em;
  text-align: right;
  text-transform: uppercase;
}

.document-cover__mark img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  filter: grayscale(1);
}

.document-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-right: 1px solid var(--document-line);
  border-bottom: 1px solid var(--document-line);
}

.document-facts > div {
  min-width: 0;
  padding: 24px;
  border-left: 1px solid var(--document-line);
}

.document-facts span,
.document-facts strong {
  display: block;
}

.document-facts span {
  margin-bottom: 9px;
  color: var(--document-quiet);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.document-facts strong {
  color: #e2e2dc;
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.document-definition {
  margin: clamp(76px, 10vw, 150px) 0 0;
  padding: clamp(30px, 5vw, 62px);
  border: 1px solid var(--document-line);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, .045), transparent 38%),
    var(--document-panel);
}

.document-definition > p:last-child {
  max-width: 980px;
  margin: 0;
  color: #ecece7;
  font-size: clamp(1.35rem, 2.5vw, 2.35rem);
  font-weight: 320;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.document-section {
  padding: clamp(78px, 11vw, 150px) 0;
  display: grid;
  grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr);
  gap: clamp(44px, 8vw, 110px);
  border-bottom: 1px solid var(--document-line);
}

.section-heading {
  align-self: start;
  position: sticky;
  top: 110px;
}

.section-heading h2,
.document-faq-section h2,
.document-cta h2 {
  margin: 0;
  color: #f4f4ef;
  font-size: clamp(2.35rem, 4.9vw, 5.3rem);
  font-weight: 300;
  letter-spacing: -.055em;
  line-height: .95;
  overflow-wrap: anywhere;
}

.section-heading .intro {
  margin: 26px 0 0;
  color: #c8c8c1;
  font-size: clamp(1rem, 1.55vw, 1.24rem);
  line-height: 1.55;
}

.section-content .copy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.section-content .copy p {
  margin: 0;
  color: var(--document-muted);
  font-size: 1rem;
  line-height: 1.78;
  overflow-wrap: anywhere;
}

.bullets {
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--document-line);
  list-style: none;
}

.bullets li {
  min-width: 0;
  padding: 20px 18px 20px 31px;
  position: relative;
  border-bottom: 1px solid var(--document-line);
  color: #d0d0ca;
  line-height: 1.5;
}

.bullets li:nth-child(odd) {
  border-right: 1px solid var(--document-line);
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 31px;
  width: 12px;
  height: 1px;
  background: var(--document-silver);
}

.visual {
  min-width: 0;
  margin-top: 40px;
  padding: clamp(20px, 3vw, 36px);
  overflow-x: auto;
  border: 1px solid #383838;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, .045), transparent 33%),
    linear-gradient(145deg, #0e0e0e, #080808);
}

.visual-title {
  margin: 0 0 24px;
  color: #d6d6cf;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.flow {
  display: grid;
  grid-template-columns: repeat(var(--count), minmax(130px, 1fr));
  border-top: 1px solid var(--document-strong);
  border-left: 1px solid var(--document-strong);
}

.flow-step {
  min-height: 150px;
  padding: 22px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 11px;
  border-right: 1px solid var(--document-strong);
  border-bottom: 1px solid var(--document-strong);
}

.flow-step::before {
  content: counter(flow-step, decimal-leading-zero);
  counter-increment: flow-step;
  color: #6f6f69;
  font-size: .68rem;
  letter-spacing: .12em;
}

.flow {
  counter-reset: flow-step;
}

.flow-step strong {
  color: #f0f0eb;
  font-size: .98rem;
  font-weight: 550;
}

.flow-step span {
  color: var(--document-muted);
  font-size: .85rem;
  line-height: 1.5;
}

.data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, .015);
}

.data-table th,
.data-table td {
  padding: 16px;
  border: 1px solid #383838;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: #171717;
  color: #f0f0ea;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.data-table td {
  color: #bdbdb7;
  font-size: .86rem;
  line-height: 1.45;
}

.data-table tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, .025);
}

.bar-list {
  display: grid;
  gap: 18px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(110px, .55fr) minmax(180px, 1fr) minmax(70px, .3fr);
  align-items: center;
  gap: 18px;
}

.bar-label,
.bar-value {
  color: #d1d1ca;
  font-size: .86rem;
}

.bar-value {
  text-align: right;
}

.bar-track {
  height: 7px;
  background: #282828;
}

.bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d8d8d2, #73736d);
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--document-strong);
  border-left: 1px solid var(--document-strong);
}

.formula-grid > div {
  padding: 24px;
  border-right: 1px solid var(--document-strong);
  border-bottom: 1px solid var(--document-strong);
}

.equation,
.example-value {
  padding: 16px 0;
  border-bottom: 1px solid var(--document-line);
}

.equation:last-child,
.example-value:last-child {
  border-bottom: 0;
}

.equation strong,
.example-value strong {
  display: block;
  margin-bottom: 8px;
  color: #92928d;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.equation code {
  color: #e7e7e1;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: .85rem;
  white-space: normal;
}

.example-value {
  color: #f2f2ed;
  font-size: 1.08rem;
  line-height: 1.45;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--document-strong);
  border-left: 1px solid var(--document-strong);
}

.check-item {
  min-height: 120px;
  padding: 24px 24px 24px 58px;
  position: relative;
  border-right: 1px solid var(--document-strong);
  border-bottom: 1px solid var(--document-strong);
  color: #c8c8c2;
  line-height: 1.5;
}

.check-item::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 24px;
  width: 17px;
  height: 17px;
  border: 1px solid #777771;
}

.assumption,
.page-note {
  margin: 20px 0 0;
  color: #8e8e88;
  font-size: .82rem;
  line-height: 1.55;
}

.page-note {
  padding-top: 18px;
  border-top: 1px solid var(--document-line);
}

.document-faq-section,
.document-cta {
  margin-top: clamp(84px, 11vw, 150px);
}

.document-faq-section h2,
.document-cta h2 {
  max-width: 950px;
}

.document-faq-list {
  margin-top: 40px;
  border-top: 1px solid var(--document-line);
}

.document-faq {
  border-bottom: 1px solid var(--document-line);
}

.document-faq summary {
  padding: 25px 50px 25px 0;
  position: relative;
  color: #e4e4df;
  font-size: 1.05rem;
  cursor: pointer;
}

.document-faq summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 3px;
  color: #999993;
  font-size: 1.4rem;
  font-weight: 300;
}

.document-faq[open] summary::after {
  content: "−";
}

.document-faq p {
  max-width: 850px;
  margin: 0;
  padding: 0 0 26px;
  color: var(--document-muted);
  line-height: 1.7;
}

.document-cta {
  padding: clamp(34px, 6vw, 72px);
  border: 1px solid var(--document-line);
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 255, 255, .055), transparent 34%),
    var(--document-panel);
}

.document-cta > p:not(.section-label) {
  max-width: 760px;
  margin: 26px 0 0;
  color: var(--document-muted);
  font-size: 1rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .document-shell {
    width: min(100% - 24px, 760px);
    padding-top: 24px;
  }

  .document-cover {
    min-height: 680px;
    grid-template-columns: 1fr;
    align-items: end;
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .98), rgba(0, 0, 0, .74)),
      linear-gradient(180deg, rgba(0, 0, 0, .1), rgba(0, 0, 0, .88)),
      url("../hero-supercar.png") 70% center / cover no-repeat,
      #050505;
  }

  .document-cover__mark {
    display: none;
  }

  .document-facts,
  .document-section {
    grid-template-columns: 1fr;
  }

  .document-facts > div {
    border-top: 1px solid var(--document-line);
  }

  .document-facts > div:first-child {
    border-top: 0;
  }

  .document-section {
    gap: 42px;
  }

  .section-heading {
    position: static;
  }

  .section-content .copy {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .document-cover {
    min-height: 640px;
    padding: 30px 22px;
  }

  .document-cover h1 {
    font-size: clamp(2.8rem, 14vw, 4.65rem);
    line-height: .9;
  }

  .document-subtitle {
    margin-top: 22px;
  }

  .document-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .document-actions a {
    justify-content: center;
    text-align: center;
  }

  .document-facts > div,
  .document-definition,
  .visual,
  .document-cta {
    padding: 22px;
  }

  .bullets,
  .formula-grid,
  .check-list {
    grid-template-columns: 1fr;
  }

  .bullets li:nth-child(odd) {
    border-right: 0;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-step {
    min-height: 0;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bar-value {
    text-align: left;
  }
}

@media print {
  .nav,
  .resource-footer,
  .breadcrumbs,
  .document-actions {
    display: none !important;
  }

  .document-shell {
    width: 100%;
    padding: 0;
  }
}
