/*
 * Visual clone of the Duomo quiz funnel: light theme, blue primary, big
 * rounded cards. No framework, no build step.
 */

:root {
  --blue: #3d5aff;
  --blue-dark: #2f48d6;
  --text: #1c1f2e;
  --text-2: #6b7080;
  --text-3: #9aa0ad;
  --bg: #ffffff;
  --line: #e7e9ee;
  --line-strong: #d8dbe2;
  --green: #22a765;
  --green-bg: #e6f6ec;
  --pink: #e5446d;
  --pink-bg: #fbe3e3;
  --radius: 16px;
  --maxw: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.4;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px 60px; }

/* ── Header / quiz chrome ─────────────────────────────────────────────── */

.topbar {
  display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 16px 10px;
}
.logo { text-align: center; font-weight: 800; font-size: 20px; letter-spacing: 0.12em; }
.back { background: none; border: 0; font-size: 22px; color: var(--text); cursor: pointer; padding: 4px; visibility: hidden; }
.back.show { visibility: visible; }

.track { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; max-width: var(--maxw); margin: 0 auto; }
.track .fill { height: 100%; width: 0; background: var(--blue); border-radius: 2px; transition: width 0.25s ease; }

/* ── Type ─────────────────────────────────────────────────────────────── */

h1 { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; text-align: center; margin: 26px 0 10px; }
h2 { font-size: 24px; line-height: 1.2; text-align: center; margin: 40px 0 18px; }
.sub { text-align: center; color: var(--text-2); font-size: 16px; margin: 0 0 18px; }

/* ── Start screen ─────────────────────────────────────────────────────── */

.hero {
  width: 300px; height: 300px; margin: 28px auto 0; border-radius: 50%;
  background: url('/assets/img/hero.jpg') center 20% / cover no-repeat, #ddd3c0;
  color: transparent; font-size: 0; padding: 0;
}

.start-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 340px; margin: -26px auto 0; position: relative;
  background: linear-gradient(90deg, #fff 60%, #f4f5f7);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 24px rgba(28, 31, 46, 0.10);
  padding: 14px 10px 14px 22px;
  font: inherit; font-size: 19px; font-weight: 600; cursor: pointer;
}
.start-btn .chev {
  width: 40px; height: 40px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 18px;
}

.legal { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 30px; }
.legal a { color: var(--blue); }

/* ── Question options ─────────────────────────────────────────────────── */

.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left;
  background: #fff; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(28, 31, 46, 0.04);
  padding: 22px 20px; margin-bottom: 14px;
  font: inherit; font-size: 17px; cursor: pointer;
  transition: border-color 0.12s ease, transform 0.1s ease;
}
.opt:hover { border-color: var(--line-strong); }
.opt:active { transform: scale(0.99); }
.opt .ring { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; }

/* ── Paywall ──────────────────────────────────────────────────────────── */

