/* "Ton menu de la semaine" quiz (quiz.html, quiz.js). Tokens from home.css. */

/* A focused funnel: no site footer or download block until the week is shown. */
.quiz-page:not(.is-done) .final, .quiz-page:not(.is-done) .footer { display: none; }
.quiz-page main { min-height: 100vh; }
.center { text-align: center; }

/* Top bar */
.quiz-bar { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; row-gap: 14px; padding: 18px 0 8px; }
.quiz-logo { grid-column: 2; grid-row: 1; justify-self: center; font-size: 26px; }
.round-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--card); box-shadow: 0 2px 10px -4px rgba(27,26,23,.3); font-size: 20px; color: var(--ink); cursor: pointer; transition: transform .2s; }
.round-btn:hover { transform: scale(1.06); }
.quiz-close { grid-column: 3; grid-row: 1; }
.quiz-bar [data-back] { grid-column: 1; grid-row: 1; }
.round-btn[hidden] { display: none; }
#quiz-app:not([data-screen="quiz"]) .quiz-bar > .quiz-progress { display: none; }
.quiz-progress { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--flour); overflow: hidden; }
.quiz-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--basil); transition: width .45s cubic-bezier(.3,1.3,.5,1); }

/* Layout */
.quiz { padding: 34px 0 70px; }
.quiz-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 56px; align-items: center; min-height: 60vh; }
.quiz-grid.is-full { grid-template-columns: 1fr; }
.quiz-grid.is-full .quiz-live { display: none; }
.quiz-card { max-width: 600px; width: 100%; justify-self: center; }
.quiz-grid.is-full .quiz-card { max-width: 1000px; }
.quiz-card.is-entering { animation: quiz-in .35s cubic-bezier(.3,1.3,.5,1); }
@keyframes quiz-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.quiz-card h1:focus { outline: none; }
.quiz-title { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; text-align: center; }
.quiz-text { margin: 10px 0 26px; color: var(--ink-2); font-size: 17px; text-align: center; }
.quiz-hint { margin: 14px 0 18px; color: var(--mute); font-size: 14.5px; }

