/* b5 (round 3): 10 buyer's view + lantern score (#score), 11 FAQ (#faq), 12 the claim on the sunrise (#claim) */

/* my cards: paper face on ::after, Seb dither shadow on ::before */
.b5card { position: relative; isolation: isolate; border-radius: var(--r); }
.b5card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--paper); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.b5card::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--dither); translate: 9px 9px; }

/* ---------- 10 score ---------- */
.score { overflow-x: clip; }
.score__head { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px 56px; align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.score__line { max-width: 19ch; color: var(--olive); }
.score__stage { position: relative; isolation: isolate; border-radius: var(--r); padding: clamp(24px, 3.6vw, 52px) clamp(18px, 3.6vw, 52px) clamp(26px, 3.4vw, 48px); color: var(--ink); }
.score__stage::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(120% 75% at 50% 0%, var(--lime-soft) 0%, var(--paper) 64%); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.score__stage::before { content: ""; position: absolute; inset: 0; z-index: -2; border-radius: inherit; background: var(--dither); translate: 10px 10px; }
.score__slot { position: absolute; right: 36px; bottom: calc(100% - 4px); height: 300px; width: 150px; display: flex; justify-content: center; }

.score__lamps { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(6px, 2vw, 28px); margin: 0 auto; max-width: 940px; }
.score__lamps::before { content: ""; position: absolute; left: 2%; right: 2%; top: 4%; height: 2px; border-radius: 2px; background: rgba(42, 54, 0, .16); }
.score__lamp { position: relative; display: flex; justify-content: center; height: clamp(110px, 15vw, 215px); }
.score__lamp img { position: relative; height: 100%; width: auto; transform-origin: 50% 3%; filter: grayscale(.95) brightness(1.18) contrast(.78); opacity: .5; transition: filter 500ms ease, opacity 500ms ease; }
.score__glow { position: absolute; left: 50%; top: 64%; width: 230%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(214, 255, 110, .85), rgba(194, 245, 66, .4) 42%, rgba(194, 245, 66, 0) 72%); opacity: 0; pointer-events: none; }
.score__lamp.is-half img { filter: grayscale(.45) brightness(1.08); opacity: .8; }
.score__lamp.is-lit img { filter: drop-shadow(0 0 18px rgba(194, 245, 66, .95)) saturate(1.1); opacity: 1; animation: score-sway 3.2s ease-in-out infinite alternate; }
.score__lamp:nth-child(2n).is-lit img { animation-delay: -1.4s; }
@keyframes score-sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }

.score__quiz { max-width: 860px; margin: clamp(22px, 3vw, 40px) auto 0; text-align: center; }
.score__quiz[hidden] { display: none; }
.score__count { color: var(--muted); margin-bottom: 10px; }
.score__qt { margin-bottom: 26px; outline: none; text-wrap: balance; }
.score__ans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 640px; margin: 0 auto; }
.score__a { width: 100%; min-height: 72px; }
.score__a.is-picked { --bg: var(--lime); }
.score__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 640px; margin: 22px auto 0; }
.score__back { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px var(--olive-deep); color: var(--olive-deep); font-size: var(--fs-b); cursor: pointer; transition: background-color 160ms ease, scale 160ms ease, opacity 160ms ease; }
.score__back:disabled { opacity: .3; cursor: default; }
.score__back:not(:disabled):active { scale: .94; }
@media (hover: hover) and (pointer: fine) { .score__back:not(:disabled):hover { background: var(--lime); } }
.score__safe { color: var(--muted); }

.score__out { max-width: 860px; margin: clamp(22px, 3vw, 40px) auto 0; text-align: center; }
.score__out[hidden] { display: none; }
.score__verdict { outline: none; text-wrap: balance; }
.score__lit { color: var(--olive); }
.score__fixes { display: inline-grid; gap: 10px; margin: 22px auto 0; text-align: left; color: var(--ink); }
.score__fixes li { position: relative; padding-left: 34px; }
.score__fixes li::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.score__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

.score__why { margin-top: clamp(28px, 3vw, 40px); max-width: 760px; }
.score__why summary { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--olive); cursor: pointer; list-style: none; }
.score__why summary::-webkit-details-marker { display: none; }
.score__why summary::before { content: "+"; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--olive-deep); color: var(--olive-deep); transition: rotate 300ms var(--ease), background-color 200ms ease; }
.score__why[open] summary::before { rotate: 45deg; background: var(--lime); }
.score__story { display: grid; gap: 8px; margin: 12px 0 14px 46px; color: var(--muted); }
.score__why > p { margin-left: 46px; }

@media (max-width: 899px) {
  .score__head { grid-template-columns: 1fr; padding-right: 84px; }
  .score__line { max-width: none; }
  .score__slot { right: 10px; height: 160px; width: 76px; }
}
@media (max-width: 600px) {
  .score__ans { grid-template-columns: 1fr; gap: 12px; }
  .score__a { min-height: 58px; }
  .score__qt { min-height: 2.15em; }
  .score__btns .btn:first-child { width: 100%; }
  .score__story, .score__why > p { margin-left: 0; }
}

