/* sagebeckingham.com. Palette: Lamplight. Mobile first.
   Baseline grid: every line of body text sits on a --line grid.
   Each .block starts its own grid, so drift can't build up. */

:root {
  --dark: #16120E;
  --paper: #F5F4EF;
  --ink: #1B1A16;
  --muted: #4A4740;
  --green: #2E9E5B;
  --deep: #1F7A46;
  --grid: #E6E9E2;
  --on-dark: #F1ECE4;
  --on-dark-muted: #C2B8AA;
  --rule: #DDD8CC;
  --rule-dark: rgba(241, 236, 228, .18);

  --head: "Familjen Grotesk", system-ui, sans-serif;
  --sans: "Instrument Sans", system-ui, sans-serif;
  --mono: "Courier Prime", ui-monospace, Menlo, Consolas, monospace;
  --hand: "Permanent Marker", "Comic Sans MS", sans-serif;

  --line: 26px;      /* body line height = grid spacing */
  --grid-y: 20px;    /* puts a grid line just under the first baseline */
  --gutter: 16px;
  --radius: 12px;
  --section: calc(var(--line) * 2);  /* space above and below sections */
}

@media (min-width: 768px) {
  :root { --line: 28px; --grid-y: 21px; --gutter: 32px; --section: calc(var(--line) * 3); }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: var(--line);
  overflow-x: clip;
}

@media (min-width: 768px) { body { font-size: 17px; } }

img, video { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--head);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p, ul, ol, figure, blockquote { margin: 0; }
strong { font-weight: 600; }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 60;
  background: var(--on-dark);
  color: var(--ink);
  padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* Links ------------------------------------------------------------ */

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-thickness: 3px; }

/* Buttons ---------------------------------------------------------- */

.btn {
  display: inline-block;
  background: var(--deep);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 17px;
  line-height: 1;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: #196a3b; }
.btn--small { font-size: 15px; padding: 10px 16px; }

/* Banner and nav --------------------------------------------------- */

.season-bar {
  background: var(--deep);
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  padding: 8px var(--gutter) 9px;
  text-align: center;
  text-wrap: balance;
}
.season-hand {
  display: block;
  font-family: var(--hand);
  font-size: 22px;
  line-height: 28px;
  transform: rotate(-1deg);
}
.season-bar a {
  color: #fff;
  font-weight: 600;
  text-decoration-color: #fff;
  text-decoration-thickness: 1px;
  white-space: nowrap;
  margin-left: 4px;
}

@media (min-width: 768px) {
  .season-hand { display: inline-block; margin-right: 4px; }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: var(--on-dark);
  box-shadow: 0 1px 0 var(--rule-dark);
}
.topbar-in {
  max-width: 1320px;
  margin-inline: auto;
  padding: 8px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand {
  font-family: var(--head);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.nav-links { display: none; }

.menu summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.menu summary::-webkit-details-marker { display: none; }
.menu svg { width: 22px; height: 22px; stroke: var(--on-dark); stroke-width: 2; stroke-linecap: round; fill: none; }
.menu[open] summary { background: var(--rule-dark); }
.menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--dark);
  box-shadow: 0 1px 0 var(--rule-dark);
  padding: 4px var(--gutter) 12px;
}
.menu-panel a {
  display: block;
  padding: 10px 0;
  font-size: 17px;
  text-decoration: none;
}
.menu-panel a:hover { text-decoration: underline; text-decoration-color: var(--green); }

@media (min-width: 900px) {
  .menu { display: none; }
  .nav-links {
    display: flex;
    gap: 26px;
    margin-right: 22px;
    font-size: 15px;
  }
  .nav-links a { text-decoration: none; white-space: nowrap; }
  .nav-links a:hover { text-decoration: underline; text-decoration-color: var(--green); }
  .brand { font-size: 19px; }
}

/* Hero ------------------------------------------------------------- */

.hero {
  background: var(--dark);
  color: var(--on-dark);
  padding: 12px var(--gutter) 28px;
}
.hero-grid {
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}
.hero-eyebrow {
  color: var(--green);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 8px;
}
.hero h1 {
  font-size: 37px;
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: wrap;
}
.hero-sub {
  font-family: var(--head);
  font-weight: 700;
  font-size: 23px;
  line-height: 1.18;
  color: #DCD3C6;
  margin-top: 8px;
}
.hero-support {
  font-size: 18px;
  line-height: 1.38;
  color: var(--on-dark-muted);
  margin-top: 6px;
}
/* Below 900px the hero stacks: photo, button and links, then the short receipt */
@media (max-width: 899px) {
  .hero-media { display: contents; }
  .hero-photo { margin-top: 10px; }
  .hero-cta { order: 1; }
  .receipt--compact { order: 2; }
}
.hero-photo {
  display: block;
  margin-inline: calc(var(--gutter) * -1);
}
.hero-photo img {
  width: 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: 70% 26%;
}
.hero-cta { margin-top: 20px; }
.hero-micro {
  color: var(--on-dark-muted);
  font-size: 15px;
  line-height: 22px;
  margin-top: 14px;
}
.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 24px;
}

