/* group C pages: shoebox, cart, checkout, confirmation, legal, 404 */

/* ---------- Shared by group C: photo bands ---------- */
.photo-band { width: 100%; position: relative; }
.photo-band .photo, .intro-photo, .side-photo-fig, .conf-photo, .torn-photo-fig { margin: 0; }
.photo-band .photo.band-photo { width: 100%; aspect-ratio: 21 / 9; max-height: 56vh; }
.photo-band .photo.band-photo img { height: 100%; }

/* ---------- SHOEBOX: the sorter ---------- */
.page-shoebox #shoebox-intro .banks { align-items: center; }
.sorter .steps-row { align-items: stretch; }
.sorter .step-n { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0; }
.sorter .prompt label { cursor: pointer; }
.sorter .stepbox .help { margin: 0; }
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row input[type="range"] { flex: 1; min-width: 0; height: 28px; }
.slider-wrap output { min-width: 3ch; text-align: right; font-size: 1.375rem; }
.chips.years { margin-top: 2px; }
.box-col, .tape-col { display: grid; gap: 10px; align-content: start; }
.box-col .stage-help { margin: 0 0 6px; }
.box-field { background: #E7DCC5; box-shadow: inset 0 0 0 1px rgba(27,38,34,0.14), inset 0 24px 34px -24px rgba(27,38,34,0.45), inset 0 -10px 20px -18px rgba(27,38,34,0.3); border-radius: 2px; overflow: hidden; }
.box-lid { background: #EEE4CF; border-color: rgba(27,38,34,0.18); box-shadow: 0 14px 30px -18px var(--shadow-2); gap: 18px; grid-auto-rows: max-content; align-content: center; }
.box-lid::before { content: ''; position: absolute; left: 14px; right: 14px; top: 14px; bottom: 14px; border: 1px dashed rgba(27,38,34,0.18); pointer-events: none; }
.box-lid .lid-motif svg { width: 200px; height: auto; opacity: 0.6; }
.box-lid button { position: relative; z-index: 1; }
.sort-tags { width: 40%; }
.sort-tag .tag { will-change: transform; }
.sort-receipts .receipt-slip { left: 0; top: 0; width: 152px; will-change: transform; padding-bottom: 12px; }
.sort-receipts .receipt-slip.is-front { z-index: 15; }
.sort-receipts .receipt-slip[data-sorted]::before { content: ''; position: absolute; right: 8px; top: 8px; width: 10px; height: 13px; background: var(--copper); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); }
.sort-receipts .receipt-slip[data-sorted="FSA"]::before { background: var(--copper-pale); box-shadow: inset 0 0 0 1px var(--copper); }
.receipt-slip .st button, .receipt-slip .kb button { font-family: var(--rec); font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 600; white-space: nowrap; padding: 0 4px; }
.receipt-slip .st button { font-size: 0.625rem; }
.receipt-slip .kb button:hover, .receipt-slip .kb button:focus-visible { border-style: solid; border-color: var(--copper); color: var(--copper); }
.elig-line { margin-top: 10px; }
.reset-row { margin: 4px 0 0; }
.result-strip .ln.sub { padding-left: 1.2em; color: var(--muted); font-size: 0.9375rem; }
.result-strip .ln.excl { color: var(--copper); }
.result-strip .ln.rec { font-size: 0.875rem; }
.result-strip .ln.rec .rec-r { white-space: nowrap; flex: none; }
.result-strip .ln.rec .rec-l { min-width: 0; }
.result-strip .ln.rec .d { color: var(--muted); }
.result-strip .ln.rec .tg { color: var(--copper); font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 700; }
.result-strip .ln.rec.is-excluded { color: var(--muted); }
.result-strip .ln.rec.is-excluded .tg { color: var(--muted); }
.result-strip .ln.is-fresh { animation: reprint 0.36s var(--feed); }
@keyframes reprint { 0% { opacity: 0.15; transform: translateY(5px); } 100% { opacity: 1; transform: none; } }
.result-strip .ln.perf { padding: 8px 0 4px; }
.result-strip .ln.perf svg { width: 100%; height: 12px; }
.result-strip .foot-line { font-size: 0.875rem; }
.result-strip .date-field { flex-wrap: wrap; }
.result-strip .date-field output { color: var(--copper); }
.result-strip.is-torn::after { background: radial-gradient(circle at 5px 0, var(--paper) 0 3px, transparent 3.5px) 0 0 / 11px 8px repeat-x, linear-gradient(var(--paper), var(--paper)); }
.outcome { border-top: 1px dashed var(--rule); margin-top: 12px; }
.outcome .fits { font-family: var(--rec); font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 700; font-size: 1.125rem; margin: 0; }
.outcome .facts { font-size: 0.9375rem; margin: 0; }
.outcome .btn-row { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .box-lid { transition: none; } .box-lid.is-off { display: none; } .sort-receipts .receipt-slip.is-sorted { transition: none; } }
html.qa-rm .box-lid { transition: none; } html.qa-rm .box-lid.is-off { display: none; }
@media (max-width: 767px) {
  .box-stage { padding: 16px; min-height: 0; }
  .box-field { min-height: 660px; }
  .sort-tags { width: 42%; right: 8px; top: 8px; bottom: 8px; }
  .sort-tag { padding: 8px; }
  .sort-receipts .receipt-slip { width: 126px; font-size: 0.6875rem; padding: 9px 9px 10px; }
  .receipt-slip .st button { font-size: 0.625rem; }
  .receipt-slip .kb button { font-size: 0.5625rem; }
  .box-lid .lid-motif svg { width: 140px; }
  .result-strip { padding: 16px 14px 26px; }
  .result-strip .ln.big { font-size: 1.25rem; }
}

/* ---------- CART: One Line ---------- */
.page-cart .rule-line { margin: 0 0 10px; font-size: 0.875rem; }
.plan-switch { margin-bottom: 26px; }
.plan-switch button { height: 38px; font-size: 0.8125rem; }
.cart-main { min-width: 0; }
.one-line { position: relative; perspective: 900px; padding: 0 0 30px; overflow: hidden; }
.one-line .slot { position: relative; height: 14px; background: var(--ink); border-radius: 2px; z-index: 3; box-shadow: 0 8px 14px -8px var(--shadow-2); }
.one-line .slot-lip { position: absolute; left: 10px; right: 10px; top: 5px; height: 4px; background: var(--field-2); border-radius: 2px; }
.one-line .tape-out { position: relative; margin: 0 14px; transform-origin: 50% 0; z-index: 1; will-change: transform; }
.one-line .order-strip { transform: rotateX(4deg); transform-origin: 50% 0; padding: 22px 22px 30px; }
.order-strip .line { font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 700; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); margin: 0 0 6px; }
.order-strip .renew { margin: 0 0 12px; }
.order-strip .qty { margin: 0; }
.tape-out .tape-tag { position: absolute; right: 26px; top: 16px; z-index: 2; transform: rotate(-4deg); animation: tagbreathe 4s ease-in-out infinite; }
@keyframes tagbreathe { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-3px); } }
.tape-out.is-idle .order-strip { animation: tapebreathe 5s ease-in-out infinite; }
@keyframes tapebreathe { 0%, 100% { box-shadow: 0 1px 0 var(--paper-shadow), 0 14px 30px -18px var(--shadow-2); } 50% { box-shadow: 0 1px 0 var(--paper-shadow), 0 22px 40px -18px var(--shadow-2); } }
.tape-out.is-torn .order-strip { clip-path: polygon(0 12px, 6% 0, 12% 12px, 18% 2px, 25% 12px, 33% 0, 40% 10px, 48% 2px, 55% 12px, 62% 0, 70% 10px, 78% 2px, 85% 12px, 92% 0, 100% 10px, 100% 100%, 0 100%); }
.cart-side { padding: 24px; display: grid; gap: 12px; align-content: start; }
.cart-side .total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0; border-bottom: 1px dashed var(--rule); padding-bottom: 10px; }
.cart-side .total-amt { font-size: clamp(1.75rem, 1rem + 1.6vw, 2.5rem); font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 700; }
.cart-side .total-note, .cart-side .facts-line { margin: 0; }
.cart-side .btn-row { margin-top: 8px; }
.cart-empty { margin-top: 8px; max-width: 720px; }
.cart-empty .lead { margin: 0; }
.cart-empty p:last-child { margin: 0; }
@media (prefers-reduced-motion: reduce) { .tape-out .tape-tag { animation: none; } }
html.qa-rm .tape-out .tape-tag { animation: none; }