/* ---------- 11 FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.65fr); gap: 40px clamp(32px, 4.4vw, 72px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--top-h) + 28px); }
.faq__intro { color: var(--muted); margin-top: 16px; }
.faq__slot { height: 280px; width: 210px; margin-top: 24px; display: flex; justify-content: center; }
.faq__all { display: inline-flex; align-items: center; min-height: 44px; margin: 14px 0 0 44px; }

.faq__main { position: relative; }
.faq__list { position: relative; border-top: 2px solid var(--olive-deep); }
.faq__list--more { border-top: 0; }
.faq__list::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: rgba(42, 54, 0, .14); }
.faq__bead { position: absolute; left: -1px; top: 0; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--olive-deep), 0 0 14px 4px var(--lime-glow); opacity: 0; pointer-events: none; }
.faq__it { position: relative; isolation: isolate; border-bottom: 1.5px solid rgba(42, 54, 0, .22); transition: margin 560ms cubic-bezier(.65, 0, .35, 1), border-color 200ms ease; }
/* the open question lifts off the list as a paper card with Seb's outline and dithered shadow */
.faq__it::before, .faq__it::after { content: ""; position: absolute; inset: 0 0 0 18px; border-radius: 20px; opacity: 0; pointer-events: none; transition: opacity 260ms ease, translate 440ms var(--spring); }
.faq__it::after { z-index: -1; background: var(--paper); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.faq__it::before { z-index: -2; background: var(--dither); }
.faq.is-js .faq__it.is-open { margin: 14px 0 22px; border-color: transparent; }
.faq .faq__btn, .faq .faq__toggle { font-family: inherit; font-size: clamp(21px, 1.75vw, 26px); line-height: 1.25; letter-spacing: -.01em; }
.faq__it.is-open::after { opacity: 1; }
.faq__it.is-open::before { opacity: 1; translate: 8px 8px; }
.faq__q { margin: 0; }
.faq__btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 18px 18px 44px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; transition: color 160ms ease; -webkit-tap-highlight-color: transparent; }
.faq__btn:focus-visible { outline-offset: -3px; }
@media (hover: hover) and (pointer: fine) { .faq__btn:hover { color: var(--olive); } .faq__btn:hover .faq__ic { background: var(--lime-soft); } }
.faq__ic { position: relative; flex: none; width: 42px; height: 42px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--olive-deep); transition: background-color 200ms ease, rotate 360ms var(--ease); }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; border-radius: 2px; background: var(--olive-deep); transition: rotate 360ms var(--ease); }
.faq__ic::after { rotate: 90deg; }
.faq__it.is-open .faq__ic { background: var(--lime); rotate: 180deg; }
.faq__it.is-open .faq__ic::after { rotate: 0deg; }
.faq__btn:active .faq__ic { scale: .92; }
/* the open row grows evenly (in-out curve), so the eye follows the huge word into view */
.faq__a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 560ms cubic-bezier(.65, 0, .35, 1), visibility 0s; }
.faq.is-js .faq__it:not(.is-open) .faq__a { grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows 360ms cubic-bezier(.65, 0, .35, 1), visibility 0s 360ms; }
.faq__in { overflow: hidden; min-height: 0; }
.faq__ans { padding: 2px 64px 30px 44px; color: var(--muted); max-width: 62ch; }
.faq__ans .b { display: block; color: var(--ink); }
.faq .faq__word { display: block; width: fit-content; margin: 0 0 14px; font-size: clamp(56px, 6.2vw, 96px); line-height: .98; letter-spacing: -.035em; color: var(--olive); background: linear-gradient(var(--lime), var(--lime)) 0 86% / 0% 20% no-repeat; transition: background-size 520ms var(--ease) 120ms; }
.faq__it.is-open .faq__word, .faq:not(.is-js) .faq__word { background-size: 100% 20%; }
@media (prefers-reduced-motion: reduce) { .faq .faq__word { transition: none; } }
.faq__it.is-open .faq__ans { color: var(--ink); }
.faq__more { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 520ms var(--ease), visibility 0s; }
.faq.is-js .faq__more:not(.is-open) { grid-template-rows: 0fr; visibility: hidden; }
.faq__morein { overflow: hidden; min-height: 0; }
.faq__toggle { display: flex; align-items: center; gap: 16px; width: 100%; min-height: 76px; padding: 16px 0 16px 44px; border: 0; background: none; color: var(--olive); text-align: left; cursor: pointer; }
.faq__toggle .faq__ic { order: 2; margin-left: auto; margin-right: 18px; background: var(--lime); }
.faq__toggle[aria-expanded="true"], .faq:not(.is-js) .faq__toggle { display: none; }
@media (hover: hover) and (pointer: fine) { .faq__toggle:hover { color: var(--ink); } }
.faq .cta-row { margin-top: clamp(28px, 3vw, 44px); }

