/* Ezy Compare: property investment equity quiz.
   Look: white page, bold Satoshi headings, deep-indigo bands, pill buttons, rounded photos and cards.
   Palette from the Ezy Compare logo (cyan -> blue -> purple). */
:root {
  --ink: #120F33;          /* headings */
  --text: #2B2A44;
  --muted: #6D6A8A;
  --brand: #A600FF;        /* Ezy purple: buttons, accent phrase */
  --brand-dk: #8600D1;
  --blue: #2E7BFF;
  --cyan: #00C8F5;
  --deep: #14103A;         /* dark bands */
  --deep-2: #1E1852;       /* cards on dark */
  --deep-line: rgba(255,255,255,.14);
  --lilac: #C9A9FF;        /* accent on dark */
  --soft: #F6F5FB;
  --tint: #F4EEFF;
  --line: #E6E3F0;
  --ok: #18A957;
  --bad: #E0245E;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue) 45%, var(--brand));
  --radius: 22px;
  --font: 'Satoshi', 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--text); font: 500 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); font-weight: 700; letter-spacing: -0.025em; margin: 0; }
mark { background: none; color: var(--brand); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 860px; }
.center { text-align: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none;
  background: var(--brand); color: #fff; font: 700 16px/1 var(--font); padding: 16px 26px; border-radius: 999px;
  box-shadow: 0 10px 24px -12px rgba(166,0,255,.65); transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dk); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-sm { padding: 11px 18px; font-size: 14px; box-shadow: none; }
.btn-lg { padding: 19px 34px; font-size: 18px; }
.btn.wide { width: 100%; }


