/* RenoBeez brand: navy and bee yellow lead, teal supports interactions (brand guidelines v1.2).
   Text on light surfaces is navy. Gold is used as a fill with navy text, never as text on white. */
@font-face { font-family: "Lato"; font-weight: 400; font-style: normal; font-display: swap; src: url("/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-style: normal; font-display: swap; src: url("/lato-700.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 900; font-style: normal; font-display: swap; src: url("/lato-900.woff2") format("woff2"); }
:root {
  --bg: #F4F6F8;
  --surface: #ffffff;
  --ink: #0B2545;
  --muted: #45597a;
  --line: #d3dae4;
  --accent: #0B2545;
  --accent-ink: #F4F6F8;
  --cta: #FFC107;
  --cta-ink: #0B2545;
  --focus: #009C9A;
  --tint: #FFF4CC;
  --warn: #9a3412;
  --display: "Lato", Arial, sans-serif;
  --body: "Lato", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1117; --surface: #0B2545; --ink: #F4F6F8; --muted: #b3c0d1;
    --line: #1F3A5F; --accent: #FFC107; --accent-ink: #0B2545; --tint: #1F3A5F; --warn: #fdba74;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1117; --surface: #0B2545; --ink: #F4F6F8; --muted: #b3c0d1;
  --line: #1F3A5F; --accent: #FFC107; --accent-ink: #0B2545; --tint: #1F3A5F; --warn: #fdba74;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.5; }
.wrap { max-width: 640px; margin: 0 auto; padding: 18px 16px 48px; display: grid; gap: 22px; }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
/* Compact vector logo: light file on light surfaces, dark file in dark mode, no plate (guidelines v1.2). */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.brand img { width: 170px; height: auto; display: block; }
.area { font-size: 14px; color: var(--muted); }
h1 { font-family: var(--display); font-weight: 900; font-size: clamp(26px, 6vw, 36px); line-height: 1.1; margin: 0 0 8px; text-wrap: balance; }
.lede { color: var(--muted); margin: 0; max-width: 52ch; }
h2 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; margin: 0; text-wrap: balance; }
h2:focus { outline: none; }
h3 { font-family: var(--display); font-weight: 700; font-size: 18px; margin: 0 0 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 16px; display: grid; gap: 16px; }
.bar { height: 6px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--cta); border-radius: 999px; }
.count { font-size: 13px; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.panel { display: grid; gap: 14px; }
.hint { font-size: 14px; color: var(--muted); margin: 0; }
.opts { display: grid; gap: 10px; }
@media (min-width: 520px) { .opts.two { grid-template-columns: 1fr 1fr; } }
.opt { font: inherit; text-align: left; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 14px; min-height: 52px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; -webkit-tap-highlight-color: transparent; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--tint); font-weight: 600; }
.opt .tick { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; }
.opt[aria-pressed="true"] .tick { border-color: var(--accent); background: var(--accent); }
label { font-size: 14px; font-weight: 500; display: grid; gap: 5px; }
input[type="text"], input[type="tel"], input[type="email"], input[type="file"], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 12px; min-height: 48px;
}
textarea { min-height: 110px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-weight: 400; align-items: start; }
.consent input { accent-color: var(--focus); width: 18px; height: 18px; margin-top: 2px; }
.nav { display: flex; gap: 10px; justify-content: space-between; align-items: center; }
button { font: inherit; cursor: pointer; border-radius: 10px; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 12px 16px; min-height: 48px; }
.primary { background: var(--cta); color: var(--cta-ink); border: 0; font-weight: 700; padding: 13px 20px; min-height: 48px; font-size: 16px; margin-left: auto; }
.primary:disabled { opacity: 0.5; cursor: default; }
.error { color: var(--warn); font-size: 14px; margin: 0; }
.note { background: var(--tint); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 0; }
.done dl { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.done dt { color: var(--muted); }
.done dd { margin: 0 0 8px; }
ol.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
ol.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
ol.steps li::before { content: counter(s); font-family: var(--display); font-weight: 700; width: 34px; height: 34px; display: grid; place-items: center; background: var(--tint); color: var(--accent); border-radius: 50%; }
ol.steps strong { display: block; }
ol.steps span { color: var(--muted); }
ul.checks { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.fine { font-size: 14px; color: var(--muted); margin: 8px 0 0; }
footer { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  .bar span { transition: width .25s ease; }
  .opt { transition: border-color .12s, background-color .12s, transform .08s; }
  .opt:active { transform: scale(0.985); }
  .panel.in { animation: rise .2s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}

/* Shared app pieces */
a { color: var(--accent); }
.wrap.wide { max-width: 860px; }
input[type="number"], input[type="date"], input[type="password"] { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; min-height: 48px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.tab { background: var(--surface); border: 1px solid var(--line); color: var(--ink); padding: 10px 14px; min-height: 44px; white-space: nowrap; border-radius: 999px; }
.tab[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--tint); color: var(--accent); }
.badge.off { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge.warn { background: transparent; border: 1px solid var(--warn); color: var(--warn); }
.kv { margin: 0; display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.total { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sub { font-size: 13px; color: var(--muted); margin: 0; }
.small { padding: 9px 12px; min-height: 40px; font-size: 14px; margin-left: 0; }
.danger { background: transparent; border: 1px solid var(--warn); color: var(--warn); padding: 12px 16px; min-height: 48px; }
.primary.block, .ghost.block { width: 100%; margin-left: 0; }
.checks-grid { display: grid; gap: 8px; }
@media (min-width: 520px) { .checks-grid { grid-template-columns: 1fr 1fr; } }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: center; font-weight: 400; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
.check input { accent-color: var(--focus); width: 18px; height: 18px; }
.stars { display: flex; gap: 6px; }
.stars button { width: 46px; height: 46px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font-weight: 600; }
.stars button[aria-pressed="true"] { background: var(--cta); border-color: var(--cta); color: var(--cta-ink); }
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.metric b { display: block; font-family: var(--display); font-size: 24px; font-variant-numeric: tabular-nums; }
.metric span { font-size: 13px; color: var(--muted); }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); display: block; }
.linkbox { font-size: 13px; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; }
.ok { color: var(--accent); font-size: 14px; margin: 0; }
details summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.prose h2 { margin: 22px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.draft { border: 1px solid var(--warn); color: var(--warn); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0; }
footer a { color: var(--muted); }

/* Brand pieces */
.hero { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; }
.hero img { width: 104px; height: auto; display: block; }
@media (max-width: 359px) { .hero { grid-template-columns: 1fr; } .hero img { display: none; } }
.tagline { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
a.primary { text-decoration: none; }
