/* =========================================================================
   Solar Quote Finder Australia — design system
   Matched to the announcement creative: deep navy, signal yellow, green ticks.
   Montserrat (display) + Inter (text). No frameworks, no runtime CSS.
   ========================================================================= */

/* ---------- tokens ---------- */
:root {
  /* navy family */
  --navy-950: #080F1B;
  --navy-900: #0B1524;
  --navy-850: #0E1927;
  --navy-800: #121B2B;
  --navy-700: #102642;
  --navy-600: #16324F;
  --navy-500: #1D4068;

  /* signal */
  --yellow: #F5C542;
  --yellow-400: #FFD65C;
  --yellow-600: #E0AE21;
  --yellow-700: #B9871A;   /* decorative only — borders, icons, hover */
  --gold-text: #8A6410;    /* accessible gold for text on light backgrounds (5.0:1) */
  --green: #3CF07D;
  --green-600: #22C55E;
  --green-700: #16A34A;
  --red: #D32F2F;
  --red-600: #C62828;

  /* neutrals */
  --ink: #0F1B2D;
  --ink-2: #2B394D;
  --slate: #5E6D80;
  --slate-2: #8493A8;
  --line: #E3E8EF;
  --line-2: #EEF2F7;
  --paper: #FFFFFF;
  --paper-2: #F6F8FB;
  --paper-3: #EFF3F8;

  /* type */
  --display: 'Montserrat', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* space + shape */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(11, 21, 36, .06), 0 1px 3px rgba(11, 21, 36, .04);
  --shadow: 0 4px 6px -1px rgba(11, 21, 36, .07), 0 2px 4px -2px rgba(11, 21, 36, .05);
  --shadow-lg: 0 18px 40px -12px rgba(11, 21, 36, .22), 0 4px 10px -4px rgba(11, 21, 36, .1);
  --shadow-xl: 0 40px 80px -24px rgba(8, 15, 27, .45), 0 12px 24px -12px rgba(8, 15, 27, .3);
  --ring: 0 0 0 4px rgba(245, 197, 66, .3);

  --wrap: 1140px;
  --wrap-narrow: 820px;
  --header-h: 64px;

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
::selection { background: var(--yellow); color: var(--navy-900); }

/* ---------- type scale ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.h-hero {
  font-size: clamp(2.15rem, 7.4vw, 4.35rem);
  line-height: .97;
  letter-spacing: -.028em;
  text-transform: uppercase;
  font-weight: 800;
}
.h1 { font-size: clamp(1.85rem, 4.6vw, 3rem); }
.h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.25; }
.h4 { font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; }
.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.19rem);
  line-height: 1.62;
  color: var(--slate);
  text-wrap: pretty;
}
.small { font-size: .875rem; }
.tiny { font-size: .78rem; line-height: 1.5; }
.micro { font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.mono-num { font-variant-numeric: tabular-nums; }
strong, b { font-weight: 700; }
.hl { color: var(--yellow); }
.hl-ink { color: var(--ink); background: linear-gradient(transparent 62%, rgba(245,197,66,.55) 62%); }
.dim { color: var(--slate); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 20px; }
.wrap-narrow { max-width: var(--wrap-narrow); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 68px); }
.stack > * + * { margin-top: var(--gap, 16px); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.dark { background: var(--navy-800); color: #fff; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark .lede, .dark .dim { color: rgba(255,255,255,.76); }
.paper-2 { background: var(--paper-2); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  color: var(--gold-text); background: rgba(245,197,66,.14);
  border: 1px solid rgba(224,174,33,.28);
  padding: 6px 13px; border-radius: var(--r-pill);
}
.dark .eyebrow, .hero .eyebrow, .final-cta .eyebrow { color: var(--yellow); background: rgba(245,197,66,.13); border-color: rgba(245,197,66,.26); }
.eyebrow-red {
  color: #fff; background: var(--red); border-color: var(--red);
  box-shadow: 0 6px 18px -6px rgba(229,57,53,.6);
}
.section-head { max-width: 720px; margin-inline: auto; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .h2 { margin-bottom: 14px; }

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--yellow);
  --btn-fg: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 800; font-size: .95rem; letter-spacing: -.005em;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 15px 26px; border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  box-shadow: 0 10px 24px -10px rgba(224,174,33,.7);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
  text-align: center; line-height: 1.2; position: relative; isolation: isolate;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(224,174,33,.8); background: var(--yellow-400); }
.btn:active { transform: translateY(0) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn svg { flex: 0 0 auto; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-lg { font-size: 1.06rem; padding: 18px 34px; }
.btn-xl { font-size: 1.12rem; padding: 20px 38px; }
.btn-block { width: 100%; }
.btn-ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: var(--line); box-shadow: none;
}
.btn-ghost:hover { background: var(--paper-2); box-shadow: none; }
.dark .btn-ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.24); }
.dark .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-navy { --btn-bg: var(--navy-800); --btn-fg: #fff; box-shadow: 0 10px 24px -12px rgba(11,21,36,.6); }
.btn-navy:hover { background: var(--navy-700); box-shadow: 0 16px 30px -12px rgba(11,21,36,.7); }
.btn-quiet { --btn-bg: transparent; --btn-fg: var(--slate); box-shadow: none; padding: 12px 16px; font-weight: 700; }
.btn-quiet:hover { --btn-fg: var(--ink); background: var(--paper-2); box-shadow: none; transform: none; }
.cta-note { font-size: .8rem; color: var(--slate); }
.hero .cta-note, .final-cta .cta-note { color: rgba(255,255,255,.78); }
.dark .cta-note { color: rgba(255,255,255,.6); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header-h);
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; font-size: 1.02rem; color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 auto;
  background: linear-gradient(140deg, var(--yellow-400), var(--yellow-600));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px -4px rgba(224,174,33,.8);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-tag {
  font-family: var(--text); font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: #4E5C6E; background: var(--paper-3); padding: 3px 8px; border-radius: var(--r-pill);
}
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { font-size: .9rem; font-weight: 600; color: var(--slate); transition: color .15s; }
.header-nav a:hover { color: var(--ink); }
.header-cta { padding: 11px 20px; font-size: .87rem; }
@media (max-width: 860px) { .header-nav a { display: none; } .brand-tag { display: none; } }

/* ---------- hero (creative-matched) ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--navy-800);
  color: #fff;
  padding-block: clamp(44px, 6.5vw, 80px) clamp(34px, 5vw, 60px);
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 90% at 50% -10%, #1B3A63 0%, rgba(27,58,99,0) 62%),
    radial-gradient(90% 70% at 88% 4%, rgba(33,84,142,.55) 0%, rgba(33,84,142,0) 60%),
    linear-gradient(178deg, #14243D 0%, #101A2A 46%, #0A1220 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.075) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 0%, transparent 78%);
}
.hero-inner { text-align: center; display: grid; gap: 22px; justify-items: center; }
.hero h1, .hero h2, .hero h3, .hero .h1, .hero .h2, .hero .h3 { color: #fff; }
.hero .h-hero { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero .h-hero .l2 { display: block; color: var(--yellow); }
.hero-sub {
  max-width: 660px; font-size: clamp(1rem, 1.55vw, 1.16rem); line-height: 1.6;
  color: rgba(255,255,255,.82); text-wrap: pretty;
}
.hero-sub .em { color: var(--yellow-400); font-weight: 700; }
.hero-fine { font-size: .78rem; color: rgba(255,255,255,.66); max-width: 620px; }

/* three tick cards, straight from the creative */
.tick-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 940px; margin-top: 6px; }
@media (max-width: 760px) { .tick-cards { grid-template-columns: minmax(0,1fr); gap: 10px; } }
.tick-card {
  background: #FBFCFD; border-radius: var(--r-lg); padding: 24px 18px;
  text-align: center; box-shadow: var(--shadow-lg);
  display: grid; gap: 8px; justify-items: center;
  border: 1px solid rgba(255,255,255,.6);
}
@media (max-width: 760px) {
  .tick-card { grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 15px 16px; align-items: center; gap: 4px 14px; }
  .tick-card .tick { grid-row: 1 / span 2; }
}
.tick {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--green-700); display: grid; place-items: center; flex: 0 0 auto;
  box-shadow: 0 4px 12px -4px rgba(22,163,74,.6);
}
.tick svg { width: 21px; height: 21px; stroke: #fff; stroke-width: 3.4; }
.tick-card .t {
  font-family: var(--display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.01em;
  text-transform: uppercase; color: var(--navy-800);
}
.tick-card .d { font-size: .855rem; color: var(--slate); line-height: 1.45; }

/* yellow CTA bar under the hero — creative footer band */
.cta-band {
  background: var(--yellow); color: var(--navy-900);
  border-block: 1px solid var(--yellow-600);
}
.cta-band-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding-block: 20px; width: 100%; text-align: left;
}
.cta-band .cb-main {
  font-family: var(--display); font-weight: 800; font-size: clamp(1.02rem, 2.5vw, 1.55rem);
  text-transform: uppercase; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px;
}
.cta-band .cb-main svg { transition: transform .2s var(--ease); }
.cta-band:hover .cb-main svg { transform: translateX(5px); }
.cta-band .cb-sub { font-size: .69rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(11,21,36,.78); margin-top: 3px; }
.cta-band .cb-right { font-size: .82rem; font-weight: 700; color: rgba(11,21,36,.8); white-space: nowrap; }
@media (max-width: 700px) { .cta-band .cb-right { display: none; } }
button.cta-band { display: block; width: 100%; border: 0; border-radius: 0; }
button.cta-band:hover { background: var(--yellow-400); }

/* ---------- trust strip ---------- */
.trust-strip { border-bottom: 1px solid var(--line-2); background: var(--paper); }
.trust-strip .wrap { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 4vw, 44px); padding-block: 16px; flex-wrap: wrap; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: .83rem; font-weight: 600; color: var(--ink-2); }
.trust-item svg { width: 17px; height: 17px; flex: 0 0 auto; color: var(--green-700); }