/* Receipt ---------------------------------------------------------- */

.receipt {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-family: var(--mono);
}
.receipt p { margin: 0; }
.rc-title { font-weight: 700; }
.rc-rule { border-top: 1px dashed #B9B3A5; margin: 8px 0; }

.receipt--full { display: none; }

.receipt--compact {
  margin: 24px -8px 0;
  padding: 14px 10px;
  font-size: min(13.4px, calc((100vw - 38px) / 26.6));
  line-height: 21px;
}
.rc-row { display: flex; gap: .6ch; white-space: nowrap; }
.rc-dots { flex: 1 1 0; min-width: 1ch; overflow: hidden; }
.rc-time { margin-top: 8px; }
.rc-time-gap { height: 60px; }
.rc-mins { white-space: nowrap; }

.rc-more summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 24px;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  display: inline-block;
}
.rc-more summary::-webkit-details-marker { display: none; }
.rc-more-in { margin-top: 10px; }
.rc-more-in > * + * { margin-top: 8px; }

.rc-eight summary {
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  display: inline-block;
}
.rc-eight summary::-webkit-details-marker { display: none; }
.rc-eight ul { list-style: none; padding: 0; margin-top: 4px; }
.rc-eight li::first-letter { text-transform: uppercase; }

/* Handwritten notes ------------------------------------------------ */

