/* squatch.cc/support: what we build and why, and three ways to back it.
 * Loads after dist/output.css, delight.css and assets/home/home.css and uses their tokens (--c-*, --hw-*).
 * Nothing moves here beyond the hero's own rise (delight.css, inside prefers-reduced-motion: no-preference). */

/* ── hero: the trails panorama on wide screens, the tall fern photo on a phone ── */
.sp-hero .hero-art__art img { object-position: 50% 55%; }
.sp-hero { min-height: min(86vh, 780px); }
.sp-hero .hero-art__title { max-width: 14ch; }
.sp-sep { padding-inline: .2em; }
@media (max-width: 52em) {
  .sp-hero { padding-bottom: clamp(3rem, 8vw, 6rem); min-height: 34rem; }   /* home.css keeps room for the walking Founder; no Founder here */
  .sp-hero .hero-art__art img { object-position: 50% 40%; }
}

/* headings break into even lines; body copy avoids one-word last lines */
.support h2, .support h3 { text-wrap: balance; }
.support p, .support li { text-wrap: pretty; }

/* ── three ways ── */
.sp-ways { padding-block: var(--stack); }
.sp-ways h2 { max-width: 22ch; }
.sp-ways__list { list-style: none; padding: 0; margin: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) 0 0; max-width: none;
  display: grid; gap: 0; border-top: 1px solid var(--c-hairline); }
.sp-way { position: relative; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); column-gap: 1rem;
  padding: 1.25rem .5rem 1.4rem; border-bottom: 1px solid var(--c-hairline); }
.sp-way > :not(.sp-way__n) { grid-column: 2; }
.sp-way__n { grid-row: 1 / span 3; font: 600 .8rem/1.9 var(--hw-mono); color: var(--c-accent-text); letter-spacing: .06em; padding-top: .2rem; }
.sp-way__title { font-size: var(--step-1); font-weight: 750; line-height: 1.25; margin: 0; }
.sp-way p { margin: .4rem 0 0; color: var(--c-text-soft); line-height: 1.55; max-width: 44ch; }
@media (max-width: 59.99em) { .sp-ways .sp-way { grid-template-columns: 2rem minmax(0, 1fr); column-gap: .6rem; } }   /* phone: give the words the width */
.sp-way__go { justify-self: start; margin-top: .75rem; font: 600 .95rem/1.2 var(--font-heading); color: var(--c-accent-text);
  text-underline-offset: .2em; }