/* ---------- cards ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #D6DEE9; }
.dark .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.11); box-shadow: none; }
.card .h3, .card .h4 { margin-bottom: 8px; }
.card p { color: var(--slate); font-size: .94rem; }
.dark .card p { color: rgba(255,255,255,.76); }
.dark .small, .dark .tiny, .dark p { color: rgba(255,255,255,.76); }
.dark .micro { color: rgba(255,255,255,.72); }
.icon-badge {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(150deg, rgba(245,197,66,.22), rgba(245,197,66,.08));
  border: 1px solid rgba(224,174,33,.24); color: var(--gold-text);
}
.icon-badge svg { width: 23px; height: 23px; }
.dark .icon-badge { background: rgba(245,197,66,.14); border-color: rgba(245,197,66,.24); color: var(--yellow); }
.num-badge {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto;
  background: var(--navy-800); color: var(--yellow); font-family: var(--display); font-weight: 800; font-size: .95rem;
}
.dark .num-badge { background: var(--yellow); color: var(--navy-900); }

/* ---------- pain / cost blocks ---------- */
.pain-card { display: grid; gap: 12px; }
.pain-card .amt { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 2.6rem); letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.pain-card .amt.bad { color: var(--red-600); }
.pain-card .amt.good { color: var(--green-700); }
.dark .pain-card .amt { color: #fff; }
.dark .pain-card .amt.good { color: var(--green); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0,1fr); } }