.pin {
  position: relative;
  display: inline-block;
  width: 0;
  height: 0;
  vertical-align: baseline;
}
.note {
  position: absolute;
  font-family: var(--hand);
  color: var(--green);
  font-size: 22px;
  line-height: 1.1;
  font-weight: 400;
  white-space: nowrap;
  transform: rotate(-3deg);
  letter-spacing: 0;
}
.arrow {
  position: absolute;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

/* "Conservative estimate": compact receipt */
.pin--time-c .note { left: -128px; top: 28px; font-size: 19px; }
.pin--time-c .arrow { left: -16px; top: 3px; width: 18px; height: 26px; }

/* "Conservative estimate": full receipt, sits just below the slip */
.pin--time-f .note { right: 44px; top: 42px; font-size: 22px; }
.pin--time-f .arrow { right: 0; top: 6px; width: 42px; height: 52px; }

/* "Ouch!" */
.pin--ouch .note { left: -12px; top: 36px; font-size: 24px; }
.pin--ouch .arrow { left: -2px; top: 6px; width: 26px; height: 30px; }
.mark--nowrap { white-space: nowrap; }
.mark { background: linear-gradient(transparent 58%, rgba(46, 158, 91, .32) 58%, rgba(46, 158, 91, .32) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.has-note { margin-bottom: calc(var(--line) * 3) !important; }

/* "All mine": the note sits over Exhibit B's top-right corner at every width */
.exhibit-note {
  position: relative;
  height: calc(var(--line) * 2);
  width: min(100%, 426px);
  margin-inline: auto;
}
.exhibit-note .note { right: 62px; top: 4px; font-size: 26px; }
.exhibit-note .arrow { right: 14px; top: 16px; width: 44px; height: 38px; }

/* "Yes, repaid every cent" */
.pin--repaid .note { right: -16px; top: -78px; font-size: 20px; white-space: normal; width: 126px; text-align: center; transform: rotate(-4deg); }
.pin--repaid .arrow { right: 106px; top: -50px; width: 34px; height: 30px; }
@media (max-width: 359px) { .pin--repaid { display: none; } }

/* Proof strip ------------------------------------------------------ */

.proof {
  background: var(--dark);
  color: var(--on-dark);
  padding: 0 var(--gutter) 28px;
}
.proof-grid {
  max-width: 1320px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--rule-dark);
}
.proof-item {
  padding: 16px 14px 16px 0;
  border-bottom: 1px solid var(--rule-dark);
}
.proof-item:nth-child(even) { padding-left: 14px; padding-right: 0; border-left: 1px solid var(--rule-dark); }
.proof-item:nth-last-child(-n + 2) { border-bottom: 0; }
.proof-lead {
  display: block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.12;
}
.proof-line {
  display: block;
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 20px;
  margin-top: 6px;
}
a.proof-link { display: block; text-decoration: none; }
a.proof-link .proof-line { text-decoration: underline; text-decoration-color: var(--green); text-underline-offset: 3px; }

/* Paper sections and the baseline grid ----------------------------- */

.block {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: var(--line) var(--line);
  background-position: 0 var(--grid-y);
  padding-inline: var(--gutter);
  padding-bottom: var(--line);
}
.block--top { padding-top: var(--section); }
.block--end { padding-bottom: var(--section); }

/* Links on paper: clearly clickable. Underline always means link. */
.block a:not(.btn), .toggle summary { color: var(--deep); font-weight: 600; }
.block sup a { font-weight: 500; }
.block--flush { padding-bottom: 0; }

.wrap { max-width: 1040px; margin-inline: auto; }
.prose > *, .prose--exhibit > * { max-width: 660px; }
.prose > * + * { margin-top: var(--line); }

.eyebrow {
  font-size: 19px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.eyebrow--dark { color: var(--green); }

h2 {
  font-size: 31px;
  line-height: 36px;
  letter-spacing: -.01em;
}
.lead {
  font-size: 19px;
  line-height: calc(var(--line) * 1);
  margin-top: var(--line);
  max-width: 660px;
}

@media (min-width: 768px) {
  h2 { font-size: 44px; line-height: 50px; }
  .lead { font-size: 21px; }
}

/* Problem */
.big-line {
  font-family: var(--head);
  font-weight: 700;
  font-size: 22px;
  line-height: 30px;
  max-width: 800px;
}
@media (min-width: 768px) { .big-line { font-size: 30px; line-height: 38px; } }

sup { line-height: 0; font-size: 1em; vertical-align: baseline; font-family: var(--sans); font-weight: 500; }
sup a { text-decoration-thickness: 1px; padding-inline: 1px; }

.small {
  font-size: 14px;
  color: var(--muted);
}
.small:target { background: var(--grid); }

/* Cards: one style throughout -------------------------------------- */

.card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

/* The Idea: two buyers */
.buyers { padding: 20px 18px; }
.buyers > * + * { margin-top: 16px; }
.buyers-head { font-weight: 600; font-size: 18px; line-height: 1.4; }
.buyers-pair { display: grid; gap: 24px; }
.buyers-who { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 1.25; }
.buyer > * + * { margin-top: 12px; }
@media (min-width: 900px) { .buyers { padding: 28px; } }
@media (min-width: 1100px) { .buyers-pair { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* BIAS ------------------------------------------------------------- */

.dict-head { font-size: 19px; }
.dict-word { font-family: var(--head); font-weight: 700; font-size: 26px; }
.dict-pron { color: var(--muted); font-style: italic; }
.dict ol { padding-left: 24px; }
.dict li + li { margin-top: 0; }

.step {
  display: grid;
  gap: var(--line) 48px;
  grid-template-columns: minmax(0, 1fr);
}
.step-art {
  width: calc(var(--line) * 9);
  height: calc(var(--line) * 9);
  max-width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
  justify-self: center;
}
/* Stacked under the text (phones, narrow windows): a little taller now the files are trimmed */
@media (max-width: 767px) {
  .step-art { height: calc(var(--line) * 11); }
}
.step-head { margin-bottom: var(--line); }
.step-name {
  font-size: 50px;
  line-height: calc(var(--line) * 2);
  letter-spacing: -.015em;
}
.init { background: linear-gradient(transparent 44%, rgba(46, 158, 91, .4) 44%, rgba(46, 158, 91, .4) 80%, transparent 80%); padding-inline: 3px; margin-inline: -3px; }
.sub-name {
  font-size: 27px;
  line-height: calc(var(--line) * 1.5);
  letter-spacing: -.01em;
}

.depth { list-style: none; padding: 0; }
.depth li { padding: 12px 14px; }
.depth li:nth-child(1) { background: var(--grid); border-radius: 8px 8px 0 0; }
.depth li:nth-child(2) { background: #BFDCC9; }
.depth li:nth-child(3) { background: var(--dark); color: var(--on-dark); border-radius: 0 0 8px 8px; }

/* Drawings sit beside their text from half-screen width up, centred against it */
/* Drawings sit beside their text from half-screen width up, centred against it.
   Their size grows smoothly with the window, up to the full-screen size, so half-screen isn't a sudden drop.
   Long sections (Brand, Insight, Scale) get a bigger drawing to match. */
@media (min-width: 768px) {
  .step { --art: clamp(280px, 30vw, 300px); grid-template-columns: minmax(0, 1fr) var(--art); gap: var(--line) 40px; align-items: center; }
  .step--tall { --art: clamp(300px, 35vw, 380px); }
  .step--flip { grid-template-columns: var(--art) minmax(0, 1fr); }
  .step--flip .step-art { order: -1; }
  /* Drawing files are trimmed to the figure, so a taller box shows a bigger figure in the same column */
  .step-art { width: var(--art); height: calc(var(--art) * 1.3); }
}
@media (min-width: 1100px) {
  .step { grid-template-columns: minmax(0, 660px) var(--art); justify-content: space-between; }
  .step--flip { grid-template-columns: var(--art) minmax(0, 660px); }
  .step--tall { --art: 380px; grid-template-columns: minmax(0, 620px) var(--art); }
  .step--tall.step--flip { grid-template-columns: var(--art) minmax(0, 620px); }
}

@media (min-width: 900px) {
  .step-name { font-size: 64px; }
  .sub-name { font-size: 32px; }
  .depth li:nth-child(2) { margin-left: calc(var(--line) * 2); }
  .depth li:nth-child(3) { margin-left: calc(var(--line) * 4); }
}

/* Portfolio -------------------------------------------------------- */

.key { list-style: none; padding: 0; }
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.work-card {
  overflow: hidden;
  scroll-margin-top: 76px;
}
.work-card img, .work-card video { width: 100%; }
.work-zoom { display: block; cursor: zoom-in; }
.work-note { color: var(--muted); font-size: 13px; line-height: 18px; }
.work-card video { background: var(--dark); aspect-ratio: 9 / 16; }
.work-body {
  padding: 10px 12px 12px;
  font-size: 14px;
  line-height: 20px;
}
.work-body > * + * { margin-top: 8px; }
.work-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--muted); }
.work-brand { font-weight: 600; }

.tag {
  display: inline-block;
  font-size: 13px;
  line-height: 20px;
  font-weight: 600;
  padding: 0 9px;
  border-radius: 999px;
}
.tag--green { background: var(--green); color: var(--ink); }
.tag--muted { background: var(--grid); color: var(--muted); }

.toggle summary {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--green);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  width: fit-content;
}
.work-copy { margin-top: 10px; font-size: 15px; line-height: 23px; }
.work-copy > * + * { margin-top: 10px; }
.work-copy .copy-label { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: .02em; }
.work-copy .copy-label + p { margin-top: 2px; }
.work-copy p + .copy-label { margin-top: 16px; }

/* Keeps two tags side by side in the narrow two-across phone cards */
@media (max-width: 899px) {
  .work-tagline { column-gap: 5px; }
  .work-tagline .tag { padding-inline: 7px; }
}

/* An open ad takes the full row on phones, so its copy stays readable */
.work-card:has(details[open]) { grid-column: 1 / -1; }

.work-cta { grid-column: 1 / -1; padding-top: var(--line); }
.work-cta-line {
  font-family: var(--head);
  font-weight: 700;
  font-size: 27px;
  line-height: 32px;
  margin-bottom: 28px;
  text-wrap: balance;
}
.work-cta .text-links { margin-top: 16px; }

@media (min-width: 900px) {
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .work-card:has(details[open]) { grid-column: auto; }
  .work-body { padding: 14px 16px 16px; font-size: 15px; line-height: 22px; }
  .work-cta { grid-column: auto; padding: 0 0 0 16px; align-self: center; }
  .work-cta-line { font-size: 34px; line-height: 40px; }
}

/* Meet Sage -------------------------------------------------------- */

.meet-head { display: flex; flex-direction: column; gap: var(--line); }
.meet-head > div { order: -1; }
.meet-photo { border-radius: 8px; width: 240px; max-width: 100%; align-self: center; }

/* Exhibits: small prints taped to the page, centred in the story */
.exhibit {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: #fff;
  border: 1px solid var(--rule);
  padding: 12px 12px 14px;
}
.exhibit::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 24px;
  margin-left: -46px;
  background: rgba(46, 158, 91, .28);
  transform: rotate(-2deg);
}
.exhibit img { border-radius: 2px; }
.exhibit--a { transform: rotate(-1.6deg); margin-top: var(--line); }
.exhibit--a img { width: 240px; }
.exhibit--b { transform: rotate(1.2deg); }
/* The frame takes the width; the photo fills it. Up to about 400px of photo, never wider. */
.exhibit--b { width: min(100%, 426px); }
.exhibit--b img { width: 100%; }
.exhibit figcaption { margin-top: 10px; }

/* Half-screen and desktop: the story shares the heading's left edge, portrait sits in the space on the right */
@media (min-width: 768px) {
  .meet-head { display: block; }
  .meet-photo { float: right; width: 240px; margin: calc(var(--line) + 8px) 0 var(--line) 40px; }
  #meet-sage .wrap.prose, #meet-sage .wrap.prose--exhibit { max-width: 680px; margin-left: max(0px, calc((100% - 1040px) / 2)); margin-right: auto; }
  #meet-sage .prose > * { max-width: none; }
  .prose--exhibit { clear: both; }
  .exhibit--b { width: fit-content; }
  .exhibit--b img { width: 280px; }
  .exhibit-note { width: 306px; margin-inline: auto; }
}

/* Desktop: text-only sections sit in a centred reading column */
@media (min-width: 900px) {
  #problem .wrap, #idea .wrap, #faq .wrap { max-width: 680px; }
  #problem .prose > *, #idea .prose > * { max-width: none; }
  #faq .faq > details { max-width: none; }
}
/* Full screen: the two-buyers card sticks out evenly either side of the text */
@media (min-width: 1100px) {
  #idea .wrap:has(.buyers) { max-width: 860px; }
}

.creds-title { font-size: 27px; line-height: calc(var(--line) * 2); margin-bottom: var(--line); }
.creds {
  display: grid;
  gap: var(--line) 48px;
  list-style: none;
  padding: 0;
}
.creds strong { display: block; font-weight: 600; }
/* A table at every width: rows with dividing lines. Phones stack the label above its line. */
.creds { gap: 0; }
.creds li { padding-block: calc(var(--line) / 2); box-shadow: 0 1px 0 var(--rule); }
.creds li:first-child { box-shadow: 0 1px 0 var(--rule), 0 -1px 0 var(--rule); }
/* From 600px: label left, line right */
@media (min-width: 600px) {
  .creds li { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 28px; }
}
@media (min-width: 768px) {
  .creds li { grid-template-columns: 240px minmax(0, 1fr); gap: 0 32px; }
  .creds-title { font-size: 32px; }
}
@media (min-width: 1100px) {
  .creds li { grid-template-columns: 300px minmax(0, 1fr); gap: 0 48px; }
}

/* Testimonials ----------------------------------------------------- */

.quotes { display: grid; gap: 16px; align-items: stretch; }
.quote { padding: 20px 18px; display: flex; flex-direction: column; gap: 18px; }
.quote blockquote { flex: 1; }
.quote blockquote p + p { margin-top: 12px; }
.quote-who { display: flex; align-items: center; gap: 12px; font-size: 14px; line-height: 20px; font-weight: 500; }
.quote-pic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
@media (min-width: 900px) {
  .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .quote { padding: 24px; }
}

/* Offer ------------------------------------------------------------ */

.dark {
  background: var(--dark);
  color: var(--on-dark);
  padding: var(--section) var(--gutter);
}
.dark h2 { color: var(--on-dark); }
.offer-sub { color: var(--on-dark-muted); margin-top: var(--line); max-width: 660px; font-size: 18px; }
.offer-qual { color: var(--on-dark-muted); margin-top: 12px; max-width: 660px; }

.offers {
  display: grid;
  gap: 20px;
  margin-top: calc(var(--line) * 1.5);
  align-items: start;
}
.offer {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 22px 18px;
  scroll-margin-top: 76px;
}
.offer > * + * { margin-top: 16px; }
.offer > .btn { margin-top: 28px; }
.offer h3 { font-size: 25px; line-height: 30px; margin-top: 10px; }
.offer-price {
  font-family: var(--head);
  font-weight: 700;
  font-size: 37px;
  line-height: 44px;
  letter-spacing: -.015em;
  margin-top: 14px;
}
@media (min-width: 768px) { .offer-price { font-size: 44px; line-height: 50px; } .offer-note-line { font-size: 16px; } }
.offer-note-line { margin-top: 2px !important; font-size: 15px; font-weight: 500; color: var(--muted); }
.offer-steps { list-style: none; padding: 0; counter-reset: s; }
.offer-steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
}
.offer-steps li + li { margin-top: 12px; }
.offer-steps li::before {
  content: counter(s);
  font-family: var(--head);
  font-weight: 700;
  font-size: 24px;
}
.forfeit {
  background: var(--grid);
  border-radius: 8px;
  padding: 14px 16px;
  display: flow-root;
}
.forfeit-cake { float: right; width: 110px; height: auto; margin: 0 -4px 4px 12px; mix-blend-mode: multiply; }
@media (min-width: 768px) { .forfeit-cake { width: 130px; } }
.forfeit-big { font-family: var(--head); font-weight: 700; font-size: 20px; line-height: 26px; }
.forfeit p + p { margin-top: 6px; }
.offer-reason { color: var(--muted); }
.offer-under { font-size: 15px; line-height: 22px; color: var(--muted); }
.offer-under p + p { margin-top: 6px; }
.offer-faq { margin-top: 20px !important; font-size: 15px; line-height: 22px; }
.offer-faq details:first-child { box-shadow: 0 1px 0 var(--rule), 0 -1px 0 var(--rule); }
.offer-faq summary { padding-block: 10px; }
.offer-faq summary::after { line-height: 22px; font-size: 20px; }
.offer-faq .faq-a { padding-bottom: 14px; }
.offer-list { padding-left: 20px; }
.offer-list li + li { margin-top: 6px; }
.offer-label { font-weight: 600; }

@media (min-width: 900px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
  .offers:has(.offer-faq details[open]) { align-items: start; }
  .offer { display: flex; flex-direction: column; }
  .offer > .btn { align-self: flex-start; }
  #retainer { justify-content: space-between; }
  .offer { padding: 28px; }
  .offer-sub { font-size: 19px; }
}

/* FAQ -------------------------------------------------------------- */

.faq > details { max-width: 760px; }
.faq details { box-shadow: 0 1px 0 var(--rule); }
.faq details:first-child { box-shadow: 0 1px 0 var(--rule), 0 -1px 0 var(--rule); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-weight: 600;
  padding-block: calc(var(--line) / 2);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--head); font-size: 22px; line-height: var(--line); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq-a { padding-bottom: var(--line); }
.faq-a p + p { margin-top: var(--line); }

/* Final CTA and footer --------------------------------------------- */

.final h2 { font-size: 36px; line-height: 40px; max-width: 800px; }
.final-body { color: var(--on-dark-muted); margin-top: var(--line); max-width: 660px; font-size: 18px; }
.final .btn { margin-top: 28px; }
.final-under { color: var(--on-dark-muted); margin-top: 16px; max-width: 660px; font-size: 15px; line-height: 22px; }
@media (min-width: 768px) { .final h2 { font-size: 58px; line-height: 62px; } .final-body { font-size: 21px; line-height: 32px; } }

.footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  font-size: 14px;
  line-height: 21px;
  padding: 28px var(--gutter) 36px;
  box-shadow: inset 0 1px 0 var(--rule-dark);
}
.footer-name { color: var(--on-dark); font-weight: 500; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; list-style: none; padding: 0; margin-top: 10px; }
.footer-links a { color: var(--on-dark); }
.footer p + p, .footer-links + p { margin-top: 12px; }
.footer-legal { font-size: 13px; line-height: 19px; max-width: 760px; }