@media (min-width: 60em) {
  .sp-ways__list { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; column-gap: clamp(1.5rem, 3vw, 3rem); row-gap: 2rem; }
  .sp-way { grid-template-columns: 1fr; border-bottom: 0; border-top: 2px solid var(--c-accent); padding: 1.1rem 0 0; align-content: start; }
  .sp-way > :not(.sp-way__n) { grid-column: 1; }
  .sp-way__n { grid-row: auto; padding: 0 0 .35rem; }
}
@media (min-width: 80em) { .sp-ways__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sp-tiers__title { margin: clamp(2.25rem, 1.6rem + 2.5vw, 3.25rem) 0 0; font-size: var(--step-1); font-weight: 750; }
.sp-tiers { list-style: none; padding: 0; margin: 1rem 0 0; max-width: none; display: grid; gap: .75rem; }
@media (min-width: 40em) { .sp-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 72em) { .sp-tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sp-tier { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.05rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--c-hairline); border-top: 3px solid var(--c-accent); background: #FBFAF6; }
.sp-tier p { margin: 0; }
.sp-tier__head { font: 500 .9rem/1.3 var(--font-heading); color: var(--c-text); }
.sp-tier__head b { display: block; font-size: 1.05rem; font-weight: 750; color: var(--c-accent-text); }
.sp-tier__buys { font-size: .9rem; line-height: 1.5; color: var(--c-text-soft); }
@media (min-width: 40em) { .sp-tiers--once { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sp-ways__lede { margin: .9rem 0 0; max-width: 56ch; color: var(--c-text-soft); font-size: 1.0625rem; line-height: 1.6; }
/* card checkout: buttons stay hidden until support.js finds a live link in payment-links.json */
.sp-pay:not(.btn) { justify-self: start; align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .85rem;
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--c-accent); color: var(--c-accent-text);
  font: 650 .9rem/1.2 var(--font-heading); text-decoration: none; }
.sp-pay:not(.btn):hover { background: rgba(184, 134, 11, .08); }
.sp-pay:focus-visible { outline: 3px solid rgba(184, 134, 11, .6); outline-offset: 2px; }
.sp-pay[hidden] { display: none; }
.sp-pay.btn { justify-self: start; align-self: flex-start; margin-top: .85rem; }
.sp-tier .sp-pay:not(.btn) { margin-top: auto; }
.sp-soon { margin: .8rem 0 0; font: 500 .8rem/1.5 var(--hw-mono); letter-spacing: .02em; color: var(--c-text-soft); }
.sp-soon::before { content: ""; display: inline-block; width: .45rem; height: .45rem; margin-right: .5rem; border-radius: 50%;
  background: var(--c-accent); vertical-align: .08em; }
.sp-ladder .sp-soon { max-width: 60ch; }
/* Other amount (monthly): a card like a tier, full width, below the monthly tiers. Hidden until support.js finds monthly_other.enabled. */
.sp-other { display: grid; gap: 1rem 2rem; margin: .75rem 0 0; padding: 1rem 1.05rem 1.1rem; border-radius: 14px;
  border: 1px solid var(--c-hairline); border-top: 3px solid var(--c-accent); background: #FBFAF6; }
.sp-other[hidden] { display: none; }
@media (min-width: 48em) { .sp-other { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.sp-other__title { display: block; font: 750 1.05rem/1.3 var(--font-heading); color: var(--c-accent-text); }
.sp-other__help { margin: .35rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--c-text-soft); max-width: 52ch; }
.sp-other__row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.sp-other__field { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .85rem; border-radius: 10px; background: #fff;
  border: 1px solid var(--c-hairline); font: 600 1.05rem/1 var(--font-heading); color: var(--c-text); }
.sp-other__field:focus-within { outline: 3px solid rgba(184, 134, 11, .6); outline-offset: 2px; border-color: var(--c-accent); }
.sp-other__input { width: 4.5ch; min-width: 0; padding: .7rem 0; border: 0; background: transparent; font: inherit; color: inherit; text-align: right; }
.sp-other__input:focus { outline: 0; }
.sp-other__input::placeholder { color: #8c7f68; opacity: 1; }
.sp-other__affix { color: var(--c-text-soft); font-weight: 500; }
.sp-other__affix--end { font-size: .9rem; }
.sp-other .sp-other__go { margin-top: 0; cursor: pointer; background: transparent; }
.sp-other__error { margin: 0 0 .75rem; padding: .55rem .75rem; border-left: 3px solid #8B2E1F; background: #F8ECE6; color: #6E2216;
  font: 600 .9rem/1.4 var(--font-heading); border-radius: 0 8px 8px 0; }
.sp-other__field:has(input[aria-invalid="true"]) { border-color: #8B2E1F; }
.sp-note { margin: 1.1rem 0 0; font-size: .9rem; color: var(--c-text-soft); }

/* ── the projects: the dark showcase ground of the home page ── */
.sp-projects { background: var(--hw-ink); color: var(--hw-body); padding-block: calc(var(--stack) * 1.15); }
.sp-projects .eyebrow { color: var(--hw-gold); }
.sp-projects h2 { color: var(--c-bg); max-width: 20ch; }
.sp-projects .hl { color: var(--hw-gold); }
.sp-intro { color: var(--hw-body); font-size: 1.0625rem; line-height: 1.6; max-width: 58ch; margin-top: .9rem; }
.sp-stages { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem 0; max-width: none;
  font: 600 .72rem/1 var(--hw-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--hw-gold); }
.sp-stages li + li::before { content: "→"; padding-inline: .7rem; opacity: .6; }
.sp-legend { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; max-width: none;
  font: 600 .72rem/1.4 var(--hw-mono); letter-spacing: .1em; text-transform: uppercase; color: #C9BFA6; }
.sp-legend li, .sp-check__list li { position: relative; padding-left: 1.6rem; }
.sp-legend li::before, .sp-check__list li::before { content: ""; position: absolute; left: 0; top: .1em; width: 1rem; height: 1rem;
  border-radius: 50%; box-sizing: border-box; }
.is-done::before { background: var(--hw-gold); }
.is-done::after { content: ""; position: absolute; left: .34rem; top: calc(.1em + .2rem); width: .3rem; height: .52rem;
  border: solid var(--hw-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.is-now::before { border: 2px solid var(--hw-gold); background: linear-gradient(90deg, var(--hw-gold) 50%, transparent 50%); }
.is-next::before { border: 1.5px solid rgba(240, 220, 166, .45); }

.sp-list { list-style: none; padding: 0; margin: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) 0 0; max-width: none;
  display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
/* one project per row on wide screens: a teaser beside the words, or the words beside the checklist; no ragged columns */
@media (min-width: 60em) {
  .sp-p.has-fig { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; }
  .sp-p.has-fig > .sp-fig { margin: 1.25rem 0 1.25rem 1.25rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--hw-rule); }
  .sp-p.has-fig .sp-p__body { padding: 1.75rem 1.75rem 1.9rem 1.5rem; }
  .sp-p:not(.has-fig) .sp-p__body { padding: 1.75rem 1.75rem 1.9rem; }
  .sp-p:not(.has-fig) .sp-p__text { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 2.5rem;
    grid-auto-rows: min-content; }
  .sp-p:not(.has-fig) .sp-p__text > * { grid-column: 1; }
  .sp-p:not(.has-fig) .sp-check { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; padding: 0 0 0 2.5rem; border-top: 0;
    border-left: 1px solid var(--hw-rule); }
  /* Fieldlogger: the board and its schematic side by side across the card, uncropped, then words beside the checklist */
  .sp-p.sp-p--wide { display: block; }
  .sp-p.sp-p--wide > .sp-fig { margin: 1.25rem 1.25rem 0; }
  .sp-p--wide .sp-fig--pair { grid-template-columns: 1fr 1fr; }
  .sp-p.sp-p--wide .sp-p__body { padding: 1.75rem 1.75rem 1.9rem; }
  .sp-p--wide .sp-p__text { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 2.5rem;
    grid-auto-rows: min-content; }
  .sp-p--wide .sp-p__text > * { grid-column: 1; }
  .sp-p--wide .sp-check { grid-column: 2; grid-row: 1 / span 5; margin-top: 0; padding: 0 0 0 2.5rem; border-top: 0;
    border-left: 1px solid var(--hw-rule); }
}
/* phone and tablet: the project number moves to the top corner so the words get the card's full width */
@media (max-width: 59.99em) {
  .sp-p .sp-p__body { display: block; position: relative; }
  .sp-p .sp-p__n { position: absolute; top: 1.25rem; right: 1.25rem; line-height: 1.4; }
  .sp-p .sp-p__for { padding-right: 2.75rem; }
}
.sp-p { border: 1px solid var(--hw-rule); border-radius: 18px; background: var(--hw-ink-2); overflow: hidden; scroll-margin-top: 5rem; }
.sp-p__body { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); column-gap: .6rem; padding: 1.25rem 1.25rem 1.4rem; }
.sp-p__n { font: 600 .8rem/1.9 var(--hw-mono); color: var(--hw-gold); letter-spacing: .06em; }
.sp-p__text { min-width: 0; }
.sp-p__for { margin: 0; font: 600 .72rem/1.4 var(--hw-mono); letter-spacing: .1em; text-transform: uppercase; color: #C9BFA6; }
.sp-p__name { margin: .3rem 0 0; font-size: var(--step-1); font-weight: 750; line-height: 1.2; color: var(--c-bg); }
.sp-p__text > p:not(.sp-p__for) { margin: .45rem 0 0; color: var(--hw-body); line-height: 1.55; max-width: 56ch; }
.sp-projects .sp-pay, .sp-also .sp-pay { border-color: rgba(240, 220, 166, .55); color: var(--hw-gold); }
.sp-projects .sp-pay:not(.btn):hover { background: rgba(240, 220, 166, .08); }
/* on the dark ground the paper's dark-gold focus ring vanishes; use the light gold */
.sp-projects a:focus-visible, .sp-also a:focus-visible, .sp-board a:focus-visible {
  outline: 3px solid var(--hw-gold); outline-offset: 3px; box-shadow: none; }

/* teasers: real crops, renders and traces, softened on purpose; 16:10 */
.sp-fig { margin: 0; position: relative; background: var(--hw-ink); }
.sp-fig img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.sp-fig--pair { display: grid; grid-template-columns: 3fr 2fr; gap: 2px; }
.sp-fig--pair img { height: 100%; object-fit: cover; }
@media (max-width: 39.99em) {   /* phone: one above the other, each full width, so the drawing is readable */
  .sp-fig--pair { grid-template-columns: 1fr; }
  .sp-fig--pair img { height: auto; }
}
.sp-fig figcaption { grid-column: 1 / -1; padding: .55rem 1.25rem .1rem; font: 600 .7rem/1.4 var(--hw-mono); letter-spacing: .06em;
  color: #C9BFA6; background: var(--hw-ink-2); }

.sp-check { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--hw-rule); }
.sp-check__h { margin: 0 0 .6rem; font: 600 .72rem/1.4 var(--hw-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--hw-gold); }
.sp-check__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; max-width: none; font-size: .95rem; line-height: 1.45; }
.sp-check__list li { color: var(--hw-body); }
.sp-check__list li.is-now { color: var(--c-bg); font-weight: 600; }
.sp-check__list li.is-next { color: #A99E86; }
.sp-check__list a { color: var(--hw-gold); text-underline-offset: .2em; }
.sp-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── also on the bench: the rest of the workshop, on the same dark ground ── */
.sp-also { background: var(--hw-ink); color: var(--hw-body); padding-block: 0 calc(var(--stack) * 1.15); }
.sp-also .eyebrow { color: var(--hw-gold); }
.sp-also h2 { color: var(--c-bg); max-width: 20ch; }
.sp-also .hl { color: var(--hw-gold); }
.sp-also__list { list-style: none; padding: 0; margin: clamp(1.5rem, 1rem + 2vw, 2.5rem) 0 0; max-width: none; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.sp-a { display: grid; gap: 1.1rem 2rem; padding-top: clamp(1.25rem, 2.5vw, 2rem); border-top: 1px solid var(--hw-rule); scroll-margin-top: 5rem; }
@media (min-width: 52em) { .sp-a { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; } }
.sp-a .sp-fig { border-radius: 14px; overflow: hidden; border: 1px solid var(--hw-rule); }
.sp-a .sp-fig figcaption { padding: .55rem 1rem .6rem; }
.sp-fig--shot { background: var(--hw-ink-2); padding: clamp(.75rem, 2vw, 1.25rem); }
.sp-fig--shot img { aspect-ratio: auto; border-radius: 10px; }
.sp-fig--phone img { width: min(14rem, 48%); margin-inline: auto; border-radius: 22px; }
.sp-a__text > p:not(.sp-p__for) { margin: .45rem 0 0; color: var(--hw-body); line-height: 1.55; max-width: 56ch; }

/* ── where the money goes: a real board, full bleed ── */
.sp-board { position: relative; isolation: isolate; background: #12100B; color: var(--c-on-mark); }
.sp-board__img { display: block; width: 100%; height: auto; }
.sp-board__copy { padding-block: clamp(2rem, 6vw, 3rem) var(--stack); }
.sp-board .eyebrow { color: var(--hw-gold); }
.sp-board h2 { color: var(--c-bg); max-width: 18ch; }
.sp-board h2 .em { color: var(--hw-gold); }
.sp-board p:not(.eyebrow) { color: var(--hw-body); line-height: 1.6; max-width: 46ch; margin-top: .9rem; }
@media (min-width: 52em) {
  .sp-board { min-height: min(92vh, 52rem); display: flex; align-items: center; overflow: hidden; }
  .sp-board__img { position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover; object-position: 72% 42%; }
  .sp-board::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(90deg, rgba(18,16,11,.95) 0%, rgba(18,16,11,.88) 34%, rgba(18,16,11,.55) 52%, rgba(18,16,11,.08) 74%, transparent 86%); }
  .sp-board__copy { width: 100%; padding-block: var(--stack); }
  .sp-board__copy .wrap > * { max-width: 30rem; }
}

/* ── close ── */
.sp-close { padding-block: var(--stack) calc(var(--stack) * .75); }
.sp-close h2 { max-width: 20ch; }
.sp-wants { list-style: none; padding: 0; margin: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) 0 0; max-width: none; display: grid; gap: 0;
  border-top: 1px solid var(--c-hairline); }
@media (min-width: 52em) { .sp-wants { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 4vw, 4rem); } }
.sp-want { padding: 1.25rem 0 1.4rem; border-bottom: 1px solid var(--c-hairline); display: flex; flex-direction: column; align-items: flex-start; }
.sp-want__title { margin: 0; font-size: var(--step-1); font-weight: 750; line-height: 1.25; }
.sp-want p { margin: .4rem 0 0; color: var(--c-text-soft); line-height: 1.55; max-width: 48ch; }
.sp-want__for { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .45rem; max-width: none; }
.sp-want__for a { display: inline-block; padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--c-hairline);
  font: 500 .82rem/1.3 var(--font-heading); color: var(--c-text); text-decoration: none; }
.sp-want__for a:hover { border-color: var(--c-accent); }
.sp-close .sp-note a { color: var(--c-accent-text); }

.support + .site-footer { margin-top: 0; }   /* the close band already ends the page; no second gap of paper */
/* ── use cases under each project ── */
.sp-uses { margin: .7rem 0 0; padding: 0; list-style: none; max-width: 54ch; display: grid; gap: .4rem; }
.sp-uses li { position: relative; padding-left: 1.1rem; font-size: .95rem; line-height: 1.5; color: var(--hw-body); }
.sp-uses li::before { content: ""; position: absolute; left: 0; top: .62em; width: .45rem; height: 2px; background: var(--hw-gold); }

/* ── 3D design and making: our renders on the paper ground ── */
.sp-make { padding-block: var(--stack); }
.sp-make h2 { max-width: 22ch; }
.sp-make__lede { margin-top: .9rem; color: var(--c-text-soft); font-size: 1.0625rem; line-height: 1.6; max-width: 62ch; }
.sp-make__grid { margin-top: clamp(1.75rem, 1.2rem + 2vw, 2.75rem); display: grid; gap: 1.25rem; }
@media (min-width: 60em) {     /* the pedal and the guitar body share a row at the same height: columns in the ratio of their shapes */
  .sp-make__grid { grid-template-columns: 1.389fr .857fr; align-items: start; }
  .sp-make__grid > :nth-child(-n+2) img { height: clamp(22rem, 30vw, 28rem); object-fit: cover; object-position: 50% 50%; }
}
.sp-make__grid > :nth-child(1) img { object-position: 50% 55%; }   /* the board, not the backdrop */
.sp-shot { margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.sp-shot img { display: block; width: 100%; height: auto; border-radius: 14px; background: #D9D6CF; }
.sp-shot figcaption { font-size: .9rem; line-height: 1.45; color: var(--c-text-soft); }
.sp-make__more { margin-top: 1.4rem; color: var(--c-text-soft); max-width: none; }
.sp-make__more a:not(.sp-way__go) { color: var(--c-accent-text); }
.sp-make__more .sp-way__go { display: inline-block; margin: .6rem 0 0; }
@media (min-width: 52em) { .sp-make__more .sp-way__go { margin: 0 0 0 1rem; } }

/* anchored jumps (#projects, #making, #looking-for) land below the sticky header */
#back, #projects, #making, #looking-for { scroll-margin-top: 5.5rem; }


/* ── the roadmap charts: Mermaid rendered to SVG at build time (tools/support-charts), a wide and a stacked version ── */
.sp-chart { margin: clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem) 0 0; }
.sp-chart figcaption { color: var(--c-text-soft); line-height: 1.5; }
.sp-chart--ink figcaption { color: var(--hw-body); font-size: .95rem; }
.sp-chart__wide, .sp-chart__narrow { margin-top: 1rem; }
.sp-chart svg { display: block; width: 100%; height: auto; margin-inline: auto; }
.sp-chart svg * { filter: none !important; }     /* no soft glow under the nodes */
.sp-chart__narrow { display: none; }
@media (max-width: 47.99em) { .sp-chart__wide { display: none; } .sp-chart__narrow { display: block; } }

/* Back from the Stripe customer portal: a quiet confirmation above the hero, not a toast. */
.sp-saved { border-bottom: 1px solid var(--c-hairline); }
.sp-saved p { margin: 0 auto; padding: .75rem 0; font: 600 .95rem/1.4 var(--font-heading); color: var(--c-text); }
.sp-saved p::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .6rem; border-radius: 50%;
  background: var(--c-accent); vertical-align: .08em; }
.sp-manage a { color: var(--c-accent-text); text-underline-offset: .2em; }