/* Choices */
.quiz-options { display: grid; gap: 12px; }
.quiz-options.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiz-option { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 52px 15px 18px; border: 2px solid var(--rule); border-radius: 22px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .2s, background .2s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.quiz-option:hover { border-color: var(--ink); transform: translateY(-2px); }
.quiz-option.is-selected { border-color: var(--basil); background: var(--basil-soft); }
.opt-emoji { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--flour); font-size: 23px; }
.quiz-option.is-selected .opt-emoji { background: #fff; }
.opt-text { display: grid; gap: 2px; }
.opt-text strong { font-family: var(--display); font-size: 17px; font-weight: 700; }
.opt-text small { color: var(--mute); font-size: 14px; line-height: 1.35; }
.opt-check { position: absolute; right: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; border: 2px solid var(--rule); background: #fff; transition: background .2s, border-color .2s; }
.is-selected > .opt-check { border-color: var(--basil); background: var(--basil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.quiz-option.is-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px 18px; }
.quiz-option.is-card .opt-check { top: 18px; margin-top: 0; }
.quiz-option.is-card .opt-emoji { width: auto; height: auto; background: none; font-size: 26px; }

.step-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.step-actions .btn { border: 0; cursor: pointer; }
.step-actions .btn-outline { border: 2px solid var(--rule); }
.step-actions .btn-outline:hover { border-color: var(--ink); }
.btn-wide { width: 100%; justify-content: center; background: var(--card); font-family: var(--display); cursor: pointer; }
.quiz-continue { min-width: 260px; justify-content: center; }
.step-actions .quiz-continue { width: 100%; }
.step-actions [hidden] { display: none; }

/* Household, dinners, budget */
.steppers { display: grid; gap: 12px; }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border: 2px solid var(--rule); border-radius: 22px; background: var(--card); }
.stepper-label { display: flex; align-items: center; gap: 12px; font-size: 22px; }
.stepper-label strong { font-family: var(--display); font-size: 18px; }
.stepper-controls { display: flex; align-items: center; gap: 14px; }
.stepper-btn { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper); font-size: 22px; cursor: pointer; }
.stepper-btn:hover { border-color: var(--ink); }
.stepper-value { min-width: 28px; text-align: center; font-family: var(--display); font-size: 26px; font-weight: 800; }
.dinner-count { display: flex; justify-content: center; gap: 12px; }
.count-btn { display: grid; place-items: center; width: 74px; height: 74px; border: 2px solid var(--rule); border-radius: 50%; background: var(--card); cursor: pointer; transition: border-color .2s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.count-btn:hover { border-color: var(--ink); transform: translateY(-3px); }
.count-btn strong { font-family: var(--display); font-size: 28px; }
.count-btn.is-selected { border-color: var(--basil); background: var(--basil-soft); }
.count-unit { margin: 14px 0 0; text-align: center; color: var(--mute); font-weight: 600; }
.budget { padding: 24px; border-radius: 26px; background: var(--card); border: 2px solid var(--rule); text-align: center; }
.budget-amount { display: block; font-family: var(--display); }
.budget-amount strong { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; color: var(--basil); }
.budget-amount span { color: var(--mute); font-weight: 700; font-size: 18px; }
.budget input[type=range] { width: 100%; margin: 18px 0 4px; accent-color: var(--basil); height: 28px; }
.budget-scale { display: flex; justify-content: space-between; color: var(--mute); font-size: 13px; font-weight: 600; }
.budget-chip { display: inline-block; margin: 16px 0 6px; padding: 5px 14px; border-radius: 14px; background: var(--basil-soft); color: var(--basil); font-weight: 800; font-size: 14px; }
.budget-tier { margin: 0; color: var(--ink-2); font-weight: 600; }
.budget-detail { margin: 4px 0 0; color: var(--mute); font-size: 13.5px; }

/* Stores, chips, appliances */
.store-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.store-chip { min-height: 70px; padding: 12px 8px; border: 2px solid var(--rule); border-radius: 18px; background: var(--card); font: 800 15.5px var(--display); cursor: pointer; transition: border-color .2s, transform .2s cubic-bezier(.3,1.6,.5,1); }
.store-chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.store-chip.is-selected { border-color: var(--basil); background: var(--basil-soft); }
/* Logos keep their own colours on a white plate, also when the tile is selected. */
.store-chip.has-logo { display: grid; place-items: center; min-height: 84px; padding: 10px; background: #fff; }
.store-chip.has-logo.is-selected { background: #fff; box-shadow: 0 0 0 3px var(--basil-soft); }
.store-chip img { display: block; max-width: 82%; max-height: 46px; width: auto; height: auto; object-fit: contain; }
.store-more { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 18px; }
.store-more .btn-outline { background: var(--card); cursor: pointer; font-family: var(--display); }
.chip-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 2px solid var(--rule); border-radius: 26px; background: var(--card); font: 600 15px var(--body); cursor: pointer; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-selected { border-color: var(--basil); background: var(--basil-soft); }
.appliance-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.appliance { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 14px; border: 2px solid var(--rule); border-radius: 20px; background: var(--card); text-align: center; font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.appliance:hover { border-color: var(--ink); }
.appliance.is-selected { border-color: var(--basil); background: var(--basil-soft); }
.appliance.is-locked { cursor: default; }
.appliance-emoji { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--flour); font-size: 32px; margin-bottom: 4px; }
.appliance.is-selected .appliance-emoji { background: #fff; }
.appliance strong { font-family: var(--display); font-size: 14.5px; }
.appliance small { color: var(--mute); font-size: 12px; }

/* Social proof */
.proof { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.proof-text { display: grid; justify-items: center; text-align: center; }
.proof-text .step-actions { justify-self: stretch; }
.proof-chef { margin-bottom: 10px; }
.proof-fact { margin: 4px 0; color: var(--ink-2); font-size: 17px; }
.proof-fact strong { font-family: var(--display); font-size: 30px; color: var(--basil); }
.proof-wall { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; height: 520px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 88%, transparent); }
.wall-column { display: grid; gap: 12px; animation: wall-up 26s linear infinite; }
.wall-column-1 { animation-direction: reverse; animation-duration: 30s; }
.wall-column-2 { animation-duration: 22s; }
.wall-tile { aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--flour); }
.wall-tile img { width: 100%; height: 100%; object-fit: cover; }
@keyframes wall-up { to { transform: translateY(-50%); } }

/* Before / after */
.quiz-ba { max-width: 640px; margin: 0 auto; }
.ba-head { display: grid; grid-template-columns: 1fr 40px 1fr; margin: 26px 0 10px; text-align: center; font: 800 15px var(--display); color: var(--mute); }
.ba-head .ba-with { grid-column: 3; color: var(--basil); }
.ba-rows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.ba-row { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; animation: quiz-in .4s calc(var(--i) * .15s) both; }
.ba-before, .ba-after { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 12px 16px; border-radius: 18px; }
.ba-before { background: var(--flour); color: var(--ink-2); }
.ba-after { background: var(--card); border: 2px solid var(--basil); }
.ba-arrow { text-align: center; color: var(--basil); font-size: 22px; }

/* Live panel */
.quiz-live { position: sticky; top: 24px; padding: 20px; border-radius: 28px; background: var(--card); box-shadow: 0 24px 50px -28px rgba(27,26,23,.35); transition: opacity .2s; }
.quiz-live.is-loading { opacity: .7; }
.live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.live-label { margin: 0; color: var(--mute); font-weight: 700; font-size: 14px; }
.live-price { margin: 0; display: flex; align-items: baseline; gap: 6px; color: var(--mute); font-size: 13px; font-weight: 700; white-space: nowrap; }
.live-price strong { color: var(--basil); font-family: var(--display); font-size: 36px; line-height: 1; letter-spacing: -0.03em; }
.live-delta { align-self: center; padding: 3px 9px; border-radius: 12px; background: var(--basil); color: #fff; font-size: 12.5px; font-weight: 800; }
.live-delta.is-up { background: var(--tomato); }
.live-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.live-thumb { aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: var(--flour); animation: thumb-in .35s ease both; }
.live-thumb img { width: 100%; height: 100%; object-fit: cover; }
.live-thumb.is-empty { animation: none; }
@keyframes thumb-in { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
.live-count { margin: 14px 0 0; color: var(--ink-2); font-weight: 600; }
.live-count strong { font-family: var(--display); font-size: 24px; color: var(--ink); }

/* Generation */
.generation { max-width: 760px; padding: 26px 0 80px; text-align: center; }
.gen-title { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.03em; }
.gen-mission { display: inline-block; margin: 12px 0 18px; padding: 6px 14px; border-radius: 16px; background: var(--saffron-soft); color: #7A5A12; font-weight: 700; font-size: 14.5px; }
.gen-progress { max-width: 420px; margin: 0 auto 26px; }
.gen-phases { display: grid; gap: 18px; text-align: left; }
.gen-phase-title { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font: 800 18px var(--display); }
.gen-phase.is-done .gen-phase-title { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }
.gen-phase.is-done .gen-card { display: none; }
.gen-dot { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 3px solid var(--basil-soft); border-top-color: var(--basil); animation: spin .8s linear infinite; }
.gen-phase.is-done .gen-dot { animation: none; border: 0; background: var(--basil) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
@keyframes spin { to { transform: rotate(360deg); } }
.gen-card { padding: 20px; border-radius: 24px; background: var(--card); border: 2px solid var(--rule); animation: quiz-in .35s ease both; }
.gen-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.gen-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gen-chip { padding: 6px 12px; border-radius: 16px; border: 2px solid var(--rule); font-weight: 700; font-size: 14px; }
.gen-count-line { display: grid; justify-items: end; margin: 0; color: var(--mute); font-weight: 700; font-size: 13.5px; }
.gen-count { font-family: var(--display); font-size: 42px; color: var(--basil); line-height: 1; }
.gen-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.gen-slot { display: grid; gap: 6px; padding-bottom: 10px; border-radius: 18px; background: var(--paper); border: 2px solid var(--rule); overflow: hidden; }
.gen-slot-img { display: grid; place-items: center; height: 70px; background: var(--flour); }
.gen-slot.is-picked { border-color: var(--basil-soft); animation: pop .35s cubic-bezier(.3,1.6,.5,1); }
.gen-slot.is-picked .gen-slot-img { background: var(--basil-soft); }
.gen-tick { color: var(--basil); font-size: 34px; font-weight: 900; }
.gen-slot-name { padding: 0 10px; font: 800 14px var(--display); }
.gen-slot-facts { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px; }
.gen-pill { padding: 2px 8px; border-radius: 10px; background: var(--basil-soft); color: var(--basil); font-size: 11.5px; font-weight: 800; }
@keyframes pop { from { transform: scale(.94); } to { transform: none; } }
.gen-prices { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.gen-price { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--rule); animation: quiz-in .3s ease both; }
.gen-price strong { color: var(--basil); font-family: var(--display); }
.gen-tick-small { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--basil); color: #fff; font-size: 12px; font-weight: 900; }
.gen-found { margin: 16px 0 0; color: var(--ink-2); font-weight: 700; }
.gen-found strong { font-family: var(--display); font-size: 24px; color: var(--basil); }

/* Good news */
.news { position: relative; display: grid; justify-items: center; gap: 10px; max-width: 640px; padding: 50px 0 80px; text-align: center; }
.news-rays { position: fixed; inset: -50vmax; z-index: -1; pointer-events: none; background: repeating-conic-gradient(from 0deg, rgba(244,179,61,.16) 0 7deg, transparent 7deg 18deg); -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 62%); mask-image: radial-gradient(circle, #000 20%, transparent 62%); animation: spin 60s linear infinite; }
.news-badge { margin: 0; padding: 8px 18px; border-radius: 20px; background: var(--basil); color: #fff; font: 800 17px var(--display); }
.news-title { max-width: 520px; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; }
.news-amount { margin: 6px 0 0; padding: 0 10px; font: 800 clamp(64px, 9vw, 96px)/1 var(--display); letter-spacing: -0.04em; color: var(--basil); background: linear-gradient(transparent 62%, var(--saffron) 62% 86%, transparent 86%); }
.news-sub { margin: 4px 0 10px; color: var(--ink-2); font-weight: 600; max-width: 420px; }
.news-compare { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.news-box { display: grid; gap: 2px; padding: 10px 18px; border-radius: 16px; background: var(--card); border: 2px solid var(--rule); }
.news-box small { color: var(--mute); font-weight: 700; font-size: 12.5px; }
.news-box strong { font-family: var(--display); font-size: 22px; }
.news-box.is-week { border-color: var(--basil); }
.news-box.is-week strong { color: var(--basil); }
.news-arrow { color: var(--basil); font-size: 22px; }
.news .btn { border: 0; cursor: pointer; min-width: 280px; justify-content: center; }

/* Gate */

/* Result */
.quiz-result { padding: 8px 0 40px; }
.result-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; }
.result-title { font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.04em; line-height: 1.02; }
.result-lead { margin: 14px 0 0; }
.result-sum { min-width: 260px; padding: 22px 26px; border-radius: 26px; background: var(--basil); color: #fff; }
.result-sum p { margin: 0; }
.sum-label { font-weight: 700; opacity: .8; font-size: 14px; }
.sum-total { font-family: var(--display); font-weight: 800; font-size: 46px; letter-spacing: -0.03em; line-height: 1.1; }
.sum-detail { font-size: 14.5px; opacity: .9; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 26px 0 30px; }
.result-actions .btn-outline { background: var(--card); cursor: pointer; font-family: var(--display); }
/* Days after the first: blurred under the paywall (the app's lock banner, PlannerScreen.js). */
.week-locked { position: relative; display: grid; gap: inherit; }
.week-locked .week-row { filter: blur(5px) saturate(.8); opacity: .75; user-select: none; }
.week-paywall { position: absolute; top: 40px; left: 50%; z-index: 2; display: grid; justify-items: center; gap: 10px; width: min(440px, calc(100% - 24px)); padding: 24px 22px; border-radius: 24px; background: var(--peach); box-shadow: 0 24px 48px -24px rgba(27,26,23,.45); text-align: center; transform: translateX(-50%); }
.paywall-lock { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; font-size: 24px; }
.paywall-title { margin: 0; font: 800 22px/1.2 var(--display); color: var(--ink); }
.paywall-text { margin: 0; color: var(--tomato-deep); font-weight: 700; font-size: 15px; line-height: 1.4; }
.paywall-actions { display: grid; gap: 8px; width: 100%; margin-top: 4px; }
.paywall-actions .btn { justify-content: center; }
.is-revealing .week-paywall { animation: yc-paywall .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: .7s; }
@keyframes yc-paywall { from { opacity: 0; transform: translateX(-50%) scale(.82); } }
.shopping-teaser { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; margin-top: 44px; padding: 30px; border-radius: 30px; background: var(--peach); }
.teaser-list { padding: 20px; border-radius: 22px; background: var(--card); filter: blur(3px); user-select: none; transform: rotate(-2deg); }
.teaser-title { margin: 0 0 10px; font: 800 17px var(--display); }
.teaser-list ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.teaser-list li { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.teaser-list li::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 2px solid var(--rule); }
.teaser-cta p { color: var(--ink-2); margin: 12px 0 22px; max-width: 520px; }
.result-notice { margin: 22px 0 0; color: var(--mute); font-size: 13.5px; max-width: 820px; }
.quiz-empty { display: grid; justify-items: center; gap: 14px; padding: 30px 0 80px; text-align: center; }
.quiz-empty .lead { margin: 0 0 10px; }
.quiz-empty .btn { border: 0; cursor: pointer; }

/* Touch screens keep :hover after a tap: no hover look there. */
@media (hover: none) {
  .quiz-option:not(.is-selected):hover, .store-chip:not(.is-selected):hover, .count-btn:not(.is-selected):hover,
  .chip:not(.is-selected):hover, .appliance:not(.is-selected):hover { border-color: var(--rule); transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wall-column, .news-rays, .gen-dot { animation: none; }
  .is-revealing *, .is-revealing .result-sum { animation: none !important; }
  .week-cell.is-planned:hover { transform: none; }
}

/* Tablet and phone: the live panel becomes a strip above the question. */
@media (max-width: 1040px) {
  .quiz { padding-top: 12px; }
  .quiz-grid { grid-template-columns: 1fr; gap: 16px; align-items: start; min-height: 0; }
  .quiz-live { position: sticky; top: 8px; z-index: 2; order: -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 20px; }
  .live-head { order: 2; flex-direction: column; align-items: flex-end; gap: 0; margin: 0; }
  .live-label { font-size: 12.5px; }
  .live-price strong { font-size: 24px; }
  .live-delta { font-size: 11.5px; }
  .live-thumbs { display: flex; order: 1; gap: 0; }
  .live-thumb { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; }
  .live-thumb:first-child { margin-left: 0; }
  .live-thumb:nth-child(n+4) { display: none; }
  .live-count { display: none; }
  .quiz-card { max-width: none; }
  .proof { grid-template-columns: 1fr; gap: 20px; }
  .proof-wall { height: 260px; order: -1; }
  .proof-chef { display: none; }
}
@media (max-width: 680px) {
  .quiz-bar { padding-top: 12px; }
  .quiz-title { font-size: 26px; }
  .quiz-text { font-size: 15.5px; margin-bottom: 20px; }
  .quiz-option { padding: 13px 46px 13px 14px; gap: 12px; border-radius: 18px; }
  .opt-emoji { width: 38px; height: 38px; font-size: 20px; }
  .opt-text strong { font-size: 15.5px; }
  .opt-text small { font-size: 13px; }
  .quiz-options.is-grid { gap: 10px; }
  /* Two columns are narrow: stack emoji, then text, the check in the corner. */
  .quiz-options.is-grid .quiz-option { flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 14px; }
  .quiz-options.is-grid .opt-check { top: 12px; right: 12px; margin-top: 0; }
  .quiz-options.is-grid .opt-emoji { width: auto; height: auto; background: none; font-size: 24px; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .appliance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .appliance-emoji { width: 52px; height: 52px; font-size: 26px; }
  .dinner-count { gap: 8px; }
  .count-btn { width: 58px; height: 58px; }
  .count-btn strong { font-size: 22px; }
  .budget-amount strong { font-size: 40px; }
  /* The main button stays reachable at the bottom of the screen. */
  .step-actions { position: sticky; bottom: 0; z-index: 3; margin: 20px -24px 0; padding: 12px 24px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--paper) 22%); }
  .quiz-continue { min-width: 0; }
  .ba-head, .ba-row { grid-template-columns: 1fr 26px 1fr; }
  .ba-before, .ba-after { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px; font-size: 14px; }
  .ba-arrow { font-size: 18px; }
  .gen-summary { flex-direction: column; align-items: stretch; }
  .gen-count-line { justify-items: center; }
  .gen-slots { grid-template-columns: repeat(2, 1fr); }
  .week-paywall { top: 22px; padding: 18px 16px; }
  .paywall-title { font-size: 19px; }
  .news-compare { gap: 8px; }
  .news-box { padding: 8px 12px; }
  .news-box strong { font-size: 18px; }
  .news .btn { min-width: 0; width: 100%; }
  .shopping-teaser { grid-template-columns: 1fr; padding: 22px; gap: 24px; }
  .result-sum { min-width: 0; width: 100%; }
}

/* ---------- End of the quiz: e-mail, payment (Whop embedded checkout), welcome ---------- */
.pay-step { position: relative; display: grid; justify-items: center; gap: 12px; max-width: 520px; padding: 34px 0 80px; text-align: center; }
.pay-title { margin: 0; font: 800 clamp(26px, 3.2vw, 34px)/1.15 var(--display); letter-spacing: -0.02em; }
.pay-lead { margin: 0; color: var(--ink-2); font-size: 17px; line-height: 1.45; }
.pay-cta { width: 100%; justify-content: center; border: 0; cursor: pointer; font-size: 17px; }
.pay-cta[disabled] { opacity: .6; cursor: progress; }
.pay-error { margin: 0; color: var(--tomato-deep); font-weight: 700; font-size: 14.5px; }
.pay-error a { color: inherit; }
.pay-small { margin: 0; color: var(--ink-2); font-size: 15px; }
.pay-small a { color: var(--basil); font-weight: 800; }
.pay-legal { margin: 4px 0 0; color: var(--mute); font-size: 12.5px; line-height: 1.5; }
.pay-legal a { color: inherit; }

.account-thumbs { display: flex; justify-content: center; gap: 10px; }
.account-thumb { position: relative; width: clamp(54px, 15vw, 84px); aspect-ratio: 1; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 8px 18px -10px rgba(27,26,23,.5); overflow: visible; }
.account-thumb img { width: 100%; height: 100%; border-radius: 15px; object-fit: cover; filter: blur(5px) saturate(1.1); }
.account-check { position: absolute; right: -6px; bottom: -6px; display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid #fff; border-radius: 50%; background: var(--basil); color: #fff; font-size: 12px; font-weight: 800; }
.account-pill { margin: 6px 0 0; padding: 6px 14px; border-radius: 20px; background: #FFF3CF; font-weight: 800; font-size: 14.5px; }
.account-form { display: grid; gap: 10px; width: 100%; margin-top: 8px; text-align: left; }
.account-label { font-weight: 800; font-size: 15px; }
.account-input { box-sizing: border-box; width: 100%; padding: 15px 18px; border: 2px solid var(--rule); border-radius: 18px; background: var(--card); font: 600 17px var(--body); color: var(--ink); }
.account-input:focus { outline: none; border-color: var(--basil); }

.checkout-hello { margin: 0; padding: 5px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.checkout-unlocks { display: grid; gap: 8px; width: 100%; margin: 6px 0 4px; padding: 0; list-style: none; text-align: left; }
.checkout-unlocks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 16px; background: var(--card); font-weight: 600; line-height: 1.35; }
.plans { display: grid; gap: 10px; width: 100%; }
.plan { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border: 2px solid var(--rule); border-radius: 20px; background: var(--card); color: var(--ink); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; }
.plan:hover { transform: translateY(-1px); }
.plan.is-chosen { border-color: var(--basil); box-shadow: 0 0 0 3px rgba(79,138,84,.15); }
.plan-radio { flex: none; width: 20px; height: 20px; border: 2px solid var(--rule); border-radius: 50%; }
.plan.is-chosen .plan-radio { border: 6px solid var(--basil); }
.plan-text { display: grid; gap: 2px; flex: 1; }
.plan-name { font: 800 18px var(--display); }
.plan-note { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.plan-price { display: grid; justify-items: end; gap: 4px; }
.plan-price strong { font: 800 18px var(--display); white-space: nowrap; }
.plan-badge { padding: 2px 8px; border-radius: 10px; background: var(--basil); color: #fff; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.checkout-form { width: 100%; }
.checkout-form-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; font-weight: 800; }
.checkout-form-head p { margin: 0; }
.checkout-mount { min-height: 360px; padding: 6px; border-radius: 20px; background: #fff; }
.checkout-faq { width: 100%; padding: 12px 16px; border-radius: 16px; background: var(--card); text-align: left; }
.checkout-faq summary { font: 800 16px var(--body); cursor: pointer; }
.checkout-faq p { margin: 8px 0 0; color: var(--ink-2); line-height: 1.45; }
.checkout-later { margin-top: 4px; }

.welcome { padding-top: 60px; }
.welcome-actions { display: grid; gap: 10px; width: 100%; margin-top: 6px; }
.welcome-actions .btn { justify-content: center; }
.checkout-faq { border-bottom: 0; }
.checkout-faq summary { align-items: center; letter-spacing: 0; }
.checkout-faq summary::after { font-size: 22px; }
