@import url('availability.css');

.home {
  --section-space: clamp(36px, 6vw, 72px);
  --spread-heading: clamp(1.875rem, 3.4vw, 2.75rem);
}
.home ::selection { color: var(--ink); background: var(--mineral); }
.home h2, .home h3 { text-wrap: balance; }
.home .hero-lead { margin: 20px auto 0; color: var(--ivory); }
.home .offer-line { margin: 9px auto 0; max-width: 56ch; color: var(--muted); line-height: 1.45; text-wrap: pretty; }
.hero-actions { margin-top: 24px; display: flex; gap: 12px 24px; flex-wrap: wrap; align-items: center; justify-content: center; }
.hero-actions .cta { font-size: var(--type-heading); }
.text-link { display: inline-flex; align-items: center; gap: .5em; min-height: 44px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.text-link span { text-decoration: none; }
.text-link:hover { text-decoration-thickness: 2px; }
.home .home-hero { row-gap: 24px; }
.home .hero-animation { max-width: 648px; }
body.home main > section:is(.report-spread, .route-section, .availability) { margin-inline: 0; }
.offer { padding-bottom: 0; }
.offer-spread { display: grid; align-items: center; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 76px); }
.offer-spread { padding: 36px var(--gutter) var(--section-space); }
.offer-copy h3, .report-story h2, .route-section h2 {
  font-size: var(--spread-heading); line-height: 1.05; letter-spacing: -.035em; margin: 0;
}
.offer-copy h3 { max-width: 19ch; --hero-flourish-height: .12em; }
.offer-detail > p, .report-story p, .route-section > p { max-width: 51ch; line-height: 1.55; }
.placement-terms { margin: 24px 0 0; padding-block: 14px; display: flex; gap: clamp(28px, 4vw, 48px); border-block: 1px solid var(--rule); }
.placement-terms dt, .specimen figcaption, .report-extract figcaption span { font-size: var(--type-small); }
.placement-terms dt { color: var(--muted); }
.placement-terms dd { margin: 3px 0 0; font-size: clamp(1.7rem, 2.8vw, 2.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.offer-detail .unit-cost { margin: 10px 0 12px; font-size: var(--type-nav); }
.specimen, .report-extract { min-width: 0; margin: 0; }
.specimen picture { display: block; min-height: 0; }
.specimen img { display: block; width: 100%; height: auto; }
.specimen figcaption, .report-extract figcaption { display: flex; flex-wrap: wrap; gap: 3px 12px; justify-content: space-between; }
.specimen figcaption { padding-block-start: 10px; }
.specimen figcaption span { color: var(--muted); }
@media (min-width: 64rem) {
  .offer {
    display: grid;
    grid-template-columns: minmax(0, 40fr) 4.5fr minmax(0, 55.5fr);
    grid-template-rows: auto 1fr;
  }
  .offer .shared-mail-intro { grid-area: 1 / 1 / 2 / 3; }
  .offer .shared-mail-intro h2 {
    --nameplate-shape: inset(0);
    width: 100%;
    font-size: clamp(2rem, 3.3vw, 2.625rem);
  }
  /* The photo supplies the shared diagonal on wide screens. */
  .offer .shared-mail-intro h2::before { inset-inline-end: 0; }
  .offer-spread { display: contents; }
  .offer-copy {
    grid-area: 2 / 1;
    align-self: center;
    padding: 24px 12px 28px var(--gutter);
  }
  .offer-copy h3 { max-width: none; font-size: clamp(2rem, 3.1vw, 2.5rem); }
  .offer-detail > p:first-child { margin: 14px 0 0; }
  .offer .placement-terms { margin-top: 18px; padding-block: 10px; }
  .offer .specimen {
    --cut: 7.5%;
    grid-area: 1 / 2 / 3 / 4;
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    background: var(--ink);
    clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%);
  }
  .offer .specimen img { height: 100%; min-height: 0; object-fit: cover; }
  .offer .specimen figcaption { padding: 10px 18px; }
  .offer .specimen::after {
    content: "";
    position: absolute;
    inset: 0;
    background: white;
    clip-path: polygon(var(--cut) 0, calc(var(--cut) + var(--outline-width)) 0, var(--outline-width) 100%, 0 100%);
    pointer-events: none;
  }
}
.report-spread {
  display: block;
  position: relative;
  isolation: isolate;
  background: var(--ivory);
  color: var(--ink);
  padding: var(--section-space) var(--gutter);
}
.report-cloud {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cloud-surface {
  position: absolute;
  left: 50%;
  width: max(740px, calc(100% + 96px));
  aspect-ratio: 10 / 3;
  background: url("../art/report-point-cloud.svg?v=3") center / 100% 100% no-repeat;
  translate: -50% 0;
}
.cloud-upper {
  top: -14px;
  opacity: .78;
  mask-image: linear-gradient(90deg, black 48%, rgb(0 0 0 / .20) 66%, rgb(0 0 0 / .20) 90%, black);
}
.cloud-lower { bottom: -8%; rotate: 172deg; opacity: .56; }
@media (prefers-reduced-motion: no-preference) {
  .cloud-sweep {
    position: absolute;
    inset: 0;
    overflow: hidden;
    mask: url("../art/report-point-cloud.svg?v=3#active-points") center / 100% 100% no-repeat;
    mask-mode: alpha;
  }
  .cloud-sweep::before {
    content: "";
    display: block;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #e59b69 43% 57%, transparent);
    animation: cloud-sweep 16s linear infinite paused;
  }
  /* The lower field faces the other way. Both crests travel right on screen. */
  .cloud-lower .cloud-sweep::before { animation-direction: reverse; }
  .cloud-in-view .cloud-sweep::before { animation-play-state: running; }
}
@keyframes cloud-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(200%); }
}
@media (max-width: 767px) {
  .cloud-upper {
    top: 134px;
    mask-image: linear-gradient(90deg, transparent 17%, rgb(0 0 0 / .26) 48%, black 79%);
  }
  .cloud-lower { bottom: -24px; }
}
@media print { .report-cloud { display: none; } }
.report-story, .report-panels {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}
.report-story { align-items: start; gap: 28px; margin-bottom: clamp(22px, 3vw, 36px); }
.report-story h2 { max-width: 19ch; }
.report-story p { margin: 0 0 6px; }
.report-story a { color: var(--ink); }
.report-extract {
  --report-inset: clamp(20px, 3vw, 36px);
  background: var(--ink);
  color: var(--ivory);
}
.report-extract figcaption {
  align-items: baseline;
  padding: 14px var(--report-inset);
  border-bottom: 1px solid var(--rule);
}
.report-extract figcaption strong { font-size: var(--type-heading); }
.report-extract figcaption span { color: var(--muted); }
.report-response, .report-dayparts, .report-audience { padding: var(--report-inset); min-width: 0; }
.report-extract h3 { margin: 0; font-size: var(--type-heading); }
.report-response h3 { display: flex; align-items: baseline; gap: .45em; }
.report-response h3 strong { color: var(--ember); font-size: clamp(3rem, 5vw, 4rem); line-height: .95; letter-spacing: -.04em; }
.interaction-total { display: inline-grid; font-variant-numeric: tabular-nums; }
.interaction-total > span { grid-area: 1 / 1; }
/* Keep the final value in the accessibility tree and reserve its full width. */
@media screen { .interaction-total > [aria-hidden] + span { opacity: 0; } }
@media print { .interaction-total > [aria-hidden] { display: none; } }
.report-extract .report-period, .audience-date { margin: 6px 0 0; font-size: var(--type-small); }
.report-period, .plot-scale, .plot-dates { color: var(--muted); }
.scan-timeline { --axis-width: 1.25rem; --axis-gap: .625rem; }
.scan-timeline h4 { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin: 20px 0 10px; font-size: var(--type-nav); font-weight: 500; }
.scan-timeline h4 span { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.plot { display: grid; grid-template-columns: var(--axis-width) minmax(0, 1fr); gap: var(--axis-gap); color: var(--ember); }
.plot-scale, .plot-dates { font-size: .8125rem; line-height: 1; font-variant-numeric: tabular-nums; }
.plot-scale { display: flex; flex-direction: column; justify-content: space-between; align-items: end; margin-block: calc(1px - .5em); }
.plot-field {
  border-block: 1px solid var(--rule);
  background: linear-gradient(var(--rule), var(--rule)) center / 100% 1px no-repeat;
}
.plot img { display: block; width: 100%; height: clamp(75px, 8vw, 100px); }
.plot-daily { color: var(--mineral); }
.plot-daily img { height: clamp(50px, 6vw, 70px); }
.plot-dates { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); margin: 8px 0 0 calc(var(--axis-width) + var(--axis-gap)); }
.plot-dates span { justify-self: center; white-space: nowrap; }
.plot-dates span:nth-child(2) { grid-column: 15; }
.plot-dates span:last-child { grid-column: 30; }
.scan-note { margin: 16px 0 0; max-width: 52ch; font-size: var(--type-nav); line-height: 1.5; }
.report-dayparts { align-self: stretch; border-left: 1px solid var(--rule); }
.time-distribution { margin: 20px 0 0; font-variant-numeric: tabular-nums; }
.time-distribution > div { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 6px 0 16px; margin-bottom: 15px; }
.time-distribution dt { font-size: var(--type-nav); font-weight: 500; }
.time-distribution dd { margin: 0; color: var(--muted); font-size: var(--type-small); white-space: nowrap; }
.time-distribution strong { display: inline-block; min-width: 3.3ch; margin-left: .5em; text-align: right; color: var(--ivory); font-size: var(--type-heading); }
.time-track { position: absolute; inset: auto 0 0; background: var(--surface); height: 6px; }
.time-track i { display: block; width: var(--share); height: 100%; background: var(--mineral); transform-origin: left; }
.peak-period .time-track i { background: var(--ember); }
.peak-period strong { color: var(--ember); }

