/* Funnel base styles. Every colour, font and radius is a token from themes.css (look) or the brand file
 * (--brand, --accent, fonts). Components here never hard-code a brand colour. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 var(--font-body); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--link); }
h1, h2, h3 { font-family: var(--font-display); font-weight: var(--heading-weight); line-height: 1.15; margin: 0 0 .5em; letter-spacing: var(--heading-track); }
h1 { font-size: clamp(30px, 6.4vw, 52px); }
h2 { font-size: clamp(23px, 4.2vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1:focus { outline: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 680px; }
.center { text-align: center; }
.small { font-size: 14px; color: var(--muted); }

/* Ribbon: driven by brand.demo */
.ribbon {
  background: var(--ribbon-bg); color: var(--ribbon-ink); text-align: center;
  font: 600 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; padding: 7px 16px;
}

/* Header and footer */
.header { background: var(--header-bg); border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--header-ink); min-width: 0; min-height: 44px; }
.logo__name { font: var(--heading-weight) 19px/1.1 var(--font-display); }
@media (max-width: 480px) { .logo__name { font-size: 16px; } }
.logo__img { max-height: 44px; width: auto; }
.logo__mark { flex: none; display: flex; }
.footer { background: var(--footer-bg); color: var(--footer-ink); padding: 32px 0 40px; margin-top: 0; font-size: 15px; }
.footer a { color: inherit; }
.footer__in { display: grid; gap: 16px; }
.footer__in p { margin: 6px 0 0; opacity: .85; }
.footer__contact { display: flex; flex-direction: column; }
.footer__contact a { display: inline-flex; align-items: center; min-height: 44px; }
.footer__demo { font-size: 13px; }
@media (min-width: 760px) { .footer__in { grid-template-columns: 2fr 1fr; } .footer__demo { grid-column: 1 / -1; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px;
  border-radius: var(--btn-radius); border: 2px solid transparent; font: 700 16px/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; text-transform: var(--btn-case); letter-spacing: var(--btn-track);
}
.btn--primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-shadow); }
.btn--primary:hover { filter: brightness(1.06); }
.btn--big { min-height: 58px; font-size: 18px; padding: 14px 26px; }
.btn--full { width: 100%; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--call { background: var(--brand); color: var(--brand-ink); min-height: 44px; padding: 8px 14px; font-size: 15px; flex: none; }
.btn[disabled] { opacity: .6; cursor: wait; }
@media (max-width: 420px) { .btn--call span { display: none; } .btn--call { padding: 8px 12px; } }
.call-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--link); margin-top: 6px; }

/* Bands and cards */
.band { padding: 52px 0; }
.band--alt { background: var(--band-alt); }
.band--cta { background: var(--cta-band, var(--brand)); color: var(--cta-band-ink, var(--brand-ink)); }
.band--cta .btn--primary { margin-top: 8px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.eyebrow { font: 700 13px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .1em; color: var(--eyebrow); margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--muted); }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.split-2 { display: grid; gap: 28px; align-items: center; }
@media (min-width: 860px) { .split-2 { grid-template-columns: 1fr 1fr; } }

/* Hero (layout rules in themes.css under [data-layout]) */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 36px 0 28px; overflow: hidden; }
.hero .lead { color: var(--hero-muted); }
.hero__in { display: grid; gap: 24px; align-items: center; }
.hero__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.hero__note { font-size: 14px; color: var(--hero-muted); margin: 6px 0 0; }
.hero .call-link { color: var(--hero-link); }
.hero__art { width: 100%; }
.house-art { width: 100%; height: auto; max-height: 340px; }

/* Trust bar */
.trust { list-style: none; margin: 28px 0 0; padding: 14px 0 0; border-top: 1px solid var(--hero-line); display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.trust__item { display: flex; align-items: center; gap: 6px; }
.trust__item--badge svg { color: var(--accent); }
.stars { color: var(--star); letter-spacing: 2px; font-size: 17px; }

/* How it works, ticks, chips, faq */
.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how__num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-weight: 800; margin-bottom: 12px; }
.how p { margin: 0; color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding: 8px 0 8px 34px; position: relative; font-size: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); }
.ticks li::after { content: ""; position: absolute; left: 7px; top: 15px; width: 8px; height: 12px; border: solid var(--accent-ink); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 14px; background: var(--surface); }
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style-position: outside; }
.faq p { color: var(--muted); }
.verify-tag { display: inline-block; font: 700 11px/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .05em; background: var(--verify-bg); color: var(--verify-ink); border-radius: 4px; padding: 3px 6px; vertical-align: middle; }

