/* Ad funnel page. Builds on /styles.css. */

.funnel [hidden] { display: none !important; }

.funnel-header { background: var(--cream); }
.funnel-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.header-pill { margin: 0; font-size: .7rem; padding: 6px 12px; }

.f-hero { padding: clamp(20px, 4vw, 56px) 0 clamp(48px, 7vw, 88px); }
.f-hero-grid { display: grid; grid-template-columns: 1fr minmax(0, 520px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.f-hero-copy { padding-top: clamp(0px, 3vw, 36px); }
.f-hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin-bottom: .35em; }
.f-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.f-trust li { display: flex; align-items: center; gap: 10px; font-weight: 700; }

/* Quiz card */
.quiz { padding: 24px 26px 28px; box-shadow: 8px 8px 0 var(--green); }
.quiz-top { display: flex; align-items: center; justify-content: space-between; min-height: 28px; }
.quiz-back { background: none; border: 0; padding: 4px 0; font: 700 .95rem var(--font-body); color: var(--green); cursor: pointer; }
.quiz-back:hover { text-decoration: underline; }
.quiz-count { margin-left: auto; font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.quiz-bar { height: 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--cream); overflow: hidden; margin: 10px 0 22px; }
.quiz-bar span { display: block; height: 100%; width: 16.6%; background: var(--sunshine); border-right: 2px solid var(--ink); transition: width .35s ease; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step legend { font-family: var(--font-head); font-size: clamp(1.6rem, 3vw, 2rem); line-height: 1.1; padding: 0; margin-bottom: 18px; }
.step-note { color: var(--muted); margin: -8px 0 18px; }
.step.enter { animation: stepIn .28s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

.opts { display: grid; gap: 12px; }
.opts-3 { grid-template-columns: repeat(3, 1fr); }
.opts-num { grid-template-columns: repeat(4, 1fr); }
.opts-list { grid-template-columns: 1fr; }
.opts .opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; padding: 14px 10px;
  background: var(--cream); color: var(--ink); border: var(--border); border-radius: var(--radius-sm);
  font: 800 1.1rem var(--font-body); cursor: pointer; box-shadow: 3px 3px 0 var(--sage);
  transition: transform .1s ease, background .12s, box-shadow .1s;
}
.opts-3 .opt { min-height: 118px; font-size: 1rem; }
.opts .opt svg { width: 44px; height: 44px; color: var(--green); }
.opts-list .opt { flex-direction: row; justify-content: flex-start; padding-left: 20px; text-align: left; }
.opts .opt:hover { background: var(--butter); transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--sage); }
.opts .opt.selected { background: var(--sunshine); box-shadow: 3px 3px 0 var(--ink); }
.opts .opt:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.opt-label { font-weight: 500; color: var(--muted); }

.quiz .field { margin-bottom: 14px; }
.quiz .btn-block { margin-top: 4px; }

.quiz-done { text-align: center; padding: 20px 4px 4px; }
.quiz-done img { margin: 0 auto 14px; }
.quiz-done h2 { font-size: clamp(2rem, 4vw, 2.5rem); }
.done-next { margin-top: 22px; background: var(--butter); border: var(--border); border-radius: var(--radius-sm); padding: 16px 18px; text-align: left; }
.done-next p:last-child { margin: 0; }

/* Offer */
.f-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.f-points li { display: grid; grid-template-columns: 92px 1fr; gap: 18px; align-items: center; }
.f-num {
  display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%;
  background: var(--butter); border: var(--border); box-shadow: 4px 4px 0 var(--sage);
  font-family: var(--font-head); font-size: 1.7rem; color: var(--green);
}
.f-points h3 { margin-bottom: .25em; }
.f-points p { margin: 0; }
.f-offer .why { margin-top: 0; }
.f-cta { margin-top: clamp(40px, 6vw, 64px); }

.funnel .rooms { margin-bottom: 0; }

@media (max-width: 1020px) {
  .f-hero-grid { grid-template-columns: 1fr; }
  .quiz { max-width: 560px; width: 100%; }
}
@media (max-width: 820px) {
  .f-points li { text-align: left; }
}
@media (max-width: 640px) {
  .header-pill { display: none; }
  .f-hero-copy .lede { font-size: 1.02rem; }
  .f-trust { gap: 8px 16px; font-size: .92rem; }
  .quiz { padding: 18px 16px 22px; min-height: 0; }
  .opts-3 { gap: 8px; }
  .opts-3 .opt { min-height: 104px; font-size: .9rem; padding: 12px 4px; }
  .opts-num { grid-template-columns: repeat(3, 1fr); }
  .f-points li { grid-template-columns: 72px 1fr; gap: 14px; }
  .f-num { width: 72px; height: 72px; font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) {
  .step.enter { animation: none; }
  .quiz-bar span { transition: none; }
}

