/* Befixs — Big Cleaning หลังน้ำท่วม · page stylesheet
 * Brand tokens from befixs.com. Library-specific rules (AOS, Splide, Alpine components) are in ui.css. */

/* ---------- Tokens ---------- */
:root {
  --c-primary: #1941af;
  --c-primary-hover: #062977;
  --c-accent: #ff5b1f;
  --c-accent-hover: #e04810;
  --c-navy: #151f30;
  --c-text: #2c4367;
  --c-text-2: #35507d;
  --c-text-3: #5268b5;
  --c-bg: #edf0f7;
  --c-bg-soft: #f7f8fc;
  --c-white: #ffffff;
  --c-border: #dde3f0;
  --c-line: #06c755;
  --c-line-hover: #05a647;
  --c-on-dark: #ffffff;
  --c-on-dark-2: #c9d3ea;
  --c-dark-card: rgba(255, 255, 255, .07);
  --c-dark-border: rgba(255, 255, 255, .16);
  --grad-dark: linear-gradient(135deg, #2c4367 20%, #151f30 74%);

  --font-head: "Noto Sans Thai", "Bai Jamjuree", system-ui, sans-serif;
  --font-body: "Bai Jamjuree", "Noto Sans Thai", system-ui, sans-serif;

  --radius-btn: 10px;
  --radius-card: 18px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(21, 31, 48, .06);
  --shadow-md: 0 10px 30px rgba(21, 31, 48, .10);
  --container: 1290px;
  --gutter: 20px;
  --ease-out-quart: cubic-bezier(.165, .84, .44, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-white);
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; color: var(--c-navy); line-height: 1.3; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--c-primary); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--c-white); padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 8px; top: 8px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 900px; }

/* Audience variants */
html[data-audience="home"] [data-for="business"],
html[data-audience="business"] [data-for="home"] { display: none !important; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--c-bg-soft); }
.section--dark { background: var(--grad-dark); color: var(--c-on-dark-2); }
.section--dark h2, .section--dark h3 { color: var(--c-on-dark); }
.section-head { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .85rem; font-weight: 600; letter-spacing: .04em;
  color: var(--c-accent); margin: 0 0 10px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.accent { color: var(--c-accent); }
.note { font-size: .8rem; color: var(--c-text-3); margin: 14px 0 0; }
.sub-block { margin-top: 56px; }
.sub-block__title { text-align: center; margin-bottom: 22px; font-size: 1.35rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; min-height: 48px;
  border: 2px solid transparent; border-radius: var(--radius-btn);
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .3s ease-in-out, color .3s ease-in-out, border-color .3s ease-in-out, transform .3s ease-in-out, box-shadow .3s ease-in-out;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: none; box-shadow: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.btn--primary { background: var(--c-primary); color: var(--c-white); }
.btn--primary:hover { background: var(--c-primary-hover); }
.btn--outline { background: transparent; color: var(--c-primary); border-color: var(--c-primary); }
.btn--outline:hover { background: var(--c-primary); color: var(--c-white); }
.btn--accent { background: var(--c-accent); color: var(--c-white); }
.btn--accent:hover { background: var(--c-accent-hover); }
.btn--ghost { background: transparent; color: var(--c-white); border-color: var(--c-white); }
.btn--ghost:hover { background: var(--c-white); color: var(--c-navy); }
.btn--line { background: var(--c-line); color: var(--c-white); }
.btn--line:hover { background: var(--c-line-hover); }
.btn--soft { background: var(--c-bg); color: var(--c-navy); }
.btn--soft:hover { background: var(--c-border); }
/* Call button: small 'โทร' eyebrow above a large number */
.btn--call { gap: 12px; padding-top: 7px; padding-bottom: 7px; }
.btn--call .i { width: 1.5em; height: 1.5em; }
.btn__stack { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn__stack small { font-size: .72rem; font-weight: 500; letter-spacing: .04em; opacity: .85; }
.btn__stack b { font-family: var(--font-head); font-size: 1.22rem; font-weight: 700; letter-spacing: .01em; }
.btn--sm { padding: 8px 16px; min-height: 42px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { font-size: .8rem; color: var(--c-text-3); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--radius-btn);
  border: 2px solid var(--c-primary); background: transparent; color: var(--c-primary); cursor: pointer;
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
}
.icon-btn:hover { background: var(--c-primary); color: var(--c-white); }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; padding: 0 var(--gutter); }
.site-header__bar {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 20px;
  background: var(--c-white); border-radius: 16px; box-shadow: var(--shadow-md);
  padding: 10px 18px; position: relative;
  transition: box-shadow .3s ease-in-out, background-color .3s ease-in-out;
}
.site-header.is-scrolled .site-header__bar { box-shadow: 0 14px 40px rgba(21, 31, 48, .18); }
.site-header__logo img { height: 46px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; }
.site-nav a { color: var(--c-text); text-decoration: none; font-weight: 500; }
.site-nav a { position: relative; transition: color .3s ease-in-out; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--c-accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out-quart); }
.site-nav a:hover { color: var(--c-primary); }
.site-nav a:hover::after { transform: scaleX(1); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; }

/* ---------- Audience switch ---------- */
.aud-switch {
  display: inline-flex; padding: 5px; gap: 4px;
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: 999px; box-shadow: var(--shadow-sm);
  max-width: 100%;
}
.aud-switch button {
  border: 0; background: transparent; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; font-weight: 600; color: var(--c-text-2);
  transition: background-color .3s ease, color .3s ease;
}
.aud-switch button[aria-pressed="true"] { background: var(--c-primary); color: var(--c-white); }
.aud-switch--center { margin-top: 22px; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%); padding: 124px 0 72px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; margin-top: 28px; }
.lead { font-size: 1.2rem; color: var(--c-text-2); }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: 999px;
  padding: 6px 14px; font-size: .92rem; font-weight: 500; color: var(--c-primary);
}
.hero__certs { margin-top: 30px; width: 100%; max-width: 460px; }
.hero__points { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin-top: 26px; }
.hero__points li { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; font-size: .92rem; }
.hero__points .i { grid-row: span 2; color: var(--c-primary); width: 1.6em; height: 1.6em; }
.hero__points b { color: var(--c-navy); }

