/* MindLab IQ (iq2) funnel — brand from Miro style guide.
   bg #FEFEFE · CTA #35A467 · answer buttons #B6FFD7 · font Coolvetica. */

/* Coolvetica — drop assets/fonts/coolvetica.woff2 in to activate; falls back
   to a close condensed/rounded sans until then. */
@font-face {
  font-family: 'Coolvetica';
  src: url('/assets/fonts/coolvetica.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --bg: #FEFEFE;
  --cta: #35A467;
  --cta-ink: #FFFFFF;
  --answer: #B6FFD7;
  --answer-ink: #0F2A1C;
  --ink: #14181F;
  --muted: #6B7280;
  --line: #E6E9EE;
  --card: #FFFFFF;
  --radius: 16px;
  --maxw: 460px;
  --font: 'Coolvetica', 'Trebuchet MS', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

#app { max-width: var(--maxw); margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }

/* ── top bar + progress ── */
.topbar { position: sticky; top: 0; background: var(--bg); z-index: 5; padding: 14px 20px 8px; }
.topbar .brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; letter-spacing: .3px; font-size: 20px; }
.topbar .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cta); display: inline-block; }
.progress-wrap { padding: 6px 20px 0; }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: flex; justify-content: space-between; }
.progress-track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--cta); border-radius: 99px; transition: width .35s ease; }

