/* ==========================================================================
   ByteBuilder Technologies, LLC — Website Care Package micro-site
   Client: Painting With A Smile
   Self-contained: no external fonts or assets. Safe to move between projects.
   ========================================================================== */

:root {
  --ground: #f7f3ec;
  --surface: #ffffff;
  --surface-2: #fbf8f2;
  --ink: #1e2b38;
  --muted: #5c6b7a;
  --heading: #16324f;
  --navy: #16324f;
  --navy-deep: #0e2237;
  --gold: #f9b234;
  --gold-dark: #e0980f;
  --gold-ink: #a86c05;
  --sky: #2e7fb0;
  --line: #e7e0d3;
  --line-soft: #efeae0;
  --shadow: 0 1px 2px rgba(14, 34, 55, .04), 0 10px 30px rgba(14, 34, 55, .07);
  --shadow-sm: 0 1px 2px rgba(14, 34, 55, .05), 0 4px 14px rgba(14, 34, 55, .05);
  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 900px;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #0c1e30;
    --surface: #14293f;
    --surface-2: #102336;
    --ink: #e9f0f6;
    --muted: #9db1c4;
    --heading: #eaf2f9;
    --navy: #cfe0ee;
    --gold-ink: #f4bd52;
    --sky: #6cc1ee;
    --line: #244259;
    --line-soft: #1c3850;
    --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 14px 34px rgba(0, 0, 0, .34);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .2), 0 6px 16px rgba(0, 0, 0, .24);
  }
}
:root[data-theme="light"] {
  --ground: #f7f3ec; --surface: #ffffff; --surface-2: #fbf8f2;
  --ink: #1e2b38; --muted: #5c6b7a; --heading: #16324f; --navy: #16324f;
  --gold-ink: #a86c05; --sky: #2e7fb0; --line: #e7e0d3; --line-soft: #efeae0;
  --shadow: 0 1px 2px rgba(14,34,55,.04), 0 10px 30px rgba(14,34,55,.07);
  --shadow-sm: 0 1px 2px rgba(14,34,55,.05), 0 4px 14px rgba(14,34,55,.05);
}
:root[data-theme="dark"] {
  --ground: #0c1e30; --surface: #14293f; --surface-2: #102336;
  --ink: #e9f0f6; --muted: #9db1c4; --heading: #eaf2f9; --navy: #cfe0ee;
  --gold-ink: #f4bd52; --sky: #6cc1ee; --line: #244259; --line-soft: #1c3850;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 14px 34px rgba(0,0,0,.34);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.2), 0 6px 16px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ground);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  accent-color: var(--gold-dark);
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.18; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--sky); }
:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 2px; border-radius: 4px; }

