/* Onyx Web Fix — black + bronze/caramel.
   Dark is the brand default; light is a warm bone/black inversion of the same palette.
   Every accent resolves from --bronze (surfaces, borders, icons) and --bronze-ink (text-safe). */

:root {
  /* Dark = default identity */
  --ink: #f2ece1;
  --paper: #0b0b0c;
  --paper-raised: #16151a;
  --bronze: #d9a760;
  --bronze-ink: #e3b478;
  --bronze-dim: rgba(217, 167, 96, 0.14);
  --muted: #a09788;
  --line: #2b2823;
  --ok: #7cbf94;
  --danger: #f2b8b5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45);
  --serif: Charter, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}

/* Light mode is opt-in via the toggle — warm bone paper, near-black ink, deeper bronze
   so accent text stays above 4.5:1 on white. */
:root[data-theme="light"] {
  --ink: #15120e;
  --paper: #faf7f1;
  --paper-raised: #ffffff;
  --bronze: #a8712a;
  --bronze-ink: #8a5a24;
  --bronze-dim: rgba(168, 113, 42, 0.10);
  --muted: #6b6255;
  --line: #e4ddd0;
  --ok: #3f6b4f;
  --danger: #b3261e;
  --shadow: 0 1px 2px rgba(21, 18, 14, 0.05), 0 8px 24px rgba(21, 18, 14, 0.07);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --ink: #f2ece1;
  --paper: #0b0b0c;
  --paper-raised: #16151a;
  --bronze: #d9a760;
  --bronze-ink: #e3b478;
  --bronze-dim: rgba(217, 167, 96, 0.14);
  --muted: #a09788;
  --line: #2b2823;
  --ok: #7cbf94;
  --danger: #f2b8b5;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.5), 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--bronze-ink); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronze-ink);
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
}
.brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand span { color: var(--bronze); }
.header-controls { display: flex; align-items: center; gap: 10px; }
.pill-btn {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pill-btn:hover { border-color: var(--bronze); color: var(--bronze-ink); }
.pill-btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--bronze);
  outline-offset: 2px;
}

/* Skip link — visible only once focused by keyboard */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--paper-raised);
  color: var(--ink);
  border: 1px solid var(--bronze);
  border-radius: 0 0 6px 0;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
.brand-link { text-decoration: none; color: var(--ink); }

/* Hero — soft bronze light source behind the headline */
.hero {
  padding: 84px 0 60px;
  position: relative;
  overflow: hidden;
}
/* Single-column hero. Deliberately unillustrated: the portfolio section below carries real
   photography, and inventing decorative UI here read as a broken skeleton-loading state. */
/* Centered hero (chosen 2026-07-21). With no imagery beside it, left-aligning left an
   obviously empty right third; centering uses the full measure and reads deliberate.
   Constrain THIS inner column, never .hero-grid — that shares the .wrap element, and a
   max-width there fights the page gutter and misaligns the hero against the sections below. */
.hero-copy { max-width: 62ch; margin-left: auto; margin-right: auto; text-align: center; }

/* Credibility strip — plain facts, no fake chrome. Carries the space the headline leaves. */
.hero-facts {
  list-style: none;
  margin: 34px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
}
.hero-facts li {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bronze);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 520px;
  background: radial-gradient(48% 60% at 22% 58%, var(--bronze-dim), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); margin-top: 14px; }
.hero .lede { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 18px auto 0; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
/* Fixed (non-theme-flipping) caramel fill with near-black text — 6.7:1, and it reads
   identically on black or bone, so the CTA never has to flip with the theme. */
.btn-primary { background: #c9903f; color: #14110c; }
.btn-primary:hover { background: #dca24d; }
.btn-secondary { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-secondary:hover { border-color: var(--bronze); color: var(--bronze-ink); }

/* Pricing — "work order tags" */
.pricing { padding: 40px 0 64px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.tag {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
/* The perforation sits on the header row itself, not at a hardcoded offset — the old
   `top: 56px` was shorter than the 34px serif price, so the line cut through the number.
   Negative margins full-bleed it to the card edges past the .tag padding. */
.tag-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 0 -28px;
  padding: 0 28px 20px;
  border-bottom: 1px dashed var(--line);
}
.tag-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tag-price { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--bronze-ink); }
.tag-body { padding-top: 24px; }
.tag-body h3 { font-size: 20px; margin-bottom: 8px; }
.tag-body p { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.tag ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tag li { font-size: 14px; padding-left: 22px; position: relative; }
.tag li::before { content: "✓"; position: absolute; left: 0; color: var(--bronze-ink); font-weight: 700; }

/* How it works */
.section { padding: 56px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 8px; }
.section .section-sub { color: var(--muted); font-size: 15px; max-width: 60ch; margin-top: 8px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; }
.step-num { font-family: var(--serif); font-size: 28px; color: var(--bronze); font-weight: 700; }
.step h3 { font-size: 17px; margin: 10px 0 6px; }
.step p { color: var(--muted); font-size: 14px; }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 28px; }
.trust-item { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 10px; padding: 22px 20px; }
.trust-icon {
  width: 26px; height: 26px;
  color: var(--bronze);
  margin-bottom: 12px;
  display: block;
}
.trust-item h3 { font-size: 15px; margin-bottom: 6px; }
.trust-item p { font-size: 13.5px; color: var(--muted); }

/* Portfolio */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 28px; }
.portfolio-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.portfolio-card:hover { transform: translateY(-2px); border-color: var(--bronze); }
.portfolio-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--paper); }
.portfolio-body { padding: 20px 22px 24px; }
.portfolio-body h3 { font-size: 19px; margin-bottom: 6px; }
.portfolio-body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.portfolio-link { font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--bronze-ink); text-transform: uppercase; letter-spacing: 0.04em; }