.paybar {
  position: sticky; top: 0; z-index: 20;
  background: #fff; border-bottom: 1px solid var(--line);
}
.paybar .in {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 20px;
}
.clock b { font-size: 26px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.clock span { display: block; color: var(--text-2); font-size: 11px; }
.btn {
  display: inline-block; border: 0; border-radius: 12px;
  background: var(--blue); color: #fff;
  font: inherit; font-size: 17px; font-weight: 600;
  padding: 14px 26px; cursor: pointer; text-align: center;
  transition: background 0.12s ease, transform 0.1s ease;
}
.btn:hover { background: var(--blue-dark); }
.btn:active { transform: scale(0.99); }
.btn.block { display: block; width: 100%; padding: 17px 20px; font-size: 18px; }

.checklist { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.check:last-child { border-bottom: 0; }
.check .ic {
  width: 22px; height: 22px; border-radius: 50%; flex: none; margin-top: 1px;
  background: var(--green-bg); color: var(--green);
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
}

.plan {
  position: relative; display: flex; align-items: center; gap: 14px;
  width: 100%; text-align: left;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 20px 16px; margin-bottom: 14px;
  font: inherit; cursor: pointer;
  transition: border-color 0.12s ease;
}
.plan.sel { border-color: var(--blue); }
.plan.featured { margin-top: 26px; border-radius: 0 0 var(--radius) var(--radius); }
.plan .pop {
  position: absolute; top: -26px; left: -1.5px; right: -1.5px;
  background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-align: center;
  padding: 5px 0; border-radius: 10px 10px 0 0;
}
.plan .tick {
  width: 24px; height: 24px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--line-strong);
}
.plan.sel .tick { border: 0; background: var(--text); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.plan .body { flex: 1; }
.plan .name { display: block; font-size: 19px; font-weight: 700; }
.plan .terms { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 3px; }
.plan .terms b { color: var(--text); }
.plan .off {
  display: inline-block; margin-top: 8px;
  background: var(--blue); color: #fff;
  font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.plan.downsold .off { background: var(--pink); }
.plan .brk { flex: none; text-align: center; background: #f6f7f9; border-radius: 10px; padding: 8px 12px; }
.plan .brk i { display: block; font-style: normal; color: var(--text-3); font-size: 10.5px; }
.plan .brk b { display: block; font-size: 17px; }
.plan .brk span { display: block; color: var(--text-2); font-size: 11.5px; }

.fineprint { color: var(--text-2); font-size: 13px; text-align: center; margin: 16px 0; }
.fineprint a { color: var(--text-2); }

.safe {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-bg); color: var(--green);
  border-radius: 10px; padding: 8px 14px; font-size: 14.5px; font-weight: 600;
}
.payrow { display: flex; justify-content: center; gap: 7px; flex-wrap: wrap; margin-top: 12px; }
.chip {
  border: 1px solid var(--line); border-radius: 5px; background: #fff;
  padding: 2px 7px; font-size: 11.5px; font-weight: 700; color: var(--text-2);
}
.center { text-align: center; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  cursor: pointer; padding: 18px 0; font-size: 16.5px; font-weight: 600;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--text-3); font-size: 22px; font-weight: 300; flex: none; }
.faq details[open] summary::after { content: '\2212'; }
.faq .a { color: var(--text-2); font-size: 15px; padding: 0 0 16px; margin: 0; }

.addr { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 48px; }

/* ── Downsell banner ──────────────────────────────────────────────────── */

.downsell {
  border: 1.5px solid var(--pink); border-radius: var(--radius);
  padding: 20px 18px; margin: 20px 0 6px; text-align: center;
}
.downsell h3 { margin: 0 0 8px; font-size: 21px; }
.downsell p { color: var(--text-2); font-size: 14.5px; margin: 0 0 10px; }
.downsell .prev { color: var(--text-3); font-size: 13px; text-decoration: line-through; }
.downsell .now { color: var(--pink); font-weight: 700; font-size: 16px; }

/* ── Checkout modal ───────────────────────────────────────────────────── */

.overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(20, 22, 34, 0.55);
  display: none; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 24px 12px;
}
.overlay.show { display: flex; }
.modal {
  width: 100%; max-width: 440px; background: #fff; border-radius: 16px;
  overflow: hidden; position: relative;
}
.modal .expire {
  background: var(--pink-bg); color: #c22;
  text-align: center; font-size: 14px; font-weight: 600; padding: 12px;
}
.modal .inner { padding: 18px 22px 24px; }
.modal h3 { font-size: 24px; text-align: center; margin: 8px 0 18px; }
.modal .x {
  position: absolute; top: 46px; right: 14px;
  background: none; border: 0; font-size: 22px; color: var(--text-2); cursor: pointer; padding: 6px;
}
.row { display: flex; justify-content: space-between; font-size: 15px; color: var(--text-2); padding: 5px 0; }
.row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--text); font-size: 18px; font-weight: 700; }
.row .neg { color: var(--pink); }
.saved { text-align: right; color: var(--pink); font-size: 14px; font-weight: 600; margin: 2px 0 8px; }
.row.renew { color: var(--text); font-weight: 600; font-size: 15.5px; }

.consent {
  background: #f6f7f9; border-radius: 10px; padding: 13px 15px;
  color: var(--text-2); font-size: 12.5px; margin: 14px 0;
}
.consent a { color: var(--text-2); }

.gpay {
  display: block; width: 100%; background: #000; color: #fff;
  border: 0; border-radius: 10px; padding: 15px; font: inherit; font-size: 18px; cursor: pointer;
}
.divider { text-align: center; color: var(--text-3); font-size: 13.5px; margin: 12px 0; }

.field {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 15px 14px; font: inherit; font-size: 16px; color: var(--text);
  background: #fff; margin-bottom: 10px;
}
.field::placeholder { color: var(--text-3); }
.split { display: flex; gap: 10px; }
.split .field { margin-bottom: 10px; }

.stub-note { text-align: center; color: var(--pink); font-size: 13.5px; display: none; margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