/* comparison bars */
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; gap: 7px; }
.bar-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: .84rem; font-weight: 700; }
.bar-label .v { font-family: var(--display); font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.bar-track { height: 13px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.dark .bar-track { background: rgba(255,255,255,.1); }
.bar-fill { height: 100%; border-radius: var(--r-pill); width: 0; transition: width 1.1s var(--ease); }
.bar-fill.f-bad { background: linear-gradient(90deg, #F0705F, var(--red)); }
.bar-fill.f-good { background: linear-gradient(90deg, var(--green-600), var(--yellow)); }
.bar-fill.f-neutral { background: linear-gradient(90deg, var(--navy-600), var(--navy-500)); }

/* ---------- steps ---------- */
.steps { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0,1fr)); counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0,1fr); } }
.step { display: grid; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 12px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; margin-inline: auto; }
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.faq details[open] { border-color: #CFDAE8; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 20px; padding-right: 50px; position: relative;
  font-family: var(--display); font-weight: 700; font-size: 1rem; letter-spacing: -.012em; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px;
  border-right: 2.4px solid var(--slate); border-bottom: 2.4px solid var(--slate);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq summary:hover { color: var(--gold-text); }
.faq .a { padding: 0 20px 19px; color: var(--slate); font-size: .935rem; }
.faq .a p + p { margin-top: 10px; }

/* ---------- final CTA ---------- */
.final-cta { position: relative; overflow: hidden; isolation: isolate; background: var(--navy-800); color: #fff; }
.final-cta::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(90% 120% at 50% 120%, rgba(245,197,66,.2) 0%, rgba(245,197,66,0) 60%),
    linear-gradient(170deg, #13233A, #0A1220);
}
.final-cta h1, .final-cta h2, .final-cta h3, .final-cta h4,
.final-cta .h1, .final-cta .h2, .final-cta .h3, .final-cta .h4 { color: #fff; }
.final-cta .lede, .final-cta .dim, .final-cta p { color: rgba(255, 255, 255, .74); }
.final-cta .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 600; padding: 8px 15px; border-radius: var(--r-pill);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.86);
}
.pill svg { width: 15px; height: 15px; color: var(--green); }
.final-cta .pill { color: rgba(255,255,255,.92); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); padding-block: 44px 30px; font-size: .87rem; }
.site-footer .wrap { display: grid; gap: 26px; }
.footer-top { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand-tag { background: rgba(255,255,255,.14); color: rgba(255,255,255,.8); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.78); transition: color .15s; }
.footer-links a:hover { color: var(--yellow); }
.footer-fine { border-top: 1px solid rgba(255,255,255,.09); padding-top: 22px; font-size: .78rem; line-height: 1.65; color: rgba(255,255,255,.62); display: grid; gap: 10px; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(140%); transition: transform .3s var(--ease);
  display: none;
}
.sticky-cta.on { transform: translateY(0); }
@media (max-width: 780px) { .sticky-cta { display: block; } body.has-sticky { padding-bottom: 76px; } }

