/* Plushie home (product) page sections, in page order. */

/* Buy box */
.buy { padding: 40px 0; }
@media (min-width: 960px) { .buy { padding: 56px 0 64px; } }
.buy-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 960px) { .buy-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; } }
@media (min-width: 960px) { .gallery { position: sticky; top: 24px; } }
.gallery-main { border-radius: var(--radius); overflow: hidden; background: var(--oat); aspect-ratio: 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.gallery-note { margin: 12px auto 0; font-size: .8125rem; color: var(--muted); text-align: center; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.thumb { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--oat); cursor: pointer; aspect-ratio: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--ink); }

.buy-panel h1 { max-width: 12ch; }
.lede { margin-top: 16px; font-size: 1.125rem; color: var(--muted); max-width: 46ch; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--butter); }
.ticks li::after { content: ""; position: absolute; left: 8px; top: 7px; width: 8px; height: 12px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

.buy-form { margin-top: 32px; }
.buy-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-label { font-weight: 700; font-size: .9375rem; padding: 0; margin-bottom: 12px; }
.tiers { display: grid; gap: 12px; }
.tier { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 16px 20px; background: var(--white); border: 2px solid var(--sand); border-radius: 16px; cursor: pointer; transition: border-color .15s ease; }
.tier:hover { border-color: var(--muted); }
.tier input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tier-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--muted); display: grid; place-items: center; }
.tier-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .15s ease; }
.tier:has(input:checked) { border-color: var(--ink); background: #fffdf7; }
.tier:has(input:checked) .tier-dot { border-color: var(--ink); }
.tier:has(input:checked) .tier-dot::after { transform: scale(1); }
.tier:has(input:focus-visible) { outline: 3px solid var(--butter-deep); outline-offset: 3px; }
.tier-main { display: flex; flex-direction: column; }
.tier-label { font-weight: 700; }
.tier-per { font-size: .875rem; color: var(--muted); }
.tier-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.tier-price b { font-size: 1.125rem; }
.tier-save { font-size: .8125rem; font-weight: 700; color: var(--ok); }
.tier-now { display: inline-flex; align-items: baseline; gap: 8px; }
.tier-was { color: var(--muted); font-size: .9375rem; font-weight: 500; text-decoration-thickness: 1.5px; }
.tier-from { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.tier-note { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 479px) { .tier-now { flex-direction: column; align-items: flex-end; gap: 0; } .tier-was { font-size: .8125rem; line-height: 1.2; } }
.tier-badge { position: absolute; top: -12px; right: 16px; background: var(--ink); color: var(--cream); font-size: .75rem; font-weight: 700; line-height: 1; padding: 4px 12px; border-radius: var(--pill); }

.colours { margin-top: 28px !important; }
.colour-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.colour-row + .colour-row { border-top: 1px solid var(--sand); }
.colour-row[hidden] { display: none; }
.colours[data-qty="1"] .colour-row-n { display: none; }
.colour-row-label { font-size: .9375rem; color: var(--muted); }
.colour-row-label b { color: var(--ink); }
.swatches { display: flex; gap: 12px; }
.swatch { position: relative; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-chip { display: block; width: 36px; height: 36px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(21, 25, 53, .15); transition: box-shadow .15s ease; }
.swatch input:checked + .swatch-chip { box-shadow: inset 0 0 0 1px rgba(21, 25, 53, .15), 0 0 0 3px var(--cream), 0 0 0 5px var(--ink); }
.swatch input:focus-visible + .swatch-chip { outline: 3px solid var(--butter-deep); outline-offset: 6px; }

.btn-buy { width: 100%; margin-top: 24px; min-height: 60px; font-size: 1.125rem; }
.btn-total { padding-left: 12px; border-left: 2px solid rgba(21, 25, 53, .2); }
.btn-buy[aria-busy="true"] { opacity: .7; cursor: progress; }
.buy-error { margin-top: 12px; color: var(--error); font-weight: 500; }
.buy-note { margin-top: 12px; text-align: center; font-size: .9375rem; color: var(--muted); }
.assure { list-style: none; margin: 28px 0 0; padding: 24px 0 0; border-top: 1px solid var(--sand); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: .9375rem; font-weight: 500; }
.assure li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.assure svg { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Shared section bits */
.band-night { background: var(--night); color: var(--cream); }
.band-night .eyebrow { color: var(--butter); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head > *, .problem-inner > *, .compare-note { margin-inline: auto; }

/* Problem */
.problem { padding: var(--section) 0; }
.problem-inner { max-width: 880px; text-align: center; }
.problem-inner { margin-inline: auto; }
.problem-grid { display: grid; gap: 32px; margin-top: 48px; }
@media (min-width: 960px) { .problem-grid { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; } }
.pains { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; align-content: start; align-self: center; }
.pains li { position: relative; padding: 20px 24px 20px 72px; border-radius: var(--radius-sm); background: var(--night-2); }
.pain-x { position: absolute; left: 24px; top: 20px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 143, 135, .14); color: #ff8f87; }
.pain-x svg { width: 20px; height: 20px; }
.pains strong { display: block; font-family: var(--font-display); font-size: 1.125rem; line-height: 1.3; color: var(--cream); }
.pains li span:not(.pain-x) { display: block; margin-top: 4px; font-size: .9375rem; color: var(--muted-on-night); }
.problem-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.problem-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-sm); }
.problem-photos figcaption { margin-top: 12px; font-size: .875rem; color: var(--muted-on-night); text-align: center; }

/* Meet */
.meet { padding: var(--section) 0; }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } }
.split-media img, .final-media img { width: 100%; border-radius: var(--radius); }
.final-media video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 45%; border-radius: var(--radius); background: var(--night-2); }
.split-copy p { margin-top: 16px; color: var(--muted); font-size: 1.0625rem; max-width: 48ch; }
.split-copy h2 { max-width: 22ch; }
.split-copy .btn { margin-top: 32px; }

