/* ==========================================================================
   Conveyancing Index — Design System
   Aesthetic: refined property-fintech. Warm cream canvas, deep emerald ink,
   warm terracotta CTA. Display serif (Fraunces) + clean grotesk (Hanken).
   ========================================================================== */

:root {
  /* Palette */
  --cream: #f7f5ef;
  --cream-2: #fbfaf5;
  --paper: #ffffff;
  --ink: #14241c;
  --ink-soft: #3c4a42;
  --ink-muted: #6a766e;
  --line: #e5e0d4;
  --line-strong: #d6cfbe;

  --green: #0f4a37;
  --green-700: #0c3b2c;
  --green-600: #146449;
  --green-100: #e7efe7;
  --green-50: #eef4ec;
  --mint: #cfe6d4;

  --accent: #e1623d;       /* terracotta CTA */
  --accent-600: #cf522f;
  --accent-100: #fbe6dd;

  --gold: #e0a52b;
  --info: #2f6f8f;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --font-body: "Hanken Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Shape & depth */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(20,36,28,.06), 0 2px 6px rgba(20,36,28,.05);
  --shadow-md: 0 6px 18px rgba(20,36,28,.08), 0 2px 6px rgba(20,36,28,.05);
  --shadow-lg: 0 24px 60px rgba(20,36,28,.14), 0 8px 20px rgba(20,36,28,.08);

  /* Layout */
  --wrap: 1160px;
  --wrap-narrow: 820px;
  --space: clamp(1rem, 0.6rem + 1.6vw, 1.6rem);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 1.4rem + 4vw, 4rem); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + 1vw, 1.6rem); }
p { margin: 0 0 1rem; }
ul { margin: 0; }

/* ---------- Helpers ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--space); }
.narrow { max-width: var(--wrap-narrow); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); margin: 0 0 .8rem; display: inline-flex; align-items: center; gap: .5rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.center { text-align: center; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.serif { font-family: var(--font-display); }
.accent-text { color: var(--accent-600); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--green); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 650; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: var(--shadow-sm); text-decoration: none; cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn-accent { --bg: var(--accent); --fg: #fff; }
.btn-accent:hover { background: var(--accent-600); }
.btn-ghost { --bg: transparent; --fg: var(--green); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .7rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 600; font-size: 1.18rem; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-family: var(--font-body); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--green-600); margin-top: 1px; }
.header-nav { display: flex; align-items: center; gap: 1.6rem; }
.header-nav a:not(.btn) { color: var(--ink-soft); font-weight: 550; font-size: .95rem; }
.header-nav a:not(.btn):hover { color: var(--green); text-decoration: none; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 650; color: var(--ink); }
.header-phone svg { width: 18px; height: 18px; color: var(--green-600); }
@media (max-width: 820px) {
  .header-nav .nav-link { display: none; }
}

/* ---------- Trust strip ---------- */
.trustbar { background: var(--green-700); color: #dfeee4; font-size: .82rem; }
.trustbar__inner { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; justify-content: center; padding-block: .5rem; text-align: center; }
.trustbar b { color: #fff; }
.trustbar span { display: inline-flex; align-items: center; gap: .4rem; }
.trustbar svg { width: 15px; height: 15px; color: #9fe0b8; }

/* ==========================================================================
   HERO (landing)
   ========================================================================== */
.hero { position: relative; overflow: clip; padding-block: clamp(2.5rem, 1.5rem + 5vw, 5rem) clamp(2rem, 1rem + 4vw, 4rem); }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 520px at 88% -8%, var(--green-50), transparent 60%),
    radial-gradient(700px 460px at -6% 12%, #f3ede0, transparent 55%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 1rem + 3vw, 4rem); align-items: center; }
.hero h1 .accent { color: var(--green-600); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em; background: var(--accent); opacity: .5; border-radius: 4px; }
.hero__rating { display: inline-flex; align-items: center; gap: .6rem; margin-top: .6rem; font-size: .95rem; color: var(--ink-soft); }
.hero__rating .stars { color: var(--gold); }
.hero__art { position: relative; }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(15,74,55,.18)); }
.hero__floaty { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); padding: .7rem .9rem; display: flex; align-items: center; gap: .6rem; font-size: .85rem; font-weight: 600; }
.hero__floaty .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.hero__floaty--a { top: 6%; right: -2%; }
.hero__floaty--b { bottom: 4%; left: -4%; }
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
  .hero__floaty { display: none; }
}