/* =========================================================================
   QUOTE FORM — the conversion engine
   ========================================================================= */
.qf-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(8, 15, 27, .68);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px;
  opacity: 0; pointer-events: none; transition: opacity .26s var(--ease);
  overscroll-behavior: contain;
}
.qf-backdrop.open { opacity: 1; pointer-events: auto; }
@media (max-width: 620px) { .qf-backdrop { padding: 0; place-items: end stretch; } }

.qf-modal {
  width: 100%; max-width: 552px; background: var(--paper);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; max-height: min(92vh, 860px);
  transform: translateY(16px) scale(.985); opacity: 0;
  transition: transform .3s var(--ease), opacity .26s var(--ease);
  overflow: hidden;
}
.qf-backdrop.open .qf-modal { transform: none; opacity: 1; }
@media (max-width: 620px) {
  .qf-modal { max-width: none; border-radius: 20px 20px 0 0; max-height: 94vh; }
  /* dvh tracks the shrinking viewport when iOS Safari's toolbars are showing,
     so the sheet's footer (Continue) can never sit under the browser chrome.
     vh above stays as the fallback for anything that lacks dvh. */
  @supports (max-height: 94dvh) { .qf-modal { max-height: 94dvh; } }
}

/* header + progress */
.qf-head { padding: 16px 18px 0; flex: 0 0 auto; }
.qf-head-row { display: flex; align-items: center; gap: 11px; }
.qf-logo { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(140deg, var(--yellow-400), var(--yellow-600)); display: grid; place-items: center; flex: 0 0 auto; }
.qf-logo svg { width: 17px; height: 17px; }
.qf-title { font-family: var(--display); font-weight: 800; font-size: 1rem; letter-spacing: -.015em; flex: 1 1 auto; }
.qf-close {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  color: var(--slate-2); transition: background .15s, color .15s; flex: 0 0 auto;
}
.qf-close:hover { background: var(--paper-3); color: var(--ink); }
.qf-close svg { width: 17px; height: 17px; }

