/* Ledgewater Cleaning Co. — synthetic V1 demo, KDG Lab #005.
   House sensibility re-derived: DM Serif Display + DM Sans, dark spruce primary
   on paper ground, no emojis, text-first funnel. The widget is furniture. */

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("/fonts/dm-serif-display-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f4ec;
  --paper-deep: #efeadd;
  --card: #fffdf8;
  --ink: #202b25;
  --muted: #5d6b62;
  --spruce: #1e4d3f;
  --spruce-deep: #143528;
  --gold: #b28a34;
  --line: #e0d9c7;
  --lab-bg: #14171a;
  --lab-ink: #9aa4a0;
  --lab-accent: #7fc7bc;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.wrap { max-width: 768px; margin: 0 auto; padding: 0 24px; }
img, svg { max-width: 100%; }

a { color: var(--spruce); }
:focus-visible { outline: 2px solid var(--spruce); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--card); color: var(--ink); padding: 8px 14px; z-index: 20; }
.skip:focus { left: 12px; top: 12px; }

h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; }

/* ---- the $5,000 bar ---- */
.bar {
  background: var(--spruce-deep);
  color: rgba(247, 244, 236, .92);
  font-size: .8rem;
  letter-spacing: .01em;
  text-align: center;
  padding: 9px 16px;
}
.bar b { color: #fff; font-weight: 700; }
.bar-mark { font-weight: 600; color: #fff; }

/* ---- hero ---- */
.hero { padding: 54px 0 46px; border-bottom: 1px solid var(--line); }
.brand {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 1.15rem;
  color: var(--spruce);
  margin-bottom: 26px;
}
.eyebrow {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.35rem, 7vw, 3.6rem);
  line-height: 1.06;
  margin-top: 10px;
  letter-spacing: .002em;
}
.hero-sub { color: var(--muted); font-size: 1.06rem; max-width: 46ch; margin: 16px 0 28px; }

.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  background: var(--spruce);
  color: var(--paper);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 10px;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--spruce-deep); }
.quiet-call { color: var(--muted); font-size: .95rem; text-decoration-color: rgba(93, 107, 98, .5); text-underline-offset: 3px; }
.quiet-call:hover { color: var(--ink); }

.trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: .9rem; }
.stars { fill: var(--gold); flex: none; }

/* ---- the quote-shaper panel ---- */
.shaper { padding: 44px 0 10px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px 24px 24px;
  box-shadow: 0 1px 2px rgba(32, 43, 37, .05), 0 10px 30px rgba(32, 43, 37, .05);
}
.panel-eyebrow {
  color: var(--spruce);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.panel h2 { font-size: 1.55rem; line-height: 1.18; margin-top: 6px; }
.panel-sub { color: var(--muted); font-size: .95rem; margin-top: 8px; }

/* tap rows: present in the HTML, revealed by the js class before first paint —
   the no-JS band stays complete (headline, written text, standing button) */
.rows { display: none; }
html.js .rows { display: block; margin-top: 20px; }
.row { border: 0; margin: 0 0 16px; }
.row legend {
  color: var(--muted);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pill span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.pill:hover span { border-color: var(--spruce); }
.pill input:checked + span { background: var(--spruce); border-color: var(--spruce); color: var(--paper); }
.pill input:focus-visible + span { outline: 2px solid var(--spruce); outline-offset: 2px; }

/* the live preview: the message taking shape. Height reserved — text changes, geometry doesn't. */
.preview {
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px 14px;
  margin-top: 20px;
}
.preview-label {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
/* reserve fits the LONGEST composable message at each width — text changes,
   geometry doesn't, in either variant */
.preview-msg { font-size: 1.02rem; line-height: 1.5; margin-top: 5px; min-height: 6.05em; }
.preview-range { color: var(--spruce); font-size: .88rem; line-height: 1.55; margin-top: 8px; min-height: 3.1em; }
/* the variant class lands on <html> before first paint, so the client
   variant's range line owns its space from the first frame */
html.variant-client .preview-range { display: block; }
.preview-range b { font-variant-numeric: tabular-nums; }
.preview-range .attest { color: var(--muted); }
@media (min-width: 600px) {
  .preview-msg { min-height: 3.05em; }
  .preview-range { min-height: 1.55em; }
}

.btn-send { display: block; width: 100%; text-align: center; margin-top: 16px; padding: 16px 20px; text-wrap: balance; }
.btn-send.is-ready { background: var(--spruce-deep); box-shadow: 0 0 0 3px rgba(30, 77, 63, .16); }
.panel-call { text-align: center; font-size: .92rem; margin-top: 12px; }
.panel-call a { color: var(--muted); text-decoration-color: rgba(93, 107, 98, .5); text-underline-offset: 3px; }
.panel-fine { color: var(--muted); font-size: .8rem; line-height: 1.55; margin-top: 14px; }

/* ---- services / reviews / area ---- */
.services { padding: 54px 0 8px; }
.services h2, .reviews h2, .area h2 { font-size: 1.7rem; margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }
.card, .review {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
}
.card h3 { font-size: 1.18rem; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; }

.reviews { background: var(--paper-deep); padding: 50px 0 54px; margin-top: 46px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.review p { font-size: .98rem; }
.review footer { color: var(--muted); font-size: .84rem; margin-top: 12px; }

.area { padding: 50px 0 56px; }
.area-towns { font-family: "DM Serif Display", Georgia, serif; font-size: 1.2rem; color: var(--ink); }
.area-note { color: var(--muted); font-size: .95rem; margin-top: 10px; }

/* ---- footer ---- */
.foot { background: var(--spruce-deep); color: rgba(247, 244, 236, .88); padding: 44px 0 34px; }
.foot-brand { font-family: "DM Serif Display", Georgia, serif; font-size: 1.3rem; color: #fff; }
.foot-line { font-size: .9rem; opacity: .82; margin-top: 6px; }
.foot-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.foot .btn { background: var(--paper); color: var(--spruce-deep); }
.foot .btn:hover { background: #fff; }
.foot .quiet-call { color: rgba(247, 244, 236, .75); text-decoration-color: rgba(247, 244, 236, .4); }
.foot .quiet-call:hover { color: #fff; }
.foot :focus-visible { outline-color: var(--paper); }
.foot-maker { font-size: .78rem; opacity: .55; margin-top: 24px; }

/* ---- the lab strip: the plate on the frame, not part of the stage ---- */
.labstrip { background: var(--lab-bg); color: var(--lab-ink); font-size: .78rem; line-height: 1.65; padding: 18px 0 26px; }
.labstrip b { color: #d7dcd9; font-weight: 600; }
.labstrip a { color: var(--lab-accent); }
.labstrip a[aria-current="true"] { color: #fff; font-weight: 600; }
.labstrip .lv-why { opacity: .8; }
.labstrip-variants { margin-top: 8px; }
.labstrip :focus-visible { outline-color: var(--lab-accent); }

/* ---- small rooms ---- */
@media (max-width: 560px) {
  .hero { padding: 42px 0 38px; }
  .hero .btn, .foot .btn { width: 100%; text-align: center; }
  .cta-row, .foot-cta { gap: 12px; }
  .bar { font-size: .72rem; padding: 8px 12px; }
}

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