/* Service Scouta — pre-launch site. Light theme only, phone first. */
:root {
  --cobalt: #1F46D1;
  --cobalt-dark: #1838A8;
  --ink: #17171A;
  --grey: #F3F3F1;
  --line: #E4E4E1;
  --tint: #E0E5F9;
  --muted: #55555C;
  --err: #B42318;
  --err-bg: #FEF3F2;
  --ok: #0E7A4A;
  --radius: 20px;
  --font-head: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font: 400 16px/1.55 var(--font-body);
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: var(--cobalt); text-underline-offset: 2px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; z-index: 100; text-decoration: none; }
.skip:focus { top: 12px; }

.test-banner { background: #FFF4D6; color: #5C4300; text-align: center; font-size: 14px; padding: 8px 16px; border-bottom: 1px solid #F0DCA0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-dark); }
.btn-primary[disabled] { background: #6D85DE; cursor: progress; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: #BDBDB8; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 17px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 10px 4px; min-height: 44px; font: 600 15px/1.2 var(--font-body); color: var(--cobalt); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--cobalt-dark); }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.45); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  *, *::before, *::after { transition: none !important; }
}

/* Pills and badges */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--grey); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cobalt); flex: none; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--cobalt); font-size: 14px; font-weight: 700; }
.badge svg { width: 16px; height: 16px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.85); backdrop-filter: blur(8px); } }
.header-in { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; padding: 6px 0; border-radius: 8px; }
.logo img { height: 26px; width: auto; }
.header-pill { margin-right: auto; }
.header-in .btn { margin-left: auto; }
.header-pill + .btn { margin-left: 0; }
@media (max-width: 559px) { .header-pill { display: none; } }
@media (min-width: 768px) { .header-in { min-height: 72px; } .logo img { height: 30px; } }

/* Hero */
.hero { padding: 32px 0 40px; }
.hero-pill { margin-bottom: 20px; }
@media (min-width: 560px) { .hero-pill { display: none; } }
.eyebrow { font-size: 14px; font-weight: 700; color: var(--cobalt); letter-spacing: .02em; margin-bottom: 12px; }
.hero h1 { font-size: clamp(2.3rem, 9.5vw, 4.4rem); max-width: 15ch; }
.hero .hero-strong { font: 700 clamp(1.4rem, 5.6vw, 2.2rem)/1.15 var(--font-head); letter-spacing: -0.015em; margin-top: 14px; max-width: 22ch; }
.hero .lede { font-size: 18px; color: var(--muted); margin-top: 12px; max-width: 34em; }
.hero .btn { margin-top: 24px; }
.trust { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.trust li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.trust .ic { width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--cobalt); display: grid; place-items: center; flex: none; }
.trust .ic svg { width: 18px; height: 18px; }
@media (min-width: 768px) {
  .hero { padding: 64px 0 56px; }
  .hero .lede { font-size: 20px; }
  .trust { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 28px; }
}

/* Sections */
.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.section-h { font-size: clamp(1.7rem, 6vw, 2.4rem); margin-bottom: 20px; }
.muted { color: var(--muted); }

