/* Paper, ink and evidence for the offer pages. */
.offer-editorial .public-header[data-transparent] {
  position: sticky;
  background: var(--surface-canvas);
}

.offer-editorial {
  --offer-edge: clamp(20px, 5vw, 80px);
  --offer-gutter: max(var(--offer-edge), env(safe-area-inset-left), env(safe-area-inset-right));
}

:is(.offer-hero, .offer-band) {
  width: min(calc(100% - 2 * var(--offer-gutter)), 1370px);
  margin-inline: auto;
}

.offer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 26px;
  padding-block: clamp(22px, 5vw, 72px);
  color: var(--text-primary);
}

/* 14ch of the brand face at the display weight (its zero is 0.723em at 300), written in em so the
   measure does not change while the fallback face stands in: in ch it narrowed by a fifth on a phone,
   the heading broke onto two lines and everything below it moved when the face arrived. */
.offer-hero h1 {
  max-width: 10.122em;
  font-size: clamp(35px, 5.2vw, 77px);
  font-weight: var(--weight-display);
  line-height: 1.04;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.offer-eyebrow {
  display: block;
  margin-block-end: 10px;
  font-family: var(--font-mono);
  font-size: var(--text-eyebrow);
  line-height: 1.45;
  font-weight: var(--weight-medium);
  letter-spacing: var(--tracking-eyebrow);
  color: var(--text-secondary);
  text-transform: uppercase;
}

/* The hero copy's measures are the brand face's ch at weight 400 (its zero is 0.732em), written in em for
   the same reason as the heading: a ch follows whichever face is standing in, and a lede that rewraps
   while the page loads moves the buttons and pictures below it. 45ch = 32.94em, 34ch = 24.888em. */
.offer-copy > :is(.offer-lede, .offer-description) {
  max-width: 32.94em;
  margin-block-start: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-wrap: pretty;
}

.offer-copy > .offer-lede {
  max-width: 24.888em;
  margin-block-start: 15px;
  color: var(--text-primary);
  font-size: clamp(18px, 1.85vw, 24px);
}

.offer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-block-start: 18px;
}

.offer-link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-block-size: 44px;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-color: var(--border-strong);
  font-size: var(--text-small);
}

.offer-link:hover {
  text-decoration-color: currentColor;
}

.offer-copy .offer-note {
  margin-block-start: 10px;
}

.offer-note,
.offer-caption {
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--text-secondary);
}

.offer-exhibit {
  min-width: 0;
  margin: 0;
}

.offer-plate {
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  background: var(--surface-raised);
}

.offer-plate img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.offer-sample summary {
  display: flex;
  min-height: 48px;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-block-end: 1px solid var(--border-hairline);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  list-style: none;
}

.offer-sample summary::-webkit-details-marker { display: none; }
.offer-sample summary::after { content: "+" / ""; font-family: var(--font-mono); }
.offer-sample[open] summary::after { content: "−" / ""; }

.offer-contents {
  display: grid;
  padding-block: 4px;
  margin: 0;
  border-block-end: 1px solid var(--border-hairline);
}

.offer-contents > div {
  display: grid;
  grid-template-columns: minmax(98px, 26%) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  padding: 8px 0;
  border-block-end: 1px solid var(--border-hairline);
}

.offer-contents > div:last-child { border: 0; }
.offer-contents dt { font-weight: var(--weight-semibold); }
.offer-contents dd { margin: 0; color: var(--text-secondary); font-size: var(--text-small); line-height: 1.45; }
.offer-sample > .offer-note { margin-block-start: 10px; }

.offer-phases {
  margin: 0;
  padding: 0;
  list-style: none;
  border-block-start: 1px solid var(--border-hairline);
  counter-reset: sprint-phase;
}

.offer-phases li {
  display: grid;
  grid-template-columns: 2.2rem minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 8px;
  padding-block: 13px;
  border-block-end: 1px solid var(--border-hairline);
  counter-increment: sprint-phase;
}

.offer-phases li::before {
  content: counter(sprint-phase, decimal-leading-zero) / "";
  font: var(--weight-medium) var(--text-eyebrow) var(--font-mono);
  color: var(--text-secondary);
}

.offer-phases h2 {
  margin: 0;
  font-size: clamp(23px, 2.5vw, 36px);
  font-weight: var(--weight-display);
  letter-spacing: -.045em;
  line-height: 1.13;
}

.offer-phases p {
  grid-column: 2;
  max-width: 42ch;
  color: var(--text-secondary);
  line-height: 1.5;
  text-wrap: pretty;
}

.offer-band {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 18px;
  padding-block: 14px;
  border-block: 1px solid var(--border-hairline);
}

.offer-band > p { max-width: 46.848em /* 64ch of the brand face at 400 */; color: var(--text-secondary); line-height: 1.5; }

.offer-browser {
  min-inline-size: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.offer-browser legend {
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--text-secondary);
}

.offer-browser-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 14px;
  margin-block: 3px 8px;
}

.offer-browser-controls label {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-block-size: 44px;
  color: var(--text-secondary);
  font-size: var(--text-small);
  cursor: pointer;
}

.offer-browser-controls input {
  margin: 0;
  accent-color: var(--cta-bg);
}

.offer-browser-controls :checked + span {
  color: var(--text-primary);
  font-weight: var(--weight-semibold);
}

.offer-browser-image {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  place-items: center;
  overflow: hidden;
  width: 100%;
  min-height: 200px;
  height: clamp(230px, 38vw, 425px);
  padding: 8px;
  background: var(--surface-raised);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}

.offer-browser-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-browser-image--phone,
.offer-browser:has([value="phone"]:checked) .offer-browser-image--desktop { display: none; }
.offer-browser:has([value="phone"]:checked) .offer-browser-image--phone { display: grid; }
.offer-caption { margin-block-start: 8px; }
.offer-caption a { color: var(--text-primary); text-decoration: underline; text-underline-offset: .2em; }

.offer-session figcaption {
  padding-block: 10px 0;
  border-block-end: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  line-height: 1.48;
}

.offer-session figcaption p { max-width: 48ch; }
.offer-session figcaption .offer-eyebrow { margin-block-end: 3px; }
.offer-hero--website .breadcrumbs { margin-block-end: 12px; }

@media (min-width: 900px) {
  .offer-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: center;
    gap: clamp(28px, 5vw, 88px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .offer-hero :is(a, summary) { transition: none; }
}

.offer-draft {
  margin-block-start: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border-hairline);
  background: var(--surface-raised);
}

.offer-draft > p + p { margin-block-start: 5px; }

@media (max-width: 375px) {
  .offer-hero h1 { font-size: 32px; }
  .offer-copy > .offer-description { font-size: 16px; }
}

/* The adjoining paper sections follow in normal flow. */
:is(.offer-hero, .offer-band) + .sheet {
  margin-block-start: 0;
  border-radius: 0;
}

:is(.offer-hero, .offer-band) + .sheet::before {
  box-shadow: none;
}