/* Transaction type selector */
.types { margin-top: clamp(2rem, 1rem + 3vw, 3.5rem); }
.types__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.type-card {
  display: flex; flex-direction: column; gap: .65rem; text-align: left;
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg);
  padding: 1.25rem 1.25rem 1.35rem; text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.type-card::after { content: "Get quotes →"; font-size: .85rem; font-weight: 650; color: var(--accent-600); margin-top: .2rem; transition: gap .2s; }
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); text-decoration: none; }
.type-card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.type-card__icon svg { width: 28px; height: 28px; }
.type-card h3 { font-size: 1.18rem; margin: 0; }
.type-card p { font-size: .9rem; color: var(--ink-muted); margin: 0; line-height: 1.45; }
@media (max-width: 860px) { .types__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .types__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section { padding-block: clamp(2.6rem, 1.6rem + 4vw, 5rem); }
.section--tint { background: var(--cream-2); border-block: 1px solid var(--line); }
.section--ink { background: var(--green-700); color: #e6f1ea; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section__head { max-width: 640px; margin-bottom: 2.2rem; }
.section--center .section__head { margin-inline: auto; text-align: center; }

/* Steps / how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; counter-reset: step; }
.step { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem 1.4rem; position: relative; }
.step__num { counter-increment: step; font-family: var(--font-display); font-size: 2.4rem; color: var(--mint); line-height: 1; }
.step__num::before { content: "0" counter(step); }
.step h3 { margin-top: .4rem; font-size: 1.2rem; }
.step p { margin: 0; color: var(--ink-muted); font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* Feature/benefit grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature__ic { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--green-50); color: var(--green); display: grid; place-items: center; }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin: .1rem 0 .25rem; }
.feature p { font-size: .92rem; color: var(--ink-muted); margin: 0; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat__n { font-family: var(--font-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); color: #fff; line-height: 1; }
.stat__l { font-size: .85rem; color: #b9d6c6; margin-top: .4rem; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1rem; } }

/* FAQ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); margin-bottom: .8rem; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; font-family: var(--font-display); font-size: 1.1rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--green-600); transition: transform .2s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }
.faq details > div p { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--green) 0%, var(--green-700) 100%); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 1.4rem + 3vw, 3.5rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 200px at 80% 0%, rgba(225,98,61,.4), transparent 60%); opacity: .6; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe6d6; max-width: 520px; margin-inline: auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: #b7c2bb; padding-block: 3rem 2rem; font-size: .92rem; }
.site-footer a { color: #cdd6cf; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-grid h4 { color: #fff; font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-brand p { color: #8c988f; max-width: 32ch; }
.footer-bottom { border-top: 1px solid #2a3a31; padding-top: 1.4rem; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between; color: #8c988f; font-size: .82rem; }
.footer-legal { max-width: 70ch; color: #7b877e; font-size: .78rem; line-height: 1.5; margin-top: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .footer-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   QUOTE FORM PAGE
   ========================================================================== */
.form-page { background:
    radial-gradient(700px 420px at 100% -10%, var(--green-50), transparent 55%),
    var(--cream); min-height: 100vh; }
.form-shell { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; align-items: start; padding-block: clamp(1.6rem, 1rem + 2vw, 2.8rem) 4rem; }
@media (max-width: 940px) { .form-shell { grid-template-columns: 1fr; } }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-md); overflow: hidden; }
.form-card__head { padding: 1.4rem clamp(1.2rem, .8rem + 2vw, 2.2rem) 0; }
.form-card__body { padding: 1.4rem clamp(1.2rem, .8rem + 2vw, 2.2rem) 1.8rem; }

/* Progress */
.progress { padding: 0 clamp(1.2rem, .8rem + 2vw, 2.2rem); }
.progress__track { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--green-600), var(--green)); border-radius: 99px; transition: width .4s cubic-bezier(.4,0,.2,1); }
.progress__meta { display: flex; justify-content: space-between; font-size: .8rem; color: var(--ink-muted); margin-top: .55rem; font-weight: 600; }

.step-title { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 1.9rem); margin-bottom: .25rem; }
.step-sub { color: var(--ink-muted); margin-bottom: 1.4rem; font-size: .98rem; }

/* Fields */
.field { margin-bottom: 1.15rem; }
.field > label, .field-group > .field-legend { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .45rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-muted); font-size: .82rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field-row--3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .field-row, .field-row--3 { grid-template-columns: 1fr; } }