@media screen and (prefers-reduced-motion: no-preference) {
  .plot[data-chart-reveal="waiting"] img { clip-path: inset(0 100% 0 0); }
  .plot[data-chart-reveal="shown"] img { animation: reveal-report-days 1050ms linear; }
  [data-chart-reveal="waiting"] .time-track i { transform: scaleX(0); }
  [data-chart-reveal="shown"] .time-track i { animation: reveal-report-share 750ms ease-out; }
}
@keyframes reveal-report-days { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes reveal-report-share { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.report-audience {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 2fr);
  gap: var(--report-inset);
  background: var(--mineral);
  color: var(--ink);
}
.mailing-totals, .audience-facts { margin: 16px 0 0; font-variant-numeric: tabular-nums; }
.mailing-totals { display: grid; gap: 12px; }
.mailing-totals div, .audience-facts div { display: grid; align-content: start; }
.mailing-totals dt, .audience-facts dt { font-size: var(--type-small); line-height: 1.35; }
.mailing-totals dd, .audience-facts dd { grid-row: 1; margin: 0 0 3px; font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.mailing-totals dd { font-size: var(--type-metric); }
.audience-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
.audience-facts div { border-top: 1px solid color-mix(in srgb, var(--ink) 36%, var(--mineral)); padding-top: 8px; }
.audience-facts dd { font-size: clamp(1.15rem, 2vw, 1.55rem); }
@media (max-width: 767px) {
  .report-story, .report-panels { grid-template-columns: minmax(0, 1fr); }
  .report-story { gap: 14px; }
  .report-story a { margin-top: 2px; }
  .report-dayparts { border-left: 0; border-top: 1px solid var(--rule); }
  .report-audience { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mailing-totals { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .audience-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.route-section { padding: var(--section-space) var(--gutter); }
.route-section h2 > span { display: inline-block; max-inline-size: 100%; }
.route-section p { margin: 16px 0 24px; }
.route-disclosure { border-block: 1px solid var(--rule); margin: 0; }
.route-disclosure .step-copy p { margin: 6px 0 0; text-wrap: pretty; }
.route-preview .campaign-journey { margin: var(--space-24) 0; }

.explore-steps {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-height: 44px;
  width: fit-content;
  margin: var(--space-8) auto 0;
  padding: var(--space-8) 0;
  background: transparent;
  border: 0;
  color: var(--mineral);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.explore-steps::after {
  content: "";
  width: .57em;
  height: .57em;
  margin: 0 .4em .3em;
  border-inline-end: 2px solid;
  border-block-end: 2px solid;
  transform: rotate(45deg);
}

.explore-steps:hover {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.explore-steps[hidden],
.is-preview .campaign-process > li:nth-child(n+4) { display: none; }

.journey-teaser { stroke-width: 3; }

.is-preview .preview-step .step-panel {
  block-size: calc(var(--art-width) * .48);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
}

.is-preview .preview-step .step-art { align-self: start; }
.is-preview .preview-step p { display: none; }

@media (forced-colors: none) {
  .is-preview .preview-step .step-art {
    mask-image: linear-gradient(#000b, #0004 42%, transparent 64%);
  }

  .is-preview .preview-step h3 {
    color: color-mix(in srgb, var(--ember) 81%, var(--canvas));
  }
}

@media (max-width: 767px) {
  .is-preview .preview-step .step-panel {
    block-size: max(64px, calc(var(--art-width) * .65));
    grid-template-areas: "heading art";
  }

  .is-preview .preview-step h3 { align-self: center; }
}

.report-spread :focus-visible { outline-color: var(--ink); }
@media (max-width: 767px) {
  .home .home-hero { row-gap: 44px; }
  .home .offer-line { max-width: 34ch; }
  .hero-actions { flex-direction: column; gap: 2px; }
  .offer-copy { display: contents; }
  .offer-copy h3 { grid-row: 1; }
  .offer-detail { grid-row: 3; }
  .offer-detail > p:first-child { margin-top: 0; }
  .specimen { grid-row: 2; }
  .offer-spread { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .offer-spread { padding-top: 24px; }
  .specimen { max-width: 32rem; width: 100%; justify-self: center; }
}

.home p { text-wrap: pretty; }
.specimen { scroll-margin-top: 24px; }
