/* Porchlight — mobile-first, no external fonts, no frameworks. */
:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1c2230;
  --ink-2: #4a5263;
  --line: #e4ddd1;
  --brand: #17213a;
  --amber: #f2a93b;
  --amber-ink: #7a4a00;
  --amber-soft: #fff3dd;
  --ok: #1f7a4d;
  --ok-soft: #e6f4ec;
  --bad: #a6332a;
  --bad-soft: #fbeae8;
  --bubble-in: #e9e9ee;
  --bubble-out: #2f6fe4;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(23, 33, 58, .06), 0 8px 24px rgba(23, 33, 58, .07);
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151f; --surface: #1a2030; --ink: #eef0f5; --ink-2: #b4bbca; --line: #2c3446;
    --brand: #0b0f18; --amber-soft: #3a2c12; --amber-ink: #ffd28a; --ok-soft: #12301f; --bad-soft: #3a1714;
    --bubble-in: #2c3346; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
*, *::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 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--amber); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--amber); color: #000; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* header/footer */
.site-header { background: var(--brand); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; text-decoration: none; font-size: 1.15rem; color: #fff; }
.logo-mark { width: 26px; height: 26px; }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { color: #fff; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { background: rgba(255,255,255,.08); }
.nav .hide-sm { display: none; }
@media (min-width: 720px) { .nav .hide-sm { display: inline-block; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 64px; padding: 32px 0 48px; color: var(--ink-2); font-size: .92rem; }
.site-footer .cols { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 6px 0; }

/* type */
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); font-weight: 850; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 40em; }
.muted { color: var(--ink-2); }
.small { font-size: .88rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--amber-ink); }
.cite { font-size: .8rem; color: var(--ink-2); }

/* sections */
section { padding: 48px 0; }
.hero { background: var(--brand); color: #fff; padding: 40px 0 56px; }
.hero .lede { color: #d6dbe7; }
.hero .eyebrow { color: var(--amber); }
.hero-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 880px) { .hero-grid { grid-template-columns: 1.15fr .85fr; } }
.grid-3 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-top: 0; }
.stat { font-size: 2.4rem; font-weight: 850; color: var(--amber-ink); line-height: 1; }
.hero .stat { color: var(--amber); }
.step-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--amber); color: #1b1300; font-weight: 800; margin-bottom: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn-primary { background: var(--amber); color: #1b1300; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* forms */
label { display: block; font-weight: 650; margin: 14px 0 6px; }
.hint { display: block; font-weight: 400; color: var(--ink-2); font-size: .88rem; margin-top: 2px; }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=url], input[type=time], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--amber); outline: none; box-shadow: 0 0 0 3px rgba(242,169,59,.3); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; width: 20px; height: 20px; flex: none; }
.row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.hp { position: absolute; left: -5000px; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--amber-soft); border: 1px solid var(--line); }
.notice.ok { background: var(--ok-soft); }
.notice.bad { background: var(--bad-soft); }
.errors { color: var(--bad); }

/* calculator */
.calc-out { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 16px; }
.calc-out .card { padding: 14px; box-shadow: none; }
.calc-out .big { font-size: 1.6rem; font-weight: 850; }
.calc-out .label { font-size: .85rem; color: var(--ink-2); }
.calc-verdict { margin-top: 14px; font-size: 1.05rem; }
input[type=range] { width: 100%; accent-color: var(--amber); }

/* phone mock */
.phone { width: min(340px, 100%); margin: 0 auto; background: #0d1220; border-radius: 36px; padding: 14px; box-shadow: var(--shadow); }
.phone-screen { background: #fff; color: #111; border-radius: 26px; min-height: 420px; display: flex; flex-direction: column; overflow: hidden; }
.phone-top { padding: 12px 16px; border-bottom: 1px solid #eee; text-align: center; font-size: .85rem; color: #555; }
.phone-top strong { display: block; color: #111; font-size: .95rem; }
.thread { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 460px; }
.bubble { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: .93rem; line-height: 1.35; white-space: pre-wrap; word-wrap: break-word; }
.bubble.in { align-self: flex-start; background: #e9e9ee; color: #111; border-bottom-left-radius: 5px; }
.bubble.out { align-self: flex-end; background: var(--bubble-out); color: #fff; border-bottom-right-radius: 5px; }
.sys { align-self: center; font-size: .75rem; color: #5f5f5f; text-align: center; padding: 2px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: .9rem; cursor: pointer; min-height: 40px; }
.chip:hover { border-color: var(--amber); }
.owner-panel { font-size: .92rem; }
.owner-panel .log { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; background: var(--bg); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; white-space: pre-wrap; }

/* pricing */
.price-card { max-width: 460px; margin: 0 auto; text-align: left; border: 2px solid var(--amber); }
.price { font-size: 3rem; font-weight: 850; }
.price small { font-size: 1rem; color: var(--ink-2); font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 16px 0; }
.ticks li { padding-left: 28px; position: relative; margin: 8px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }

/* compare table */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; list-style-position: outside; }
details p { margin-top: 10px; color: var(--ink-2); }

/* wizard */
.wizard-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 20px; flex-wrap: wrap; }
.wizard-steps li { font-size: .8rem; padding: 4px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); }
.wizard-steps li.on { background: var(--amber); color: #1b1300; font-weight: 700; }
.wizard-steps li.done { background: var(--ok-soft); color: var(--ok); }
.hours-grid { display: grid; grid-template-columns: 70px 1fr 1fr 80px; gap: 8px; align-items: center; }
.hours-grid .day { font-weight: 650; }
.preview-sms { background: #e9e9ee; color: #111; border-radius: 18px; padding: 10px 14px; white-space: pre-wrap; max-width: 420px; }
pre.code, code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
code { background: var(--amber-soft); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.big-code { font-size: 1.4rem; font-weight: 800; letter-spacing: .02em; }
.hidden { display: none !important; }
.prose h2 { margin-top: 1.6em; }
.prose li { margin: 6px 0; }
.draft-flag { border: 2px dashed var(--bad); padding: 12px 14px; border-radius: 10px; background: var(--bad-soft); }
.qr-box { display: grid; place-items: center; background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--line); min-height: 220px; }
.qr-box img, .qr-box svg { width: 220px; height: 220px; }
.crumbs { font-size: .88rem; color: var(--ink-2); margin-bottom: 8px; }
.crumbs a { color: inherit; }
.hero .crumbs { color: #c9cfdc; }
.nav a.btn-primary { color: #1b1300; }
.nav a.btn-primary:hover { background: var(--amber); filter: brightness(1.05); }
.hero .muted { color: #c9cfdc; }
.preview-sms[data-count]::after { content: attr(data-count); display: block; margin-top: 6px; font-size: .78rem; color: #444; }
