/* Ready-to-Run Kits: one stylesheet, mobile-first, system fonts. */
:root {
  --teal: #0f766e;
  --teal-dark: #115e59;
  --teal-tint: #e6f4f1;
  --navy: #1e3a8a;
  --navy-dark: #172e6e;
  --navy-tint: #eaeffb;
  --ink: #1f2937;
  --muted: #4b5563;
  --line: #d9dee5;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --warn-bg: #fdecec;
  --warn-ink: #9b1c1c;
  --ok-bg: #e7f6ec;
  --ok-ink: #166534;
  --amber-bg: #fff4d6;
  --amber-ink: #7c4a03;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --accent-tint: #e6f4f1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
  --max: 1120px;
  --gutter: 16px;
  color-scheme: light;
}
.theme-cleaning { --accent: #1e3a8a; --accent-dark: #172e6e; --accent-tint: #eaeffb; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 3px solid #b45309; outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3.8vw, 2rem); margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
small, .small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.section { padding: 48px 0; }
.section.soft { background: var(--bg-soft); }
.section.tint { background: var(--accent-tint); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 0.5em; }
.lead { font-size: 1.125rem; color: var(--muted); }
.center { text-align: center; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.95rem; }
.nav a { color: var(--ink); text-decoration: none; padding: 6px 0; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.usd-estimate { font-weight: 500; white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--accent);
  background: var(--accent); color: #fff; font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
  cursor: pointer; line-height: 1.25;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn.secondary { background: #fff; color: var(--accent); }
.btn.secondary:hover { background: var(--accent-tint); color: var(--accent-dark); }
.btn.is-soon { background: #eef0f3; border-color: #c9ced6; color: #374151; cursor: default; font-weight: 600; }
.btn.is-soon:hover { background: #eef0f3; color: #374151; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.buy-note { font-size: 0.875rem; color: var(--muted); margin-top: 8px; }

/* Hero */
.hero { padding: 40px 0 36px; background: linear-gradient(180deg, var(--accent-tint), #fff); }
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero .lead { max-width: 40em; }
.hero-shot { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.price { font-size: 2rem; font-weight: 800; color: var(--ink); line-height: 1; }
.price small { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.strike { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: 1rem; }
.pill { align-self: flex-start; display: inline-block; font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--accent-tint); color: var(--accent-dark); }
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.45em; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }

/* Grids and cards */
.grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.grid > * { min-width: 0; }
.kv th, .kv td { overflow-wrap: anywhere; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 0.35em; }
.card > :last-child { margin-bottom: 0; }
.family { border-top: 6px solid var(--teal); display: flex; flex-direction: column; }
.family.cleaning { border-top-color: var(--navy); }
.family.cleaning .eyebrow, .family.cleaning a:not(.btn) { color: var(--navy); }
.family.cleaning .btn { background: var(--navy); border-color: var(--navy); }
.family.cleaning .btn:hover { background: var(--navy-dark); }
.family .btn-row { margin-top: auto; padding-top: 8px; }
.family img { border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.product { display: flex; flex-direction: column; }
.product .btn-row { margin-top: auto; padding-top: 12px; }
.product .price { margin: 4px 0 12px; }
.feature { padding: 20px; border-radius: var(--radius); background: var(--bg-soft); }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); }

/* Gallery */
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery figure { margin: 0; }
.gallery a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.gallery img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.gallery figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 6px; line-height: 1.35; }
.gallery.wide img { aspect-ratio: 4 / 3; }

/* Tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--accent-tint); color: var(--accent-dark); }
td.num, th.num { text-align: right; white-space: nowrap; }

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

/* Notices */
.note { border-left: 4px solid var(--accent); background: var(--accent-tint); padding: 14px 16px; border-radius: 0 8px 8px 0; font-size: 0.95rem; }
.note > :last-child { margin-bottom: 0; }
.disclaimer { font-size: 0.875rem; color: var(--muted); }

/* Tools */
.tool { display: grid; gap: 24px; align-items: start; grid-template-columns: minmax(0, 1fr); }
.tool > * { min-width: 0; }
.tool form, .panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; padding: 0; }
.field { margin-bottom: 14px; }
.field label, .label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .hint { display: block; font-size: 0.85rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.row2 { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
input[type="text"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 44px; padding: 9px 11px; font: inherit; color: var(--ink);
  border: 1px solid #aeb6c2; border-radius: 8px; background: #fffdf2;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radio-row label, .check label { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; margin: 0; }
input[type="radio"], input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--accent); margin: 0; }
.checks-grid { display: grid; gap: 8px 16px; }
.checks-grid label { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; line-height: 1.35; }
.checks-grid input { margin-top: 1px; flex: none; }
details.advanced { border-top: 1px solid var(--line); padding-top: 12px; }
details.advanced summary { cursor: pointer; font-weight: 700; margin-bottom: 12px; }
.result-big { font-size: 2.6rem; font-weight: 800; line-height: 1.05; color: var(--accent); margin: 4px 0 6px; }
.result-label { font-weight: 700; color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.kv { width: 100%; margin: 14px 0; }
.kv th { background: none; color: var(--ink); font-weight: 500; padding-left: 0; }
.kv td { text-align: right; font-weight: 700; white-space: nowrap; padding-right: 0; }
.kv tr.total th, .kv tr.total td { font-weight: 800; border-top: 2px solid var(--ink); }
.alert { padding: 12px 14px; border-radius: 8px; font-weight: 600; margin: 8px 0; font-size: 0.95rem; }
.alert.bad { background: var(--warn-bg); color: var(--warn-ink); }
.alert.ok { background: var(--ok-bg); color: var(--ok-ink); }
.alert.caution { background: var(--amber-bg); color: var(--amber-ink); }
.sticky { position: sticky; top: 16px; }
/* Phones: a bar pinned to the bottom of the form that shows the live price and jumps to the full result */
.result-jump { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  margin: 18px -20px -20px; padding: 12px 20px; background: var(--accent); color: #fff; font-weight: 700; text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 -4px 12px rgba(16, 24, 40, 0.12); }
.result-jump:hover { color: #fff; background: var(--accent-dark); }
.result-jump strong { font-size: 1.25rem; }
@media (min-width: 900px) { .result-jump { display: none; } }
.cta-box { border: 2px solid var(--accent); border-radius: var(--radius); padding: 22px; background: var(--accent-tint); }
.cta-box h2 { font-size: 1.4rem; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.3em; }
.formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; font-size: 0.9rem; overflow-x: auto; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 32px 0; font-size: 0.925rem; color: var(--muted); }
.site-footer .cols { display: grid; gap: 20px; }
.site-footer h2 { font-size: 0.95rem; color: var(--ink); margin-bottom: 0.4em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--ink); }

/* Year-end statement preview (screen) */
.statement { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 28px 24px; font-size: 0.95rem; color: #111; font-family: Georgia, "Times New Roman", serif; }
.statement h2 { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1.35rem; text-align: center; margin: 18px 0 2px; }
.statement .st-sub { text-align: center; font-size: 0.85rem; color: #444; margin-bottom: 18px; }
.st-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid #111; padding-bottom: 10px; }
.st-head .st-biz { font-weight: 700; font-size: 1.1rem; }
.st-row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px; padding: 7px 0; border-bottom: 1px solid #bbb; }
.st-row .k { color: #444; }
.st-row .v { font-weight: 700; min-height: 1.4em; }
.st-total { display: flex; justify-content: space-between; align-items: center; margin: 18px 0; padding: 12px 14px; border: 2px solid #111; font-weight: 700; font-size: 1.05rem; gap: 10px; }
.st-sign { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; margin-top: 40px; }
.st-sign div { border-top: 1px solid #111; padding-top: 4px; font-size: 0.85rem; color: #333; }
.st-fine { font-size: 0.78rem; color: #444; margin-top: 22px; }
.blank-line { display: inline-block; width: min(14em, 100%); height: 1.2em; border-bottom: 1px solid #111; }

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .statement { padding: 40px 44px; }
}
@media (min-width: 900px) {
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; }
  .grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .tool.statement-tool { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}
@media (max-width: 520px) {
  .row2 { grid-template-columns: 1fr; }
}

/* Print: the statement page marks everything else .no-print, so one clean page prints */
@media print {
  @page { size: letter; margin: 0.6in; }
  .no-print { display: none !important; }
  body.print-statement main, body.print-statement .section, body.print-statement .wrap, body.print-statement .tool { display: block; padding: 0; margin: 0; max-width: none; }
  body.print-statement .statement { border: 0; box-shadow: none; padding: 0; margin: 0; font-size: 11.5pt; }
  a { color: inherit; text-decoration: none; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Home hero: two screenshots side by side at every width, the second offset down */
.hero-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; max-width: 560px; }
.hero-pair img:last-child { margin-top: 28px; }
@media (min-width: 640px) { .gallery.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