/* Photo and review slots */
.photo-slot { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; }
.photo-slot--empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center;
  background: repeating-linear-gradient(135deg, var(--slot-a) 0 14px, var(--slot-b) 14px 28px); border: 2px dashed var(--line-strong); color: var(--muted);
}
.photo-slot--empty figcaption { font-weight: 600; font-size: 15px; color: var(--ink); }
.photo-slot__tag, .review-slot__tag { display: block; font: 700 11px/1.2 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.photo-slot--wide { aspect-ratio: 16 / 10; }
.photo-slot--round { width: 84px; height: 84px; aspect-ratio: 1; border-radius: 50%; flex: none; padding: 6px; }
.photo-slot--round figcaption { font-size: 0; }
.photo-slot--round .photo-slot__tag { font-size: 9px; margin: 0; }
.photo-slot--round svg { width: 20px; height: 20px; }
.review-slot { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; background: var(--surface); color: var(--muted); }
.review-slot p { margin: 0; }
.review { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.review blockquote { margin: 0 0 10px; }
.review figcaption { color: var(--muted); font-size: 15px; }

/* Quiz */
.step { min-height: 60vh; }
.step--quiz, .step--result, .step--booking, .step--confirm, .step--followups { padding: 28px 0 56px; }
.quiz__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; min-height: 44px; }
.quiz__count { font-size: 14px; color: var(--muted); font-weight: 600; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; margin-bottom: 28px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s; }
.quiz__q { font-size: clamp(26px, 5.4vw, 38px); }
.quiz__help { color: var(--muted); }
.options { display: grid; gap: 12px; margin-top: 18px; }
.option {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 62px; padding: 14px 18px; text-align: left;
  background: var(--surface); color: var(--ink); border: 2px solid var(--line-strong); border-radius: var(--radius);
  font: 600 17px/1.3 var(--font-body); cursor: pointer;
}
.option:hover { border-color: var(--brand); }
.option.is-chosen { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.option__dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.option.is-chosen .option__dot { border: 7px solid var(--accent); }

/* Result */
.verdict { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.verdict svg { flex: none; color: var(--ok); }
.verdict--check svg { color: var(--warn); }
.verdict h1 { font-size: clamp(26px, 5.4vw, 38px); }
.verdict p { color: var(--muted); }
.price { margin-bottom: 22px; }
.price__label { font-weight: 700; margin-bottom: 6px; }
.price__range { font: var(--heading-weight) clamp(30px, 7vw, 44px)/1.1 var(--font-display); color: var(--price); margin-bottom: 10px; }
.price__note { font-size: 15px; color: var(--muted); }
.price__rate { font-weight: 700; margin: -4px 0 8px; }
.price__basis { font-size: 15px; margin: 0 0 8px; padding-left: 10px; border-left: 3px solid var(--accent); }
.price__type { border-top: 1px solid var(--line); padding-top: 14px; }
.price__type h2 { font-size: 19px; margin-bottom: 4px; }
.price__type p { margin: 0; color: var(--muted); }
.notes h2, .worries h2 { font-size: 21px; }
.notes ul { padding-left: 20px; color: var(--muted); }
.result__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 8px 0 34px; }
.worries { margin-top: 10px; }

/* Send me my result (capture.js) */
.capture { margin: 0 0 34px; }
.capture h2 { font-size: 21px; margin-bottom: 6px; }
.capture > p { color: var(--muted); }
.capture form { margin-top: 14px; }
.capture .small { margin-bottom: 10px; }
.capture__done { display: flex; gap: 12px; align-items: flex-start; }
.capture__done svg { flex: none; color: var(--ok); }
.capture__done p { margin: 0; color: var(--muted); }

/* Booking */
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.form legend { font-weight: 800; font-size: 18px; margin-bottom: 10px; padding: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.day, .time {
  flex: none; min-height: 48px; padding: 10px 14px; border-radius: var(--btn-radius); border: 2px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font: 600 15px/1.2 var(--font-body); cursor: pointer; scroll-snap-align: start;
}
.day.is-on, .time.is-on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.day[disabled], .time[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 560px) { .times { grid-template-columns: repeat(4, 1fr); } }
.time__taken { display: block; font-size: 11px; font-weight: 600; text-decoration: none; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; margin-bottom: 4px; }
.field input {
  width: 100%; min-height: 50px; padding: 10px 12px; font: 17px/1.3 var(--font-body); color: var(--ink);
  background: var(--input-bg); border: 2px solid var(--line-strong); border-radius: var(--btn-radius);
}
.field input[aria-invalid="true"] { border-color: var(--warn); }
.field__err { color: var(--warn); font-size: 14px; font-weight: 600; margin: 4px 0 0; }
.demo-note { border-left: 3px solid var(--accent); padding-left: 10px; }

/* Confirmation */
.confirm__tick { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; margin-bottom: 16px; }
.when { margin-bottom: 20px; }
.when__label { font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.when__slot { font: var(--heading-weight) clamp(24px, 5vw, 32px)/1.2 var(--font-display); color: var(--price); margin-bottom: 10px; }
.next { padding-left: 22px; }
.next li { margin-bottom: 8px; }
.owner { display: flex; gap: 16px; align-items: center; margin-top: 24px; }
.owner__line { font: var(--heading-weight) 21px/1.2 var(--font-display); margin-bottom: 2px; }
.owner .small { margin-bottom: 4px; }

/* Follow-up preview */
.seq { margin-top: 34px; }
.seq > p { color: var(--muted); }
.timeline { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 3px solid var(--line); }
.msg { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.msg::before { content: ""; position: absolute; left: -32px; top: 20px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg); }
.msg__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.msg__icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); }
.msg__chan { font-weight: 800; }
.msg__wait { color: var(--muted); }
.msg__subject { font-weight: 700; }
.msg__subject span { color: var(--muted); font-weight: 600; }
.msg__body p { margin-bottom: .6em; }
.msg__body p:last-child { margin-bottom: 0; }
.msg--text .msg__body { background: var(--bubble); border-radius: 16px 16px 16px 4px; padding: 12px 14px; display: inline-block; }

/* No brand */
.missing { max-width: 560px; margin: 0 auto; padding: 72px 16px; text-align: center; }
.msg__body p { overflow-wrap: break-word; }
.msg--text .msg__body { max-width: 100%; }
/* Price slot: a real firm with no published prices sees where its own figures would go. */
.price__range--slot { display: flex; flex-direction: column; gap: 8px; font-size: clamp(20px, 4.5vw, 26px); color: var(--muted); border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 16px; }
.price__range--slot .photo-slot__tag { align-self: flex-start; }
.price--none .price__type { border-top: 0; padding-top: 0; }