/* ---------- Image slots / placeholders ---------- */
.slot {
  margin: 0; position: relative; overflow: hidden;
  aspect-ratio: 8 / 5; background: var(--c-bg); border-radius: var(--radius-card);
}
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot--hero { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.stage .slot, .size .slot { aspect-ratio: 4 / 3; }
.slot.is-missing { border: 2px dashed var(--c-text-3); display: flex; align-items: center; justify-content: center; }
.slot.is-missing img { display: none; }
.slot.is-missing::after {
  content: "รูป: " attr(data-slot) ".jpg\A" attr(data-size) " px";
  white-space: pre; text-align: center; font-size: .9rem; font-weight: 500; color: var(--c-text-3); padding: 12px;
}

/* ---------- Card grids ---------- */
/* .cell = animated wrapper (AOS) so the card inside keeps its own hover transition */
.cell { display: flex; min-width: 0; }
.cell > * { flex: 1; min-width: 0; }
.card-grid { display: grid; gap: 24px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Scope (8 steps) */
.scope-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: scope; }
.scope-item {
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-card);
  padding: 24px 20px; counter-increment: scope; position: relative;
}
.scope-item::after { content: counter(scope); position: absolute; top: 16px; right: 20px; font-family: var(--font-head); font-size: 1.6rem; color: var(--c-border); }
.scope-item__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px;
  border-radius: 50%; background: var(--c-primary); color: var(--c-white); margin-bottom: 14px; font-size: 1.25rem;
}
.scope-item p { margin: 0; font-size: .95rem; color: var(--c-text-2); }

/* Before / during / after */
.stage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.swipe--stages { margin-top: 36px; }
.stage { position: relative; text-align: center; }
.stage h3 { margin: 14px 0 0; }
.stage + .stage::before {
  content: "→"; position: absolute; left: -24px; top: 34%; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; background: var(--c-accent); color: var(--c-white);
  display: flex; align-items: center; justify-content: center; font-weight: 700; transform: translateX(-25%);
}