/* ---------- CHECKOUT: The Tear Line ---------- */
.tear-wrap { position: sticky; top: var(--head-h); z-index: 5; margin: -8px 0 18px; padding: 10px 0 6px; background: var(--field); }
.tear-wrap .tear-progress { margin-bottom: 0; }
.checkout-form { min-width: 0; }
.checkout-form .legend { margin-bottom: 6px; }
.checkout-form .legend .numeral.sm { font-size: clamp(1.5rem, 1rem + 1vw, 2rem); align-items: baseline; }
.co-sec { position: relative; padding-top: 4px; }
.co-sec.is-complete .legend::after { content: ''; width: 12px; height: 15px; background: var(--copper); clip-path: polygon(0 0, 70% 0, 100% 30%, 100% 100%, 0 100%); margin-left: 2px; transform-origin: bottom; animation: standtag 0.3s var(--feed); }
@keyframes standtag { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.card-marks-line { margin: 0 0 8px; font-size: 0.9375rem; }
.card-marks { margin-bottom: 4px; }
.cvv-field label { display: flex; align-items: center; gap: 8px; }
.cvv-help-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule); background: var(--paper); font: inherit; font-size: 0.8125rem; line-height: 1; cursor: pointer; padding: 0; display: inline-grid; place-items: center; color: var(--ink); transition: background var(--fast) var(--feed), color var(--fast) var(--feed); }
.cvv-help-btn:hover, .cvv-help-btn[aria-expanded="true"] { background: var(--copper); color: #fff; border-color: var(--copper); }
.checkout-form .ack { padding-top: 4px; }
.checkout-form .place { display: grid; gap: 12px; justify-items: start; }
.checkout-form .under-btn { margin: 0; }
.error-summary p { margin: 0; }
.checkout-grid .side { display: grid; gap: 22px; }
.summary-strip .ln.total { font-size: 1.125rem; }
@media (max-width: 1023px) { .checkout-grid .side { display: contents; } .checkout-grid .summary-strip { order: -1; } .checkout-grid .side-photo { order: 2; } }
@media (max-width: 767px) { .checkout-form { padding: 18px 16px; } .checkout-form .place { justify-items: stretch; } }

/* ---------- ORDER CONFIRMATION: Kept ---------- */
.page-confirm .kept-line.is-mono { --mono: 1; --casl: 0; --wght: 500; }
.page-confirm .kept-line { transition: none; }
.no-order { padding: 22px 24px; display: grid; gap: 8px; justify-items: start; max-width: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.no-order .lead { max-width: none; }
body.is-no-order #kept .banks { grid-template-columns: minmax(0, 1fr); }
.no-order .lead { margin: 0; }
.confirm-wrap { position: relative; margin: 8px 0 12px; padding-top: 26px; }
.confirm-strip { overflow: visible; }
.confirm-strip .ln.h { font-size: 0.875rem; }
.confirm-strip .seal-over { z-index: 2; pointer-events: none; display: block; }
.confirm-strip .seal-over svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 14px rgba(27,38,34,0.22)); }
.page-confirm .seal-cap { margin: 0 0 22px; font-size: 0.875rem; }
.open-block { display: grid; gap: 4px; }
.open-block .open-line { margin: 0 0 10px; color: var(--copper); }
.steps-bank { display: grid; gap: 18px; align-content: start; }
.next-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; font-size: calc(var(--body) * 1.02); }
.next-steps li { counter-increment: step; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; background: var(--paper); box-shadow: 0 1px 0 var(--paper-shadow), 0 10px 30px -14px var(--shadow); }
.next-steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--rec); font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 300; font-size: 1.75rem; line-height: 1; color: var(--ink); padding-top: 2px; }
.support-line { margin: 0; font-size: 0.9375rem; }
#password .banks { align-items: center; }
.pw-offer { display: grid; gap: 12px; }
.pw-offer h2 { font-size: var(--h3); margin: 0; }
.pw-offer p { margin: 0; }
.pw-offer .pw-form { gap: 14px; }
.pw-offer .saved { color: var(--copper); }
.pw-offer.is-closed { opacity: 0.85; }
@media (max-width: 1023px) { .confirm-wrap { padding-top: 40px; } }
@media (max-width: 767px) { .confirm-strip .seal-over { width: 92px; height: 92px; right: 10px; top: -40px; } }

