/* =========================================================================
   HomeLogix · marketing site
   One stylesheet, no framework, no webfont. The whole site is under 20 KB
   before compression, which is the point: it exists to explain the app and
   take a booking, and every kilobyte past that is a tax on a homeowner
   standing in front of a broken fridge on a phone signal.

   Brand: italic HL, white on #0B6FD4 — the same mark as the app.
   ========================================================================= */

:root {
  --paper:#FFFFFF;
  --surface:#FFFFFF;
  --surface-2:#F0F6FD;
  --ink:#10161D;
  --ink-2:#525F6E;
  --ink-3:#8C97A5;
  --rule:#DCE6F2;
  --rule-2:#EAF1F9;
  --accent:#0B6FD4;
  --accent-soft:#E4F0FE;
  --ok:#2A6B40;   --ok-soft:#E4F0E8;
  --warn:#8F5D0F; --warn-soft:#FBF1DE;
  --bad:#B02A1E;  --bad-soft:#FAE8E5;
  --sans:'Helvetica Neue',Helvetica,Arial,'Liberation Sans',sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:#181B1F; --surface:#212529; --surface-2:#282D32;
    --ink:#E8EBEE; --ink-2:#A3ACB6; --ink-3:#79838E;
    --rule:#343A41; --rule-2:#2B3036;
    --accent:#4FA8FF; --accent-soft:#14283C;
    --ok:#6FBF8B;   --ok-soft:#1A2B20;
    --warn:#D9A44E; --warn-soft:#332918;
    --bad:#E8776A;  --bad-soft:#331E1B;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------ nav */
.nav {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;
  background: var(--paper);
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 17px; color: var(--ink); text-decoration: none;
}
.mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: #0B6FD4; color: #fff;
  display: grid; place-items: center;
  font-style: italic; font-weight: 700; font-size: 14px;
}
.nav nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav nav a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 12px; border-radius: 999px;
}
.nav nav a:hover { color: var(--accent); background: var(--accent-soft); }
.nav nav a.on { color: var(--accent); background: var(--accent-soft); }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 16px 72px; }
.wrap.narrow { max-width: 660px; }

h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
h2 { font-size: clamp(20px, 3vw, 26px); line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; margin: 40px 0 12px; }
h3 { font-size: 17px; font-weight: 600; margin: 24px 0 6px; }
p  { margin: 12px 0; }
a  { color: var(--accent); }

.lede { font-size: 18px; color: var(--ink-2); margin-top: 14px; }
.fineprint { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin-top: 18px; }

.hero { padding: 24px 0 8px; }
.hero .cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

.cta, button[type="submit"] {
  display: inline-block; font-family: inherit;
  background: var(--accent); color: #fff;
  border: 1px solid transparent; border-radius: 999px;
  padding: 14px 24px; font-size: 15.5px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 16px rgba(11,111,212,.24);
}
.cta:hover, button[type="submit"]:hover { filter: brightness(1.08); }
.cta:active, button[type="submit"]:active { transform: scale(.97); }
button[type="submit"]:disabled { opacity: .55; cursor: default; transform: none; }
.cta.ghost {
  background: var(--surface); color: var(--ink-2);
  border-color: var(--rule); box-shadow: none;
}
.cta.ghost:hover { color: var(--accent); border-color: var(--accent); filter: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 18px; padding: 20px;
}
.card h3 { margin-top: 0; }
.card p  { color: var(--ink-2); font-size: 14.5px; }

.step-n {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-size: 13px; font-weight: 600;
  margin-bottom: 10px;
}

.note {
  background: var(--accent-soft); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  border-radius: 14px; padding: 14px 16px;
  font-size: 14px; line-height: 1.55; margin: 24px 0;
}
.note strong { display: block; margin-bottom: 3px; }

/* ----------------------------------------------------------------- forms */
form { margin-top: 28px; }
label {
  display: block; margin-bottom: 16px;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
label span[aria-hidden] { color: var(--bad); }
label small {
  display: block; font-weight: 400; color: var(--ink-3);
  font-size: 12.5px; margin-top: 6px; line-height: 1.5;
}
input[type="text"], input[type="email"], input[type="tel"],
input[type="date"], select, textarea {
  display: block; width: 100%; margin-top: 6px;
  font-family: inherit; font-size: 16px;  /* 16px stops iOS zooming on focus */
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--rule); border-radius: 14px;
  padding: 13px 14px; font-weight: 400;
}
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent);
}
input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: var(--bad); }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } }

.check {
  display: flex; gap: 10px; align-items: flex-start;
  font-weight: 400; color: var(--ink-2); font-size: 14px; line-height: 1.5;
  margin: 22px 0;
}
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }

/* Honeypot: off-screen rather than display:none, because some bots skip
   fields that are not rendered at all. */
.hp {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.status { margin-top: 14px; font-size: 14.5px; line-height: 1.55; min-height: 1.5em; }
.status.ok  { color: var(--ok);  background: var(--ok-soft);  padding: 14px 16px; border-radius: 14px; }
.status.err { color: var(--bad); background: var(--bad-soft); padding: 14px 16px; border-radius: 14px; }

/* ------------------------------------------------------------------- FAQ */
details {
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--surface); margin-bottom: 10px; overflow: hidden;
}
details summary {
  padding: 16px 18px; cursor: pointer; font-weight: 600; font-size: 15.5px;
  list-style: none; display: flex; justify-content: space-between; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--ink-3); font-size: 18px; }
details[open] summary::after { content: "–"; }
details .body { padding: 0 18px 18px; color: var(--ink-2); font-size: 14.5px; }
details .body p:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- footer */
.foot {
  border-top: 1px solid var(--rule); padding: 24px 16px 40px;
  color: var(--ink-3); font-size: 13px; text-align: center;
}
.foot a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