/* Packages */
.pkg {
  position: relative; display: flex; flex-direction: column;
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .3s ease-in-out, box-shadow .3s ease-in-out;
}
.pkg:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.pkg .slot { border-radius: 0; }
.pkg--popular { border: 2px solid var(--c-accent); }
.pkg__badge {
  position: absolute; top: 14px; right: 14px; z-index: 2; margin: 0;
  background: var(--c-accent); color: var(--c-white); font-size: .82rem; font-weight: 600; padding: 4px 12px; border-radius: 999px;
}
.pkg__h { margin: 0; font-size: inherit; }
.pkg__head { display: block; width: 100%; padding: 22px 22px 0; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: default; }
.pkg__name { display: block; font-family: var(--font-head); font-size: 1.4rem; line-height: 1.3; color: var(--c-primary); }
.pkg__sub { display: block; margin-top: 2px; font-family: var(--font-body); font-size: 1rem; font-weight: 500; line-height: 1.5; color: var(--c-text-2); }
.pkg__radio, .pkg__more { display: none; }
.pkg__details { display: contents; }
.pkg > .pkg__details > .slot, .pkg .slot { order: -1; }
.pkg__body { display: flex; flex-direction: column; flex: 1; padding: 14px 22px 22px; }
.pkg__fit { margin-top: auto; padding: 12px 14px; background: var(--c-bg-soft); border-radius: 10px; font-size: .93rem; }
.pkg__fit b { color: var(--c-navy); }
.ticks { margin-bottom: 18px; }
.ticks li { position: relative; padding: 4px 0 4px 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 13px; height: 7px;
  border-left: 2.5px solid var(--c-primary); border-bottom: 2.5px solid var(--c-primary); transform: rotate(-45deg);
}
/* From 768px up every package is fully open; Alpine's x-show / x-collapse inline styles are overridden. */
@media (min-width: 768px) {
  html .pkg .pkg__details, html.js:not(.no-alpine) .pkg .pkg__details[x-cloak] { display: contents !important; }
}

/* Sizes */
/* Sizes: one box = three rows (isometric drawing + size) + the notes that go with them */
.size-box { max-width: 620px; margin: 0 auto; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-card); overflow: hidden; }
.size { display: flex; align-items: center; gap: 18px; padding: 10px 22px; }
.size + .size { border-top: 1px solid var(--c-border); }
.size__art { flex: none; width: 118px; height: auto; color: var(--c-primary); stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.size__art .f { fill: var(--c-bg); }
.size__art .w { fill: var(--c-white); fill-opacity: .85; }
.size__art .s { fill: currentColor; fill-opacity: .18; }
.size__art .g { fill: none; stroke-width: .6; stroke-opacity: .45; }
.size-box__note { margin: 0; padding: 12px 22px 14px; list-style: none; border-top: 1px solid var(--c-border); background: var(--c-bg-soft); font-size: .8rem; color: var(--c-text-2); }
.size-box__note li + li { margin-top: 3px; }
.size__body { display: flex; flex: 1; min-width: 0; gap: 14px; align-items: center; }
.size__tag {
  flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--c-primary); color: var(--c-white);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 1.3rem;
}
.size__body h4 { margin: 0; }
.size__body p { margin: 0; font-size: .92rem; color: var(--c-text-2); }

/* Comparison table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--c-border); border-radius: var(--radius-card); background: var(--c-white); }
.compare { width: 100%; min-width: 660px; border-collapse: collapse; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); text-align: center; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--c-primary); color: var(--c-white); font-family: var(--font-head); }
.compare thead th:nth-child(3) { background: var(--c-accent); }
.compare thead th:nth-child(4) { background: var(--c-navy); }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; font-weight: 500; }
.compare tbody tr:nth-child(even) { background: var(--c-bg-soft); }
.compare .y { color: var(--c-primary); font-weight: 700; }
.compare .n { color: var(--c-text-3); }

/* Add-ons */
.addon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.addon {
  display: flex; align-items: center; gap: 12px;
  background: var(--c-white); border: 1px solid var(--c-border); border-radius: 14px; padding: 16px 18px; font-weight: 500;
}
.addon .i { width: 1.7em; height: 1.7em; color: var(--c-primary); }