/* FAQ */
.faq-list { margin-top: 24px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { font-family: var(--serif); font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--bronze); flex-shrink: 0; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); font-size: 14.5px; margin-top: 10px; max-width: 62ch; }

/* Intake form */
.contact-line { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.contact-line a { font-weight: 600; }
.footer-contact a { font-size: 13px; }
/* Honeypot: off-screen rather than display:none — some bots skip hidden inputs, but they
   almost always fill anything present in the DOM that looks like a real field. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-card { background: var(--paper-raised); border: 1px solid var(--line); border-radius: 12px; padding: 32px; box-shadow: var(--shadow); margin-top: 28px; position: relative; }
.form-row { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
label { font-size: 13px; font-weight: 700; }
input, textarea, select {
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
input:focus, textarea:focus { border-color: var(--bronze); }
textarea { resize: vertical; min-height: 80px; }
.radio-group { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; }
.radio-option input { width: auto; accent-color: var(--bronze); }
#form-status { margin-top: 14px; font-size: 14px; }
#form-status.success { color: var(--ok); }
#form-status.error { color: var(--danger); }

/* Legal pages (privacy / terms) — long-form prose, narrower measure for readability */
.legal { border-top: none; padding-top: 44px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin: 10px 0 0; }
.legal h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 38px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.legal p { margin-bottom: 14px; font-size: 15.5px; color: var(--ink); }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { font-size: 15.5px; margin-bottom: 8px; }
.legal-updated { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 28px !important; }
.legal-back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.form-consent { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.field-hint { font-size: 12.5px; color: var(--muted); }
input[type="file"] {
  padding: 10px;
  background: var(--paper);
  cursor: pointer;
  font-size: 14px;
}
input[type="file"]::file-selector-button {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  margin-right: 12px;
  padding: 7px 14px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--paper-raised);
  color: var(--ink);
  cursor: pointer;
}
input[type="file"]::file-selector-button:hover { border-color: var(--bronze); }
.file-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.file-list li { font-size: 12.5px; color: var(--muted); padding-left: 16px; position: relative; }
.file-list li::before { content: "•"; position: absolute; left: 2px; color: var(--bronze); }
.file-list li.file-bad { color: var(--danger); }
.file-list li.file-bad::before { content: "×"; color: var(--danger); }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--bronze-ink); text-decoration: underline; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer p { color: var(--muted); font-size: 13px; }

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 48px; }
  .hero-facts { flex-direction: column; gap: 10px; margin-top: 28px; }
}

/* Respect users who've asked the OS to reduce motion. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .portfolio-card:hover { transform: none; }
}

/* ---- Intake: live total, review step, payment panel ------------------------------
   Added 2026-07-21. The customer picks their own tier, sees the running total, then
   confirms a read-back of their own answers before anything is written to the CRM. */

.form-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 20px;
  padding: 14px 16px;
  background: var(--bronze-dim);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 15px;
  color: var(--muted);
}
.form-total strong {
  font-family: var(--serif);
  font-size: 26px;
  color: var(--bronze-ink);
  line-height: 1;
}

.review-title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0 0 14px;
}

.review-list {
  margin: 0 0 22px;
  padding: 4px 0 0;
  border-top: 1px solid var(--line);
}
.review-list dt {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 14px;
}
.review-list dd {
  margin: 3px 0 0;
  font-size: 15.5px;
  /* Long URLs and pasted text must not push the panel sideways on a phone. */
  overflow-wrap: anywhere;
}
.review-list dt:last-of-type + dd,
.review-list dd:last-child {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#pay-panel {
  margin-top: 22px;
  padding: 22px;
  background: var(--paper-raised);
  border: 1px solid var(--bronze);
  border-radius: 8px;
}
.pay-lede { margin: 0 0 16px; font-size: 16px; }
.pay-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }

@media (max-width: 460px) {
  .form-total { flex-direction: column; align-items: flex-start; gap: 4px; }
  .review-actions .btn { width: 100%; text-align: center; }
}


/* ── Example sites grid ── added 2026-07-22 ── */
.ex-title { margin: 3.5rem 0 0.5rem; font-family: var(--serif); font-size: 1.5rem; }
.ex-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.ex-card {
  margin: 0;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ex-card img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.ex-card figcaption {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 1.1rem 0.95rem;
}
.ex-card strong { font-size: 1rem; color: var(--ink); }
.ex-card span {
  font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--bronze);
}

/* ── Optional $75 care plan ── added 2026-07-22 ── */
.care-plan {
  margin-top: 2rem;
  padding: 1.75rem 2rem 2rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--bronze);
  border-radius: 12px;
}
.care-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.9rem;
}
.care-tag {
  display: block; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--bronze);
  margin-bottom: 0.45rem;
}
.care-head h3 { margin: 0; font-family: var(--serif); font-size: 1.4rem; color: var(--ink); }
.care-price { display: flex; align-items: baseline; gap: 0.2rem; white-space: nowrap; }
.care-amt { font-family: var(--mono); font-size: 1.9rem; color: var(--bronze); }
.care-per { font-size: 0.9rem; color: var(--muted); }
.care-plan > p { color: var(--muted); margin: 0 0 1.1rem; max-width: 46rem; }
.care-list {
  list-style: none; margin: 0 0 1.1rem; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0.3rem 2rem;
}
.care-list li {
  padding: 0.3rem 0 0.3rem 1.5rem; position: relative;
  color: var(--ink); font-size: 0.95rem;
}
.care-list li::before {
  content: "·"; position: absolute; left: 0.4rem; color: var(--bronze);
  font-weight: 700; font-size: 1.2rem; line-height: 1.2;
}
.care-foot { font-size: 0.88rem; color: var(--muted); margin: 0 !important; }
@media (max-width: 640px) { .care-plan { padding: 1.4rem 1.25rem 1.6rem; } }

/* ── Deliverables — a plain vertical list, NOT a card ── 2026-07-22 ──
   Gilbert: "more uniform and not a massive horizontal box or rectangle when
   everything on the site is straight down or vertical and neat." So: no border,
   no background panel, no rounded box. It reads as part of the page. */
.deliverables {
  margin: 3rem auto 0;
  max-width: 40rem;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
}
.deliverables h3 {
  margin: 0 0 1.1rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--ink);
  text-align: center;
}
.deliv-list { margin: 0; padding: 0; list-style: none; counter-reset: dl; display: block; }
.deliv-list li {
  counter-increment: dl;
  display: grid;
  grid-template-columns: 1.9rem 1fr;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.97rem;
  line-height: 1.45;
}
.deliv-list li:last-child { border-bottom: 0; }
.deliv-list li::before {
  content: counter(dl, decimal-leading-zero);
  font-family: var(--mono); font-size: 0.76rem; color: var(--bronze);
}

/* timeline stays a 3-across row on desktop, stacks on mobile */
.timeline {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; margin: 1.75rem 0 2.5rem;
}
.tl-step { background: var(--paper-raised); padding: 1.4rem 1.5rem 1.6rem; }
.tl-day {
  display: block; font-family: var(--mono); font-size: 0.76rem;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze);
  margin-bottom: 0.55rem;
}
.tl-step p { margin: 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* care plan: match the same narrow column */
.care-plan { max-width: 40rem; margin-left: auto; margin-right: auto; }
.care-list { grid-template-columns: 1fr; gap: 0.1rem; }

/* ── intake: care plan opt-in ── */
.checkbox-option {
  display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.75rem;
  align-items: start; padding: 0.9rem 1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper-raised); cursor: pointer;
}
.checkbox-option:hover { border-color: var(--bronze); }
.checkbox-option input { margin-top: 0.2rem; accent-color: var(--bronze); }
.checkbox-option strong { display: block; font-size: 0.95rem; color: var(--ink); }
.checkbox-option small { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.85rem; line-height: 1.45; }