.input, select.input, textarea.input {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink);
  background: var(--cream-2); border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.input::placeholder { color: #9aa39c; }
.input:focus, select.input:focus, textarea.input:focus {
  outline: none; border-color: var(--green-600); background: #fff;
  box-shadow: 0 0 0 4px var(--green-50);
}
textarea.input { resize: vertical; min-height: 96px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f4a37' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.6rem; }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-weight: 600; pointer-events: none; }
.input-prefix .input { padding-left: 2rem; }

.field.invalid .input { border-color: var(--accent-600); background: #fdf3f0; }
.field-error { color: var(--accent-600); font-size: .82rem; margin-top: .4rem; display: none; font-weight: 600; }
.field.invalid .field-error { display: block; }

/* Choice cards (radio / toggle) */
.choice-grid { display: grid; gap: .7rem; }
.choice-grid--2 { grid-template-columns: 1fr 1fr; }
.choice-grid--auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 480px) { .choice-grid--2 { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice__face {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--cream-2);
  transition: border-color .15s, background .15s, box-shadow .15s; font-weight: 600; font-size: .95rem;
}
.choice__face .tick { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: .15s; }
.choice__face .tick svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.choice__ic { width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--green); flex: none; }
.choice__ic svg { width: 22px; height: 22px; }
.choice input:hover + .choice__face { border-color: var(--green-600); }
.choice input:checked + .choice__face { border-color: var(--green); background: var(--green-50); box-shadow: 0 0 0 3px var(--green-50); }
.choice input:checked + .choice__face .tick { background: var(--green); border-color: var(--green); }
.choice input:checked + .choice__face .tick svg { opacity: 1; }
.choice input:focus-visible + .choice__face { box-shadow: 0 0 0 4px var(--green-50); }
.choice__face small { display: block; font-weight: 400; color: var(--ink-muted); font-size: .8rem; }

.field-group { margin-bottom: 1.3rem; }
.field-legend { font-family: var(--font-body); }

/* Nav buttons */
.form-nav { display: flex; gap: .8rem; margin-top: 1.6rem; }
.form-nav .btn { flex: 1; }
.form-nav .btn-back { flex: 0 0 auto; }

.subform { border: 1px dashed var(--line-strong); border-radius: var(--r-md); padding: 1.2rem; margin-bottom: 1.3rem; background: var(--cream-2); }
.subform > h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); margin: 0 0 1rem; display: flex; align-items: center; gap: .5rem; }

/* Aside / reassurance rail */
.rail { position: sticky; top: 90px; display: grid; gap: 1rem; }
.rail-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem; }
.rail-card h4 { font-size: 1.05rem; margin-bottom: .8rem; }
.rail-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.rail-list li { display: flex; gap: .6rem; font-size: .9rem; color: var(--ink-soft); align-items: flex-start; }
.rail-list svg { width: 18px; height: 18px; color: var(--green-600); flex: none; margin-top: 2px; }
.rail-quote { background: var(--green-700); color: #e7f1ea; border-radius: var(--r-lg); padding: 1.3rem; }
.rail-quote p { font-family: var(--font-display); font-size: 1.05rem; line-height: 1.4; margin: 0 0 .8rem; }
.rail-quote footer { font-size: .82rem; color: #a9c7b6; display: flex; align-items: center; gap: .5rem; }
.rail-secure { display: flex; align-items: center; gap: .55rem; font-size: .82rem; color: var(--ink-muted); justify-content: center; }
.rail-secure svg { width: 16px; height: 16px; color: var(--green-600); }
@media (max-width: 940px) { .rail { position: static; grid-template-columns: 1fr; } .rail-quote { display: none; } }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); padding: .9rem 1rem; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .8rem; }
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--green); flex: none; }

/* ==========================================================================
   RESULTS PAGE
   ========================================================================== */