/* Business types + Red Flag */
.biz-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.biz {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px;
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: 14px; padding: 18px 10px;
}
.biz .i { width: 2em; height: 2em; color: var(--c-primary); }
.biz b { color: var(--c-navy); font-size: .95rem; }
.biz span { font-size: .8rem; color: var(--c-text-3); }
.redflag { margin-top: 40px; border: 2px solid var(--c-accent); border-radius: var(--radius-card); overflow: hidden; background: var(--c-white); }
.redflag__head { display: flex; gap: 14px; align-items: center; background: var(--c-accent); color: var(--c-white); padding: 16px 22px; }
.redflag__head .i { width: 2em; height: 2em; }
.redflag__head h3 { color: var(--c-white); margin: 0; }
.redflag__head p { margin: 2px 0 0; font-size: .85rem; }
.redflag__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 24px; padding: 22px; }
.redflag__list li { position: relative; padding-left: 22px; }
.redflag__list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 11px; height: 11px; border: 2px solid var(--c-accent); border-radius: 3px; }
.redflag__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 22px; background: var(--c-bg-soft); border-top: 1px solid var(--c-border); }
.redflag__fee { flex: 1 1 260px; margin: 0; font-size: .82rem; color: var(--c-text); }

/* Why (dark) */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why { background: var(--c-dark-card); border: 1px solid var(--c-dark-border); border-radius: var(--radius-card); padding: 24px; }
.why .i { width: 2.2em; height: 2.2em; color: var(--c-accent); margin-bottom: 12px; }
.why p { margin: 0; font-size: .95rem; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 48px 0 0; text-align: center; }
.stats div { display: flex; flex-direction: column; }
.stats dd { margin: 0; font-family: var(--font-head); font-size: clamp(2rem, 4vw, 3.2rem); color: var(--c-on-dark); line-height: 1.1; }
.stats dt { order: 2; margin-top: 6px; }
.trust { background: var(--c-white); border-radius: var(--radius-card); padding: 28px 26px; margin-bottom: 28px; color: var(--c-text); }
/* Block title: text centred between two hairlines, short accent bar under the text */
.trust .trust__title { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; font-size: 1.12rem; color: var(--c-navy); text-align: center; }
.trust__title::before, .trust__title::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }
.trust__title span { position: relative; padding-bottom: 8px; }
.trust__title span::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 36px; height: 3px; margin-left: -18px; border-radius: 2px; background: var(--c-accent); }
.trust__clients + .trust__title { margin-top: 28px; }
.trust__sub { margin: -8px 0 14px; text-align: center; font-size: .85rem; font-weight: 500; letter-spacing: .02em; color: var(--c-text-3); }
.trust__certs { display: flex; justify-content: center; }
.trust__certs img { max-width: 620px; width: 100%; }
.trust__clients { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.process__step { position: relative; background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-card); padding: 22px 18px; }
.process__num {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white); font-family: var(--font-head); font-size: 1.15rem; margin-bottom: 12px;
}
.process__step h3 { font-size: 1.05rem; }
.process__step p { margin: 0; font-size: .92rem; color: var(--c-text-2); }