.qf-prog { margin-top: 13px; }
.qf-prog-track { height: 5px; border-radius: var(--r-pill); background: var(--paper-3); overflow: hidden; }
.qf-prog-fill {
  height: 100%; width: 0; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--navy-700), var(--yellow));
  transition: width .42s var(--ease);
}
.qf-prog-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: .74rem; font-weight: 700; color: var(--slate); }
.qf-prog-meta .pct { color: var(--gold-text); }

/* body */
.qf-body { padding: 18px; overflow-y: auto; flex: 1 1 auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.qf-step { display: grid; gap: 13px; }
.qf-step.enter { animation: qfIn .3s var(--ease) both; }
@keyframes qfIn { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.qf-step-icon {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--line-2); color: var(--navy-700);
}
.qf-step-icon svg { width: 18px; height: 18px; }
.qf-q { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -.022em; line-height: 1.2; }
.qf-hint { font-size: .875rem; color: var(--slate); margin-top: -6px; }

/* option cards */
.qf-opts { display: grid; gap: 9px; }
.qf-opts.cols2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (max-width: 460px) { .qf-opts.cols2 { grid-template-columns: minmax(0,1fr); } }
.qf-opt {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 13px;
  text-align: left; width: 100%;
  padding: 14px 15px; border: 1.5px solid var(--line); border-radius: var(--r);
  background: var(--paper); transition: all .17s var(--ease); position: relative;
  -webkit-tap-highlight-color: transparent;
}
.qf-opt:hover { border-color: var(--yellow-600); background: #FFFCF3; transform: translateY(-1px); box-shadow: var(--shadow); }
.qf-opt.sel { border-color: var(--yellow-600); background: #FFFAEE; box-shadow: 0 0 0 3px rgba(245,197,66,.22); }
.qf-opt-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--paper-2); font-size: 1.05rem; grid-row: span 2; flex: 0 0 auto; transition: background .17s; }
.qf-opt-ico svg { width: 19px; height: 19px; color: var(--navy-700); }
.qf-opt:hover .qf-opt-ico, .qf-opt.sel .qf-opt-ico { background: rgba(245,197,66,.24); }
.qf-opt-t { font-family: var(--display); font-weight: 700; font-size: .955rem; letter-spacing: -.012em; line-height: 1.25; }
.qf-opt-d { font-size: .795rem; color: var(--slate); line-height: 1.4; grid-column: 2; }
.qf-opt:not(:has(.qf-opt-d)) .qf-opt-t { grid-row: span 2; align-self: center; }
.qf-opt-chk {
  grid-row: span 2; width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto;
  border: 1.8px solid var(--line); display: grid; place-items: center; transition: all .17s;
}
.qf-opt-chk svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 3.4; opacity: 0; transition: opacity .15s; }
.qf-opt.sel .qf-opt-chk { background: var(--green-700); border-color: var(--green-700); }
.qf-opt.sel .qf-opt-chk svg { opacity: 1; }
.qf-opt kbd {
  position: absolute; top: 7px; right: 9px; font-family: var(--text); font-size: .6rem; font-weight: 700;
  color: var(--slate-2); background: var(--paper-2); border: 1px solid var(--line-2);
  border-radius: 4px; padding: 1px 4px; line-height: 1.4;
}
@media (max-width: 620px), (pointer: coarse) { .qf-opt kbd { display: none; } }

