/* The homepage uses a dark cover and close around a light editorial spread. */
.home-page { background: var(--folio); }
.cover, .home-page .offer { background: var(--cover); color: var(--cover-text); }
.home-page .masthead { min-height: 4.75rem; }
.cover .hero-copy a:focus-visible,
.home-page .offer a:focus-visible { outline-color: var(--leaf); }
.cover {
  position: relative;
  background-image: radial-gradient(ellipse at 92% 20%, #29483b 0%, transparent 60%);
}
.cover .hero {
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 5.25rem);
  padding-block: clamp(2.6rem, 5vw, 5.1rem);
}
.cover h1 {
  max-width: 16ch;
  font-size: clamp(3.05rem, 5.05vw, 4.85rem);
  font-weight: 675;
  line-height: 1.02;
  letter-spacing: -.065em;
  margin-block: .85rem 1.35rem;
}
.cover h1 span { white-space: nowrap; color: var(--leaf); }
.hero-copy .eyebrow { color: var(--cover-muted); }
.cover .hero-copy .lede { color: var(--cover-muted); max-width: 42ch; }
.cover .hero-facts {
  border-color: var(--cover-line);
  padding-block-start: .8rem;
  gap: .45rem 1.2rem;
}
.cover .hero-facts p { color: var(--cover-muted); }
.cover .hero-facts strong { color: var(--cover-text); }
.cover .hero-facts span, .cover .action-note { color: var(--cover-muted); }
.cover .button, .home-page .offer .button {
  color: var(--cover-deep);
  background: var(--leaf);
  border-radius: .28rem;
}
.sample-stage {
  --travel: 28px;
  padding: clamp(1.1rem, 3vw, 2.65rem);
  background: #1a3833;
  border-color: #61766c;
  border-radius: .55rem;
  overflow: clip;
}
.sample-field {
  position: absolute;
  z-index: -1;
  inset: -34px;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 59% 26%, #93b18c45, transparent 67%),
    repeating-linear-gradient(0deg, #acc7ad29 0 1px, transparent 1px 29px),
    repeating-linear-gradient(90deg, #acc7ad29 0 1px, transparent 1px 29px);
}
.sample-stack { max-width: 37rem; }
.sample-paper {
  padding: clamp(1.2rem, 2.4vw, 2rem);
  color: var(--ink);
  border-color: #acb8a0;
  background: #fdfdf4;
  box-shadow: 0 24px 46px -25px #071b16d9;
}
.paper-back { background: #91ad86; border-color: #a9c38d; }
.paper-edge { background: #dbe7c5; border-color: #e5edcf; }
.sample-caption { padding-block-end: .65rem; }
.sample-caption .eyebrow { color: #335d47; }
.sample-meta { margin-block: .85rem .65rem; }
.sample-paper h2 { font-size: clamp(1.45rem, 2.75vw, 2.3rem); }
.proof {
  position: relative;
  display: grid;
  gap: .85rem;
  padding-inline-start: 1rem;
}
.proof-guide {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  inset: .35rem auto .45rem 0;
  width: 1px;
  color: #3c664f;
  background: #b5c7ad;
}
.proof-guide::after {
  position: absolute;
  inset: 0;
  content: "";
  background: currentColor;
  transform-origin: top;
}
.proof-guide span {
  position: absolute;
  z-index: 1;
  left: -3px;
  top: calc(100% - 7px);
  width: 7px;
  height: 7px;
  background: currentColor;
  border: 1px solid #fdfdf4;
  border-radius: 50%;
  box-shadow: 0 0 0 1px currentColor;
}
.sample-fix {
  margin: 0;
  padding: .68rem .8rem .74rem .93rem;
  background: #e8efdb;
  border: 1px solid #c1d0b5;
  border-radius: .25rem;
}
.fix-example { color: #234e38; }
.code-detail { margin-block: .5rem 0; }
.code-detail summary {
  width: fit-content;
  min-height: 2.5rem;
  padding-block: .44rem;
  color: #234e38;
  font-size: .86rem;
  font-weight: 680;
  cursor: pointer;
}
.code-detail pre { margin: 0; padding: .6rem .7rem; background: #eeeedd; white-space: pre-wrap; overflow-wrap: anywhere; }
.sample-link { min-height: 2.6rem; }
.home-page .deliverables {
  background: var(--folio);
  border: 0;
  padding-block: clamp(3.2rem, 7.5vw, 7.2rem);
}
.deliverables .editorial-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.deliverable-list article {
  display: grid;
  grid-template-columns: minmax(6rem, .4fr) minmax(0, 1fr);
  gap: .5rem 1rem;
  padding-block: 1.35rem;
  border-color: #aebfaf;
}
.deliverable-list article:first-child { padding-block-start: 1rem; }
.report-label {
  color: #365b49;
  font-size: .82rem;
  font-weight: 715;
  letter-spacing: .04em;
}
.method { background: #e5eee4; border-block: 1px solid #ccdbce; }
.method .lede { margin-block-start: .75rem; }
.method .process { margin-top: 2rem; }
.questions .editorial-grid { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
.home-page .offer {
  background: radial-gradient(ellipse at 90% 0%, #29483b 0%, transparent 55%), var(--cover-deep);
  padding-block: clamp(3.5rem, 7.4vw, 7rem);
}
.home-page .offer h2 { color: var(--cover-muted); }
.home-page .offer .price { font-weight: 680; }
@media (hover: hover) {
  .cover .button:hover, .home-page .offer .button:hover { background: #e7f2b9; }
}
@media (min-width: 54rem) {
  .method .process {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.4rem, 4vw, 3.5rem);
    padding: 1.4rem 0 0 1.2rem;
  }
  .method .process::before, .method .process::after {
    inset: 0 0 auto 0;
    width: auto;
    height: 2px;
    transform-origin: left;
  }
  .method .process li { margin-block: 0; }
}
@media (max-width: 54rem) {
  .cover .hero { grid-template-columns: minmax(0, 1fr); padding-block: 2.6rem 2.1rem; }
  .cover h1 { max-width: 15ch; }
  .sample-stage { --travel: 16px; }
}
@media (max-width: 41rem) {
  .home-page .masthead { min-height: 0; }
  .cover .hero { gap: 1.65rem; padding-block: 1.9rem 1.65rem; }
  .cover h1 { font-size: clamp(2.45rem, 9vw, 3.05rem); margin-block: .6rem .85rem; }
  .cover .hero-facts { display: flex; }
  .cover .actions { margin-top: .9rem; }
  .sample-stage { padding: 1.1rem; }
  .sample-paper { padding: 1.02rem; }
  .deliverables .editorial-grid, .questions .editorial-grid { grid-template-columns: minmax(0, 1fr); }
  .deliverable-list article { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 22rem) {
  .cover h1 { font-size: 2.2rem; }
  .sample-stage, .sample-paper { padding: .85rem; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-moving] .sample-field { transform: translateY(calc(18px * var(--ground-progress, 0))); }
  [data-moving] .proof-guide::after { transform: scaleY(calc(.07 + .93 * var(--proof-progress, 0))); }
  [data-moving] .proof-guide span { top: 0; bottom: 0; height: auto; width: 9px; left: -4px; border: 0; border-radius: 0; box-shadow: none; background: transparent; transform: translateY(calc((100% - 8px) * var(--proof-progress, 0))); }
  [data-moving] .proof-guide span::after { display: block; content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3c664f; box-shadow: inset 0 0 0 1px #fdfdf4, 0 0 0 1px #3c664f; }
  @media (min-width: 54rem) {
    .method .process[data-awaiting]::after { transform: scaleX(.12); }
  }
}
