/* Quiz Funnel Template — 3thingsMedia */
:root {
  --brand: #ea580c;
  --brand-dark: #c2410c;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --radius: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--brand) 10%, transparent) 0, transparent 45%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 40px; }

/* Header */
.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; max-width: 960px; }
.brand { font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { height: 36px; width: auto; display: block; }
.phone { font-weight: 700; font-size: 15px; color: var(--brand); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.phone svg { width: 16px; height: 16px; }

/* Card */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(15, 23, 42, .06); overflow: hidden; }
.pad { padding: 28px 24px; }
@media (min-width: 560px) { .pad { padding: 40px; } }
.screen { animation: in .35s ease both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .screen { animation: none; } }

/* Type */
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-dark); background: color-mix(in srgb, var(--brand) 12%, #fff); padding: 5px 10px; border-radius: 999px; margin: 0 0 14px; }
h1, h2 { margin: 0 0 10px; letter-spacing: -.02em; line-height: 1.15; }
h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 800; }
h2 { font-size: clamp(22px, 5vw, 28px); font-weight: 800; }
h1:focus, h2:focus { outline: none; }
.sub { color: var(--muted); font-size: 17px; margin: 0 0 24px; }
.hero-img { width: 100%; height: auto; border-radius: 12px; margin-bottom: 20px; display: block; }

/* Buttons */
.btn { appearance: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 17px; color: #fff; background: var(--brand); border-radius: 12px; padding: 16px 24px; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; box-shadow: 0 6px 20px color-mix(in srgb, var(--brand) 35%, transparent); transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .opt:focus-visible, .back:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.btn svg { width: 18px; height: 18px; }
.trust { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg { width: 14px; height: 14px; color: #16a34a; }

/* Progress */
.progress { display: flex; align-items: center; gap: 12px; padding: 16px 24px; border-bottom: 1px solid var(--line); }
@media (min-width: 560px) { .progress { padding: 16px 40px; } }
.progress__bar { flex: 1; height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; background: var(--brand); border-radius: 999px; transition: width .4s ease; }
.progress__text { font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.back { appearance: none; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); padding: 4px 0; display: inline-flex; align-items: center; gap: 4px; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }

/* Options */
.opts { display: grid; gap: 10px; margin: 20px 0 0; }
.opt { appearance: none; cursor: pointer; font: inherit; text-align: left; width: 100%; display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; font-size: 16px; font-weight: 600; color: var(--ink); transition: border-color .15s, background .15s, transform .15s; }
.opt:hover { border-color: color-mix(in srgb, var(--brand) 50%, #fff); background: color-mix(in srgb, var(--brand) 4%, #fff); }
.opt.is-on { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, #fff); }
.opt__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px; background: var(--bg); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.opt__label { flex: 1; }
.opt__dot { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.opt.is-on .opt__dot { border-color: var(--brand); background: var(--brand); }
.opt.is-on .opt__dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* Loading */
.loading { text-align: center; padding: 56px 24px; }
.spinner { width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--brand); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { font-weight: 600; color: var(--muted); margin: 0; }

/* Lead form */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 2px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; transition: border-color .15s; }
.field input:focus { outline: none; border-color: var(--brand); }
.field input[aria-invalid="true"] { border-color: #dc2626; }
.err { color: #dc2626; font-size: 13px; margin: 6px 0 0; }
.privacy { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--muted); margin: 14px 0 0; }
.privacy svg { width: 14px; height: 14px; }

/* Result */
.result__badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #15803d; background: #dcfce7; padding: 5px 10px; border-radius: 999px; margin-bottom: 14px; }
.result__badge svg { width: 14px; height: 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.ticks svg { width: 20px; height: 20px; flex-shrink: 0; color: #fff; background: var(--brand); border-radius: 50%; padding: 4px; }
.price { background: var(--bg); border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; margin: 0 0 20px; }
.again { display: block; margin: 16px auto 0; }

/* Footer */
.foot { padding: 24px 0 32px; text-align: center; font-size: 13px; color: var(--muted); }
.foot p { margin: 4px 0; }
.foot a { color: var(--muted); }