/* ---------- TERMS and PRIVACY: the plain pages ---------- */
.legal .banks { align-items: stretch; }
.legal-rail { min-width: 0; align-self: stretch; }
.legal-rail .sticky-rail { display: grid; gap: 14px; align-content: start; max-height: calc(100vh - var(--head-h) - 24px); overflow: auto; }
.legal h1 { font-size: var(--h2); }
.legal-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.legal-brand { margin: 0 0 4px; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; }
.legal-updated { margin: 0; font-size: 0.875rem; }
.legal-index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.legal-index a { display: flex; gap: 10px; align-items: baseline; text-decoration: none; padding: 6px 0; border-bottom: 1px dotted var(--rule); font-size: 0.9375rem; transition: color var(--fast) var(--feed), padding-left var(--fast) var(--feed); }
.legal-index a .n { font-family: var(--rec); font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 500; font-size: 0.75rem; color: var(--copper); min-width: 2.2ch; }
.legal-index a:hover, .legal-index a:focus-visible, .legal-index a.is-current { color: var(--copper); padding-left: 4px; }
.legal-seal svg { width: 84px; height: 84px; }
.legal-slips { position: relative; height: 56px; perspective: 500px; margin: 0 0 4px; }
.legal-slips .lline { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: rgba(27,38,34,0.55); }
.legal-slips .lslip { position: absolute; left: 6px; top: 50%; margin-top: -8px; width: 22px; height: 15px; transform-style: preserve-3d; }
.legal-slips .lslip:nth-child(3) { left: 40px; }
.legal-slips .lslip:nth-child(4) { left: 74px; }
.legal-slips .lslip:nth-child(5) { left: 108px; }
.legal-slips .lslip:nth-child(6) { left: 142px; }
.legal-slips .lslip:nth-child(7) { left: 176px; }
.legal-slips .lslip:nth-child(8) { left: 210px; }
.legal-slips .lslip:nth-child(9) { left: 244px; }
.legal-slips .lslip:nth-child(10) { left: 278px; }
.legal-slips .lf, .legal-slips .lb { position: absolute; inset: 0; backface-visibility: hidden; border: 1px solid rgba(27,38,34,0.55); background: #fff; }
.legal-slips .lf::before { content: ''; position: absolute; left: 3px; top: 3px; width: 3px; height: 3px; border-radius: 50%; background: var(--copper); }
.legal-slips .lf::after { content: ''; position: absolute; left: 8px; right: 3px; top: 4px; height: 1px; background: rgba(27,38,34,0.5); box-shadow: 0 3px 0 rgba(27,38,34,0.5), 0 6px 0 rgba(27,38,34,0.35); }
.legal-slips .lb { transform: rotateY(180deg); background: var(--field-3); }
.legal-slips.is-still .lslip { transform: none; }
.legal-article { min-width: 0; }
.legal-intro { margin-bottom: 1.2em; }
.legal-pre p { margin-bottom: 1.2em; }
.legal-h { display: flex; align-items: baseline; gap: 14px; margin: 1.4em 0 0.7em; }
.legal-h h2 { font-size: var(--h3); margin: 0; }
.legal-h .numeral.sm { font-size: clamp(1.5rem, 1rem + 1.2vw, 2.25rem); align-items: baseline; flex: none; }
.legal-sec ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 6px; }
.legal-sec li { padding: 8px 12px; background: var(--paper); font-family: var(--rec); font-variation-settings: 'MONO' 1, 'CASL' 0, 'wght' 500; font-size: 0.9375rem; box-shadow: 0 1px 0 var(--paper-shadow); overflow-wrap: anywhere; }
.legal-sec p { overflow-wrap: anywhere; }
.legal-perf { margin: 10px 0; }
@media (max-width: 1023px) { .legal-rail .sticky-rail { position: static; } .legal-slips { display: none; } }

/* ---------- 404: Torn Off ---------- */
.page-404 .torn { padding-top: var(--pad); }
.page-404 .scene-band.in-bank { height: clamp(420px, 56vh, 820px); }
.page-404 .scene-band.in-bank .scene-cap { bottom: 12px; left: 16px; padding: 4px 8px; background: rgba(220, 232, 223, 0.82); }
.page-404 .torn .banks { align-items: center; }
.page-404 .torn-copy { display: grid; gap: 18px; align-content: start; }
.page-404 .torn-copy .lead { margin: 0; }
.page-404 .btn-row .link { align-self: flex-start; }
.page-404 .torn-photo { margin-top: 10px; max-width: 100%; }
.scene-band.in-bank { height: min(72vh, 680px); min-height: 440px; border-radius: 2px; }
@media (max-width: 1023px) { .scene-band.in-bank { height: 54vh; min-height: 320px; } }