/* fields */
.qf-field { display: grid; gap: 6px; position: relative; }
.qf-label { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.qf-input-wrap { position: relative; display: flex; align-items: center; }
.qf-input-wrap > .ico { position: absolute; left: 13px; color: var(--slate-2); pointer-events: none; display: grid; }
.qf-input-wrap > .ico svg { width: 17px; height: 17px; }
.qf-input-wrap:has(> .ico) .qf-input { padding-left: 39px; }
.qf-input {
  width: 100%; padding: 14px 15px; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--r); background: var(--paper);
  transition: border-color .16s, box-shadow .16s, background .16s;
  -webkit-appearance: none; appearance: none;
}
.qf-input::placeholder { color: var(--slate-2); }
.qf-input:hover { border-color: #CBD5E1; }
.qf-input:focus { outline: none; border-color: var(--yellow-600); box-shadow: var(--ring); }
.qf-input.bad { border-color: var(--red); box-shadow: 0 0 0 4px rgba(229,57,53,.12); }
.qf-input.good { border-color: var(--green-600); }
textarea.qf-input { min-height: 84px; resize: vertical; line-height: 1.55; }
.qf-err { font-size: .78rem; font-weight: 600; color: var(--red-600); display: flex; align-items: center; gap: 5px; }
.qf-err svg { width: 13px; height: 13px; flex: 0 0 auto; }
.qf-ok { font-size: .78rem; font-weight: 600; color: var(--green-700); display: flex; align-items: center; gap: 5px; }
.qf-ok svg { width: 13px; height: 13px; flex: 0 0 auto; }
.qf-prefix { position: absolute; left: 13px; font-size: 1rem; color: var(--slate); font-weight: 600; pointer-events: none; }
.qf-input.has-prefix { padding-left: 44px; }

/* address autocomplete */
.qf-ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 5px); z-index: 5;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); max-height: 232px; overflow-y: auto; overscroll-behavior: contain;
}
.qf-ac-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left;
  padding: 11px 13px; font-size: .885rem; line-height: 1.4; border-bottom: 1px solid var(--line-2);
  transition: background .12s;
}
.qf-ac-item:last-child { border-bottom: 0; }
.qf-ac-item:hover, .qf-ac-item.hi { background: #FFFAEE; }
.qf-ac-item svg { width: 15px; height: 15px; color: var(--slate-2); flex: 0 0 auto; margin-top: 3px; }
.qf-ac-item .a1 { font-weight: 600; color: var(--ink); }
.qf-ac-item .a2 { font-size: .79rem; color: var(--slate); }
.qf-ac-status { padding: 12px 13px; font-size: .83rem; color: var(--slate); display: flex; align-items: center; gap: 9px; }
.qf-ac-foot { padding: 9px 13px; border-top: 1px solid var(--line-2); background: var(--paper-2); }
.qf-ac-foot button { font-size: .8rem; font-weight: 700; color: var(--gold-text); }
.qf-ac-foot button:hover { text-decoration: underline; }
.spin { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--yellow-600); animation: sp .7s linear infinite; flex: 0 0 auto; }
@keyframes sp { to { transform: rotate(360deg); } }

/* manual address */
.qf-manual { display: grid; gap: 9px; grid-template-columns: 1fr 1fr; }
.qf-manual .full { grid-column: 1 / -1; }

/* footer nav */
.qf-foot {
  padding: 13px 18px calc(13px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2); background: var(--paper);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 0 0 auto;
}
.qf-back { display: inline-flex; align-items: center; gap: 6px; font-size: .875rem; font-weight: 700; color: var(--slate); padding: 10px 4px; }
.qf-back:hover { color: var(--ink); }
.qf-back svg { width: 15px; height: 15px; }
.qf-back[hidden] + .qf-next { margin-left: auto; }
.qf-next { padding: 14px 26px; font-size: .95rem; }
.qf-secure { font-size: .72rem; color: var(--slate); text-align: center; padding: 9px 18px 0; display: flex; align-items: center; justify-content: center; gap: 6px; }
.qf-secure svg { width: 12px; height: 12px; color: var(--green-700); }