/* Why */
.why { padding: var(--section) 0; background: var(--oat); }
.why-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 600px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }
.why-grid li { background: var(--white); border-radius: var(--radius); padding: 28px; }
.why-grid svg { width: 48px; height: 48px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; padding: 8px; border-radius: 14px; background: var(--butter); }
.why-grid h3 { margin: 20px 0 8px; }
.why-grid p { color: var(--muted); }

/* How */
.how { padding: var(--section) 0; }
.ways { list-style: none; margin: 0; padding: 0; display: grid; gap: 40px; }
@media (min-width: 768px) { .ways { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.ways img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.ways h3 { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: 1.5rem; }
.way-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--butter); font-family: var(--font-body); font-size: .9375rem; flex: none; }
.ways p { margin-top: 8px; color: var(--muted); }

/* Compare */
.compare { padding: var(--section) 0; background: var(--oat); }
.compare-inner { max-width: calc(820px + var(--gutter) * 2); }
.compare-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 16px; border-bottom: 1px solid var(--oat); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { font-family: var(--font-display); font-size: 1.0625rem; padding-top: 20px; }
.compare-table thead th:nth-child(2), .compare-table td:nth-child(2) { background: #fff6dc; }
.compare-table tbody th { text-align: left; font-weight: 500; }
.compare-table td { text-align: center; width: 26%; }
@media (min-width: 600px) { .compare-table th, .compare-table td { padding: 20px 24px; } .compare-table td { width: 20%; } }
.yes, .no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 0; color: transparent; position: relative; vertical-align: middle; }
.yes { background: var(--ink); }
.yes::after { content: ""; position: absolute; left: 11px; top: 7px; width: 7px; height: 12px; border: solid var(--butter); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.no { background: var(--sand); }
.no::before, .no::after { content: ""; position: absolute; width: 12px; height: 2.5px; border-radius: 2px; background: var(--muted); transform: rotate(45deg); }
.no::after { transform: rotate(-45deg); }
.compare-note { margin-top: 20px; text-align: center; color: var(--muted); }

/* Safety + promise */
.safety { padding: var(--section) 0; }
.safety-stack { display: grid; gap: 24px; }
.safety-box { background: var(--butter); border-radius: var(--radius); padding: 32px 24px; display: grid; gap: 24px; }
@media (min-width: 768px) { .safety-box { padding: 48px; } }
@media (min-width: 960px) { .safety-box { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; } }
.safety-box h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.safety-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 500; }
.safety-list li { position: relative; padding-left: 28px; }
.safety-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.promise-box { background: var(--sky); border-radius: var(--radius); padding: 32px 24px; display: grid; gap: 16px; }
@media (min-width: 768px) { .promise-box { padding: 48px; } }
@media (min-width: 960px) { .promise-box { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; } }
.promise-box h2 { font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem); }
.promise-box p { font-size: 1.0625rem; }

/* FAQ */
.faq { padding: var(--section) 0; background: var(--oat); }
.faq-inner { max-width: calc(820px + var(--gutter) * 2); }
.faq-list { border-top: 1px solid var(--sand); }
.faq-list details { border-bottom: 1px solid var(--sand); }
.faq-list summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 1.0625rem; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white) linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat; }
.faq-list details:not([open]) summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat, var(--white); }
.faq-list details p { padding: 0 44px 24px 0; color: var(--muted); }

/* Final call to action */
.final { padding: var(--section) 0; }
.final-inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .final-inner { grid-template-columns: 1fr 1fr; gap: 72px; } }
.final-media { max-width: 520px; }
.final-copy p { margin: 16px 0 32px; color: var(--muted-on-night); font-size: 1.125rem; }
.final-copy .final-price { margin: 16px 0 0; font-size: .9375rem; }

/* Sticky buy bar (phones and tablets only) */
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); background: var(--cream); border-top: 1px solid var(--sand); box-shadow: 0 -8px 24px -12px rgba(21, 25, 53, .2); }
.sticky-buy[hidden] { display: none; }
.sticky-copy { display: flex; flex-direction: column; line-height: 1.3; }
.sticky-copy span { color: var(--muted); font-size: .9375rem; }
@media (min-width: 960px) { .sticky-buy { display: none !important; } }
main .section-head { padding-block: 0; }

/* Meet: "Made for" chips */
.split-copy .made-for-h { margin-top: 28px; font-weight: 700; font-size: .9375rem; color: var(--ink); }
.made-for { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.made-for li { padding: 8px 16px; border-radius: var(--pill); background: var(--white); border: 1px solid var(--sand); font-weight: 500; font-size: .9375rem; white-space: nowrap; }
.made-for + .btn { margin-top: 32px; }

/* Undo layout-defence's [class*="row"] / [class*="grid"] stretch where it is wrong:
   the gallery must stay its own height so it can stick while the buy panel scrolls. */
.buy .buy-grid { align-items: start; }
.colours .colour-row { align-items: center; }
@media (min-width: 960px) { .problem .problem-grid { align-items: center; } }