/* ---------- Brand bar ---------- */
.brandbar {
  background: var(--navy-deep);
  color: #b9c9d8;
  font-size: 13px;
}
.brandbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 10px; padding-bottom: 10px;
}
.brandbar .bb {
  display: inline-flex; align-items: center; gap: 10px;
  color: #eaf1f8; font-weight: 700; letter-spacing: .01em; text-decoration: none;
}
.brandbar .bb svg { width: 26px; height: 26px; flex: none; }
.brandbar .bb small { font-weight: 500; color: #8fa5ba; }
.brandbar .client { color: #8fa5ba; }
.brandbar .client b { color: #eaf1f8; font-weight: 600; }

/* ---------- Masthead ---------- */
.masthead {
  background:
    radial-gradient(120% 130% at 85% -20%, rgba(249, 178, 52, .16), transparent 55%),
    linear-gradient(160deg, #16324f 0%, #12293f 55%, #0e2237 100%);
  color: #eaf1f8;
  border-bottom: 3px solid var(--gold);
}
.masthead .wrap { padding-top: 50px; padding-bottom: 50px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-size: 12.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.masthead h1 {
  color: #fff; font-size: clamp(2rem, 5.2vw, 3.05rem); font-weight: 800;
  letter-spacing: -.02em; margin: 0 0 6px;
}
.masthead .smile { display: block; width: 132px; height: 16px; margin: 6px 0 18px; overflow: visible; }
.masthead .lead { color: #c7d6e5; font-size: clamp(1.02rem, 2vw, 1.18rem); max-width: 52ch; }
.masthead .lead b { color: #fff; font-weight: 650; }
.meta-row {
  display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px;
  padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: 14px; color: #a9bccf;
}
.meta-row b { color: #eaf1f8; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Slim doc header (terms / onboarding) ---------- */
.doc-head { background: linear-gradient(160deg, #16324f, #0e2237); color: #eaf1f8; border-bottom: 3px solid var(--gold); }
.doc-head .wrap { padding-top: 34px; padding-bottom: 32px; }
.doc-head h1 { color: #fff; font-size: clamp(1.55rem, 4vw, 2.15rem); font-weight: 800; letter-spacing: -.015em; }
.doc-head p { color: #c7d6e5; margin-top: 8px; max-width: 62ch; font-size: 15.5px; }

/* ---------- Section scaffolding ---------- */
section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line-soft); }
.sec-label {
  font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-ink); margin: 0 0 10px;
}
.sec-title { font-size: clamp(1.45rem, 3.1vw, 1.85rem); font-weight: 800; letter-spacing: -.015em; margin: 0 0 8px; }
.sec-intro { color: var(--muted); max-width: 64ch; margin: 0 0 28px; }
.sec-intro:last-child { margin-bottom: 0; }

/* ---------- Pricing card ---------- */
.pricing {
  display: grid; grid-template-columns: 285px 1fr;
  background: var(--surface); border: 2px solid var(--gold); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.price-side {
  background: linear-gradient(165deg, #16324f, #0e2237); color: #dbe7f2;
  padding: 28px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
}
.price-side .waived {
  font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #1e2b38; background: var(--gold); border-radius: 20px; padding: 4px 12px; margin-bottom: 14px;
}
.price-side .amount { font-size: 3.1rem; font-weight: 800; color: #fff; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-side .amount small { font-size: 1.05rem; font-weight: 600; color: #a9bccf; letter-spacing: 0; }
.price-side .per { font-size: 13.5px; color: #a9bccf; margin-bottom: 18px; }
.price-side .btn { margin-top: auto; width: 100%; }
.price-includes { padding: 24px 28px; }
.price-includes h3 { font-size: 1.02rem; font-weight: 700; margin-bottom: 12px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 16px; box-shadow: var(--shadow-sm);
}
.stat .n { font-size: 1.9rem; font-weight: 800; color: var(--heading); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.stat .l { display: block; margin-top: 7px; font-size: 13px; color: var(--muted); line-height: 1.35; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 20px 20px 20px 22px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.card h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.card h3 .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--gold-ink); background: color-mix(in srgb, var(--gold) 16%, transparent);
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.card > p { font-size: 14px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.card > p:last-child, .card ul:last-child { margin-bottom: 0; }

/* ---------- Checklists ---------- */
ul.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
ul.checks li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.5; }
ul.checks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: color-mix(in srgb, var(--gold) 22%, transparent);
}
ul.checks li::after {
  content: ""; position: absolute; left: 5px; top: 8px; width: 4px; height: 7px;
  border: solid var(--gold-ink); border-width: 0 2px 2px 0; transform: rotate(43deg);
}
ul.checks li b { color: var(--heading); font-weight: 650; }
ul.checks.tight li { font-size: 13.5px; }

ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
ul.plain li { position: relative; padding-left: 18px; font-size: 14.5px; line-height: 1.5; }
ul.plain li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }

/* ---------- Two-column feature groups ---------- */
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 34px; }
.fgroup h3 {
  font-size: 1.05rem; font-weight: 700; margin: 0 0 12px; padding-bottom: 9px;
  border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 9px;
}
.fgroup h3 .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); flex: none; }

/* ---------- Numbered steps ---------- */
.steps { display: grid; gap: 12px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.step .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(150deg, #16324f, #0e2237); color: var(--gold);
  display: grid; place-items: center; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1rem; font-weight: 700; margin: 2px 0 3px; }
.step p { font-size: 14px; color: var(--muted); }

/* ---------- Panels & callouts ---------- */
.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow-sm);
}
.panel h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.note {
  margin-top: 20px; font-size: 13.5px; color: var(--muted); display: flex; gap: 10px;
  padding: 14px 16px; background: color-mix(in srgb, var(--gold) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--gold) 26%, transparent); border-radius: var(--radius-sm);
}
.note svg { flex: none; margin-top: 2px; }
.note b { color: var(--heading); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2;
  border-radius: 11px; padding: 14px 26px; border: 0; cursor: pointer; text-decoration: none;
}
.btn-gold { background: var(--gold); color: #1e2b38; box-shadow: 0 4px 14px rgba(249, 178, 52, .35); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--heading); font-weight: 700; }
.btn-ghost:hover { border-color: var(--muted); }
a.btn:hover { text-decoration: none; }
.btn.is-disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }

/* ---------- Acceptance card ---------- */
.accept-card {
  background:
    radial-gradient(110% 140% at 90% -30%, rgba(249, 178, 52, .14), transparent 55%),
    linear-gradient(160deg, #16324f, #0e2237);
  border-radius: var(--radius); padding: 32px 32px 28px; color: #dbe7f2; box-shadow: var(--shadow);
}
.accept-card h3 { color: #fff; font-size: 1.35rem; font-weight: 800; margin-bottom: 6px; }
.accept-card .sub { color: #a9bccf; font-size: 14.5px; margin-bottom: 20px; }
.accept-card ul.checks li { color: #dbe7f2; }
.accept-card ul.checks li b { color: #fff; }
.accept-card a:not(.btn) { color: var(--gold); }
.agree-row {
  display: flex; gap: 12px; align-items: flex-start;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-sm); padding: 15px 16px; margin: 22px 0 18px;
}
.agree-row input { width: 19px; height: 19px; margin-top: 2px; flex: none; cursor: pointer; }
.agree-row label { font-size: 14.5px; line-height: 1.5; cursor: pointer; }
.accept-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.accept-fineprint { font-size: 12.5px; color: #8fa5ba; margin-top: 16px; line-height: 1.55; }
.accept-fineprint a { color: #c7d6e5; }

/* ---------- Terms document ---------- */
.doc-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 38px 44px; box-shadow: var(--shadow-sm);
}
.doc-meta {
  display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13.5px; color: var(--muted);
  padding-bottom: 18px; margin-bottom: 10px; border-bottom: 1px solid var(--line);
}
.doc-meta b { color: var(--heading); font-weight: 650; }
.terms { counter-reset: sec; }
.terms h2 { counter-increment: sec; font-size: 1.12rem; font-weight: 800; margin: 30px 0 10px; }
.terms h2::before { content: counter(sec) ". "; color: var(--gold-ink); }
.terms p, .terms li { font-size: 15px; line-height: 1.6; }
.terms p { margin-bottom: 10px; }
.terms ul { margin: 6px 0 12px; padding-left: 24px; display: grid; gap: 5px; }

/* ---------- Forms ---------- */
form .fs {
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
  padding: 22px 22px 24px; margin: 0 0 18px; box-shadow: var(--shadow-sm);
}
form .fs legend {
  font-weight: 800; color: var(--heading); font-size: 1.05rem; padding: 0 10px; margin-left: -10px;
}
form .fs > p.fs-help { font-size: 13.5px; color: var(--muted); margin: 2px 0 16px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-size: 13.5px; font-weight: 650; color: var(--heading); margin-bottom: 5px; }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2.5px solid var(--sky); outline-offset: 1px; }
.char-note { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-variant-numeric: tabular-nums; }

.radio-row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.radio-row label {
  display: inline-flex; align-items: center; gap: .5em; font-size: 14.5px; font-weight: 500;
  color: var(--ink); cursor: pointer; margin: 0;
}
.radio-row input { width: 17px; height: 17px; cursor: pointer; }

.chip-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check {
  position: relative; display: inline-flex; align-items: center; gap: .55em;
  padding: 7px 15px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-2);
  font-size: 13.5px; font-weight: 600; color: var(--heading); cursor: pointer; user-select: none;
}
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.chip-check:has(input:checked) { background: color-mix(in srgb, var(--gold) 18%, transparent); border-color: var(--gold-dark); }
.chip-check:has(input:checked)::before { background: var(--gold-ink); border-color: var(--gold-ink); }
.chip-check:has(input:focus-visible) { outline: 2.5px solid var(--sky); outline-offset: 2px; }

.hours-grid { display: grid; grid-template-columns: 108px 1fr; gap: 9px 14px; align-items: center; max-width: 460px; }
.hours-grid .day { font-size: 14px; font-weight: 650; color: var(--heading); }

.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Service-area chips (display only) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13.5px; font-weight: 600; color: var(--heading); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 14px; }

/* ---------- Footer ---------- */
footer.foot {
  background: var(--navy-deep); color: #b9c9d8; margin-top: 46px;
  padding: 26px 0; text-align: center; font-size: 13.5px; border-top: 3px solid var(--gold);
}
footer.foot b { color: #eaf1f8; }
footer.foot a { color: var(--gold); }

/* ---------- Utility ---------- */
.bg-alt { background: var(--surface-2); }
.mt { margin-top: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .cards, .features, .grid2 { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr; }
  .price-side .btn { margin-top: 14px; }
  section { padding: 36px 0; }
  .doc-card { padding: 26px 20px; }
  .brandbar .client { display: none; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .smile-path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw 1.1s .25s ease forwards; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 12pt; }
  .no-print, .brandbar, footer.foot { display: none !important; }
  .doc-head, .masthead { background: #fff; color: #000; border-bottom: 2px solid #000; }
  .doc-head h1, .masthead h1 { color: #000; }
  .doc-head p, .masthead .lead { color: #222; }
  .doc-card { border: none; box-shadow: none; padding: 0; }
  section { padding: 20px 0; }
  a { color: #000; }
  input, select, textarea { border: 1px solid #999; background: #fff; }
}
