/* FixItPin marketing site
   Theme: "Sister brand" (option C, revised). Same Geist type, rounded shapes
   and page structure as Poopetrator; spruce instead of chocolate brown.
   Colour rules:
   - Spruce is the primary: buttons, links, logo tile.
   - Pin orange is an accent only (map pins, small highlights), never a button.
   - Red is reserved for destructive actions in the app and isn't used here. */

:root {
  --bg: #f6f7f4;        /* mist */
  --surface: #ffffff;
  --ink: #1c2523;
  --muted: #5d6b67;
  --line: #d9e2de;
  --primary: #1d4a45;   /* spruce */
  --primary-hover: #163a36;
  --primary-ink: #ffffff;
  --secondary: #e5ece8; /* sage mist */
  --accent: #f26a2e;    /* pin orange: accent only */
  --accent-soft: #fde7dc;
  --ok: #3f7d5b;        /* fixed / resolved */
  --cream: #fbf7f0;     /* warm ground: hero and header */
  --cream-line: #ebe3d6;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(28 37 35 / 6%), 0 8px 24px rgb(28 37 35 / 6%);
  --max: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--primary); }
a:hover { color: var(--primary-hover); }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 max(5vw, 16px); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section.deep { background: var(--primary); color: #eaf2ef; }
.section.deep h2 { color: #fff; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -0.025em; margin: 0 0 16px; text-wrap: balance; }
h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; }
h2 { font-size: clamp(30px, 3.8vw, 44px); font-weight: 800; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
p { margin: 0 0 14px; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.section.deep .lede { color: #c6d8d2; }
.center { text-align: center; margin-inline: auto; }
.small { font-size: 14px; color: var(--muted); }

/* Buttons: spruce primary, quiet secondary. No orange or red buttons. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: var(--radius);
  font: 600 16px/1.2 inherit; font-family: inherit; text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--primary); border-color: color-mix(in srgb, var(--primary) 28%, transparent); }
.btn-ghost:hover { background: var(--secondary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--secondary); color: var(--primary); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--cream-line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo img { width: 34px; height: 34px; }
.logo span b { color: var(--primary); font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links a:hover { color: var(--primary); }
.nav .btn { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.nav-signin { font-size: 15px; color: var(--ink); text-decoration: none; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-signin { margin-left: auto; } }
@media (max-width: 480px) { .nav .btn { display: none; } }

/* Hero: one resident's report, told as a short story */
.hero { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 7vw, 96px); background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: #8a4a22; font-size: 14px; font-weight: 600; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero h1 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; margin-bottom: 20px; }
.hero h1 em { color: var(--primary); }
.hero .lede { margin-bottom: 16px; max-width: 34em; color: #4f5c58; }
.hero .lede + p { font-size: 18px; color: #4f5c58; max-width: 34em; margin-bottom: 28px; }
.hero-note { margin-top: 14px; font-size: 15px; color: var(--muted); }
.story { display: flex; flex-direction: column; gap: 14px; }
.scene { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #1f3734; box-shadow: 0 1px 2px rgb(28 37 35 / 8%), 0 14px 34px rgb(28 37 35 / 14%); }
.scene svg { display: block; width: 100%; height: auto; }
.said { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; gap: 10px; align-items: flex-end; }
.said > div { background: var(--surface); border-radius: 14px 14px 14px 4px; padding: 10px 14px; box-shadow: 0 6px 18px rgb(0 0 0 / 20%); max-width: 340px; font-size: 15px; line-height: 1.4; }
.said small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.avatar { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f5c97a; color: #4a3313; font-weight: 700; font-size: 15px; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; background: #d7e6df; color: var(--primary); }
.handled { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--cream-line); font-size: 14px; color: #4f5c58; }
.handled b { color: var(--ink); }
.handled time, .fixed-note time { margin-left: auto; white-space: nowrap; font-size: 13px; color: var(--muted); }
.fixed-note { background: var(--surface); border: 1px solid var(--cream-line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow); }
.fixed-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 10px; }
.fixed-head .check { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); }
.fixed-note p { margin: 0 0 10px; font-size: 16px; line-height: 1.5; }
.fixed-note .sig { margin: 0; font-family: "Fraunces", Georgia, serif; font-style: italic; color: var(--primary); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* Shared bits: status dots, option rows and send buttons (used by the vendor handoff) */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.dot.open { background: var(--accent); }
.dot.fixed { background: var(--ok); }
.opt { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; }
.opt.on { border-color: var(--primary); background: var(--secondary); font-weight: 600; }
.opt i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; }
.opt.on i { background: var(--primary); }
.send { margin-top: 8px; background: var(--primary); color: #fff; text-align: center; border-radius: 10px; padding: 8px; font-weight: 600; }
@media (max-width: 480px) { .said { position: static; padding: 12px; background: #1f3734; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 99px; background: var(--secondary); color: var(--primary); font-weight: 600; }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Before / after */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.compare > div { border-radius: var(--radius-lg); padding: 28px; }
.compare .before { background: var(--surface); border: 1px solid var(--line); }
.compare .after { background: var(--primary); color: #eaf2ef; }
.compare .after h3 { color: #fff; }
.compare ul { margin: 0; padding-left: 20px; }
.compare li { margin-bottom: 8px; }
@media (max-width: 720px) { .compare { grid-template-columns: minmax(0, 1fr); } }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cat svg { width: 30px; height: 30px; color: var(--primary); margin-bottom: 10px; }
.cat b { display: block; margin-bottom: 2px; }
.cat span { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Audiences */
.who { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.who-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.who-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.who-card li { margin-bottom: 6px; }
@media (max-width: 720px) { .who { grid-template-columns: minmax(0, 1fr); } }

/* Board report */
.board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 56px); align-items: center; }
.report { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 20px 50px rgb(0 0 0 / 22%); }
.report-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.report-head b { font-size: 17px; }
.report-head span { font-size: 14px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--bg); border-radius: var(--radius); padding: 12px; }
.kpi b { display: block; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -0.02em; white-space: nowrap; }
.kpi span { font-size: 13px; color: var(--muted); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 9em minmax(0, 1fr) 2.5em; gap: 10px; align-items: center; font-size: 14px; }
.bar { height: 10px; border-radius: 99px; background: var(--secondary); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.bar-row:first-child .bar i { background: var(--accent); }
.bar-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
.board ul { padding-left: 20px; }
@media (max-width: 860px) { .board { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 420px) { .kpis { grid-template-columns: minmax(0, 1fr); } .bar-row { grid-template-columns: 7em minmax(0, 1fr) 2.2em; } }

/* Privacy */
.privacy { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.privacy div { border-top: 3px solid var(--primary); padding-top: 14px; }
.privacy p { color: var(--muted); margin: 0; font-size: 16px; }
@media (max-width: 900px) { .privacy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .privacy { grid-template-columns: minmax(0, 1fr); } }

/* FAQ */
.faq { max-width: 820px; margin: 32px auto 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--primary); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: var(--muted); }

/* Closing CTA */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; margin-top: 24px; }
.cta a.plain { color: #fff; }

/* Footer */
.site-footer { padding: 36px 0 48px; font-size: 15px; color: var(--muted); }
.foot { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot a { color: var(--muted); }

/* Forms (pilot, contact) */
.page-head { padding: clamp(40px, 6vw, 72px) 0 24px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font: 16px/1.4 inherit; font-family: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 560px) { .row2 { grid-template-columns: minmax(0, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 6px 0 20px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.req { color: var(--muted); }
.form-msg { display: none; border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 15px; }
.form-msg.ok { display: block; background: #e6f2eb; color: #24563c; }
.form-msg.err { display: block; background: #f6ece4; color: #6b3a1c; }
.side h3 { margin-top: 0; }
.side ul { padding-left: 20px; color: var(--muted); }
.side li { margin-bottom: 8px; }
@media (max-width: 860px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

/* Every report gets an answer */
.answer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.loop { list-style: none; margin: 0; padding: 0; position: relative; }
.loop::before { content: ""; position: absolute; left: 15px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.loop li { position: relative; padding: 0 0 22px 48px; }
.loop li:last-child { padding-bottom: 0; }
.loop li::before { content: ""; position: absolute; left: 6px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); }
.loop li:nth-child(3)::before { background: var(--ok); border-color: var(--ok); }
.loop b { display: block; font-size: 18px; margin-bottom: 2px; }
.loop span { color: var(--muted); }
@media (max-width: 820px) { .answer { grid-template-columns: minmax(0, 1fr); } }

/* Hand it to a vendor */
.handoff { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.handoff-list { list-style: none; padding: 0; margin: 8px 0 0; }
.handoff-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: var(--muted); }
.handoff-list li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 800; }
.handoff-list b { color: var(--ink); }
.handoff-visual { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; line-height: 1.4; }
.hand-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow); }
.hand-head { font-weight: 700; margin-bottom: 14px; }
.hand-head small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.hand-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.hand-tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--primary); background: var(--secondary); border-radius: 99px; padding: 1px 8px; }
.hand-arrow { font-size: 28px; color: var(--accent); font-weight: 700; }
.hand-email b { display: block; margin-bottom: 4px; }
.hand-email p { margin: 0 0 12px; color: var(--muted); }
.hand-email small { display: block; margin-top: 10px; color: var(--muted); }
.hand-btns { display: grid; gap: 6px; }
.hand-btns .send { margin-top: 0; }
.hand-fixed { text-align: center; border: 1.5px solid var(--ok); color: var(--ok); border-radius: 10px; padding: 7px; font-weight: 600; }
a.tag { text-decoration: none; background: var(--accent-soft); color: var(--ink); }
@media (max-width: 980px) { .handoff { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .handoff-visual { grid-template-columns: minmax(0, 1fr); } .hand-arrow { justify-self: center; transform: rotate(90deg); } }

/* How it works: animated demo */
.demo { margin-top: 36px; --dur: 2500ms; }
.demo-stage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; font-size: 13.5px; line-height: 1.4; }
.demo-panel { display: flex; flex-direction: column; transition: opacity .4s, transform .4s; opacity: .5; }
.demo[data-focus="resident"] [data-panel="resident"],
.demo[data-focus="manager"] [data-panel="manager"],
.demo[data-focus="vendor"] [data-panel="vendor"] { opacity: 1; transform: translateY(-4px); }
.demo-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.d-card { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }

/* shared bits */
.d-opt { display: flex; align-items: center; gap: 8px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; transition: background .3s, border-color .3s, font-weight .3s; }
.d-opt i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); flex: none; transition: background .3s; }
.d-btn { margin-top: 8px; background: var(--primary); color: #fff; text-align: center; border-radius: 10px; padding: 7px; font-weight: 600; }
.d-btn.d-ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--line); }
@keyframes d-tap { 0%, 100% { transform: scale(1); } 40% { transform: scale(.93); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 35%, transparent); } }

/* resident phone */
.d-phone { flex: 1; background: var(--ink); border-radius: 28px; padding: 8px; box-shadow: var(--shadow); }
.d-screen { height: 100%; background: var(--surface); border-radius: 21px; padding: 14px 12px; display: grid; }
.d-view { grid-area: 1 / 1; transition: opacity .4s; }
.d-view b { display: block; font-size: 14px; margin-bottom: 10px; }
.d-status { opacity: 0; }
.demo.at-1 .d-form { opacity: 0; }
.demo.at-1 .d-status { opacity: 1; }
.d-photo { font-size: 12.5px; color: var(--muted); opacity: 0; transition: opacity .3s; }
.demo[data-step="0"] .d-photo { opacity: 1; transition-delay: 1.1s; }
.demo[data-step="0"] .d-form .d-pick { border-color: var(--primary); background: var(--secondary); font-weight: 600; transition-delay: .6s; }
.demo[data-step="0"] .d-form .d-pick i { background: var(--primary); transition-delay: .6s; }
.demo[data-step="0"]:not(.paused) .d-tap-send { animation: d-tap .45s 1.8s; }
.d-line { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--muted); transition: color .3s; }
.d-line i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: background .3s, border-color .3s; }
.demo.at-1 .d-l1, .demo.at-2 .d-l2, .demo.at-4 .d-l3 { color: var(--ink); font-weight: 600; }
.demo.at-1 .d-l1 i, .demo.at-2 .d-l2 i { background: var(--primary); border-color: var(--primary); }
.demo.at-4 .d-l3 { color: var(--ok); }
.demo.at-4 .d-l3 i { background: var(--ok); border-color: var(--ok); }
.demo[data-step="4"] .d-l3, .demo[data-step="4"] .d-l3 i { transition-delay: 1.3s; }
.d-mail { margin-top: 10px; background: var(--secondary); color: var(--primary); font-weight: 600; border-radius: 10px; padding: 8px; opacity: 0; transform: translateY(6px); transition: opacity .4s .3s, transform .4s .3s; }
.demo.at-5 .d-mail { opacity: 1; transform: none; }

/* manager map */
.d-map { position: relative; height: 130px; background: var(--secondary); }
.d-bldg { position: absolute; width: 24%; height: 32%; background: color-mix(in srgb, var(--primary) 12%, var(--secondary)); border-radius: 6px; font-size: 10.5px; font-weight: 600; color: var(--muted); padding: 4px 6px; }
.d-road { position: absolute; left: 0; right: 0; top: 46%; height: 6%; background: var(--surface); }
.d-pin { position: absolute; width: 18px; height: 18px; margin: -18px 0 0 -9px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--ok); box-shadow: 0 2px 4px rgb(0 0 0 / 20%); transition: background .4s, opacity .3s, translate .4s cubic-bezier(.3, 1.6, .5, 1); }
.d-pin::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.d-pin-new { background: var(--accent); opacity: 0; translate: 0 -24px; }
.demo.at-1 .d-pin-new { opacity: 1; translate: 0 0; }
.demo.at-4 .d-pin-new { background: var(--ok); }
.demo[data-step="4"] .d-pin-new { transition-delay: 1.3s; }
.d-report { padding: 12px; opacity: 0; transform: translateY(8px); transition: opacity .4s .25s, transform .4s .25s; }
.demo.at-1 .d-report { opacity: 1; transform: none; }
.d-report-head { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.d-report-head small { display: block; color: var(--muted); font-size: 12px; }
.d-chip { display: grid; flex: none; }
.d-chip em { grid-area: 1 / 1; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; opacity: 0; transition: opacity .3s; text-align: center; }
.c-new { background: var(--accent-soft); color: #a63f12; }
.c-assigned { background: var(--secondary); color: var(--primary); }
.c-fixed { background: var(--ok); color: #fff; }
.demo.at-1:not(.at-2) .c-new { opacity: 1; }
.demo.at-2:not(.at-4) .c-assigned { opacity: 1; transition-delay: 1.6s; }
.demo.at-3:not(.at-4) .c-assigned { transition-delay: 0s; }
.demo[data-step="4"] .c-assigned { opacity: 1; }
.demo.at-4 .c-fixed { opacity: 1; }
.demo[data-step="4"] .c-fixed { transition-delay: 1.3s; }
.d-slot { display: grid; }
.d-slot > * { grid-area: 1 / 1; transition: opacity .35s; }
.d-assign-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; }
.d-assign { opacity: 0; }
.d-assigned { opacity: 0; align-self: start; background: var(--bg); border-radius: 10px; padding: 8px 10px; color: var(--muted); }
.d-assigned b { color: var(--ink); }
.demo[data-step="2"] .d-assign { opacity: 1; }
.demo.at-3 .d-assigned { opacity: 1; }
.demo[data-step="2"] .d-assign .d-pick { border-color: var(--primary); background: var(--secondary); font-weight: 600; transition-delay: .7s; }
.demo[data-step="2"] .d-assign .d-pick i { background: var(--primary); transition-delay: .7s; }
.demo[data-step="2"]:not(.paused) .d-tap-assign { animation: d-tap .45s 1.4s; }

/* vendor inbox */
.d-inbox { display: grid; padding: 14px; }
.d-inbox > * { grid-area: 1 / 1; }
.d-empty { align-self: center; justify-self: center; color: var(--muted); transition: opacity .3s; }
.d-job { opacity: 0; transform: translateX(16px); transition: opacity .45s .2s, transform .45s .2s; }
.demo.at-3 .d-empty { opacity: 0; }
.demo.at-3 .d-job { opacity: 1; transform: none; }
.d-job small { display: block; color: var(--muted); font-size: 12px; }
.d-job b { display: block; font-size: 14px; margin: 4px 0; }
.d-job p { margin: 0 0 4px; color: var(--muted); }
.d-job > small:last-child { margin-top: 8px; }
.d-fix { display: grid; background: transparent; color: var(--ok); border: 1.5px solid var(--ok); transition: background .3s, color .3s; }
.d-fix span { grid-area: 1 / 1; transition: opacity .3s; }
.f-done { opacity: 0; }
.demo.at-4 .d-fix { background: var(--ok); color: #fff; }
.demo.at-4 .f-todo { opacity: 0; }
.demo.at-4 .f-done { opacity: 1; }
.demo[data-step="4"] .d-fix, .demo[data-step="4"] .d-fix span { transition-delay: 1s; }
.demo[data-step="4"]:not(.paused) .d-tap-fix { animation: d-tap .45s .7s; }

/* controls */
.demo-bar { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; }
.demo-play { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--primary); font-size: 12px; cursor: pointer; }
.demo-play:hover { background: var(--secondary); }
.demo-steps { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: dstep; }
.demo-steps button { position: relative; width: 100%; text-align: left; font: inherit; font-size: 13.5px; line-height: 1.3; color: var(--muted); background: none; border: 0; border-top: 3px solid var(--line); padding: 8px 0 0; cursor: pointer; counter-increment: dstep; }
.demo-steps button::before { content: counter(dstep) ". "; font-weight: 700; }
.demo-steps button::after { content: ""; position: absolute; left: 0; top: -3px; height: 3px; width: 0; background: var(--primary); }
.demo-steps button.on { color: var(--ink); font-weight: 600; }
.demo-steps button.on::after { width: 100%; }
.demo.tick:not(.paused) .demo-steps button.on::after { animation: d-progress var(--dur) linear; }
@keyframes d-progress { from { width: 0; } to { width: 100%; } }
.demo-steps button:focus-visible, .demo-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

@media (max-width: 760px) {
  .demo-stage { grid-template-columns: minmax(0, 1fr); }
  .demo-panel { display: none; opacity: 1; transform: none !important; }
  .demo[data-focus="resident"] [data-panel="resident"],
  .demo[data-focus="manager"] [data-panel="manager"],
  .demo[data-focus="vendor"] [data-panel="vendor"] { display: flex; }
  [data-panel="resident"] .d-phone { max-width: 260px; }
  .demo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo *, .demo *::before, .demo *::after { transition: none !important; animation: none !important; }
}