/* ── screen layout ── */
.screen { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 28px; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.screen.center { justify-content: center; text-align: center; }
h1.q { font-size: 26px; line-height: 1.2; margin: 6px 0 20px; font-weight: 700; }
h1.q.sm { font-size: 22px; }
.sub { color: var(--muted); font-size: 16px; margin: -8px 0 20px; }
.spacer { flex: 1; }

/* ── answer buttons ── */
.options { display: flex; flex-direction: column; gap: 12px; }
.opt {
  background: var(--answer); color: var(--answer-ink); border: 2px solid transparent;
  border-radius: 14px; padding: 16px 18px; font-size: 18px; font-family: var(--font);
  text-align: left; cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, border-color .15s;
  width: 100%;
}
/* hover only for real pointers: on touch the "hover" sticks under the finger and
   lights up the tile/answer at the same spot on the next screen */
@media (hover: hover) { .opt:hover { box-shadow: 0 4px 14px rgba(53,164,103,.18); } }
.opt:active { transform: scale(.985); }
.opt.selected { border-color: var(--cta); }

/* grid options (visual matrix answer tiles) */
.opt-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
/* answer tiles: one uniform grey like the reference. The source images have
   slightly different near-white backgrounds and faint baked-in card frames —
   lift those to pure white and multiply onto the tile so every tile is the same grey. */
.opt-tile { border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden;
  background: #F1F3F5; transition: transform .08s ease; }
.opt-tile img { width: 100%; height: auto; display: block; mix-blend-mode: multiply; filter: brightness(1.05) contrast(1.15); }
@media (hover: hover) { .opt-tile:hover { background: #E8EBEE; } }
.opt-tile .ph { color: var(--answer-ink); font-weight: 700; font-size: 22px; opacity: .55; }
.opt-tile:active { transform: scale(.97); }

/* ── CTA ── */
.cta {
  background: var(--cta); color: var(--cta-ink); border: none; border-radius: 99px;
  padding: 17px 24px; font-size: 19px; font-weight: 700; font-family: var(--font);
  width: 100%; cursor: pointer; transition: transform .08s ease, opacity .15s ease; margin-top: 16px;
}
.cta:active { transform: scale(.985); }
.cta[disabled] { opacity: .45; cursor: default; }
.ghost { background: transparent; color: var(--muted); border: none; font-family: var(--font);
  font-size: 16px; padding: 14px; width: 100%; cursor: pointer; text-decoration: underline; }

/* ── intro ── */
.intro-bullets { list-style: none; padding: 0; margin: 18px 0; display: flex; flex-direction: column; gap: 12px; }
.intro-bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; }
.intro-bullets li::before { content: "\2713"; color: var(--cta); font-weight: 800; }
.note-line { text-align: center; color: var(--muted); font-size: 15px; margin: 18px 0 8px; }
.legal { color: var(--muted); font-size: 12px; line-height: 1.4; text-align: center; margin-top: 18px; }
.legal a { color: var(--muted); }

/* ── memory ── */
.memory-card { border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); padding: 22px 12px;
  margin: 18px 0 12px; box-shadow: 0 2px 10px rgba(20,24,31,.04); }
.memory-big { font-size: 44px; font-weight: 800; text-align: center; letter-spacing: 1px; }
.memory-digits { font-size: 52px; font-weight: 800; text-align: center; letter-spacing: 8px; }
.memory-hint { text-align: center; color: var(--muted); font-size: 15px; }
.memory-hidden { opacity: 0; filter: blur(14px); transition: opacity .4s, filter .4s; }

/* ── visual matrix image ── */
.matrix-img { width: 100%; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.matrix-img img { width: 100%; height: auto; display: block; }
.choose-label { text-align: center; color: var(--muted); font-size: 15px; margin: 6px 0 12px; }
.matrix-img .ph { color: var(--muted); font-size: 14px; }

/* ── info / promise ── */
.info-illus { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 20px; background: #EFFBF4;
  display: flex; align-items: center; justify-content: center; font-size: 46px; }
.info-text { color: #38414E; font-size: 17px; margin: 10px 0 0; }

/* ── hero illustrations (info / reveal) ── */
.hero-img { display: block; width: 72%; max-width: 230px; height: auto; margin: 6px auto 16px; }
.reveal-img { width: 100%; max-width: 340px; border-radius: 14px; }

/* ── paywall press strip + report lock ── */
.press-strip { margin: 20px 0 6px; text-align: center; }
.press-label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.press-img { width: 100%; max-width: 420px; height: auto; }
.report-img { width: 100%; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; display: block; }

/* ── social proof / review ── */
.review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 18px 0; text-align: left; }
.stars { color: #F5B300; letter-spacing: 2px; }
.stat-row { display: flex; flex-direction: column; gap: 6px; margin: 14px 0; color: var(--muted); font-size: 15px; }

/* ── loader ── */
.loader-check { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.loader-check li { display: flex; gap: 10px; align-items: center; color: var(--muted); transition: color .3s; }
.loader-check li.done { color: var(--ink); }
.loader-check li .mk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.loader-check li.done .mk { background: var(--cta); border-color: var(--cta); color: #fff; }

/* ── popup ── */
.popup-overlay { position: fixed; inset: 0; background: rgba(20,40,30,.28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 20; animation: fadein .2s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.popup-card { background: var(--card); border-radius: 20px; width: 100%; max-width: 400px; padding: 24px 18px 20px; text-align: center;
  box-shadow: 0 12px 40px rgba(20,24,31,.18); animation: popin .25s ease; }
@keyframes popin { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
.pop-title { margin: 2px 0 12px; font-size: 22px; color: var(--cta); letter-spacing: .5px; }
.pop-text { color: #38414E; font-size: 16px; margin: 0 0 14px; }
.pop-note { display: flex; gap: 10px; align-items: center; text-align: left; background: #F3F5F4; border-radius: 12px;
  padding: 10px 12px; font-size: 14px; color: #38414E; margin-bottom: 4px; }
.pop-note .ico { color: var(--cta); }
.pop-q { font-size: 19px; margin: 4px 0 6px; }
.popup-card .cta { margin-top: 12px; }

/* ── email ── */
.email-input { width: 100%; padding: 16px; font-size: 18px; font-family: var(--font); border: 2px solid var(--line); border-radius: 14px; margin-top: 4px; }
.email-input:focus { outline: none; border-color: var(--cta); }
.email-stats { display: flex; gap: 8px; margin: 18px 0 0; }
.email-stats div { flex: 1; background: #F4F7F5; border-radius: 12px; padding: 10px 8px; text-align: center; font-size: 11px; color: var(--muted); line-height: 1.3; }

/* ── reveal ── */
.reveal-big { font-size: 30px; font-weight: 800; line-height: 1.2; }

/* ── paywall (basic; refined in next increment) ── */
.pw { padding: 0 20px 40px; }
.pw h1 { font-size: 26px; text-align: center; margin: 10px 0 16px; }
.pw-bullets { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 10px; }
.pw-bullets li { display: flex; gap: 10px; } .pw-bullets li::before { content: "\2713"; color: var(--cta); font-weight: 800; }
.pw-section { margin: 26px 0; } .pw-section h3 { font-size: 13px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.pw-trust-item, .pw-benefit { margin: 12px 0; }
.plans { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }
.plan { border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; position: relative; }
.plan.selected { border-color: var(--cta); background: #F3FBF6; }
.plan .pl-name { font-weight: 700; } .plan .pl-sub { font-size: 13px; color: var(--muted); }
.plan .pl-badge { position: absolute; top: -10px; right: 12px; background: var(--cta); color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.plan .pl-popular { position: absolute; top: -10px; left: 12px; background: #14181F; color: #fff; font-size: 11px; padding: 3px 8px; border-radius: 99px; }
.plan .pl-price { text-align: right; } .plan .pl-perday { font-size: 12px; color: var(--muted); }
.faq { border-bottom: 1px solid var(--line); padding: 14px 0; } .faq b { display: block; margin-bottom: 6px; }
.disclaimer { color: var(--muted); font-size: 12px; margin-top: 14px; text-align: center; }

/* ── upsell ── */
.up-progress { display: flex; gap: 6px; justify-content: center; margin: 10px 0 18px; font-size: 12px; color: var(--muted); }
.up-progress span { display: flex; align-items: center; gap: 4px; }
.up-progress span.done { color: var(--cta); font-weight: 700; }
.up-cover { width: 70%; max-width: 260px; margin: 8px auto 18px; aspect-ratio: 3/4; background: #FFF6E6; border-radius: 14px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px; color: #8a6d2f; }
.up-price { font-size: 28px; font-weight: 800; text-align: center; margin: 14px 0 4px; }
.up-price s { color: var(--muted); font-weight: 500; font-size: 20px; margin-right: 10px; }
.book { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin: 10px 0; text-align: left; }
.book b { display: block; margin-bottom: 6px; } .book ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.badge-line { text-align: center; color: var(--cta); font-size: 14px; margin: 12px 0; }

/* upsell: close (✕) and payment-error states */
.screen { position: relative; }
.up-close { position: absolute; top: 4px; right: 4px; width: 36px; height: 36px; border: none; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 20px; cursor: pointer; }
.up-error { margin: 12px 0 4px; padding: 12px 14px; border-radius: 12px; background: #fdecea; color: #a1281b;
  font-size: 15px; text-align: center; }
.up-error b { display: block; margin-bottom: 2px; }
.cta:disabled { opacity: .6; cursor: default; }
/* guide mockups already carry their own 3D shading + shadow */
.up-cover-img { display: block; width: 96%; max-width: 360px; margin: -12px auto -6px; }
.up-header-img { display: block; width: 100%; max-width: 420px; margin: 0 auto 4px; }
.book-spread { display: block; width: calc(100% + 16px); margin: -8px -8px 6px; }
.book-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.book-head b { margin: 0; }
.book-no { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: var(--cta); color: #fff;
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; }
.accent { color: #F2711C; }
.pw-legal { margin: 8px 0 24px; }
.popup-img { display: block; width: 96px; margin: 0 auto 10px; }
.loader-review { margin-top: 22px; text-align: left; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.loader-review.in { opacity: 1; transform: none; }

/* ── buttons side by side (intro gender, popup answers) ── */
.btn-row { display: flex; gap: 10px; }
.btn-row .cta { flex: 1; margin-top: 12px; }
.ico { display: inline-flex; flex: 0 0 auto; }
.accent-cta { color: var(--cta); }

/* ── agreement scale: agree (green) → neutral (yellow) → disagree (red) ── */
.opt.tone-1 { background: #B6FFD7; }
.opt.tone-2 { background: #DDFBEA; }
.opt.tone-3 { background: #FFF3C4; }
.opt.tone-4 { background: #FFE3E3; }
.opt.tone-5 { background: #FFCACA; }
.opt.tone-4, .opt.tone-5 { color: #4A1F1F; }
.opt.tone-3 { color: #4A3B0E; }

/* ── social proof (reference layout) ── */
.screen.sp { text-align: center; }
.sp-title { font-size: 25px; margin-bottom: 18px; }
.sp-review { text-align: left; background: var(--card); border-radius: 16px; padding: 14px 16px 16px;
  box-shadow: 0 2px 14px rgba(20,24,31,.09); margin-bottom: 18px; }
.sp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.sp-who { flex: 1; font-size: 15px; line-height: 1.25; }
.sp-head .stars { font-size: 15px; letter-spacing: 1px; }
.sp-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: 0 0 46px; background: var(--answer);
  color: #1b5e3a; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sp-date { font-size: 13px; color: var(--muted); }
.sp-rt { display: block; margin-bottom: 6px; }
.sp-text { color: var(--muted); font-size: 15px; }
.sp-stats { display: flex; flex-direction: column; gap: 14px; margin: 4px 0 8px; text-align: left; }
.sp-stat { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.sp-stat .ico { color: var(--muted); margin-top: 1px; }
.sp-stat .stars { font-size: 15px; }
.sp-press { display: block; margin: 22px auto 0; opacity: .85; }

/* ── loader ── */
.screen.loader { justify-content: flex-start; padding-top: 30px; }
.loader-bar { display: flex; align-items: center; gap: 10px; margin: 20px 0 6px; }
.loader-bar .progress-track { flex: 1; height: 12px; }
.loader-pct { font-size: 14px; color: var(--muted); min-width: 38px; text-align: right; }

/* ── paywall plans (reference card layout) ── */
.plans { gap: 12px; margin: 18px 0 4px; }
.plan { display: block; padding: 0; overflow: hidden; border: 2px solid var(--line); background: var(--card); }
.plan.selected { border-color: var(--cta); background: #F3FBF6; }
.plan .pl-popular { position: static; display: block; text-align: center; border-radius: 0; background: var(--line); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 0; }
.plan.selected .pl-popular { background: var(--cta); color: #fff; }
.pl-body { display: flex; align-items: center; gap: 12px; padding: 14px; }
.pl-radio { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #C9CED6; position: relative; }
.plan.selected .pl-radio { border-color: var(--cta); background: var(--cta); }
.plan.selected .pl-radio::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.pl-mid { flex: 1; min-width: 0; }
.plan .pl-name { font-weight: 700; font-size: 18px; }
.plan .pl-badge { position: static; display: inline-block; margin: 4px 0 2px; background: transparent; color: var(--cta);
  border: 1.5px solid var(--cta); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; }
.plan .pl-sub { font-size: 13px; color: var(--muted); }
.pl-recur { font-size: 12px; color: var(--muted); }
.plan .pl-price { text-align: right; flex: 0 0 auto; }
.pl-price s { font-size: 13px; color: var(--muted); }
.pl-now { font-size: 24px; font-weight: 800; line-height: 1.1; }
.plan .pl-perday { font-size: 10px; letter-spacing: .5px; color: var(--muted); }
.pw-disc { background: #F4F6F5; border-radius: 12px; padding: 10px 12px; }
.pw-section h2 { font-size: 22px; text-align: center; margin: 0 0 12px; }
.pw-card { background: var(--card); border-radius: 16px; padding: 16px; box-shadow: 0 2px 14px rgba(20,24,31,.08); }
.pw-card h2 { text-align: left; font-size: 20px; }
.faq { padding: 0; }
.faq-q { padding: 14px 28px 14px 0; font-weight: 700; cursor: pointer; position: relative; }
.faq-q::after { content: "\203A"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%) rotate(90deg); color: var(--muted); font-size: 22px; transition: transform .2s; }
.faq.open .faq-q::after { transform: translateY(-50%) rotate(-90deg); }
.faq-a { display: none; color: var(--muted); padding: 0 0 14px; }
.faq.open .faq-a { display: block; }
.pw-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; padding: 10px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(rgba(254,254,254,0), var(--bg) 30%); max-width: var(--maxw); margin: 0 auto;
  transform: translateY(110%); transition: transform .25s ease; pointer-events: none; }
.pw-sticky.on { transform: none; pointer-events: auto; }
.pw-sticky .cta { margin-top: 0; box-shadow: 0 6px 18px rgba(53,164,103,.3); }
.pw { padding-bottom: 96px; }

/* paywall top: the score-ready hero fills the first screen, the offer follows on scroll */
.pw-hero { min-height: calc(100vh - 70px); min-height: calc(100dvh - 70px); display: flex; flex-direction: column;
  justify-content: center; text-align: center; padding: 10px 0 24px; }
.pw-hero .reveal-img { margin-bottom: 18px; }
.pw-offer { scroll-margin-top: 64px; }

/* ── reference alignment (board re-check 2026-11-13) ── */
/* questions: centred titles, as on the competitor screens */
.screen:not(.info):not(.sp) > h1.q { text-align: center; }
/* info screens: left-aligned, figure highlighted, button right under the text */
.screen.info { justify-content: flex-start; padding-top: 24px; }
.screen.info .hero-img { width: 86%; max-width: 300px; }
.info-title { text-align: left; font-size: 24px; margin-bottom: 8px; }
.screen.info .info-text { text-align: left; color: var(--muted); font-size: 16px; }
.screen.info .cta { margin-top: 22px; }

/* upsells */
.up-title { text-align: center; font-size: 24px; margin: 6px 0 14px; }
.up-pill { align-self: center; margin: 2px auto 8px; background: #FFE3E3; color: #C62828; font-size: 14px; font-weight: 700;
  padding: 5px 14px; border-radius: 99px; text-align: center; }
.up-hero { display: flex; align-items: center; gap: 10px; margin: 4px 0 6px; }
.up-hero-cover { width: 50%; max-width: 210px; flex: 0 0 auto; }
.up-hero-stats { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #38414E; }
.up-stat-n { color: #F2711C; font-weight: 800; font-size: 20px; }
.up-tag { display: inline-block; background: #E8453C; color: #fff; font-weight: 800; font-size: 20px; padding: 4px 12px; border-radius: 8px; margin-top: 4px; }
.up-bullets { list-style: none; padding: 0; margin: 4px 0 8px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; }
.up-price-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 6px 0 14px; font-size: 18px; }
.up-price-row s { color: var(--muted); font-size: 15px; }
.up-price-row b { font-size: 24px; }
.up-save { background: #E8453C; color: #fff; font-weight: 700; font-size: 13px; padding: 3px 9px; border-radius: 6px; }
.books { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.book { text-align: center; }
.book .book-no { margin: 0 auto 6px; }
.book-name { display: block; font-size: 18px; margin-bottom: 8px; }
.book ul { text-align: left; }
.up-actions { margin-top: 8px; }
.up-actions.sticky { position: sticky; bottom: 0; background: linear-gradient(rgba(254,254,254,0), var(--bg) 22%); padding: 14px 0 6px; z-index: 4; }
.up-actions .cta { margin-top: 0; }
.up-note { text-align: center; font-size: 14px; color: #38414E; background: #F3FBF6; border-radius: 12px; padding: 10px 12px; margin-top: 6px; }

/* paywall review carousel */
.rc-row { display: flex; align-items: center; gap: 6px; }
.rc-row .rc-card { flex: 1; margin: 0; min-height: 150px; }
.rc-arrow { flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.rc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.rc-badge { font-size: 12px; color: var(--muted); }
.rc-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 4px; }
.rc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.rc-dot.on { background: var(--cta); }