/* ---------- Quote checklist ---------- */
.quote { max-width: 860px; margin: 0 auto; }
/* Review page (survey option + summary) = last page of the wizard */
.quote:not(.is-review) .quote__review { display: none; }
html.no-alpine .quote .quote__review, html:not(.js) .quote .quote__review { display: block; }
.quote.is-review .quote__review { animation: ui-step-next .35s var(--ease-out-quart); }
.q-picked { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: var(--c-bg); color: var(--c-text); font-size: .92rem; }
.q-picked[hidden] { display: none; }
.q-picked b { color: var(--c-primary); }
.ast { color: var(--c-accent); font-weight: 700; margin-left: 2px; }
.scope-note { text-align: center; margin-top: 22px; }
.q-step { margin: 0 0 20px; padding: 22px; min-width: 0; background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-card); }
.q-step legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-family: var(--font-head); font-size: 1.15rem; color: var(--c-navy); display: flex; align-items: center; gap: 10px; }
.q-step legend + * { clear: both; }
.q-step__num { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c-primary); color: var(--c-white); font-size: 1rem; flex: none; }
/* Red notice under a step title (extra-cost steps) */
.q-alert { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid #f1b5ae; border-radius: 10px; background: #fff2f0; color: #c81e1e; font-weight: 700; line-height: 1.45; }
.q-alert .i { flex: none; margin-top: .2em; }
.q-field--survey { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-border); }
.q-field { margin-bottom: 18px; }
.q-field:last-child { margin-bottom: 0; }
.q-label { display: block; font-weight: 600; color: var(--c-navy); margin: 0 0 8px; }
.q-label small { font-weight: 400; color: var(--c-text-3); }
.q-req { color: #c81e1e; }
.q-field--consent { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--c-border); }
.q-field--consent .check span { font-size: .92rem; line-height: 1.55; }
.q-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.q-options--1 { grid-template-columns: 1fr; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 4px 0; cursor: pointer; }
.check input[type="checkbox"], .check input[type="radio"] { width: 20px; height: 20px; margin: 4px 0 0; flex: none; accent-color: var(--c-primary); }
.check--other { align-items: center; grid-column: 1 / -1; }
.check--other input { flex: 1; min-width: 0; }
.q-input, .check--other input, .quote textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: 10px; background: var(--c-white);
}
.q-inline { display: flex; align-items: center; gap: 10px; }
.q-inline .q-input { flex: 1; min-width: 0; }
.q-inline--num .q-input { flex: none; max-width: 180px; }
.q-inline--when { flex-wrap: wrap; }
.q-inline--when .q-input { flex: 1 1 130px; min-height: 44px; font: inherit; color: inherit; }
/* Site location: type it, or pick on the map (Leaflet). isolation keeps Leaflet's z-indexes under the fixed header */
.q-field--map { margin-top: -6px; }
.q-map { isolation: isolate; }
.q-map [hidden] { display: none !important; }
.q-map__pick { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--c-text-3); font-size: .9rem; }
.q-map__hint { margin: 0 0 8px; font-size: .8rem; color: var(--c-text-3); }
.q-map__canvas { height: 300px; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: var(--c-bg); font: inherit; }
.q-map__canvas .leaflet-control-attribution { font-size: 11px; }
.q-map__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.q-map__bar [data-map-confirm] { margin-left: auto; }
.q-map__done { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; padding: 10px 14px; border: 1px solid var(--c-border); border-radius: 12px; background: var(--c-bg-soft); color: var(--c-navy); }
.q-map__done .i { color: #12a150; flex: none; }
.q-map__done small { color: var(--c-text-3); font-size: .78rem; margin-right: auto; }
.q-map__link { padding: 2px 4px; border: 0; background: none; color: var(--c-primary); font: inherit; font-size: .88rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.q-map__pin { background: none; border: 0; filter: drop-shadow(0 2px 3px rgba(21, 31, 48, .35)); }
.q-map.is-off { display: none; }
.q-survey { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--c-border); }
.q-survey[hidden] { display: none; }
.q-step--survey { border-color: var(--c-accent); }
.ui-wizard { margin-bottom: 20px; }
.ui-wizard__next { margin-left: auto; }
/* Second set of back / next buttons under the progress bar; main.js keeps only one set on screen */
.ui-wizard__nav--top { margin-bottom: 18px; transition: opacity .2s ease-in-out, visibility .2s; }
.ui-wizard__nav--top.is-off { display: none !important; }
.ui-wizard__nav--top.is-ghost { opacity: 0; visibility: hidden; }
/* Alpine missing: every step is shown as one long form, so the stepper chrome is useless */
html.no-alpine .ui-wizard__head, html.no-alpine .ui-wizard__bar, html.no-alpine .ui-wizard__nav { display: none; }
.quote__summary { background: var(--c-white); border: 1px solid var(--c-border); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-sm); }
.quote__summary textarea { resize: vertical; font-size: .95rem; line-height: 1.55; background: var(--c-bg-soft); }
.quote__summary .btn-row { margin-top: 14px; }
.quote__status { min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; color: var(--c-primary); }
.quote__status.is-error { color: #c81e1e; }
.q-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Reviews */
.review { margin: 0; background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-card); padding: 26px; }
.review blockquote { margin: 0 0 16px; }
.review blockquote::before { content: "“"; display: block; font-family: var(--font-head); font-size: 2.6rem; line-height: .8; color: var(--c-accent); }
.review figcaption b { display: block; color: var(--c-navy); }
.review figcaption span { font-size: .9rem; color: var(--c-text-3); }

