/* One mattress presentation. ../v3/styles.css owns the shared page layout;
   this file owns V4 reassurance, callouts and cards. Layer shapes illustrate
   feel, not construction. Spring colour tokens come from v2/models.js via app.js. */
/* Quiet reassurance line rather than coloured badges. */
.intro .chips{gap:6px 0;color:#625e66;font-size:12px;font-weight:400}
.intro .chips li{padding:0;background:none;color:inherit;border-radius:0}
.intro .chips li+li::before{content:"·";display:inline-block;margin:0 10px;color:#aaa39a}
/* Plain animation labels; the selected feel carries the emphasis. */
.feel-connectors{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:1;overflow:hidden}
.feel-connectors path{fill:none;stroke:#0857a6;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.72}
.callout.follows-layer{right:auto;bottom:auto;width:max-content;max-width:calc(100% - 28px);text-align:left;white-space:nowrap;color:#3d3b37;text-shadow:0 1px 3px #fff,0 0 7px #fff}
.callout strong{margin-right:0;padding:0;border-radius:0;background:none;color:inherit;font:inherit;letter-spacing:normal;text-transform:none;vertical-align:baseline}
.callout span{padding:0;border-radius:0;font-weight:700}
.callout span[data-fresh]{background:none;color:var(--blue-dark);box-shadow:none;font-weight:700;text-decoration:underline;text-decoration-color:var(--blue);text-decoration-thickness:3px;text-underline-offset:4px}
.top-feel-sections{display:flex;flex-direction:column;gap:28px;scroll-margin-top:160px}
.top-feel-section{min-width:0}
.selection-column .top-feel-section h2{font-size:22px;line-height:1.2;letter-spacing:-.035em;margin:0 0 9px}
.top-feel-section>.selection-intro{margin:0 0 16px}
.top-feel-section+.top-feel-section{border-top:1px solid var(--line);padding-top:28px}
.model-card .card-content{height:100%;padding:12px;min-height:0}
.model-card input:checked+.card-content{padding:11px}
.model-card .card-top{gap:8px;margin-bottom:12px;min-height:20px;font-size:12px;letter-spacing:-.02em}
.model-card .radio-mark{flex-shrink:0}
.feel-mattress{display:flex;flex-direction:column;padding-top:12px;gap:4px}
.feel-layer{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:12px 9px}
/* Plush silhouette illustrates feel, not actual construction. */
.feel-top{position:relative;min-height:59px;background:linear-gradient(180deg,#fff 0%,#fff 48%,#edf1f4 100%);border:1px solid #dce2e7;border-radius:18px 18px 12px 12px;box-shadow:inset 0 -4px 8px #dde4eb55,0 3px 5px #384d6310}
.feel-top:not(.plush)::after{content:"";position:absolute;inset:5px;border:1px solid #e5e9ed;border-top-color:#fff;border-radius:13px 13px 8px 8px;pointer-events:none}
.feel-top.plush{background:none;border-color:transparent;box-shadow:none;isolation:isolate}
.feel-top.plush::before{content:"";position:absolute;inset:-12px -1px -1px;z-index:-1;pointer-events:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -12 282 104' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='cloud' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff'/%3E%3Cstop offset='.65' stop-color='%23fff'/%3E%3Cstop offset='1' stop-color='%23edf2f7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M 1 77 L 1 29 C 1 12 22 7 40 17 C 50 -2 83 -7 102 11 C 118 -5 150 -5 168 10 C 190 -7 222 -2 233 15 C 253 3 280 12 280 29 L 280 77 Q 280 89 267 89 L 14 89 Q 1 89 1 77 Z' fill='url(%23cloud)' stroke='%23d7e0e8' stroke-width='1.2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center/100% 100% no-repeat;filter:drop-shadow(0 3px 2px #384d6312)}
/* Without JavaScript the labels remain readable on the neutral fallback. */
.feel-base{min-height:85px;background:var(--spring-firm,var(--line));border-radius:6px 6px 12px 12px}
.feel-base.medium{background:var(--spring-medium,var(--line))}
.feel-label{font-size:9px;font-weight:600;line-height:1.4;letter-spacing:.03em;text-transform:uppercase;color:#1e1e1e}
.feel-layer strong{font-size:17px;font-weight:700;letter-spacing:-.04em;line-height:1.2}
.feel-weight{margin-top:12px;font-size:10px;line-height:1.5;color:#625e66}
/* Cloud reference pricing and an explicitly non-transactional cart preview. */
.purchase-panel{border-top:1px solid var(--line);padding-top:24px;display:flex;flex-direction:column;gap:12px}
.purchase-panel>label{font-size:17px;font-weight:700;letter-spacing:-.02em}
.purchase-panel select{width:100%;min-height:50px;border:1px solid #bcb8c2;border-radius:12px;padding:12px 16px;background:#fff;color:var(--ink);font:inherit;font-size:16px}
.size-dimensions{margin:0;color:#625e66;font-size:12px}
.purchase-price{display:flex;align-items:baseline;gap:12px;margin:8px 0}
.purchase-price strong{font-size:34px;letter-spacing:-.045em}
.purchase-price>span{font-size:12px;color:#625e66}
.add-to-cart{width:100%;min-height:54px;padding:15px 20px;border:0;border-radius:100px;background:#7249c3;color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.add-to-cart:hover{background:#5d37a7}
.purchase-panel select:focus-visible,.add-to-cart:focus-visible,.cart-close:focus-visible{outline:3px solid #0857a6;outline-offset:4px}
.purchase-note{font-size:11px;line-height:1.6;color:#625e66;margin:0}
.preview-cart{position:fixed;inset:0;width:min(480px,calc(100% - 32px));max-height:calc(100dvh - 40px);overflow:auto;margin:auto;border:0;border-radius:24px;padding:32px;background:#fff9eb;color:#1e1e1e;box-shadow:0 24px 90px #0003}
.preview-cart::backdrop{background:#1e1e1e80}
.cart-close{position:absolute;right:14px;top:12px;width:40px;height:40px;border:0;background:transparent;font-size:28px;cursor:pointer;color:inherit}
.cart-kicker{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#7249c3;font-weight:700;margin:10px 0 16px}
.preview-cart h2{font-size:32px;letter-spacing:-.04em;line-height:1.1;margin:0 0 28px}
.cart-product{font-size:18px;font-weight:700;margin:0 0 8px}
#cart-selection,#cart-note{font-size:13px;line-height:1.6;color:#625e66}
.cart-total{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:22px 0;margin-top:24px;border-top:1px solid #e8e5de;border-bottom:1px solid #e8e5de;font-size:13px}
.cart-total strong{font-size:24px}
#cart-note{margin:18px 0 24px}
/* Option 2: separate visual questions, preserving the shared four-model viewer. */
.two-question-cards .feel-question legend{font-size:22px;font-weight:700;line-height:1.25;letter-spacing:-.035em;margin-bottom:10px}
.question-number{color:#7249c3;margin-right:7px}
.feel-question>.selection-intro{grid-column:1/-1;margin-bottom:6px}
.two-question-cards .card-content{padding:18px;min-height:172px;gap:12px;background:#fff}
.two-question-cards input:checked+.card-content{padding:17px;border-color:#7249c3;background:#f5f0fc}
.two-question-cards input:checked+.card-content .radio-mark{border-color:#7249c3}
.two-question-cards .card-top{font-size:18px;margin:0;min-height:22px}
.two-question-cards .feel-layer{height:54px;min-height:54px;margin:10px 0 0;flex-shrink:0}
.two-question-cards .feel-base{background-image:repeating-linear-gradient(90deg,transparent 0 11px,#ffffff50 11px 13px)}
.option-description{font-size:12px;line-height:1.5;color:#625e66}
.feel-summary{display:flex;flex-direction:column;gap:7px;border-top:1px solid var(--line);padding-top:20px;font-size:13px;line-height:1.5;color:#625e66}
.feel-summary strong{font-size:17px;color:var(--ink)}
@media(max-width:820px){.top-feel-sections{scroll-margin-top:calc(var(--prototype-chrome-height,86px) + 318px)}.two-question-cards .feel-question legend{font-size:20px}.two-question-cards .card-content{padding:14px;min-height:164px}.two-question-cards input:checked+.card-content{padding:13px}}
@media(max-width:380px){.model-card .card-content{padding:9px}.model-card input:checked+.card-content{padding:8px}.feel-layer{padding:10px 7px;flex-direction:column;align-items:flex-start;justify-content:center}.model-card .card-top{font-size:11px}}