/* ── Callie ── */
.callie { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 900; }
.callie-launch {
  position: relative; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  border: 0; background: #e02422; color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 6px 22px rgba(224,36,34,.45), 0 2px 10px rgba(0,0,0,.5);
  transition: transform .15s ease, box-shadow .15s ease;
}
.callie-launch:hover { background: #f03330; box-shadow: 0 8px 28px rgba(224,36,34,.6); }

.callie-launch:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.callie-badge {
  position: absolute; top: -3px; right: -3px; min-width: 1.15rem; height: 1.15rem;
  border-radius: 999px; background: #fff; color: #e02422;
  font-size: .68rem; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--paper);
}
.callie-panel {
  position: absolute; right: 0; bottom: 4.1rem; width: min(21.5rem, calc(100vw - 2.5rem));
  background: var(--paper-raised); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(0,0,0,.5);
  display: flex; flex-direction: column; max-height: min(30rem, 72vh);
}
.callie-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: .85rem 1rem; border-bottom: 1px solid var(--line); background: var(--paper);
}
.callie-head strong { display: block; font-size: .95rem; }
.callie-sub { font-size: .72rem; color: var(--muted); }
.callie-x { background: none; border: 0; color: var(--muted); font-size: 1.35rem; cursor: pointer; line-height: 1; }
.callie-x:hover { color: var(--ink); }
.callie-body { padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; }
.callie-msg {
  max-width: 92%; padding: .6rem .8rem; border-radius: 12px;
  font-size: .88rem; line-height: 1.5;
}
.callie-msg.from-callie { background: var(--paper); border: 1px solid var(--line); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.callie-msg.from-you { background: var(--bronze-dim); border: 1px solid var(--bronze); color: var(--ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.callie-opts { display: flex; flex-direction: column; gap: .4rem; margin-top: .25rem; }
.callie-opt {
  text-align: left; padding: .55rem .8rem; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--ink);
  font-size: .85rem; cursor: pointer; transition: border-color .12s ease, background .12s ease;
}
.callie-opt:hover { border-color: var(--bronze); background: var(--bronze-dim); }
.callie-foot { padding: .6rem 1rem .75rem; border-top: 1px solid var(--line); font-size: .7rem; color: var(--muted); }
@media (max-width: 480px) { .callie { right: .85rem; bottom: .85rem; } }

/* `hidden` is only a UA rule of display:none — any explicit display above beats it.
   Without this the chat panel is open for every visitor on first load. */
.callie-panel[hidden], .callie-badge[hidden] { display: none !important; }

/* Draws the eye without hijacking the page. Honours reduced-motion. */
@keyframes callie-pulse {
  0%   { box-shadow: 0 6px 22px rgba(224,36,34,.45), 0 0 0 0 rgba(224,36,34,.55); }
  70%  { box-shadow: 0 6px 22px rgba(224,36,34,.45), 0 0 0 14px rgba(224,36,34,0); }
  100% { box-shadow: 0 6px 22px rgba(224,36,34,.45), 0 0 0 0 rgba(224,36,34,0); }
}
.callie-launch { animation: callie-pulse 2.6s ease-out infinite; }
.callie-launch[aria-expanded="true"] { animation: none; }
@media (prefers-reduced-motion: reduce) { .callie-launch { animation: none; } }

/* ── Inline field error — red, and it says WHY ── 2026-07-22 ──
   The browser's native bubble only says "Please fill out this field", which does not tell
   a visitor that the address is needed *because* they chose "fix my existing site". */
.field-error {
  margin: 0.45rem 0 0;
  color: #ff6b62;
  font-size: 0.85rem;
  line-height: 1.45;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}
.field-error::before { content: "!"; font-weight: 700; }
.field-error[hidden] { display: none !important; }
input.invalid, input.invalid:focus {
  border-color: #ff6b62;
  box-shadow: 0 0 0 3px rgba(255, 107, 98, .16);
  outline: none;
}
label[data-required="yes"]::after { content: " *"; color: #ff6b62; font-weight: 700; }

/* ── Itemised total ── 2026-07-22 ──
   A single squashed figure hid the arithmetic. The one-off and the monthly are separate
   commitments, so they get separate lines and "due today" is stated outright. */
.form-total {
  /* An earlier .form-total rule sets display:flex for the old single-line total. Without
     an explicit override the itemised rows lay out side by side instead of stacking. */
  display: block;
  margin: 1.5rem 0 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.tot-line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.4rem 0; color: var(--muted); font-size: 0.95rem;
}
.tot-line strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.tot-line[hidden] { display: none !important; }
.tot-due {
  margin-top: 0.35rem; padding-top: 0.7rem; border-top: 1px solid var(--line);
  color: var(--ink); font-size: 1.02rem;
}
.tot-due strong { color: var(--bronze); font-size: 1.25rem; }
.tot-note { margin: 0.6rem 0 0; color: var(--muted); font-size: 0.83rem; line-height: 1.5; }
.tot-note[hidden] { display: none !important; }