@media (max-width: 899px) {
  .faq__grid { grid-template-columns: 1fr; gap: 24px; }
  .faq__side { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; }
  .faq__side .t { grid-column: 1 / -1; }
  .faq__slot { height: 118px; width: 86px; margin-top: 4px; }
  .faq__intro { margin-top: 4px; }
  .faq__btn { padding-left: 32px; padding-right: 12px; gap: 14px; }
  .faq__it::before, .faq__it::after { left: 12px; }
  .faq__ans { padding: 2px 16px 24px 32px; }
  .faq .faq__word { font-size: 46px; margin-bottom: 10px; }
  .faq__toggle { padding-left: 32px; }
  .faq__toggle .faq__ic { margin-right: 12px; }
  .faq__all { margin-left: 32px; }
}

/* ---------- 12 claim (sunrise) ---------- */
.claim { background: var(--cream); overflow: clip; }
.claim__plate img { object-position: 50% 60%; }
.claim__plate::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(246, 243, 233, .94) 0%, rgba(246, 243, 233, .6) 20%, rgba(246, 243, 233, 0) 42%); }
.claim__sun { position: absolute; left: 80%; top: 14%; width: 70vmax; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 236, 150, .75), rgba(214, 255, 110, .28) 34%, rgba(214, 255, 110, 0) 62%); mix-blend-mode: screen; opacity: .55; }
.claim__head { text-align: center; max-width: 900px; margin: 0 auto clamp(120px, 11vw, 170px); }
.claim__line { margin-top: 14px; color: var(--olive-deep); }
.claim__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px clamp(32px, 4.6vw, 72px); padding: clamp(24px, 3.6vw, 52px); }
.claim__slot { position: absolute; left: 40px; bottom: calc(100% - 6px); height: 290px; width: 130px; display: flex; justify-content: center; }
.claim__list { display: grid; gap: 16px; }
.claim__list li { position: relative; padding-left: 48px; min-height: 32px; }
.claim__list li::before { content: ""; position: absolute; left: 0; top: -1px; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 2px var(--olive-deep); }
.claim__list li::after { content: ""; position: absolute; left: 11px; top: 6px; width: 8px; height: 14px; border: solid var(--olive-deep); border-width: 0 3px 3px 0; rotate: 45deg; }
.claim__other { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 32px; }
.claim__mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.claim__copy { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--olive-deep); color: var(--olive-deep); cursor: pointer; transition: background-color 160ms ease, scale 160ms ease; }
.claim__copy:active { scale: .96; }
.claim__copy.is-done { background: var(--lime); }
@media (hover: hover) and (pointer: fine) { .claim__copy:hover { background: var(--lime); } }
.claim__more { margin-top: 26px; }
.claim__more summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--olive); cursor: pointer; list-style: none; }
.claim__more summary::-webkit-details-marker { display: none; }
.claim__more summary::before { content: "+"; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--olive-deep); color: var(--olive-deep); transition: rotate 300ms var(--ease), background-color 200ms ease; }
.claim__more[open] summary::before { rotate: 45deg; background: var(--lime); }
.claim__more p { margin-top: 8px; color: var(--muted); }
.claim__more p.w6 { color: var(--ink); }

.claim__field { margin-bottom: 16px; }
.claim__field label { display: block; margin-bottom: 8px; }
.claim__in { display: block; width: 100%; min-height: 60px; padding: 0 18px; border: 0; border-radius: var(--r-s); background: var(--paper); box-shadow: inset 0 0 0 2px var(--olive-deep); font-size: var(--fs-b); transition: box-shadow 160ms ease, background-color 160ms ease; -webkit-appearance: none; appearance: none; }
.claim__in::placeholder { color: var(--grey-3); }
.claim__in:focus { outline: none; box-shadow: inset 0 0 0 3px var(--olive), 0 0 0 5px var(--lime-glow); }
.claim__in.is-bad { background: var(--sand); box-shadow: inset 0 0 0 3px var(--ink); }
.claim__err { font-weight: 600; color: var(--ink); }
.claim__err:not(:empty) { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; }
.claim__err:not(:empty)::before { content: "!"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--olive-deep); color: var(--lime); font-size: 14px; }
.claim__submit { width: 100%; margin-top: 4px; }
.claim__note { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-weight: 600; }
.claim__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--olive-deep); }
.claim__done { display: grid; justify-items: start; align-content: center; gap: 14px; min-height: 100%; outline: none; }
.claim__done[hidden] { display: none; }
.claim__again { background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer; }

@media (max-width: 899px) {
  .claim__head { margin-bottom: 170px; }
  .claim__card { grid-template-columns: 1fr; }
  .claim__formside { order: -1; }
  .claim__slot { left: auto; right: 16px; height: 170px; width: 76px; }
}
@media (max-width: 600px) {
  .claim__other .btn { width: 100%; }
}