/* Area */
.area-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.area-list li { display: inline-flex; align-items: center; gap: 8px; background: var(--c-white); border: 1px solid var(--c-border); border-radius: 999px; padding: 10px 20px; font-weight: 600; color: var(--c-navy); }
.area-list .i { color: var(--c-accent); }

/* FAQ */
.faq__item { border: 1px solid var(--c-border); border-radius: 14px; background: var(--c-white); margin-bottom: 12px; overflow: hidden; }
.faq__item h3 { margin: 0; font-size: 1.08rem; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 20px; background: none; border: 0; text-align: left; font: inherit; color: var(--c-navy); cursor: pointer; }
.faq__q .i { transition: transform .3s ease; color: var(--c-primary); }
.faq__q[aria-expanded="true"] .i { transform: rotate(180deg); }
.faq__a { padding: 0 20px 18px; }
.faq__a p { margin: 0; }
.faq__a[hidden] { display: none; }

/* Closing CTA */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; background: var(--grad-dark); color: var(--c-on-dark-2); border-radius: var(--radius-lg); padding: 40px; }
.closing h2 { color: var(--c-on-dark); margin-bottom: 6px; }
.closing p { margin: 0; }

/* Footer */
.site-footer { background: var(--c-navy); color: var(--c-on-dark-2); padding: 56px 0 24px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.site-footer__logo { display: inline-block; margin-bottom: 16px; }
.site-footer__logo img { height: 56px; width: auto; }
.site-footer h3 { color: var(--c-on-dark); font-size: 1.05rem; }
.site-footer a { color: var(--c-on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.contact-list li { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.site-footer__bottom { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--c-dark-border); font-size: .88rem; }
.site-footer__bottom p { margin: 0; }

/* Mobile bottom bar */
.mobile-bar { display: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .biz-grid { grid-template-columns: repeat(4, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .addon-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .site-header__actions { margin-left: auto; }
  .site-nav { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .card-grid--3 { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .scope-grid { grid-template-columns: repeat(2, 1fr); }
  .redflag__list { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) { .only-mobile { display: none !important; } }
@media (max-width: 767px) {
  .only-desktop { display: none !important; }
  :root { --gutter: 16px; }
  body { padding-bottom: 68px; }
  .section { padding: 44px 0; }
  .section--tight { padding: 32px 0; }
  .section-head { margin-bottom: 24px; }
  .sub-block { margin-top: 36px; }
  .hero { padding: 100px 0 48px; }
  .site-header { top: 8px; }
  .site-header__bar { padding: 8px 12px; gap: 10px; }
  .site-header__logo img { height: 38px; }
  .site-header__actions .btn { display: none; }
  .site-header__actions .site-header__home { display: inline-flex; width: 42px; min-height: 42px; padding: 0; }
  .site-header__home span { display: none; }
  .aud-switch { display: flex; width: 100%; }
  .aud-switch button { flex: 1; padding: 9px 8px; font-size: .93rem; }
  .lead { font-size: 1.08rem; }
  .btn-row .btn { flex: 1 1 100%; }
  .hero__points { grid-template-columns: 1fr; }
  .card-grid--2, .redflag__list, .site-footer__grid { grid-template-columns: 1fr; }
  .stage::before { display: none !important; } /* the slider loops by itself; arrows between cards make no sense there */
  .stage h3 { margin-top: 8px; font-size: 1rem; }
  .pkg-grid { gap: 14px; max-width: none; }
  .pkg { overflow: visible; border-width: 2px; border-color: var(--c-border); box-shadow: none; transition: border-color .3s ease-in-out, box-shadow .3s ease-in-out; }
  .pkg:hover { transform: none; box-shadow: none; }
  .pkg.is-selected { border-color: var(--c-accent); box-shadow: 0 10px 28px rgba(255, 91, 31, .16); }
  .pkg__head { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
  .pkg__radio { display: block; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-border); background: var(--c-bg-soft); transition: border-color .3s ease-in-out, box-shadow .3s ease-in-out; }
  .pkg.is-selected .pkg__radio { border-color: var(--c-accent); background: var(--c-white); box-shadow: inset 0 0 0 5px var(--c-accent); }
  .pkg__title { flex: 1; min-width: 0; }
  .pkg__name { font-size: 1.05rem; color: var(--c-navy); }
  .pkg.is-selected .pkg__name { color: var(--c-primary); }
  .pkg__sub { font-size: .88rem; }
  .pkg__more { display: block; flex: none; padding: 7px 12px; border: 1.5px solid var(--c-primary); border-radius: 10px; color: var(--c-primary); font-size: .8rem; font-weight: 600; line-height: 1.2; white-space: nowrap; }
  .pkg.is-selected .pkg__more { display: none; }
  .pkg__details { display: block; }
  .pkg .slot { order: 0; margin: 0 14px; border-radius: 12px; }
  .pkg__body { padding: 14px; }
  .pkg__badge { top: -12px; right: 14px; }
  .pkg__fit { margin-top: 0; margin-bottom: 14px; }
  .ticks { margin-bottom: 12px; }
  .size-box__note { padding: 10px 14px 12px; font-size: .76rem; }
  .size { gap: 10px; padding: 8px 12px; }
  .size__art { width: 84px; }
  .size__body { gap: 10px; }
  .size__tag { width: 34px; height: 34px; font-size: 1rem; border-radius: 9px; }
  .size__body h4 { font-size: .92rem; line-height: 1.3; }
  .size__body p { font-size: .78rem; line-height: 1.35; }
  #compare { display: none; } /* phones: the package cards carry the same lists; a sideways-scrolling table is hard to read */
  .redflag__head { padding: 14px 16px; }
  .redflag__head h3 { font-size: 1.05rem; }
  .redflag__cta { padding: 14px 16px; }
  .addon-grid, .stats { grid-template-columns: repeat(2, 1fr); }
  .biz-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .biz { padding: 12px 4px; }
  .biz .i { width: 1.6em; height: 1.6em; }
  .biz b { font-size: .8rem; line-height: 1.3; }
  .biz span { font-size: .68rem; }
  .scope-grid { gap: 10px; }
  .scope-item { padding: 14px 12px; }
  .scope-item__icon { width: 42px; height: 42px; font-size: 1rem; margin-bottom: 8px; }
  .scope-item::after { top: 10px; right: 12px; font-size: 1.3rem; }
  .scope-item h3 { font-size: 1rem; margin-bottom: 2px; }
  .scope-item p { font-size: .84rem; line-height: 1.45; }
  .addon-grid { gap: 8px; }
  .addon { padding: 10px; gap: 8px; font-size: .84rem; line-height: 1.35; border-radius: 12px; }
  .addon .i { width: 1.4em; height: 1.4em; }
  .redflag__list { gap: 4px 16px; padding: 16px; font-size: .93rem; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .why { padding: 14px; }
  .why .i { width: 1.8em; height: 1.8em; margin-bottom: 8px; }
  .why h3 { font-size: 1rem; }
  .why p { font-size: .84rem; line-height: 1.45; }
  .stats { margin: 28px 0 0; gap: 16px 12px; }
  .trust { padding: 20px 14px; margin-bottom: 14px; }
  .trust .trust__title { gap: 10px; font-size: 1rem; }
  .process__step { padding: 18px 16px; }
  .pkg__body { padding: 18px; }
  .review { padding: 20px; }
  .faq__q { padding: 14px 16px; }
  .q-step { padding: 16px; }
  .q-options { grid-template-columns: 1fr; }
  .closing { padding: 28px 20px; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--c-white); box-shadow: 0 -6px 20px rgba(21, 31, 48, .12);
  }
  /* shown only once the hero buttons have scrolled off screen (main.js adds .is-shown) */
  html.js .mobile-bar { transform: translateY(110%); visibility: hidden; transition: transform .3s ease-in-out, visibility .3s; }
  html.js .mobile-bar.is-shown { transform: none; visibility: visible; }
  .mobile-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: var(--radius-btn); font-weight: 600; text-decoration: none; color: var(--c-white);
  }
  .mobile-bar__btn .i { width: 1.4em; height: 1.4em; }
  .mobile-bar__btn .btn__stack small { font-size: .66rem; }
  .mobile-bar__btn .btn__stack b { font-size: clamp(.86rem, 4.2vw, 1.02rem); white-space: nowrap; }
  .mobile-bar__btn { padding: 0 8px; min-width: 0; }
  .mobile-bar__btn--line { background: var(--c-line); }
  .mobile-bar__btn--call { background: var(--c-primary); }
}