/* social proof / reassurance inside modal */
.qf-nudge {
  display: flex; align-items: center; gap: 9px; padding: 10px 13px;
  background: linear-gradient(100deg, rgba(60,240,125,.09), rgba(245,197,66,.09));
  border: 1px solid rgba(34,197,94,.2); border-radius: var(--r);
  font-size: .82rem; font-weight: 600; color: var(--ink-2);
}
.qf-nudge svg { width: 16px; height: 16px; color: var(--green-700); flex: 0 0 auto; }
.qf-summary { display: grid; gap: 7px; padding: 13px; background: var(--paper-2); border: 1px solid var(--line-2); border-radius: var(--r); }
.qf-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: .82rem; }
.qf-summary-row dt { color: var(--slate); font-weight: 600; }
.qf-summary-row dd { font-weight: 700; text-align: right; color: var(--ink); }

/* uploads */
.qf-drop {
  border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 20px 16px; text-align: center;
  background: var(--paper-2); transition: all .18s var(--ease); cursor: pointer; display: grid; gap: 7px; justify-items: center;
}
.qf-drop:hover, .qf-drop.over { border-color: var(--yellow-600); background: #FFFCF3; }
.qf-drop .di { width: 40px; height: 40px; border-radius: 11px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy-700); }
.qf-drop .di svg { width: 20px; height: 20px; }
.qf-drop .dt { font-family: var(--display); font-weight: 700; font-size: .92rem; }
.qf-drop .dd { font-size: .78rem; color: var(--slate); }
.qf-files { display: grid; gap: 7px; }
.qf-file {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); font-size: .84rem;
}
.qf-file .thumb { width: 38px; height: 38px; border-radius: 7px; object-fit: cover; background: var(--paper-3); flex: 0 0 auto; }
.qf-file .fi { flex: 1 1 auto; min-width: 0; }
.qf-file .fn { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qf-file .fs { font-size: .74rem; color: var(--slate); }
.qf-file .rm { color: var(--slate-2); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; }
.qf-file .rm:hover { background: #FEF2F2; color: var(--red); }
.qf-file .rm svg { width: 14px; height: 14px; }
.qf-file .st { font-size: .72rem; font-weight: 700; }
.qf-file .st.up { color: var(--green-700); }
.qf-file .st.err { color: var(--red); }

/* success */
.qf-success { display: grid; gap: 15px; justify-items: center; text-align: center; padding: 8px 0; }
.qf-success .big {
  width: 62px; height: 62px; border-radius: 50%; background: var(--green-700); display: grid; place-items: center;
  animation: pop .45s var(--ease) both; box-shadow: 0 10px 26px -8px rgba(22,163,74,.6);
}
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.qf-success .big svg { width: 32px; height: 32px; stroke: #fff; stroke-width: 3.2; }
.qf-timeline { display: grid; gap: 0; text-align: left; width: 100%; }
.qf-tl {
  display: grid; grid-template-columns: auto 1fr; gap: 3px 13px; padding-bottom: 16px; position: relative;
}
.qf-tl:last-child { padding-bottom: 0; }
.qf-tl::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.qf-tl:last-child::before { display: none; }
.qf-tl .n { width: 28px; height: 28px; border-radius: 50%; background: var(--navy-800); color: var(--yellow); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: .8rem; grid-row: span 2; z-index: 1; }
.qf-tl .t { font-family: var(--display); font-weight: 700; font-size: .92rem; }
.qf-tl .d { font-size: .82rem; color: var(--slate); line-height: 1.45; }

/* exit intent */
.qf-exit {
  position: absolute; inset: 0; z-index: 10; background: rgba(255,255,255,.97);
  backdrop-filter: blur(3px); display: grid; place-items: center; padding: 26px;
  animation: qfIn .24s var(--ease) both;
}
.qf-exit-inner { display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 350px; }

/* skeleton / errors */
.qf-alert {
  display: flex; align-items: flex-start; gap: 9px; padding: 12px 13px; border-radius: var(--r);
  background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font-size: .85rem; font-weight: 600; line-height: 1.45;
}
.qf-alert svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.qf-alert.warn { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }
.qf-alert.info { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* utilities */
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 34px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.body-lock { overflow: hidden; }

/* print */
@media print {
  .site-header, .sticky-cta, .qf-backdrop, .cta-band { display: none !important; }
  body { color: #000; }
}