/* Desktop hero ----------------------------------------------------- */

@media (min-width: 768px) {
  .hero { padding-top: 40px; padding-bottom: 40px; }
  .hero-eyebrow { font-size: 22px; margin-bottom: 14px; }
  .hero h1 { font-size: 58px; line-height: 1.05; }
  .hero-sub { font-size: 32px; line-height: 1.2; margin-top: 18px; }
  .hero-support { font-size: 21px; line-height: 1.45; margin-top: 12px; }
  .hero-photo { margin-inline: 0; }
  .hero-photo img { aspect-ratio: 2 / 1; border-radius: 4px; object-position: 62% 34%; }
  .hero-cta { margin-top: 22px; }
  .hero-micro { font-size: 16px; line-height: 24px; max-width: 560px; }
  .receipt--compact { max-width: 560px; margin-inline: 0; font-size: 14px; line-height: 22px; padding: 16px; }
  .proof { padding-bottom: 40px; }
  .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rule-dark); }
  .proof-item { padding: 20px 20px 4px; border-bottom: 0; border-left: 1px solid var(--rule-dark); }
  .proof-item:first-child { padding-left: 0; border-left: 0; }
  .proof-item:nth-child(even) { padding-left: 20px; padding-right: 20px; }
  .proof-lead { font-size: 30px; }
  .proof-line { font-size: 15px; line-height: 22px; }
}