/* Founding */
.founding { background: var(--tint); border-radius: var(--radius); padding: 24px 20px; }
.founding-copy { font-size: 18px; font-weight: 500; margin-top: 14px; max-width: 40em; }
.meter { margin-top: 20px; }
.meter-bar { height: 12px; border-radius: 999px; background: #fff; overflow: hidden; }
.meter-bar span { display: block; height: 100%; width: 0; background: var(--cobalt); border-radius: 999px; transition: width .6s ease; }
.meter-text { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; margin-top: 10px; font-size: 15px; }
.meter-text strong { font-weight: 700; }
.founding-note { margin-top: 14px; font-size: 15px; color: #3D3D44; }
@media (min-width: 768px) { .founding { padding: 36px 40px; } }

/* Steps (how it works) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 700 17px/1 var(--font-head); }
.steps strong { display: block; font-family: var(--font-head); font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.steps div > span { display: block; color: var(--muted); margin-top: 2px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } .steps li { grid-template-columns: 1fr; padding: 24px; } }

/* Listing section */
.list-sec { background: var(--grey); scroll-margin-top: 64px; }
.list-grid { display: grid; gap: 24px; }
.list-intro p.sub { color: var(--muted); margin-top: -8px; }
.needs { margin-top: 20px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.needs h3 { font-size: 18px; margin-bottom: 10px; }
.needs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.needs li { position: relative; padding-left: 26px; }
.needs li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt); transform: rotate(-45deg); }
.needs .opt-line { margin-top: 12px; font-size: 15px; color: var(--muted); }
@media (min-width: 900px) {
  .list-grid { grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
  .list-intro { position: sticky; top: 96px; }
}

/* Card + form */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px; scroll-margin-top: 80px; }
@media (min-width: 560px) { .card { padding: 28px; } }
@media (min-width: 900px) { .card { padding: 36px; } }

.progress-top { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.progress-bar { height: 8px; background: var(--grey); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; background: var(--cobalt); border-radius: 999px; width: 33.333%; transition: width .3s; }

.step { margin-top: 24px; }
.step-h { font-size: 24px; margin-bottom: 18px; outline-offset: 4px; }
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
label, .legend { display: block; font-weight: 600; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); }
.help { font-size: 14px; color: var(--muted); margin: -2px 0 8px; }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; font: 16px/1.4 var(--font-body); color: var(--ink);
  background: #fff; border: 1.5px solid #C9C9C4; border-radius: 12px; appearance: none; -webkit-appearance: none;
}
textarea { min-height: 120px; resize: vertical; }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2317171A' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 1px; border-color: var(--cobalt); border-radius: 12px; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.err { color: var(--err); font-size: 14px; font-weight: 600; margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--err); color: #fff; font-size: 12px; display: grid; place-items: center; margin-top: 1px; }

fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
legend { padding: 0; font-weight: 600; margin-bottom: 6px; }
fieldset.boxed { border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
fieldset.boxed > legend { float: left; width: 100%; margin-bottom: 6px; }
fieldset.boxed > legend + * { clear: both; }
.boxed .field { margin-bottom: 12px; }
.boxed.invalid { border-color: var(--err); }

.prefix { display: flex; align-items: stretch; }
.prefix span { display: flex; align-items: center; padding: 0 12px; background: var(--grey); border: 1.5px solid #C9C9C4; border-right: 0; border-radius: 12px 0 0 12px; color: var(--muted); font-weight: 600; }
.prefix input { border-radius: 0 12px 12px 0; }

/* Category cards */
.cats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 560px) { .cats { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; margin: 0; font-weight: 600; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: flex; align-items: center; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; line-height: 1.25; font-size: 15px; transition: border-color .15s, background-color .15s; }
.choice:hover span { border-color: #BDBDB8; }
.choice input:checked + span { border-color: var(--cobalt); background: var(--tint); box-shadow: inset 0 0 0 1px var(--cobalt); }
.choice input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.cats.invalid .choice span { border-color: #E8A8A2; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: 15px; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + span::before { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translateY(-2px); }
.chip input:focus-visible + span { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.seg .chip span { min-width: 72px; justify-content: center; }

/* Services */
.svc { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.svc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.svc-head h4 { margin: 0; font-size: 14px; color: var(--muted); font-weight: 600; }
.svc-head .link-btn { padding: 6px 4px; min-height: 36px; font-size: 14px; }
.svc .field { margin-bottom: 12px; }
.svc-price { display: grid; grid-template-columns: 1fr; gap: 0 10px; }
@media (min-width: 400px) { .svc-price { grid-template-columns: 1fr 1fr; } }
.svc-price .field { margin-bottom: 0; }
@media (max-width: 399px) { .svc-price .field:first-child { margin-bottom: 12px; } }

/* Range */
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.range-head label { margin-bottom: 0; }
.range-out { font-weight: 700; color: var(--cobalt); }
input[type=range] { width: 100%; height: 44px; accent-color: var(--cobalt); margin: 4px 0 0; }
.range-ends { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: -4px; }

/* Checkbox rows */
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; cursor: pointer; padding: 10px 0; margin: 0; min-height: 44px; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cobalt); }
.note { background: var(--tint); border-radius: 14px; padding: 14px 16px; margin-top: 12px; }
.note p { margin-bottom: 4px; }
.counter { font-size: 14px; color: var(--muted); text-align: right; margin-top: 6px; }
.counter.over { color: var(--err); font-weight: 600; }

/* Error summary + status */
.error-summary { margin-top: 20px; border: 2px solid var(--err); background: var(--err-bg); border-radius: 16px; padding: 14px 16px; }
.error-summary h3 { font-size: 17px; color: var(--err); margin-bottom: 6px; }
.error-summary ul { margin: 0; padding-left: 20px; }
.error-summary a { color: var(--err); font-weight: 600; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; border-radius: 14px; padding: 14px 16px; background: var(--err-bg); border: 1.5px solid #F1B9B3; color: #7A1A12; font-weight: 500; }
.form-status a { color: inherit; font-weight: 700; }

.nav { display: flex; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.nav .btn-primary { flex: 1; }
.nav .btn-secondary { flex: none; }
@media (min-width: 560px) { .nav .btn-primary { flex: none; margin-left: auto; min-width: 200px; } }
.fine { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }

/* Notices */
.done { text-align: center; padding: 16px 0; }
.done h3 { font-size: 26px; margin-top: 14px; }
.done p { color: var(--muted); margin-top: 8px; }
.tick { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--cobalt); display: grid; place-items: center; margin: 0 auto; }
.tick svg { width: 32px; height: 32px; }
.tick-lg { width: 88px; height: 88px; }
.tick-lg svg { width: 44px; height: 44px; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; min-height: 56px; font: 600 18px/1.3 var(--font-head); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translate(-3px, -3px); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { padding: 0 0 18px; color: #3D3D44; max-width: 40em; }

/* Customer corner */
.corner { border: 1px dashed #CFCFCA; border-radius: var(--radius); padding: 20px; max-width: 760px; }
.corner h2 { font-size: 20px; }
.corner p { color: var(--muted); margin-top: 4px; }
.notify-row { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.notify-row .field { margin: 0; flex: 1; }
@media (min-width: 560px) { .notify-row { flex-direction: row; align-items: flex-start; } .notify-row .btn { flex: none; } }
.corner .ok { color: var(--ok); font-weight: 600; margin-top: 12px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; margin-top: 24px; }
.footer-in { display: flex; flex-direction: column; gap: 16px; }
.footer-in img { height: 24px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--ink); display: inline-block; padding: 10px 0; min-height: 44px; }
.footer-small { color: var(--muted); font-size: 14px; }
@media (min-width: 768px) { .footer-in { flex-direction: row; align-items: center; justify-content: space-between; } }

/* Simple pages (thanks, legal, 404) */
.page { padding: 40px 0 56px; }
.page-narrow { max-width: 680px; }
.center { text-align: center; }
.page h1 { font-size: clamp(2rem, 8vw, 3rem); }
.page .lede { font-size: 18px; color: var(--muted); margin-top: 12px; }
.page .steps { margin-top: 16px; grid-template-columns: 1fr; }
.page .steps li { grid-template-columns: 40px 1fr; }
.share { margin-top: 12px; display: grid; gap: 10px; }
@media (min-width: 560px) { .share { grid-template-columns: repeat(3, 1fr); } }
.share .btn svg { width: 20px; height: 20px; }
.share-msg { margin-top: 14px; background: var(--grey); border-radius: 14px; padding: 14px 16px; font-size: 15px; color: #3D3D44; }
.copy-fallback { margin-top: 12px; }
.copy-status { margin-top: 8px; font-weight: 600; color: var(--ok); min-height: 1.5em; }

.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: #2E2E33; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; margin: 10px 0 0; }
.legal li + li { margin-top: 6px; }
.updated { color: var(--muted); font-size: 15px; }
.draft-note { margin-top: 16px; background: var(--grey); border-radius: 14px; padding: 12px 16px; font-size: 15px; color: var(--muted); }

.notfound { padding: 64px 0 80px; text-align: center; }
.notfound .tick { margin-bottom: 20px; }
.notfound .btn { margin-top: 24px; }

/* Multi-select category cards show a tick */
.choice input:checked + span::after { content: ""; margin-left: auto; flex: none; width: 10px; height: 6px; border-left: 2.5px solid var(--cobalt); border-bottom: 2.5px solid var(--cobalt); transform: rotate(-45deg) translateY(-2px); padding-left: 0; }
.choice span { gap: 8px; }

/* Photo upload */
.photo-btn svg { width: 20px; height: 20px; }
#f-photos:focus-visible + .photo-btn { outline: 3px solid var(--cobalt); outline-offset: 3px; }
.photo-btn.disabled { opacity: .5; pointer-events: none; }
.thumbs { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.thumbs:empty { display: none; }
@media (min-width: 560px) { .thumbs { grid-template-columns: repeat(4, 1fr); } }
.thumbs li { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--grey); aspect-ratio: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(23,23,26,.8); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.thumbs button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
