/* Sleep Buds sales page and its step 2 screen (approved mockups: docs/mockups/device-sales/).
   Scoped to .sb so it never touches the rest of the app. Ported from site.css on 2026-12-04. */
.sb {
  --ink: var(--color-ink); --muted: var(--color-muted); --line: var(--color-line); --paper: #fff; --sky: var(--color-sky);
  --brand: var(--color-accent); --gold: var(--color-cta); --gold-dark: var(--color-cta-edge); --green: #2e6b45; --alert: var(--color-alert);
  --head: var(--font-display); --body: var(--font-body);
  font-size: 1.25rem; line-height: 1.6;
}
.sb img { max-width: 100%; height: auto; display: block; }
.sb a { color: var(--brand); }
.sb * { box-sizing: border-box; }
.sb .wrap { max-width: 70rem; margin: 0 auto; padding: 0 1.25rem; }
.sb .text { max-width: 41rem; }
.sb h1, .sb h2, .sb h3 { font-family: var(--head); font-weight: 800; line-height: 1.12; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.sb h1 { font-size: clamp(2rem, 4.2vw, 3.125rem); }
.sb h2 { font-size: clamp(1.625rem, 3vw, 2.25rem); }
.sb h3 { font-size: 1.375rem; font-weight: 700; }
.sb p { margin: .875rem 0 0; text-wrap: pretty; }
.sb .progress { padding-top: 1rem; font-size: 1rem; color: var(--muted); }
.sb .progress .bar { height: .5rem; background: var(--line); border-radius: 1rem; margin-top: .35rem; overflow: hidden; }
.sb .progress .bar span { display: block; height: 100%; width: 50%; background: var(--brand); }
.sb .progress b { color: var(--ink); }
.sb .hero { display: grid; gap: 1.5rem; padding-top: 1.25rem; padding-bottom: 2.5rem; }
@media (min-width: 860px) {
  .sb .hero { grid-template-columns: 1.15fr 1fr; gap: 3rem; align-items: start; padding-top: 2rem; }
}
.sb .hero-photo { margin: 0 -1.25rem; }
@media (min-width: 860px) {
  .sb .hero-photo { margin: 0; }
  .sb .hero-photo img { border-radius: .5rem; }
}
.sb .hero-photo figcaption { font-size: 1rem; color: var(--muted); padding: .5rem 1.25rem 0; }
@media (min-width: 860px) {
  .sb .hero-photo figcaption { padding: .5rem 0 0; }
}
.sb .score { font-size: 1.125rem; color: var(--muted); margin: 0 0 .5rem; }
.sb .score b { color: var(--brand); font-size: 1.375rem; }
.sb .lede { font-size: 1.3125rem; margin-top: .875rem; }
.sb .price-row { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.sb .price { font-family: var(--head); font-weight: 800; font-size: 2.75rem; line-height: 1; }
.sb .was { color: var(--muted); font-size: 1.375rem; text-decoration-color: var(--alert); text-decoration-thickness: 3px; }
.sb .price-note { font-size: 1.0625rem; color: var(--muted); }
.sb .buy { display: block; width: 100%; margin-top: 1rem; padding: 1.05rem 1rem; border: 0; border-radius: .5rem; background: var(--gold); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 1.375rem; text-align: center; text-decoration: none; box-shadow: inset 0 -3px 0 var(--gold-dark); min-height: 3.5rem; }
.sb .buy:hover { background: #f5be52; }
.sb .promises { list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: 1.0625rem; }
.sb .promises li { position: relative; padding-left: 2rem; margin-top: .6rem; }
.sb .promises li::before { content: ""; position: absolute; left: .15rem; top: .4rem; width: 1rem; height: .55rem; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.sb .mdh { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 1.0625rem; }
.sb .band { padding: 3.5rem 0; }
.sb .band.sky { background: var(--sky); }
.sb .band.ink { background: var(--ink); color: #fff; }
.sb .band.ink a { color: #fff; }
.sb .two { display: grid; gap: 2rem; }
@media (min-width: 860px) {
  .sb .two { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
}
.sb .steps { display: grid; gap: 1.5rem; margin-top: 1.75rem; counter-reset: s; }
@media (min-width: 760px) {
  .sb .steps { grid-template-columns: 1fr 1fr; gap: 3rem; }
}
.sb .steps > div { counter-increment: s; }
.sb .steps h3::before { content: counter(s) ". "; color: var(--brand); }
.sb .steps p { margin-top: .5rem; }
.sb .founder { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 760px) {
  .sb .founder { grid-template-columns: 13rem 1fr; gap: 2.5rem; }
}
.sb .portrait { aspect-ratio: 4/5; background: #cfd9e1; border-radius: .5rem; display: grid; place-items: center; text-align: center; padding: 1rem; font-size: .95rem; color: var(--muted); }
.sb .founder blockquote { margin: 0; font-size: 1.375rem; line-height: 1.5; }
.sb .founder cite { display: block; font-style: normal; margin-top: 1rem; font-size: 1.0625rem; }
.sb ul.facts { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.sb ul.facts li { padding: .9rem 0; border-top: 1px solid var(--line); }
.sb ul.facts li:last-child { border-bottom: 1px solid var(--line); }
.sb .chart { margin-top: 1.5rem; }
.sb .chart .row { display: grid; grid-template-columns: 8.5rem 1fr; gap: .75rem; align-items: center; margin-top: .55rem; font-size: 1.0625rem; }
.sb .chart .track { background: #fff; height: 2.1rem; border-radius: .25rem; position: relative; }
.sb .chart .fill { position: absolute; inset: 0 auto 0 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: flex-end; padding-right: .6rem; border-radius: .25rem; white-space: nowrap; }
.sb .chart .row.light .fill { background: #8fa8bd; }
.sb .source { font-size: 1rem; color: var(--muted); }
.sb .quote { margin: 1.5rem 0 0; padding: 0 0 0 1.25rem; border-left: 4px solid var(--brand); }
.sb .quote p { margin: 0; font-size: 1.3125rem; font-style: italic; }
.sb .quote footer { margin-top: .6rem; font-size: 1rem; color: var(--muted); }
.sb ol.use { padding-left: 1.5rem; margin: 1.25rem 0 0; }
.sb ol.use li { padding-left: .4rem; margin-top: .75rem; }
.sb ol.use li::marker { font-family: var(--head); font-weight: 800; color: var(--brand); }
.sb .order { display: grid; gap: 2rem; }
@media (min-width: 860px) {
  .sb .order { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}
.sb .receipt { border: 2px solid var(--ink); border-radius: .5rem; background: #fff; }
.sb .receipt .line { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.sb .receipt .line:first-child { border-top: 0; }
.sb .receipt .line p { margin: .25rem 0 0; font-size: 1.0625rem; color: var(--muted); }
.sb .receipt .val { font-weight: 700; white-space: nowrap; text-align: right; }
.sb .receipt .total { background: var(--sky); font-size: 1.375rem; font-weight: 800; font-family: var(--head); border-radius: 0 0 .4rem .4rem; }
.sb .receipt .total p { font-family: var(--body); font-weight: 400; }
.sb .receipt .cta { padding: 0 1.25rem 1.25rem; background: var(--sky); border-radius: 0 0 .4rem .4rem; }
.sb .receipt .cta .buy { margin-top: 0; }
.sb .small { font-size: 1rem; color: var(--muted); }
.sb .limits { border: 2px solid var(--line); border-radius: .5rem; padding: 1.5rem; }
.sb .limits ul { padding-left: 1.25rem; margin: .75rem 0 0; }
.sb .limits li { margin-top: .6rem; }
.sb details { border-top: 1px solid var(--line); padding: 1rem 0; }
.sb details:last-of-type { border-bottom: 1px solid var(--line); }
.sb summary { font-weight: 700; cursor: pointer; font-size: 1.25rem; }
.sb details p { margin-top: .5rem; }
.sb .choices { display: grid; gap: .75rem; margin-top: 1.25rem; max-width: 34rem; }
.sb .choices a { display: block; background: #fff; border: 2px solid var(--ink); border-radius: .5rem; padding: 1rem 1.1rem; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; min-height: 3.5rem; }
.sb .choices a:hover { border-color: var(--brand); color: var(--brand); }
.sb .skip { display: inline-block; margin-top: 1.25rem; font-size: 1.125rem; }
.sb .confirm { border: 2px solid var(--green); border-radius: .5rem; padding: 1rem 1.25rem; margin-top: 1rem; background: #fff; }
.sb .hero > *, .sb .two > *, .sb .order > *, .sb .founder > * { min-width: 0; }
@media (max-width: 859px) {
  .sb .hero { gap: 1rem; padding-top: .75rem; }
  .sb .hero-photo img { aspect-ratio: 16/8.5; object-fit: cover; object-position: center 60%; width: 100%; }
  .sb .hero-photo figcaption { display: none; }
  .sb .score { font-size: 1rem; margin-bottom: .25rem; }
  .sb .score b { font-size: 1.125rem; }
  .sb h1 { font-size: 1.75rem; }
  .sb .lede { font-size: 1.125rem; margin-top: .5rem; }
  .sb .price-row { margin-top: .75rem; }
  .sb .price { font-size: 2.25rem; }
  .sb .progress { padding-top: .6rem; font-size: .95rem; }
}
@media (max-width: 859px) {
  .sb .desk { display: none; }
  .sb .hero-photo img { aspect-ratio: 16/7.5; }
  .sb .buy { font-size: 1.25rem; padding: .9rem .75rem; }
  .sb .price-row { gap: .5rem; }
}
.sb .band.rule { border-top: 1px solid var(--line); }
.sb .portrait { aspect-ratio: 1; max-width: 10rem; }
@media (min-width: 760px) {
  .sb .founder { grid-template-columns: 10rem 1fr; }
}
.sb .next-step { margin: 0 0 .75rem; font-size: 1.0625rem; }
@media (max-width: 559px) {
  .sb .receipt .line { grid-template-columns: 1fr; gap: .25rem; }
  .sb .receipt .val { text-align: left; }
}
.sb .order-sum { border: 2px solid var(--line); border-radius: .5rem; padding: 1.25rem; }
.sb .order-sum dl { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; margin: 1rem 0 0; font-size: 1.0625rem; }
.sb .order-sum dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width:559px){
  .sb .receipt .line.total { grid-template-columns:1fr auto }
  .sb .receipt .line.total .val { text-align:right }
}
.sb .founder { grid-template-columns:1fr!important }

/* The "Two pairs" choice is a form button that reads as a link. */
.sb .linkish { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; font: inherit; cursor: pointer; }
/* The V6 company buttons inside the Sleep Buds pages: same width as the mockup's choices. */
.sb form { max-width: 34rem; }

/* Headline across the top, then photo + buy box with their tops lined up (2026-12-04). */
.sb .hero-head { padding-top: 1.5rem; }
.sb .hero-head h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); max-width: 48rem; }
.sb .hero { padding-top: 1.5rem; }
.sb .hero .lede { margin-top: 0; }
/* Direct-response price: gray struck future price, red sale price, red savings tag. */
.sb .pricebox { margin-top: 1.25rem; }
.sb .pricebox p { margin: 0; }
.sb .pricebox .list { font-size: 1.125rem; color: var(--muted); }
.sb .was { color: var(--muted); text-decoration: line-through; text-decoration-color: #c0392b; text-decoration-thickness: 2px; }
.sb .now-row { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .6rem; margin-top: .15rem !important; }
.sb .now-label { font-size: 1.125rem; font-weight: 700; }
.sb .now { color: #b12704; }
.sb .pricebox .price { font-size: 3rem; }
.sb .save { display: inline-block; background: #b12704; color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2; padding: .3rem .55rem; border-radius: .25rem; font-family: var(--body); }
.sb .pricebox .ship { margin-top: .35rem; font-size: 1.0625rem; color: var(--muted); }
.sb .receipt .total .save { margin-left: .35rem; font-size: .9375rem; }
@media (max-width: 767px) { .sb .hero-head { padding-top: .75rem; } .sb .hero { padding-top: .75rem; } .sb .pricebox .price { font-size: 2.5rem; } }
/* Phone: price and buy button come right after the photo; the one-line description moves under the button. */
@media (max-width: 767px) {
  .sb .hero > div { display: flex; flex-direction: column; }
  .sb .hero .lede { order: 3; margin-top: 1rem; }
  .sb .hero .skip { order: 2; }
  .sb .hero .promises, .sb .hero .mdh { order: 4; }
  .sb .hero .pricebox { margin-top: 0; }
  .sb .hero-photo img { aspect-ratio: 16/7; }
}
@media (max-width: 767px) { .sb .hero-photo img { object-position: 55% 35%; } }

/* Quantity choice, 1-4 pairs. */
.sb .qty fieldset { border: 0; padding: 0; margin: 0 0 .5rem; }
.sb .qty legend { font-weight: 700; font-size: 1.125rem; padding: 0; margin-bottom: .5rem; }
.sb .qty label { display: flex; align-items: center; gap: .75rem; background: #fff; border: 2px solid var(--line); border-radius: .5rem; padding: .8rem 1rem; margin-top: .5rem; font-size: 1.1875rem; cursor: pointer; min-height: 3.25rem; }
.sb .qty label:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.sb .qty input { width: 1.4rem; height: 1.4rem; accent-color: var(--brand); margin: 0; flex: none; }
.sb .qty label span { flex: 1; font-weight: 700; }
.sb .qty label b { color: #b12704; font-family: var(--head); font-weight: 800; font-size: 1.375rem; }
.sb .qty label .was { font-size: 1rem; }
.sb .qty .limit { margin: .5rem 0 1rem; font-size: 1rem; font-weight: 700; color: #b12704; }
.sb .qty .pair-note { margin: 0 0 .25rem; font-size: 1.0625rem; }
