:root {
  --text: #343435;
  --bg: #ffffff;
  --primary: #2542aa;
  --primary-dark: #1c3585;
  --accent: #ffb70f;
  --blue: #007aff;
  --muted: #6b6b70;
  --line: #e6e6ea;
  --radius: 12px;
  --maxw: 480px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.site-header { border-bottom: 1px solid var(--line); padding: 14px 0; position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); z-index: 10; }
.site-header .logo { height: 26px; width: auto; display: block; }

.progress { height: 6px; background: var(--line); }
.progress-bar { height: 100%; width: 0; background: var(--primary); transition: width .35s ease; }

main.wrap { padding-top: 28px; padding-bottom: 56px; }

h1, h2, h3 { font-weight: 700; line-height: 1.25; }
h1 { font-size: 27px; margin: 0 0 14px; }
h2 { font-size: 22px; margin: 26px 0 12px; }
h3 { font-size: 18px; margin: 20px 0 8px; }
p { margin: 0 0 14px; }
.lead { font-size: 19px; }
.eyebrow { font-weight: 700; color: var(--primary); letter-spacing: .02em; text-transform: uppercase; font-size: 13px; margin-bottom: 10px; }
.facts { font-weight: 700; color: var(--text); font-size: 15px; margin: 6px 0 22px; }
.muted { color: var(--muted); font-size: 14px; }
.center { text-align: center; }

hr.divider { border: none; border-top: 1px solid var(--line); margin: 26px 0; }

.qcount { font-weight: 700; color: var(--muted); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 10px; }

/* Buttons */
.btn {
  display: block; width: 100%; border: none; cursor: pointer;
  background: var(--primary); color: #fff; font-family: inherit; font-weight: 700;
  font-size: 17px; padding: 16px 18px; border-radius: var(--radius);
  margin: 22px 0 6px; transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: #fff; color: var(--primary); border: 2px solid var(--primary); }
.btn.secondary:hover { background: #f2f5ff; }

.back { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 14px; cursor: pointer; padding: 6px 0; margin-bottom: 4px; }
.back:hover { color: var(--text); }

/* Answer tiles */
.tiles { display: flex; flex-direction: column; gap: 12px; margin: 8px 0; }
.tile {
  display: flex; align-items: center; gap: 14px; width: 100%;
  border: 2px solid var(--line); background: #fff; border-radius: var(--radius);
  padding: 16px; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--text);
  cursor: pointer; text-align: left; transition: border-color .12s ease, background .12s ease;
}
.tile:hover { border-color: var(--primary); }
.tile.selected { border-color: var(--primary); background: #f2f5ff; }
.tile .ico {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center;
  font-size: 21px; background: var(--accent); color: #fff;
}
.tile.gate-yes .ico { background: var(--blue); }
.tile.gate-no .ico { background: #8b9099; }
.tile .check { margin-left: auto; flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; }
.tile.selected .check { background: var(--primary); border-color: var(--primary); }

/* Image tiles (payment) */
.tiles.image { flex-direction: row; gap: 12px; }
.tiles.image .tile { flex-direction: column; text-align: center; gap: 10px; flex: 1; }
.tiles.image .tile .emoji { font-size: 40px; }

/* Lists (day / benefits) */
ul.blocklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
ul.blocklist li { display: flex; gap: 14px; }
ul.blocklist li .emoji { flex: 0 0 auto; font-size: 24px; line-height: 1.3; }
ul.blocklist li .txt { font-size: 16px; }

/* Media */
.media { width: 100%; border-radius: var(--radius); overflow: hidden; margin: 18px 0; display: block; }
video.media { background: #000; }
img.media { display: block; }

/* Testimonial */
.testimonial { display: flex; gap: 14px; align-items: flex-start; background: #f7f8fb; border-radius: var(--radius); padding: 16px; margin: 12px 0; }
.testimonial img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
.testimonial .who { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.testimonial .quote { font-size: 15px; font-style: italic; }

/* Forms */
.field { margin: 14px 0; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input[type=text], .field input[type=email], .field input[type=tel] {
  width: 100%; font-family: inherit; font-size: 16px; padding: 14px; border: 2px solid var(--line);
  border-radius: var(--radius); color: var(--text); background: #fff;
}
.field input:focus { outline: none; border-color: var(--primary); }
.checkline { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; }
.checkline input { margin-top: 3px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--primary); }
.err { color: #c62828; font-size: 13px; margin-top: 4px; }

/* Upload */
.upload {
  display: block; border: 2px dashed var(--primary); border-radius: var(--radius); padding: 26px 18px; text-align: center;
  cursor: pointer; background: #f7f9ff; transition: background .12s ease;
}
.upload:hover { background: #eef2ff; }
.upload .big { font-size: 34px; margin-bottom: 8px; }
.upload.filled { border-style: solid; background: #f2f5ff; }
.upload .fname { font-weight: 700; color: var(--primary); word-break: break-word; }
.upload input[type=file] { display: none; }

.trust { text-align: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

.site-footer { border-top: 1px solid var(--line); padding: 18px 0 30px; font-size: 13px; color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

.result-icon { font-size: 54px; text-align: center; margin: 6px 0 10px; }

.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 520px) { h1 { font-size: 30px; } }
