/* VoxCity toy-city design (mockups/Home, City, Report, House, Plans .dc.html).
   Sage, soft blue, warm cream; terracotta only for the one primary button per screen; warm charcoal text.
   Most layout is inline in the templates, as in the mockups. This file holds the pieces they repeat. */
* { box-sizing: border-box; }
html, body { margin: 0; background: #F7F4EF; }
body { color: #3A3A3A; font-family: 'DM Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.55; overflow-wrap: break-word; }
a { color: #4F6B5C; } a:hover { color: #3A3A3A; }
img, svg { max-width: 100%; }

/* the Bubble O wordmark (mockups/Logo.dc.html) */
.wordmark { display: inline-flex; align-items: baseline; font-family: 'Bricolage Grotesque', 'Arial Black', system-ui, sans-serif;
  font-weight: 700; font-size: 30px; line-height: 1; letter-spacing: -0.02em; color: #3A3A3A; text-decoration: none; }
.wordmark:hover { color: #3A3A3A; }
.wordmark svg { width: 0.56em; height: 0.56em; margin: 0 0.03em -0.01em 0.01em; overflow: visible; color: #4F6B5C; }

/* header nav */
.navlink { padding: 12px 14px; color: #5E5E5A; text-decoration: none; font-weight: 500; }
.navlink:hover { color: #3A3A3A; }
.navlink.on { color: #3A3A3A; font-weight: 700; border-bottom: 2px solid #8FA99A; }

/* buttons */
.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px;
  background: #D4A088; color: #3A3A3A; border: 0; border-radius: 14px; font: inherit; font-weight: 700; font-size: 17px;
  text-decoration: none; box-shadow: 0 3px 0 #BF8A72; cursor: pointer; }
.btn-primary:hover { color: #3A3A3A; background: #D9A991; }
.btn-outline { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  background: #FDFCFA; color: #3A3A3A; border: 1.5px solid #3A3A3A; border-radius: 12px; font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; }
.btn-outline:hover { color: #3A3A3A; background: #F7F4EF; }
.btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px;
  background: #F7F4EF; color: #5E5E5A; border: 1px solid #D9CFC2; border-radius: 12px; font: inherit; font-weight: 500;
  text-decoration: none; cursor: pointer; }
.btn-primary[disabled], .btn-outline[disabled], .btn-soft[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* cards, pills, messages */
.card { background: #FDFCFA; border: 1px solid #E8E0D6; border-radius: 20px; padding: 26px; box-shadow: 0 2px 10px rgba(58,58,58,0.05); }
.pill { display: inline-block; padding: 6px 14px; background: #E3ECE6; color: #3A3A3A; border-radius: 999px; font-size: 14px; font-weight: 500; }
.pill-sm { padding: 4px 12px; }
.muted { color: #5E5E5A; }
.small { font-size: 14px; }
.note { padding: 14px 16px; background: #E3ECE6; border-radius: 14px; }
.error { padding: 14px 16px; background: #F1D5C8; border-radius: 14px; }
.row-soft { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #F7F4EF; border-radius: 14px; color: #3A3A3A; text-decoration: none; }
a.row-soft:hover { background: #F1EDE6; color: #3A3A3A; }

/* forms */
label.field { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], textarea, select {
  width: 100%; background: #F7F4EF; color: #3A3A3A; border: 1px solid #D9CFC2; border-radius: 12px; padding: 12px 14px;
  font: inherit; font-size: 16px; }
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid #8FA99A; outline-offset: 1px; }
select.chip { width: auto; max-width: 100%; min-height: 44px; padding: 0 14px; background: #FDFCFA; font-weight: 500; cursor: pointer; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 14px; color: #5E5E5A; }
.check input { margin-top: 4px; flex: none; }
.or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: #5E5E5A; font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #E8E0D6; }

/* bars (Report mockup) */
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 48px; align-items: center; gap: 12px; }
.bar-track { height: 20px; background: #F1EDE6; border-radius: 10px; }
.bar-fill { height: 100%; border-radius: 10px; background: #8FB3C9; }
@media (max-width: 480px) { .bar-row { grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 8px; } }

.key { font-family: ui-monospace, Menlo, monospace; font-size: 14px; word-break: break-all; background: #FDFCFA; padding: 4px 8px; border-radius: 8px; }
.prose p { margin: 0 0 12px; } .prose p:last-child { margin: 0; }
[hidden] { display: none !important; }

/* Audience picker */
#aud[hidden] { display: none !important; }
.aud-row { display: flex; flex-direction: column; gap: 6px; }
.aud-label { font-size: 14px; font-weight: 700; }
.aud-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; background: #FDFCFA; border: 1px solid #D9CFC2; border-radius: 999px; font-size: 14px; cursor: pointer; }
.aud-chip:has(input:checked) { background: #E3ECE6; border-color: #8FA99A; }
.aud-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }

/* "answers coming in" pulse (respects reduced motion) */
.pulse { width: 14px; height: 14px; border-radius: 50%; background: #4F6B5C; box-shadow: 0 0 0 0 rgba(79,107,92,.5); animation: vc-pulse 1.6s infinite; flex: none; }
@keyframes vc-pulse { 0% { box-shadow: 0 0 0 0 rgba(79,107,92,.45); } 70% { box-shadow: 0 0 0 12px rgba(79,107,92,0); } 100% { box-shadow: 0 0 0 0 rgba(79,107,92,0); } }
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* phones: compact header with a menu, 16px side gutters */
.nav-menu { display: none; margin-left: auto; position: relative; }
.nav-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px;
  border: 1.5px solid #3A3A3A; border-radius: 12px; font-weight: 500; cursor: pointer; background: #FDFCFA; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: #E3ECE6; }
.nav-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; width: min(280px, calc(100vw - 32px));
  display: flex; flex-direction: column; padding: 10px; background: #FDFCFA; border: 1px solid #E8E0D6; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(58,58,58,0.14); }
.nav-menu-panel > a:not([class*="btn"]) { padding: 12px 10px; border-radius: 10px; color: #3A3A3A; text-decoration: none; font-weight: 500; }
.nav-menu-panel > a:not([class*="btn"]):hover, .nav-menu-panel > a.on { background: #F1EDE6; }
.nav-menu-panel .btn-primary, .nav-menu-panel .btn-outline { width: 100%; min-height: 48px; }
@media (max-width: 720px) {
  .nav-wide { display: none !important; }
  .nav-menu { display: block; }
  .site-header { padding-left: 16px !important; padding-right: 16px !important; flex-wrap: nowrap !important; }
  main > div, footer > div { padding-left: 16px !important; padding-right: 16px !important; }
  main > div { padding-top: 16px !important; }
}
@media (max-width: 720px) { .hero-lede { font-size: 17px !important; } }

/* phones: the pages are ported from desktop mockups with inline styles, so these rules
   tighten them by matching the shared inline values (card padding, section gaps, big numbers). */
@media (max-width: 720px) {
  main [style*="border-radius: 20px; padding: 2"], main [style*="border-radius: 20px; padding: 30px"],
  main .card { padding: 18px !important; }
  main [style*="border-radius: 20px"] [style*="border-radius: 20px; padding"] { padding: 14px !important; }
  main > div[style*="gap: 72px"] { gap: 36px !important; padding-bottom: 40px !important; }
  main > div[style*="padding: 48px 16px"] { padding-top: 20px !important; padding-bottom: 40px !important; }
  h1 { overflow-wrap: anywhere; }
  .cta-row > a { flex: 1 1 100%; justify-content: center; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  .stat-grid > :first-child { grid-column: 1 / -1; }
  .stat-grid > div:not(:first-child) { padding: 14px 12px !important; }
  .stat-grid [style*="font-size: 40px"] { font-size: 26px !important; }
  .stat-grid > div:not(:first-child) div + div { font-size: 13px; line-height: 1.35; }
  .quote-foot > a { flex: 1 1 100%; justify-content: center; }
  .res-house { width: 64px; height: 56px; }
  main [style*="JetBrains Mono"][style*="pre-wrap"] { font-size: 12.5px !important; line-height: 1.6 !important; }
  main div[style*="padding: 26px"][style*="pre-wrap"] { padding: 16px !important; }
  .nav-menu-panel { right: -2px; }
}

/* accessibility: skip link, visible only when focused */
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 10px 16px; background: #3A3A3A; color: #FDFCFA;
  border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; color: #FDFCFA; }
main:focus { outline: none; }