.results-page { background: var(--cream); min-height: 100vh; }
.results-head { background: var(--green-700); color: #e6f1ea; padding-block: 1.6rem; }
.results-head h1 { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); margin-bottom: .35rem; }
.results-summary { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: .9rem; color: #bcd8c8; }
.results-summary .chip { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); padding: .2rem .7rem; border-radius: 99px; color: #eaf4ee; }
.results-summary .chip b { color: #fff; }

.results-toolbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding-block: 1.2rem; border-bottom: 1px solid var(--line); }
.results-count { font-weight: 600; }
.results-count b { color: var(--green); }
.sort-control { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.sort-control select { padding: .5rem .8rem; border-radius: 99px; border: 1.5px solid var(--line-strong); background: #fff; font: inherit; font-size: .9rem; }

.quote-list { display: grid; gap: 1.1rem; padding-block: 1.5rem 3rem; }
.quote-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s, border-color .2s;
}
.quote-card:hover { box-shadow: var(--shadow-md); }
.quote-card.is-featured { border-color: var(--green); box-shadow: 0 0 0 1.5px var(--green-100), var(--shadow-md); }
.quote-card__ribbon { background: var(--green); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: .35rem 1.3rem; display: flex; align-items: center; gap: .5rem; }
.quote-card__ribbon svg { width: 14px; height: 14px; }
.quote-card__inner { display: grid; grid-template-columns: 1.1fr 1.5fr auto; gap: 1.3rem; padding: 1.3rem; align-items: center; }
@media (max-width: 800px) { .quote-card__inner { grid-template-columns: 1fr; gap: 1rem; } }

.qc-company { display: flex; gap: .9rem; align-items: center; }
.qc-logo { width: 60px; height: 60px; border-radius: 12px; background: #fff; border: 1px solid var(--line); object-fit: contain; padding: 6px; flex: none; }
.qc-logo--fallback { display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--green); background: var(--green-50); }
.qc-company h3 { font-size: 1.15rem; margin: 0 0 .2rem; }
.qc-rating { display: flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--ink-soft); }
.qc-rating .stars { color: var(--gold); letter-spacing: 1px; }
.qc-rating b { color: var(--ink); }
.qc-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.tag { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 99px; letter-spacing: .02em; }
.tag--cheapest { background: var(--accent-100); color: var(--accent-600); }
.tag--rated { background: #fbf0d6; color: #9a6b09; }
.tag--nearest { background: #e0eef4; color: #235f7c; }
.tag--distance { background: var(--green-50); color: var(--green-600); }

.qc-breakdown { font-size: .85rem; }
.qc-breakdown dl { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1rem; margin: 0; }
.qc-breakdown dt { color: var(--ink-muted); }
.qc-breakdown dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.qc-breakdown .row-total dt, .qc-breakdown .row-total dd { padding-top: .4rem; border-top: 1px dashed var(--line-strong); margin-top: .2rem; }

.qc-action { text-align: center; display: grid; gap: .5rem; min-width: 190px; }
.qc-price { font-family: var(--font-display); font-size: 2rem; color: var(--green); line-height: 1; }
.qc-price small { display: block; font-family: var(--font-body); font-size: .72rem; color: var(--ink-muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; margin-top: .3rem; }
.qc-toggle { background: none; border: 0; color: var(--green-600); font-weight: 650; font-size: .85rem; padding: .3rem; }
.qc-toggle:hover { text-decoration: underline; }

.qc-details { display: none; padding: 0 1.3rem 1.4rem; border-top: 1px solid var(--line); margin-top: -.2rem; }
.qc-details.open { display: block; }
.qc-details__grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; padding-top: 1.3rem; }
@media (max-width: 760px) { .qc-details__grid { grid-template-columns: 1fr; } }
.qc-desc { font-size: .92rem; color: var(--ink-soft); }
.qc-desc p { margin: 0 0 .7rem; }
.qc-desc ul { padding-left: 1.1rem; margin: 0 0 .7rem; }
.qc-desc li { margin-bottom: .35rem; }
.qc-contact { background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem; font-size: .9rem; }
.qc-contact h4 { font-family: var(--font-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); margin-bottom: .7rem; }
.qc-contact a { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; color: var(--ink); }
.qc-contact svg { width: 16px; height: 16px; color: var(--green-600); flex: none; }

/* Loading state */
.loading { text-align: center; padding: 4rem 1rem; }
.loading__ring { width: 56px; height: 56px; margin: 0 auto 1.4rem; border-radius: 50%; border: 5px solid var(--green-100); border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading p { color: var(--ink-muted); }
.loading h2 { margin-bottom: .4rem; }
.skeleton { background: linear-gradient(90deg, #efebdf 25%, #f6f3ea 50%, #efebdf 75%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 8px; }
@keyframes sk { to { background-position: -200% 0; } }

.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-state svg { width: 64px; height: 64px; color: var(--line-strong); margin-bottom: 1rem; }

/* Disclaimer note */
.note { font-size: .82rem; color: var(--ink-muted); background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1rem 1.2rem; margin-bottom: 1.5rem; display: flex; gap: .7rem; }
.note svg { width: 20px; height: 20px; color: var(--green-600); flex: none; margin-top: 1px; }

/* ---------- Reveal-on-load animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: reveal .7s cubic-bezier(.16,1,.3,1) forwards; }
  .reveal-1 { animation-delay: .05s; }
  .reveal-2 { animation-delay: .15s; }
  .reveal-3 { animation-delay: .25s; }
  .reveal-4 { animation-delay: .35s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

/* ---------- Sticky mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 720px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: .7rem var(--space); background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); display: block; }
  body.has-mobile-cta { padding-bottom: 84px; }
}