/* Header: logo left, secure badge right */
.top { background: #fff; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { height: 28px; width: auto; }
/* Trust seal: green shield + padlock, bordered like a certificate seal */
.secure-badge { display: inline-flex; align-items: center; gap: 9px; padding: 6px 13px 6px 8px; background: linear-gradient(180deg, #F6FCF8, #EAF7EF); border: 1px solid #BFE5CD; border-radius: 10px; box-shadow: 0 1px 2px rgba(14, 143, 69, .08); }
.secure-badge .seal { width: 28px; height: 32px; flex: none; filter: drop-shadow(0 1px 1px rgba(14, 143, 69, .25)); }
.sb-text { display: grid; line-height: 1.1; text-align: left; }
.sb-text b { font-size: 13.5px; font-weight: 800; color: #0B6B35; letter-spacing: .05em; text-transform: uppercase; }
.sb-text small { font-size: 11px; font-weight: 600; color: #4B6B57; margin-top: 2px; }

/* HERO: centred headline + swoosh + one-line tagline */
.hero { padding: 6px 0 64px; }
.hero-c { text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; max-width: 1000px; margin: 0 auto; }
.hero h1 mark { display: block; color: var(--brand); font-weight: 900; font-size: 1.24em; letter-spacing: -0.035em; margin-top: 8px; }
.swoosh { display: block; width: 320px; height: 24px; margin: 10px auto 0; }
.tag-line { margin: 18px 0 30px; font-size: 19px; font-weight: 700; color: var(--ink); }

/* QUIZ: big shaded box so the form is the obvious thing on the page */
.quiz { max-width: 980px; min-height: 560px; margin: 0 auto; background: #E8E6EF; border-radius: 20px; padding: 26px 40px 36px; text-align: center; }
.quiz-top { margin-bottom: 30px; }
.quiz-title { font-size: 34px; font-weight: 700; color: var(--ink); letter-spacing: -0.025em; line-height: 1.1; }
.quiz-sub { font-size: 15px; font-weight: 500; color: var(--text); margin-top: 4px; }
.bar { height: 6px; max-width: 360px; background: #D6D2E3; border-radius: 99px; margin: 16px auto 0; overflow: hidden; }
.bar i { display: block; height: 100%; width: 9%; background: var(--grad); border-radius: 99px; transition: width .35s ease; }
.quiz form { max-width: 820px; margin: 0 auto; text-align: center; }
.quiz .q { font-size: 30px; font-weight: 900; }
.quiz .q-help { font-size: 16px; color: var(--text); }
.quiz .opt span { background: var(--brand); color: #fff; border: 0; border-radius: 10px; min-height: 64px; font-size: 18px;
  box-shadow: 0 4px 0 #6E00AA; }
.quiz .opts.big .opt span { min-height: 64px; font-size: 19px; }
.quiz .opt:hover span { background: var(--brand-dk); border: 0; }
.quiz .opt input:checked + span { background: var(--ink); box-shadow: 0 4px 0 #000; transform: none; }
.quiz .slider, .quiz .field, .quiz .consent, .quiz .ready, .quiz .pair, .quiz .row, .quiz .err, .quiz .demo { max-width: 620px; margin-left: auto; margin-right: auto; }
.quiz .field, .quiz .consent, .quiz .ready { text-align: left; }
.quiz .s-step, .quiz .field input, .quiz .phone { background: #fff; }
.quiz .row .btn { border-radius: 10px; box-shadow: 0 4px 0 #6E00AA; }
.quiz #verify-form .btn.wide { max-width: 620px; border-radius: 10px; box-shadow: 0 4px 0 #6E00AA; }
.quiz .code-input { max-width: 620px; }
.quiz .secure { margin-top: 34px; }

.step { display: none; border: 0; margin: 0; padding: 0; min-width: 0; }
.step.active { display: block; animation: rise .28s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q { display: block; font-size: 25px; line-height: 1.18; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; margin: 0 0 6px; padding: 0; }
.q-help { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
legend.q + .opts, legend.q + .slider { margin-top: 18px; }
.opts { display: grid; gap: 10px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opts.three { grid-template-columns: repeat(3, 1fr); }
.opts.four { grid-template-columns: repeat(4, 1fr); }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 58px; padding: 12px 14px; border-radius: 16px;
  background: var(--tint); border: 1.5px solid transparent; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.25;
  transition: background .12s, border-color .12s, transform .12s, color .12s; }
.opts.big .opt span { min-height: 76px; font-size: 18px; }
.opt:hover span { border-color: var(--brand); background: #EFE3FF; }
.opt input:focus-visible + span { outline: 3px solid rgba(166,0,255,.35); outline-offset: 2px; }
.opt input:checked + span { background: var(--brand); color: #fff; transform: scale(.98); }

/* Sliders */
.slider { padding: 6px 0 4px; }
.s-val { display: block; text-align: center; font-size: 44px; font-weight: 900; color: var(--ink); letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 14px; }
.s-row { display: flex; align-items: center; gap: 12px; }
.s-step { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 22px/1 var(--font); cursor: pointer; }
.s-step:hover { border-color: var(--brand); color: var(--brand); }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 10px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, var(--blue), var(--brand)) 0 / var(--p, 30%) 100% no-repeat, #EEEAF7; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 4px 12px rgba(166,0,255,.35); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--brand); box-shadow: 0 4px 12px rgba(166,0,255,.35); }
input[type=range]:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(166,0,255,.35); }
.s-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); padding: 8px 56px 0; }


.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.row .btn { min-width: 140px; }
.back, .linkish { background: none; border: 0; padding: 8px 0; font: 700 15px var(--font); color: var(--muted); cursor: pointer; }
.back:hover, .linkish:hover { color: var(--ink); }
.linkish:disabled { opacity: .55; cursor: default; }

.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.field input { width: 100%; height: 54px; border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; font: 500 17px var(--font); color: var(--ink); background: #fff; }
.field input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(166,0,255,.12); }
.field input.bad { border-color: var(--bad); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.phone { display: flex; align-items: stretch; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.phone:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(166,0,255,.12); }
.phone span { display: flex; align-items: center; padding: 0 12px 0 16px; font-weight: 700; color: var(--muted); background: var(--soft); }
.phone input { border: 0; border-radius: 0; box-shadow: none !important; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 6px; cursor: pointer; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.err { color: var(--bad); font-size: 14px; font-weight: 700; margin: 8px 0 0; min-height: 1em; }
.err:empty { display: none; }
.demo { background: #FFF6DB; color: #6B5300; border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.code-input { text-align: center; letter-spacing: .45em; font-size: 26px !important; font-weight: 900 !important; }
.ready { display: flex; gap: 12px; align-items: flex-start; background: #EFFAF3; border-radius: 14px; padding: 12px 14px; margin-bottom: 16px; font-size: 15px; color: var(--ink); }
.ready svg { stroke: var(--ok); margin-top: 1px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 18px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.secure svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

.photo-band { height: 320px; background: url(/img/band-house.jpg) center 62% / cover no-repeat; }

/* Footer: light grey, logo + links left, disclaimers right */
.foot { background: #E8E6EF; color: var(--muted); padding: 48px 0 56px; font-size: 12.5px; line-height: 1.6; }
.foot-grid { display: grid; grid-template-columns: 220px 1fr; gap: 44px; max-width: 980px; }
.foot-left { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding-right: 40px; border-right: 1px dashed #C9C5D8; }
.foot-left img { height: 28px; width: auto; margin-bottom: 10px; }
.foot-left a { color: var(--text); font-size: 13px; }
.foot .legal { margin: 14px 0 0; font-size: 12.5px; font-weight: 700; color: var(--text); }
.foot-right p { margin: 0 0 12px; }
.foot-right a { color: var(--text); }

/* Shared with the thank-you page */
.tagline { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; }
.foot p { margin: 0 0 12px; }
.foot > .wrap > img { height: 26px; width: auto; margin-bottom: 18px; }
@media (max-width: 720px) { .tagline { display: none; } }

/* Responsive */
@media (max-width: 900px) {
  .hero h1 { font-size: 38px; }
  .quiz { padding: 24px 22px 28px; min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .foot-left { border-right: 0; padding-right: 0; border-bottom: 1px dashed #C9C5D8; padding-bottom: 22px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 14px; }
  .top-in { height: 62px; } .logo { height: 24px; }
  .secure-badge { padding: 5px 10px 5px 6px; gap: 7px; border-radius: 9px; }
  .secure-badge .seal { width: 23px; height: 27px; }
  .sb-text b { font-size: 11.5px; } .sb-text small { font-size: 9.5px; }
  .hero { padding: 0 0 40px; }
  .hero h1 { font-size: 26px; }
  .swoosh { width: 220px; height: 18px; }
  .tag-line { font-size: 16px; margin: 12px 0 20px; }
  .quiz { padding: 20px 14px 22px; border-radius: 16px; }
  .quiz-title { font-size: 26px; }
  .quiz .q { font-size: 23px; }
  .opts.four, .opts.three { grid-template-columns: repeat(2, 1fr); }
  .quiz .opt span { min-height: 56px; font-size: 16px; }
  .quiz .opts.big .opt span { min-height: 60px; }
  .s-val { font-size: 38px; }
  .pair { grid-template-columns: 1fr; gap: 0; }
  .row .btn { min-width: 120px; }
  .photo-band { height: 200px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.q-help b { color: var(--ink); font-weight: 700; }
.hero h1 { text-wrap: balance; }