/* Narrow windows, stacked: keep the photo from taking over */
@media (min-width: 600px) and (max-width: 899px) {
  .hero-photo { max-width: 560px; margin-inline: 0; }
  .hero-photo img { border-radius: 4px; }
}

/* From 900px: photo beside the text */
@media (min-width: 900px) {
  .hero { padding-bottom: 28px; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
    grid-template-rows: auto 1fr;
    column-gap: 56px;
  }
  .hero-copy { grid-column: 1; grid-row: 1; }
  .hero-media { grid-column: 2; grid-row: 1 / span 2; margin-top: 0; }
  .hero-photo img { aspect-ratio: 3 / 2; object-position: 50% 50%; }
  .hero-cta { grid-column: 1; grid-row: 2; }
}

/* 900 to 1079px: slightly smaller type so the text column fits; the short receipt stays under the links */
@media (min-width: 900px) and (max-width: 1079px) {
  .hero-grid { column-gap: 40px; }
  /* Short receipt tucked under the photo, like the full one on wider screens */
  .receipt--compact { position: relative; width: calc(100% - 20px); max-width: none; margin: -40px 0 0 auto; font-size: 12.5px; line-height: 20px; padding: 14px; }
  .hero-eyebrow { font-size: 19px; }
  .hero h1 { font-size: 46px; }
  .hero-sub { font-size: 26px; }
  .hero-support { font-size: 19px; }
}

@media (min-width: 1080px) {
  .receipt--compact { display: none; }
  .receipt--full {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: -52px 0 74px auto;
    position: relative;
    padding: 14px 16px;
    font-size: clamp(12px, 1.02vw, 14px);
    line-height: 1.55;
  }
  .rc-pre { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; white-space: pre; }
  .rc-wrap57 { max-width: calc(57ch + 34px); }
}

/* Plain pages (privacy, terms) ------------------------------------- */

.plain h1 { font-size: 37px; line-height: 44px; letter-spacing: -.015em; }
.plain h2 { font-size: 23px; line-height: var(--line); letter-spacing: 0; }
.plain-date { color: var(--muted); margin-top: var(--line); }
@media (min-width: 768px) { .plain h1 { font-size: 58px; line-height: 62px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Narrow desktop windows: Exhibit B matches its full-screen size; only real phones get the bigger version */
@media (min-width: 600px) and (max-width: 767px) {
  .exhibit--b { width: fit-content; }
  .exhibit--b img { width: 280px; }
  .exhibit-note { width: 306px; }
}
