/* Stoopfix design system. Palette, radii and type treatment follow the reference shot in ~/Desktop/shot. */
@font-face {
  font-family: "Instrument Sans";
  src: url("/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --ink: #0d0b09;
  --text: #1d1c1a;
  --muted: #6f6d6b;
  --line: #ebe9e6;
  --panel: #faf9f8;
  --white: #fff;
  --blue: #3754fa;
  --blue-dark: #2a43d6;
  --blue-tint: #eef1ff;
  --coral: #ef8566;
  --coral-tint: #fdf2ee;
  --yellow: #fac35e;
  --yellow-tint: #fef6e4;
  --mint: #a1e3cb;
  --mint-tint: #ebf9f3;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgb(13 11 9 / 4%), 0 8px 24px rgb(13 11 9 / 5%);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16px/1.5 "Instrument Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p { margin: 0; }
h1, h2 { color: var(--ink); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.0625rem; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons, pills, fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--blue); color: var(--white);
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.secondary { background: var(--white); color: var(--blue); border-color: var(--line); box-shadow: 0 1px 2px rgb(13 11 9 / 4%); }
.btn.secondary:hover { border-color: #d5d2cd; }
.btn.dark { background: var(--text); }
.btn.dark:hover { background: #000; }
.btn.quiet { background: none; color: var(--text); padding: 0 12px; font-weight: 500; }
.btn.quiet:hover { background: var(--panel); }
.btn.big { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn.block { width: 100%; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--text); font-size: 0.8125rem; font-weight: 500;
}
.status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 500; color: var(--text); white-space: nowrap; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status.open { background: var(--coral-tint); } .status.open::before { background: var(--coral); }
.status.scheduled { background: #e8f6fe; } .status.scheduled::before { background: #66c6fa; }
.status.in_progress { background: var(--yellow-tint); } .status.in_progress::before { background: var(--yellow); }
.status.waiting { background: #f0f0ff; } .status.waiting::before { background: #9999ff; }
.status.done { background: var(--mint-tint); } .status.done::before { background: #4bbf95; }

label { display: block; font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
label .hint { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.field { margin-top: 8px; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #d9d6d1; border-radius: var(--radius-sm); background: var(--white); }
.field:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); }
textarea.field { min-height: 132px; resize: vertical; }
textarea.field[rows="2"] { min-height: 76px; }
.stack > * + * { margin-top: 20px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.error { color: #a8321a; font-size: 0.9375rem; font-weight: 500; }
.error:empty { display: none; }

.stepper { display: inline-flex; align-items: center; border: 1px solid #d9d6d1; border-radius: var(--radius-sm); background: var(--white); overflow: hidden; }
.stepper button { width: 48px; height: 52px; border: 0; background: none; font-size: 1.375rem; cursor: pointer; color: var(--ink); }
.stepper button:hover { background: var(--panel); }
.stepper input { width: 84px; height: 52px; border: 0; border-inline: 1px solid var(--line); text-align: center; font-size: 1.25rem; font-weight: 600; color: var(--ink); -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.stepper input:focus-visible, .stepper button:focus-visible { outline-offset: -2px; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Brand ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }

/* ---------- Landing ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; }
.nav-links { display: flex; gap: 4px; padding: 5px; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgb(13 11 9 / 4%); }
.nav-links a { padding: 6px 14px; border-radius: 8px; color: var(--text); font-size: 0.875rem; font-weight: 500; }
.nav-links a:hover { background: var(--panel); text-decoration: none; }
.nav .row { flex-wrap: nowrap; }
.nav .login { font-size: 0.875rem; font-weight: 500; padding: 8px; }

.panel { background: var(--panel); border-radius: 32px; }
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 88px) 16px 0; text-align: center; }
/* The reference shot's diagonal hatching, fading in at the panel's lower corners. */
.hero::before, .hero::after {
  content: ""; position: absolute; bottom: 0; width: 120px; height: 55%;
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgb(13 11 9 / 7%) 10px 11px);
  -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000);
}
.hero::before { left: 0; } .hero::after { right: 0; }
.hero h1 { margin: 20px auto 0; max-width: 15ch; }
.hero .lede { margin: 20px auto 0; max-width: 46ch; font-size: 1.125rem; color: var(--muted); }
.hero .row { justify-content: center; margin-top: 32px; }

.section { padding: clamp(64px, 9vw, 104px) 0; }
.section > .center > h2 { margin-top: 16px; }
.steps { display: grid; gap: 32px; margin-top: 56px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-weight: 600; color: var(--ink); }
.step h3 { margin-top: 20px; }
.step p { margin-top: 6px; color: var(--muted); }

.pricing { display: grid; gap: 32px; padding: clamp(28px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: center; }
.price { margin-top: 20px; font-size: clamp(3rem, 8vw, 4.25rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 10.5 2.7 2.7L14 7.5'/%3E%3C/svg%3E"); }
.calc { padding: 28px; }
.calc .stepper { margin-top: 10px; }
.calc .btn { margin-top: 20px; }
.calc .total { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.calc .total strong { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); }
.footer { padding: 32px 0 48px; border-top: 1px solid var(--line); }

/* ---------- Focused pages: sign-up wizard, login, verify ---------- */
.focus-page { min-height: 100vh; min-height: 100dvh; background: var(--panel); display: flex; flex-direction: column; align-items: center; padding: 28px 16px 48px; }
.focus-card { width: min(480px, 100%); margin-top: clamp(24px, 8vh, 72px); padding: clamp(24px, 5vw, 40px); }
.focus-card h1 { font-size: clamp(1.625rem, 5vw, 2rem); letter-spacing: -0.03em; }
.focus-card h1 + p { margin-top: 8px; color: var(--muted); }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.progress i.on { background: var(--blue); }
.summary { border: 1px solid var(--line); border-radius: var(--radius-sm); }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.summary div + div { border-top: 1px solid var(--line); }
.summary dt { color: var(--muted); } .summary dd { margin: 0; font-weight: 500; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.choices { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.choice { min-height: 56px; padding: 12px 16px; border: 1px solid #d9d6d1; border-radius: var(--radius-sm); background: var(--white); font-weight: 500; text-align: left; cursor: pointer; }
.choice:hover { border-color: var(--blue); }
.choice[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue); }

/* ---------- App ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; min-height: 100dvh; background: var(--panel); }
.side { display: flex; flex-direction: column; gap: 4px; padding: 24px 16px; background: var(--white); border-right: 1px solid var(--line); }
.side .logo { padding: 0 8px 20px; }
.side button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-sm); background: none; font-weight: 500; color: var(--muted); cursor: pointer; text-align: left; }
.side button:hover { background: var(--panel); color: var(--text); }
.side button[aria-current="page"] { color: var(--blue); background: var(--blue-tint); }
.side button svg { width: 20px; height: 20px; flex: none; }
.side .spacer { flex: 1; }
.main { padding: clamp(20px, 4vw, 40px); min-width: 0; }
.main > header h1 { font-size: clamp(1.5rem, 4vw, 1.875rem); letter-spacing: -0.03em; }
.main > header p { color: var(--muted); margin-top: 4px; }
.main > header { margin-bottom: 28px; }
.notice { padding: 14px 16px; margin-bottom: 20px; border-radius: var(--radius-sm); background: var(--yellow-tint); border: 1px solid #f3dca4; font-weight: 500; }

.stats { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-bottom: 24px; }
.stat { padding: 18px 20px; }
.stat b { display: block; font-size: 1.875rem; font-weight: 600; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.tabs button { min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: none; font-size: 0.875rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tabs button[aria-pressed="true"], .tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }

.list { overflow: hidden; }
.item { display: flex; align-items: center; gap: 16px; width: 100%; padding: 16px 20px; border: 0; background: none; text-align: left; cursor: pointer; }
.item + .item { border-top: 1px solid var(--line); }
.item:hover { background: var(--panel); }
.item .grow { flex: 1; min-width: 0; }
.item .title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { word-spacing: 0.12em; font-size: 0.875rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item.static { cursor: default; } .item.static:hover { background: none; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); }
.empty h3 { margin-bottom: 4px; }

/* Popups take the whole screen. Content sits in a readable column; job popups use two. */
dialog { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--white); color: var(--text); overflow-y: auto; }
dialog::backdrop { background: rgb(13 11 9 / 35%); }
dialog .body { width: min(840px, 100%); margin-inline: auto; padding: clamp(56px, 8vh, 88px) clamp(16px, 5vw, 40px) 64px; }
dialog .body.wide { width: min(1440px, 100%); padding-inline: clamp(16px, 5vw, 80px); }
dialog .body.columns { display: grid; gap: 40px; width: min(1160px, 100%); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { dialog .body.columns { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 56px; } dialog .body.columns > :last-child { position: sticky; top: clamp(56px, 8vh, 88px); align-self: start; } }
dialog h2 { font-size: 1.375rem; letter-spacing: -0.02em; }
dialog .close { position: fixed; z-index: 1; top: 14px; right: clamp(12px, 3vw, 28px); width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 1.375rem; line-height: 1; cursor: pointer; color: var(--muted); }
dialog .close { background: var(--white); border: 1px solid var(--line); }
dialog .close:hover { background: var(--panel); }
.quote { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--panel); white-space: pre-wrap; overflow-wrap: anywhere; }
.photo { border-radius: var(--radius-sm); border: 1px solid var(--line); max-height: 320px; }
.segmented { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-bottom: 8px; }
.note { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: flex-start; }
.note p { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.note button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 0.8125rem; padding: 4px; }
.note button:hover { color: #a8321a; }
.label { font-size: 0.8125rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }

/* ---------- Landing: animated illustrations ---------- */
.section .lede { margin: 16px auto 0; max-width: 52ch; color: var(--muted); font-size: 1.0625rem; }

/* Repair-category chips drifting around the headline, like the reference shot's floating icons. */
.float { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); animation: bob 6s ease-in-out infinite; }
.float svg { width: 24px; height: 24px; }
.float.sky { color: #2f9fdc; } .float.yellow { color: #d99a1c; } .float.coral { color: var(--coral); } .float.violet { color: #7b7bf0; } .float.mint { color: #3fae86; }
.f1 { top: 13%; left: 20%; }
.f2 { top: 10%; right: 17%; animation-duration: 7s; animation-delay: -2s; }
.f3 { top: 37%; left: 8%; animation-duration: 8s; animation-delay: -4s; }
.f4 { top: 32%; right: 7%; animation-duration: 6.5s; animation-delay: -1s; }
.f5 { top: 52%; right: 22%; width: 44px; height: 44px; animation-duration: 7.5s; animation-delay: -3s; }
@keyframes bob { 50% { transform: translateY(-12px); } }

/* One status pill at a time: Open, then In progress, then Done. */
.cycle { display: grid; justify-items: end; }
.cycle > * { grid-area: 1 / 1; animation: turn 9s infinite; }
.cycle > :nth-child(2) { opacity: 0; animation-delay: -6s; }
.cycle > :nth-child(3) { opacity: 0; animation-delay: -3s; }
@keyframes turn { 0%, 29% { opacity: 1; } 33%, 96% { opacity: 0; } 100% { opacity: 1; } }

.features { display: grid; gap: 20px; margin-top: 56px; grid-template-columns: repeat(3, 1fr); }
.feature { padding: 12px 12px 28px; }
.feature h3 { margin: 24px 16px 0; font-size: 1.1875rem; }
.feature > p { margin: 8px 16px 0; color: var(--muted); }
.ill { display: grid; place-items: center; height: 200px; padding: 16px; border-radius: 12px; background: var(--panel); overflow: hidden; }
.mini { position: relative; width: min(300px, 100%); padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); font-size: 0.875rem; }
.mini b { display: block; font-weight: 600; color: var(--ink); }
.mini small { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.mini p { color: var(--text); }

.mini-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.mini-choices span { padding: 8px 10px; border: 1px solid #d9d6d1; border-radius: 8px; font-weight: 500; }
.mini-choices .picked { animation: pick 5s infinite; }
.cursor { position: absolute; top: 60px; right: 30px; width: 32px; height: 32px; animation: point 5s ease-in-out infinite; }
@keyframes pick { 0%, 38% { border-color: #d9d6d1; background: var(--white); color: var(--text); } 42%, 88% { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); } 94%, 100% { border-color: #d9d6d1; background: var(--white); color: var(--text); } }
@keyframes point { 0%, 8% { transform: translate(46px, 70px); } 34% { transform: translate(0, 0); } 40% { transform: translate(0, 0) scale(0.85); } 46%, 84% { transform: translate(0, 0); } 100% { transform: translate(46px, 70px); } }

.track { height: 8px; margin-top: 16px; border-radius: 4px; background: var(--line); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 4px; background: var(--blue); transform-origin: left; transform: scaleX(0.5); animation: fill 8s ease-in-out infinite; }
.track-labels { display: flex; justify-content: space-between; margin-top: 8px; font-weight: 500; color: var(--ink); }
.track-labels .t2 { animation: reach2 8s infinite; } .track-labels .t3 { animation: reach3 8s infinite; }
@keyframes fill { 0%, 14% { transform: scaleX(0.04); } 28%, 50% { transform: scaleX(0.5); } 64%, 94% { transform: scaleX(1); } 100% { transform: scaleX(0.04); } }
@keyframes reach2 { 0%, 24% { color: var(--muted); } 28%, 96% { color: var(--ink); } 100% { color: var(--muted); } }
@keyframes reach3 { 0%, 60% { color: var(--muted); } 64%, 96% { color: var(--ink); } 100% { color: var(--muted); } }

.typed { width: max-content; max-width: 100%; animation: type 8s linear infinite; }
.typed.t-late { animation-name: type-late; }
@keyframes type { 0%, 4% { clip-path: inset(0 100% 0 0); } 28%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }
@keyframes type-late { 0%, 32% { clip-path: inset(0 100% 0 0); } 56%, 94% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 100% 0 0); } }

.mini-btn { display: inline-block; margin-top: 14px; padding: 8px 18px; border-radius: 8px; background: var(--blue); color: var(--white); font-weight: 600; animation: pulse 2.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(55 84 250 / 35%); } 70%, 100% { box-shadow: 0 0 0 14px rgb(55 84 250 / 0%); } }

.sides { display: grid; gap: 20px; margin-top: 48px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.side-card { padding: 12px 12px clamp(24px, 4vw, 32px); }
.side-card h3, .side-card .checks { margin-inline: clamp(12px, 3vw, 20px); }
.side-card h3 { margin-top: 24px; font-size: 1.1875rem; }
.side-card .checks { margin-top: 20px; }
.side-card .checks li { align-items: flex-start; font-weight: 400; }
.side-card .checks li::before { margin-top: 2px; }

/* ---------- Landing: hero story (tenant sends → request arrives → status moves → tenant is emailed) ---------- */



/* ---------- Landing: "what each person gets" illustrations ---------- */
.side-ill { display: grid; place-items: center; min-height: 176px; padding: 20px 16px; border-radius: 12px; background: var(--panel); overflow: hidden; }
/* A photograph of the person, held in a soft moving shape on a tint of the brand blue, with their piece of the product resting on its corner. */
.side-ill.photo { position: relative; display: block; min-height: 0; padding: 10px 10px 54px; border: 0; background: none; overflow: visible; }
.side-ill.photo::before { content: ''; position: absolute; inset: 0 7% 38px 0; border-radius: 38% 62% 46% 54% / 56% 40% 60% 44%; background: var(--blue-tint); animation: fluid 18s ease-in-out infinite reverse; }
.side-ill.p2::before { inset: 0 0 38px 7%; background: var(--yellow-tint); }
.side-ill.p3::before { background: var(--mint-tint); }
.side-photo { position: relative; display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 30% 70% 62% 38% / 42% 36% 64% 58%; animation: fluid 18s ease-in-out infinite; }
.side-ill.p2 .side-photo { animation-delay: -6s; }
.side-ill.p3 .side-photo { animation-delay: -12s; }
.side-ill.photo .mini { position: absolute; left: 0; bottom: 0; width: min(236px, 76%); padding: 12px 14px; font-size: 0.8125rem; animation: bob 7s ease-in-out infinite; }
.side-ill.p2 .mini { left: auto; right: 0; animation-delay: -2.4s; }
.side-ill.p3 .mini { animation-delay: -4.6s; }
@keyframes fluid { 0%, 100% { border-radius: 30% 70% 62% 38% / 42% 36% 64% 58%; } 33% { border-radius: 58% 42% 36% 64% / 54% 58% 42% 46%; } 66% { border-radius: 42% 58% 54% 46% / 34% 48% 52% 66%; } }
/* Windows are units: each lights up coral, yellow, then mint as its repair moves along. */
@keyframes unit { 0%, 6% { fill: #eef1ff; } 10%, 34% { fill: #ef8566; } 40%, 62% { fill: #fac35e; } 68%, 90% { fill: #a1e3cb; } 100% { fill: #eef1ff; } }
@keyframes travel { 0%, 8% { transform: none; opacity: 0; } 14% { opacity: 1; } 42% { transform: translateX(44px); opacity: 1; } 48%, 100% { transform: translateX(44px); opacity: 0; } }
@keyframes tap { 0%, 2% { transform: none; } 5% { transform: scale(0.9); } 9%, 100% { transform: none; } }
@keyframes tick { 0%, 78% { stroke-dashoffset: 0; } 82%, 90% { stroke-dashoffset: 36; } 100% { stroke-dashoffset: 0; } }

/* ---------- Landing: entrance and scroll motion (landing.js adds .js and the parallax offsets) ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.js [data-reveal] { opacity: 0; translate: 0 22px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js [data-reveal].in { opacity: 1; translate: none; }
[data-parallax] { will-change: translate; }

/* ---------- Landing: illustrations built from the product's own pieces ---------- */
.side-ill .mini, .ill .mini { text-align: left; }
.mini .bar-row { grid-template-columns: 84px 1fr auto; gap: 10px; font-size: 0.8125rem; }
.mini .bars { gap: 9px; margin-top: 4px; }
.bar-track .c-open { background: var(--coral); } .bar-track .c-sched { background: #66c6fa; } .bar-track .c-wait { background: #9999ff; }
.bar-track .g1, .bar-track .g2, .bar-track .g3 { transform-origin: left; animation: grow 7s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
.bar-track .g1 { width: 100%; } .bar-track .g2 { width: 62%; animation-delay: 0.15s; } .bar-track .g3 { width: 34%; animation-delay: 0.3s; }
@keyframes grow { 0%, 4% { transform: scaleX(0.04); } 22%, 92% { transform: scaleX(1); } 100% { transform: scaleX(0.04); } }

/* A cursor with a name tag, as in the reference shot. */
.cursor-tag { position: absolute; display: inline-flex; align-items: flex-start; }
.cursor-tag svg { width: 26px; height: 26px; flex: none; }
.cursor-tag em { margin: 14px 0 0 -4px; padding: 3px 10px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 0.75rem; font-style: normal; font-weight: 600; white-space: nowrap; }
.cursor-tag em.blue { background: var(--blue); color: var(--white); } .cursor-tag em.ink { background: var(--text); color: var(--white); }

.route-people { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.route .person { padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 999px; }
.route .person.chosen { animation: pick 5s infinite; }
.route .cursor-tag { right: 6px; bottom: -22px; animation: nudge 5s ease-in-out infinite; }
@keyframes nudge { 0%, 10% { transform: translate(30px, 26px); opacity: 0; } 36%, 86% { transform: none; opacity: 1; } 100% { transform: translate(30px, 26px); opacity: 0; } }

.kan { padding: 14px; }
.kan-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.kan-cols span { display: grid; align-content: start; gap: 5px; min-height: 96px; padding: 6px; border-radius: 8px; background: var(--panel); }
.kan-cols i { display: block; width: 8px; height: 8px; margin-bottom: 2px; border-radius: 50%; }
.s-open { background: var(--coral); } .s-sched { background: #66c6fa; } .s-prog { background: var(--yellow); } .s-wait { background: #9999ff; } .s-done { background: #4bbf95; }
.kan-cols u { display: block; height: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.kan-card { position: absolute; top: 76px; left: 20px; width: calc((100% - 28px - 24px) / 5 - 12px); height: 14px; border-radius: 4px; background: var(--blue); animation: across 9s cubic-bezier(0.6, 0, 0.2, 1) infinite; }
@keyframes across { 0%, 12% { transform: none; } 20%, 32% { transform: translateX(calc(100% + 18px)); } 40%, 52% { transform: translateX(calc(200% + 36px)); } 60%, 72% { transform: translateX(calc(300% + 54px)); } 80%, 94% { transform: translateX(calc(400% + 72px)); } 100% { transform: none; } }

@keyframes say { 0%, 3% { opacity: 0; transform: translateY(6px); } 8%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes say2 { 0%, 25% { opacity: 0; transform: translateY(6px); } 30%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes say3 { 0%, 50% { opacity: 0; transform: translateY(6px); } 55%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }

.ring { width: 64px; height: 64px; flex: none; }
.ring-arc { stroke-dashoffset: 12; animation: ring 7s cubic-bezier(0.2, 0.7, 0.2, 1) infinite; }
@keyframes ring { 0%, 4% { stroke-dashoffset: 100; } 30%, 92% { stroke-dashoffset: 12; } 100% { stroke-dashoffset: 100; } }
.mini.plan { display: flex; align-items: center; gap: 16px; }
.mini.plan p { font-size: 0.8125rem; }
.rep-top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.rep-top b { font-size: 1.375rem; letter-spacing: -0.03em; } .rep-top small { margin: 0; text-transform: none; letter-spacing: 0; font-weight: 400; }
.steps-mini { display: grid; grid-template-columns: repeat(4, auto); gap: 6px; margin-top: 12px; }
.steps-mini span { padding: 5px 0; border: 1px solid var(--line); border-radius: 8px; font-size: 0.6875rem; font-weight: 500; text-align: center; animation: stepon 8s infinite; }
.steps-mini span:nth-child(2) { animation-delay: 2s; } .steps-mini span:nth-child(3) { animation-delay: 4s; } .steps-mini span:nth-child(4) { animation-delay: 6s; }
@keyframes stepon { 0%, 22% { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); } 25%, 100% { border-color: var(--line); background: var(--white); color: var(--text); } }

/* Closing section: a loose stack of real job pieces. */
.collage { position: relative; width: min(440px, 100%); height: 340px; justify-self: center; font-size: 0.875rem; }
.collage > .card { position: absolute; padding: 16px; box-shadow: 0 12px 40px rgb(13 11 9 / 10%); }
.collage b { display: block; color: var(--ink); font-weight: 600; }
.collage .tag { justify-self: start; }
.collage small { display: block; color: var(--muted); font-size: 0.8125rem; }
.co-ring { top: 0; left: 0; display: flex; align-items: center; gap: 14px; width: 232px; }
.co-ring b { font-size: 1.375rem; letter-spacing: -0.03em; }
.co-job { top: 96px; right: 0; display: grid; gap: 6px; width: 250px; }
.co-job .row { margin-top: 6px; flex-wrap: nowrap; }
.co-msg { position: absolute; left: 8px; bottom: 58px; max-width: 230px; }
.collage > .co-done { right: 28px; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.co-c1 { top: 40px; left: 268px; animation: bob 5s ease-in-out infinite; }
.co-c2 { left: 24px; bottom: 4px; animation: bob 6s ease-in-out -2s infinite; }
@media (max-width: 480px) { .collage { height: 360px; } .co-ring { width: 210px; } .co-job { width: 220px; top: 104px; } .co-c1 { top: 66px; left: 216px; } }

/* ---------- Landing: hero scene in layers (landing.js moves each layer with the scroll and the pointer) ---------- */
.hero > .pill, .hero h1, .hero .lede, .hero > .row { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero h1 { animation-delay: 0.06s; } .hero .lede { animation-delay: 0.12s; } .hero > .row { animation-delay: 0.18s; }
.depth { position: relative; z-index: 1; width: min(960px, 100%); height: 400px; margin: clamp(40px, 6vw, 64px) auto 0; text-align: left; }
.d-layer { will-change: translate; animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.d-board { animation-delay: 0.25s; } .d-toast { animation-delay: 0.7s; }
@keyframes settle { from { opacity: 0; transform: translateY(36px) scale(0.97); } }
.d-board { position: absolute; top: 28px; left: 0; right: 0; padding: 24px 24px 60px; border-radius: 20px 20px 0 0; border-bottom: 0; }
.d-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.d-head b { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.mini-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; align-items: start; }
.mini-board .col { min-height: 270px; padding: 12px; gap: 8px; }
.mini-board .kcard { padding: 12px; cursor: default; font-size: 0.875rem; }
.mini-board .kcard .sub, .mini-board .due { font-size: 0.6875rem; }
.mini-board .status { padding: 2px 8px; font-size: 0.6875rem; }
.mini-board .kfoot { margin-top: 4px; min-height: 0; }
.mini-board .person { font-size: 0.6875rem; } .mini-board .person i { width: 20px; height: 20px; font-size: 0.5625rem; }
/* One job leaves Open and turns up under Scheduled, over and over. */
.mini-board .leaves { animation: leave 9s ease-in-out infinite; }
.mini-board .arrives { animation: arrive 9s ease-in-out infinite; }
@keyframes leave { 0%, 30% { opacity: 1; transform: none; } 38%, 92% { opacity: 0; transform: translateX(44px); } 100% { opacity: 1; transform: none; } }
@keyframes arrive { 0%, 34% { opacity: 0; transform: translateX(-44px); } 44%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-44px); } }
.d-toast { position: absolute; top: -2px; right: -28px; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 999px; box-shadow: 0 12px 36px rgb(13 11 9 / 12%); font-size: 0.8125rem; }
.d-toast svg { width: 20px; height: 20px; color: var(--blue); }
.d-toast b { display: block; color: var(--ink); font-weight: 600; } .d-toast small { color: var(--muted); }
@media (max-width: 900px) {
  .depth { height: auto; }
  .d-board { position: static; width: 100%; margin: 0; padding-bottom: 20px; }
  .d-toast { position: static; width: fit-content; margin: 0 0 12px auto; }
  .mini-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mini-board .c3, .mini-board .c4 { display: none; }
  .mini-board .col { min-height: 190px; }
}

/* ---------- Landing: a week on the board, driven by the scroll ---------- */
.week { padding: clamp(16px, 3vw, 32px); margin-top: 48px; }
.week-scroll { overflow-x: auto; }
.week-cols, .week-lane { min-width: 680px; }
.week-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.week-cols > div { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 12px 12px 0 0; background: rgb(13 11 9 / 3.5%); }
.week-cols b { color: var(--muted); font-size: 0.875rem; font-weight: 500; }
.week-lane { --colw: calc((100% - 40px) / 5); position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; height: 300px; border-radius: 0 0 12px 12px; background: repeating-linear-gradient(90deg, rgb(13 11 9 / 3.5%) 0 var(--colw), transparent 0 calc(var(--colw) + 10px)); }
.wk { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); box-shadow: 0 1px 2px rgb(13 11 9 / 5%); }
.wk b { display: block; overflow: hidden; color: var(--ink); font-size: 0.8125rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wk small { display: block; color: var(--muted); font-size: 0.6875rem; }
.wk.planned { border-color: #dbe1ff; background: var(--blue-tint); }
/* With JavaScript, each card is placed by column and row and glides when either changes. */
.js .week-lane { display: block; }
.js .wk { position: absolute; top: calc(8px + var(--row, 0) * 62px); left: calc(var(--col, 0) * ((100% - 40px) / 5 + 10px) + 6px); width: calc((100% - 40px) / 5 - 12px); transition: left 0.7s cubic-bezier(0.3, 0.9, 0.3, 1), top 0.5s cubic-bezier(0.3, 0.9, 0.3, 1), box-shadow 0.3s; }
.js .wk.moving { box-shadow: 0 10px 28px rgb(13 11 9 / 14%); }
.week-foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 0.875rem; }
.week-foot b { color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; }
.week-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.week-bar i { display: block; width: 100%; height: 100%; border-radius: 3px; background: #4bbf95; transform-origin: left; transform: scaleX(var(--done, 1)); transition: transform 0.6s ease; }

/* Icons that draw themselves when their row scrolls into view. */
.draw { display: block; width: 28px; height: 28px; margin-bottom: 10px; fill: none; stroke: var(--blue); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.draw path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s; }
.js .strip > div:not(.in) .draw path, .js .kinds li:not(.in) .draw path { stroke-dashoffset: 1; }

/* ---------- Landing: the repair story. One step per screen; the section holds still and scrolling turns the page. ---------- */
/* Without JavaScript, or with reduced motion, or on a very short screen, it is simply a list of five steps with the first picture. */
.repair-story { padding: clamp(64px, 9vw, 104px) 0; }
.story-pin { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.story-copy h2 { margin-top: 16px; font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
.story-rail { display: flex; gap: 6px; margin: 28px 0 0; padding: 0; list-style: none; }
.story-rail button { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font-size: 0.8125rem; font-weight: 500; cursor: pointer; transition: background-color 0.3s, border-color 0.3s, color 0.3s; }
.story-rail i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--panel); color: var(--text); font-style: normal; font-weight: 600; transition: background-color 0.3s, color 0.3s; }
.story-rail span { display: none; }
.story-rail .on { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); padding-right: 14px; }
.story-rail .on span { display: inline; }
.story-rail .on i, .story-rail .passed i { background: var(--blue); color: var(--white); }
.story-text { margin-top: 28px; }
.story-text h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; color: var(--ink); }
.story-text h3 span { display: block; margin-bottom: 10px; color: var(--blue); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.story-text p { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 1.125rem; }
.story-stage { position: relative; display: grid; place-items: center; min-height: 460px; padding: clamp(16px, 3vw, 32px); overflow: hidden; background: var(--panel) repeating-linear-gradient(135deg, transparent 0 12px, rgb(13 11 9 / 3.5%) 12px 13px); }
.scene { display: none; width: 100%; height: 100%; place-items: center; }
.scene:first-child { display: grid; }

@media (min-height: 520px) {
  .js .repair-story { height: 460vh; padding: 0; }
  .js .story-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; padding-block: 24px; }
  .js .story-texts { position: relative; min-height: 230px; }
  .js .story-text { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(18px); pointer-events: none; transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .story-text.on { opacity: 1; transform: none; pointer-events: auto; }
  .js .story-stage { height: min(78vh, 640px); min-height: 0; }
  .js .scene { position: absolute; inset: 0; display: grid; padding: clamp(16px, 3vw, 32px); opacity: 0; transform: translateY(28px) scale(0.98); pointer-events: none; transition: opacity 0.45s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
  .js .scene.on { opacity: 1; transform: none; }
  /* Inside a scene, the pieces arrive one after another once it is on screen. */
  .js .scene [class*=" a"], .js .scene [class^="a"] { opacity: 0; transform: translateY(12px); transition: opacity 0.45s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.4s, border-color 0.4s, color 0.4s; }
  .js .scene.on .a1 { opacity: 1; transform: none; transition-delay: 0.25s; }
  .js .scene.on .a2 { opacity: 1; transform: none; transition-delay: 0.55s; }
  .js .scene.on .a3 { opacity: 1; transform: none; transition-delay: 0.85s; }
  .js .scene.on .a4 { opacity: 1; transform: none; transition-delay: 1.15s; }
}

/* Pieces the scenes are made of. */
/* The phone is sized from the screen height, so it always fits its stage. */
.scene .phone { width: auto; height: min(78vh - 72px, 540px); min-height: 300px; }
.scene .phone .island { width: 32%; height: 20px; margin-left: -16%; }
.scene .phone .phone-status { padding-inline: 18px; }
@media (max-width: 900px) { .scene .phone { height: min(100dvh - 330px, 480px); padding: 8px; border-radius: 40px; } .scene .phone .phone-screen { border-radius: 32px; } .scene .mock-thumbs { display: none; } .scene .phone-app { gap: 8px; padding-top: 8px; } .scene .phone-app h4 { font-size: 1rem; } }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-chip { display: grid; gap: 1px; padding: 8px 10px; border: 1px solid #d9d6d1; border-radius: 10px; background: var(--white); color: var(--text); font-size: 0.8125rem; font-weight: 500; text-align: center; }
.mock-chip i { color: var(--muted); font-size: 0.6875rem; font-style: normal; font-weight: 400; }
.mock-chip.free { border-color: #9bd8bf; background: var(--mint-tint); } .mock-chip.free i { color: #1f7a56; }
.mock-chip.full { border-color: #f3b8a8; background: #fdecec; color: #8f2a17; } .mock-chip.full i { color: #a8321a; }
.mock-chip.pick { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue); } .mock-chip.pick i { color: var(--blue-dark); }
.mock-field { padding: 9px 10px; border: 1px solid #d9d6d1; border-radius: 10px; background: var(--white); color: var(--text); font-size: 0.75rem; line-height: 1.4; }
.mock-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mock-thumbs i, .mock-photo { display: grid; place-items: center; aspect-ratio: 1; border-radius: 8px; background: var(--white) repeating-linear-gradient(135deg, transparent 0 6px, rgb(13 11 9 / 8%) 6px 7px); border: 1px solid var(--line); color: var(--muted); font-style: normal; }
.mock-thumbs .add { border-style: dashed; background: var(--white); }
.mock-photo { width: 120px; margin-bottom: 6px; border-color: rgb(255 255 255 / 40%); }
.mock-row { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin: 8px 0 18px; }
.sc-stack { display: grid; gap: 16px; width: min(460px, 100%); }
.sc-card { display: grid; gap: 6px; width: min(460px, 100%); padding: 20px; box-shadow: 0 16px 48px rgb(13 11 9 / 10%); }
.sc-card small, .sc-list small { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.sc-card b { color: var(--ink); font-size: 1.0625rem; font-weight: 600; }
.sc-card .status { width: fit-content; }
.sc-list { padding: 6px; box-shadow: 0 16px 48px rgb(13 11 9 / 10%); }
.sc-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; font-size: 0.875rem; }
.sc-row em { color: var(--muted); font-size: 0.8125rem; font-style: normal; }
.sc-row.chosen { background: var(--blue-tint); box-shadow: inset 0 0 0 1px var(--blue); }
.sc-row em.yes { color: var(--blue-dark); font-weight: 600; }
.sc-sched .sent { margin: 0; }
.sc-chat { display: flex; flex-direction: column; gap: 6px; padding: 18px; background: var(--white); box-shadow: 0 16px 48px rgb(13 11 9 / 10%); }
.sc-chat .msg.mine p { color: var(--white); }
.sc-chat .msg:not(.mine) .msg-bubble { background: var(--panel); }
.sc-cost { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(320px, 100%); margin-left: auto; padding: 14px 18px; box-shadow: 0 16px 48px rgb(13 11 9 / 10%); font-size: 0.9375rem; }
.sc-cost small { display: block; color: var(--muted); font-size: 0.8125rem; } .sc-cost b { color: var(--ink); font-size: 1.125rem; }
.sc-record .record { padding: 12px 0; } .sc-record .record:first-of-type { border-top: 0; } .sc-record .status { position: absolute; top: 12px; right: 0; }

@media (max-width: 900px) {
  .story-pin { grid-template-columns: 1fr; gap: 20px; align-items: start; }
  .story-stage { order: -1; min-height: 380px; }
  .story-copy .pill, .story-copy h2 { display: none; }
  .story-rail { margin-top: 0; }
  .story-text { margin-top: 18px; } .story-text p { font-size: 1rem; max-width: none; }
}
@media (max-width: 900px) and (min-height: 520px) {
  .js .story-pin { grid-template-rows: minmax(0, 1fr) auto; padding: 12px 0 20px; }
  .js .story-stage { height: auto; min-height: 0; align-self: stretch; }
  .js .story-texts { min-height: 150px; }
}

/* ---------- Landing: the five-step flow and the "also included" list ---------- */
.included { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(28px, 5vw, 56px); }
.included h2 { margin-top: 16px; font-size: clamp(1.5rem, 3vw, 2rem); }
.incl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin: 0; }
.incl dt { font-weight: 600; color: var(--ink); }
.incl dd { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; }
@media (max-width: 1040px) { .included { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .incl { grid-template-columns: 1fr; } }

/* ---------- Landing: "set up in three steps" illustrations ---------- */
.step .ill { height: 204px; margin-bottom: 24px; }
.step .mini { width: min(280px, 100%); }
.step .num { width: 36px; height: 36px; border-radius: 10px; background: var(--white); font-size: 0.875rem; }
.step h3 { margin-top: 14px; }
.fake-stepper { display: inline-grid; grid-template-columns: 40px 64px 40px; align-items: center; margin: 4px 0 12px; border: 1px solid #d9d6d1; border-radius: var(--radius-sm); text-align: center; font-size: 1.125rem; }
.fake-stepper .cycle { justify-items: center; padding: 8px 0; border-inline: 1px solid var(--line); font-size: 1.25rem; }
.setup-units .cycle { display: inline-grid; }
.setup-units .cycle i { font-style: normal; }
.setup-units p .cycle { justify-items: start; font-size: 1.375rem; letter-spacing: -0.03em; vertical-align: bottom; }
.setup-people { display: grid; gap: 8px; }
.row-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 0.8125rem; transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.row-in:nth-child(1) { transition-delay: 0.3s; } .row-in:nth-child(2) { transition-delay: 0.55s; } .row-in:nth-child(3) { transition-delay: 0.8s; }
.js .step:not(.in) .row-in { opacity: 0; transform: translateY(8px); }

/* ---------- Landing: a phone, drawn to real proportions (9 : 19.5, like a current handset) ---------- */
.phone { position: relative; flex: none; justify-self: center; width: min(280px, 78vw); aspect-ratio: 9 / 19.5; padding: 10px; border-radius: 48px; background: var(--text); box-shadow: 0 0 0 1px #3a3835 inset, 0 30px 70px rgb(13 11 9 / 22%); }
.phone::before { content: ""; position: absolute; top: 120px; right: -3px; width: 3px; height: 64px; border-radius: 0 2px 2px 0; background: var(--text); }
.phone-screen { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 38px; background: var(--panel); overflow: hidden; font-size: 0.8125rem; }
.phone-status { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px 8px; color: var(--ink); font-size: 0.75rem; font-weight: 600; }
.phone-status svg { width: 44px; height: 12px; }
.island { position: absolute; top: 11px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 12px; background: var(--ink); }
.phone-app { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 0; min-height: 0; }
.phone-app h4 { margin: 4px 2px 2px; color: var(--ink); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.03em; }
.phone-app .item { padding: 11px 12px; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.phone-app .item + .item { border-top: 1px solid var(--line); }
.phone-app .title { font-size: 0.8125rem; } .phone-app .sub { font-size: 0.6875rem; } .phone-app .status { padding: 2px 8px; font-size: 0.6875rem; }
.phone .phone-app .btn { margin-top: auto; min-height: 46px; border-radius: 14px; }
.phone-home { align-self: center; width: 104px; height: 5px; margin: 10px 0 8px; border-radius: 3px; background: var(--ink); }
/* A notification drops in from the top, as it would on the lock screen. */
.phone-push { display: flex; margin: 4px 10px 0; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 10px 30px rgb(13 11 9 / 16%); animation: drop 9s cubic-bezier(0.2, 0.8, 0.2, 1) infinite; }
.phone-push svg { flex: none; width: 30px; height: 30px; }
.phone-push b { display: block; color: var(--ink); font-size: 0.75rem; font-weight: 600; } .phone-push small { color: var(--muted); font-size: 0.6875rem; }
@keyframes drop { 0%, 10% { opacity: 0; transform: translateY(-60px); } 18%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-60px); } }
.pocket { margin-top: clamp(24px, 4vw, 40px); }

/* ---------- Landing: API + closing sections ---------- */
.split { display: grid; gap: clamp(28px, 5vw, 56px); padding: clamp(28px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: center; }
.split h2 { margin-top: 16px; }
.split .lede { margin: 16px 0 0; max-width: 46ch; color: var(--muted); font-size: 1.0625rem; }
.split .btn { margin-top: 28px; }
.gap-top, .cta { margin-top: clamp(24px, 4vw, 40px); }
.cta { margin-bottom: clamp(48px, 7vw, 80px); }
.cta h2 { margin-top: 0; }
.code { margin: 0; padding: 22px 24px; border-radius: var(--radius); background: var(--text); color: #f3f1ee; font: 0.8125rem/1.7 ui-monospace, "SF Mono", Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; box-shadow: var(--shadow); }
.code .c-dim { color: #9c9995; } .code .c-key { color: #8fd3fb; } .code .c-str { color: #a1e3cb; }

@keyframes glow { 50% { transform: scale(1.35); opacity: 0.12; } }
@keyframes sway { 50% { transform: rotate(4deg); } }

/* ---------- Docs ---------- */
.docs { width: min(760px, 100% - 32px); margin: 0 auto; padding: 24px 0 80px; }
.docs h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin-top: 32px; }
.docs h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.docs h3 { margin-top: 32px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9375rem; letter-spacing: 0; }
.docs h3 .verb { display: inline-block; margin-right: 8px; padding: 2px 8px; border-radius: 6px; background: var(--blue-tint); color: var(--blue-dark); font-size: 0.75rem; }
.docs p, .docs ul { margin-top: 12px; }
.docs ul { padding-left: 20px; }
.docs li + li { margin-top: 6px; }
.docs .code { margin-top: 16px; }
.docs code:not(.code code) { padding: 2px 6px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line); font: 0.875em ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.docs table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 0.9375rem; }
.docs th, .docs td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs th { font-weight: 600; color: var(--ink); }

.legal h2 { scroll-margin-top: 24px; }
.toc { margin-top: 28px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 0.9375rem; }
.toc li { margin: 0 0 6px; break-inside: avoid; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

/* ---------- App: messages, hand-off, sections ---------- */
.sent { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--mint-tint); font-weight: 500; }
.subsection { margin-top: 48px; }
.subsection h2 { font-size: 1.375rem; letter-spacing: -0.02em; }
.subsection > p { margin: 4px 0 20px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }

/* ---------- Brand guide and press kit ---------- */
.docs.kit { width: min(960px, 100% - 32px); }
.kit .lead { font-size: 1.25rem; line-height: 1.45; color: var(--ink); }
.kit h3.plain { font-family: inherit; font-size: 1.0625rem; }
.kit table th { width: 9.5em; color: var(--muted); font-weight: 500; }
.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.assets.wide { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.asset { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.asset-view { display: grid; place-items: center; height: 190px; padding: 16px; background: var(--panel); border-bottom: 1px solid var(--line); }
.asset-view.dark { background: var(--text); }
.asset-view img { max-width: 100%; max-height: 158px; border-radius: 6px; }
.assets.wide .asset-view { height: 240px; }
.assets.wide .asset-view img { max-height: 208px; box-shadow: var(--shadow); }
.asset figcaption { display: grid; gap: 2px; padding: 14px 16px; font-size: 0.875rem; }
.asset figcaption span { color: var(--muted); }
.asset-links { display: flex; gap: 12px; margin-top: 6px; font-weight: 600; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin-top: 20px; }
.swatch { display: grid; gap: 2px; font-size: 0.875rem; }
.swatch i { display: block; height: 76px; margin-bottom: 8px; border-radius: 12px; }
.swatch i.edge { border: 1px solid var(--line); }
.swatch code { width: fit-content; }
.swatch span { color: var(--muted); font-size: 0.8125rem; }
.swatch .c-3754fa { background: #3754fa; } .swatch .c-0d0b09 { background: #0d0b09; } .swatch .c-1d1c1a { background: #1d1c1a; } .swatch .c-6f6d6b { background: #6f6d6b; } .swatch .c-faf9f8 { background: #faf9f8; } .swatch .c-ffffff { background: #ffffff; } .swatch .c-ebe9e6 { background: #ebe9e6; } .swatch .c-ef8566 { background: #ef8566; } .swatch .c-66c6fa { background: #66c6fa; } .swatch .c-fac35e { background: #fac35e; } .swatch .c-9999ff { background: #9999ff; } .swatch .c-4bbf95 { background: #4bbf95; }
.specimen { margin-top: 20px; padding: clamp(20px, 4vw, 36px); border-radius: var(--radius); background: var(--panel); }
.specimen p { margin: 0; }
.spec-h { font-size: clamp(1.75rem, 5vw, 2.75rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; color: var(--ink); }
.specimen .spec-b { margin-top: 14px; max-width: 52ch; font-size: 1.0625rem; color: var(--muted); }
.specimen .spec-s { margin-top: 18px; font-size: 0.8125rem; font-weight: 500; color: var(--text); }

/* ---------- App: API keys ---------- */
.key-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 20px; }
.key-form label { flex: 1; min-width: 200px; }
.secret { padding: 16px 20px; margin-bottom: 20px; border: 1px solid #bfe8d6; border-radius: var(--radius-sm); background: var(--mint-tint); }
.secret code { display: block; margin: 10px 0 14px; padding: 10px 12px; border-radius: 8px; background: var(--white); border: 1px solid var(--line); font: 0.875rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-wrap: anywhere; }

@media (max-width: 900px) { .float { display: none; } }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .features { grid-template-columns: 1fr; } }

/* ---------- App: sidebar that folds down to icons until the mouse is over it ---------- */
@media (min-width: 761px) and (hover: hover) {
  .app { grid-template-columns: 72px 1fr; }
  .side { position: fixed; z-index: 5; top: 0; bottom: 0; left: 0; width: 72px; overflow: hidden; transition: width 0.18s ease, box-shadow 0.18s ease; }
  .side button, .side .logo { white-space: nowrap; overflow: hidden; }
  .side .logo svg, .side button svg { flex: none; }
  .side .logo { padding-left: 6px; }
  .side:hover, .side:focus-within { width: 232px; box-shadow: 12px 0 40px rgb(13 11 9 / 8%); }
  .main { grid-column: 2; }
}

/* ---------- App: request photos ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.gallery figcaption { display: flex; justify-content: space-between; gap: 6px; margin-top: 4px; color: var(--muted); font-size: 0.75rem; }
.gallery button { padding: 0; border: 0; background: none; color: var(--muted); font-size: 0.75rem; cursor: pointer; }
.gallery button:hover { color: #a8321a; }
.col.bare { min-height: 96px; }

/* ---------- App: popup sub-tabs, bell, tags ---------- */
dialog .tabs { position: sticky; z-index: 1; top: 12px; display: flex; width: fit-content; max-width: calc(100% - 52px); margin-bottom: 0; box-shadow: 0 1px 2px rgb(13 11 9 / 4%); }
dialog .tabs button { min-height: 40px; }
.side button { position: relative; }
.badge { position: absolute; top: 4px; left: 26px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border: 2px solid var(--white); border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 0.6875rem; font-weight: 600; line-height: 1; }
.item.unread .title::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }
.tag { align-self: flex-start; padding: 2px 8px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-dark); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: end; }
.check.all { margin-top: 12px; font-weight: 500; }

/* ---------- App: chat ---------- */
.chat { display: flex; flex-direction: column; height: clamp(340px, 100dvh - 300px, 640px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.chat-list { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.chat-day { align-self: center; margin: 10px 0 6px; padding: 2px 10px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.chat-empty { margin: auto; max-width: 30ch; text-align: center; color: var(--muted); }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: min(78%, 460px); }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.first { margin-top: 10px; }
.msg-who { margin: 0 0 3px 12px; color: var(--muted); font-size: 0.75rem; font-weight: 500; }
.msg-bubble { padding: 8px 12px 6px; border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; background: var(--white); }
.msg.mine .msg-bubble { border-color: var(--blue); border-radius: 18px 18px 6px 18px; background: var(--blue); color: var(--white); }
.msg-bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-bubble img { max-width: min(240px, 100%); max-height: 260px; margin: 2px 0 6px; border-radius: 12px; }
.msg-bubble time { display: block; margin-top: 1px; font-size: 0.6875rem; text-align: right; opacity: 0.7; }
.chat > .error { padding: 6px 16px; background: var(--white); }
.chat-attached { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--white); font-size: 0.875rem; }
.chat-attached img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.chat-attached span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-attached button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--panel); font-size: 1.125rem; cursor: pointer; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--white); }
.chat-compose textarea { flex: 1; min-width: 0; min-height: 44px; max-height: 140px; padding: 10px 16px; border: 1px solid #d9d6d1; border-radius: 22px; background: var(--panel); line-height: 1.4; resize: none; }
.chat-compose textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; border-color: var(--blue); background: var(--white); }
.chat-attach, .chat-send { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; }
.chat-attach { background: none; color: var(--muted); }
.chat-attach:hover { background: var(--panel); color: var(--text); }
.chat-send { background: var(--blue); color: var(--white); }
.chat-send:hover { background: var(--blue-dark); }
.chat-send[disabled] { opacity: 0.55; }
.chat-attach svg, .chat-send svg { width: 20px; height: 20px; }

/* ---------- App: wide popups lay their forms out in columns ---------- */
dialog form.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px 24px; align-items: end; }
dialog form.stack > * { margin-top: 0; }
dialog form.stack > :not(label), dialog form.stack > label:has(textarea), dialog form.stack > label.check, dialog form.stack > label.wide { grid-column: 1 / -1; }
dialog form.stack > .btn { justify-self: start; }
dialog .choices { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
dialog .segmented { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.item[disabled] { cursor: default; }
.due { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.due.late { color: #a8321a; }

/* ---------- Hints ---------- */
.hint-tip { position: fixed; z-index: 100; max-width: min(280px, calc(100vw - 16px)); padding: 9px 12px 9px 34px; border-radius: 10px; background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Crect width='28' height='28' rx='8' fill='%233754fa'/%3E%3Cpath d='M7 20.5h5v-4.3h4.5v-4.3H21' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat 10px 10px / 16px; color: var(--white); font-size: 0.8125rem; font-weight: 500; line-height: 1.4; box-shadow: 0 8px 24px rgb(13 11 9 / 18%); pointer-events: none; animation: hint-in 0.14s ease-out; }
.hint-tip::after { content: ""; position: absolute; top: -4px; left: var(--arrow, 50%); width: 10px; height: 10px; margin-left: -5px; border-radius: 2px; background: var(--text); transform: rotate(45deg); }
.hint-tip.above::after { top: auto; bottom: -4px; }
@keyframes hint-in { from { opacity: 0; transform: translateY(3px); } }

/* ---------- App: reports ---------- */
.stats { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat b { margin-bottom: 4px; }
.report-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 16px; }
.report { padding: 20px; }
.report h3 { margin-bottom: 16px; }
.mini-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mini-stats .stat { padding: 12px 14px; box-shadow: none; }
.mini-stats .stat b { font-size: 1.5rem; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(124px, 0.9fr) 2fr auto; gap: 12px; align-items: center; font-size: 0.875rem; }
.bar-label { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.bar-track i { display: block; height: 8px; border-radius: 4px; background: var(--blue); }
.bar-row b { font-weight: 500; color: var(--ink); white-space: nowrap; }
.table { display: grid; font-size: 0.875rem; }
.tr { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.tr.th { padding-top: 0; border-top: 0; color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tr span:not(:first-child) { text-align: right; }
.main > header select.field { width: auto; margin-top: 0; min-height: 44px; }
@media (max-width: 760px) { .tr { grid-template-columns: 1.4fr repeat(4, 0.8fr); font-size: 0.8125rem; } .tr.th { font-size: 0.625rem; } .bar-row { grid-template-columns: 1fr auto; } .bar-track { grid-column: 1 / -1; order: 3; } }

/* ---------- App: scheduler, locations, phone card ---------- */
.scheduler { margin: 12px 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.scheduler .label { margin-bottom: 0; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(88px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.days .choice, .slots .choice { display: grid; gap: 1px; min-height: 56px; padding: 8px 10px; text-align: center; }
.choice b { font-weight: 600; }
.choice small { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 400; }
/* Availability at a glance: green can be booked, red cannot. The words "free" and "Full" say the same thing. */
.scheduler .choice.free, .visit .choice.free { border-color: #9bd8bf; background: var(--mint-tint); }
.scheduler .choice.free small, .visit .choice.free small { color: #1f7a56; font-weight: 500; }
.scheduler .choice.full { border-color: #f3b8a8; background: #fdecec; color: #8f2a17; }
.scheduler .choice.full small { color: #a8321a; font-weight: 500; }
.scheduler .choice.free:hover, .visit .choice.free:hover { border-color: #4bbf95; }
.scheduler .choice[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue); }
.scheduler .choice[aria-pressed="true"] small { color: var(--blue-dark); }
.scheduler .choices .choice:not([aria-pressed="true"]) { border-color: #d9d6d1; background: var(--white); }
.choice[disabled] { cursor: not-allowed; }
.legend { display: flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.legend i.free { background: #4bbf95; } .legend i.full { margin-left: 12px; background: #e0705a; }
input.search { min-height: 56px; font-size: 1.125rem; }
.link { padding: 0; border: 0; background: none; color: var(--blue); font-weight: 600; cursor: pointer; }
.loc { margin-bottom: 20px; overflow: hidden; }
.loc-head { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; min-height: 104px; padding: 20px; border-bottom: 1px solid var(--line); background: var(--white) repeating-linear-gradient(135deg, transparent 0 10px, rgb(13 11 9 / 4%) 10px 11px); }
.loc-head.has-cover { min-height: 200px; }
.loc-head img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* A scrim so the name stays readable over any photo. */
.loc-head.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 30%, rgb(13 11 9 / 62%)); }
.loc-text, .loc-head .btn { position: relative; z-index: 1; }
.loc-text h3 { font-size: 1.25rem; }
.loc-text p { color: var(--muted); font-size: 0.875rem; }
.has-cover .loc-text h3, .has-cover .loc-text p { color: var(--white); }
.loc .list .item:first-child { border-top: 0; }
.loc-empty { padding: 20px; }
.phone-card { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; padding: 16px 20px; }
.phone-mark svg { display: block; width: 44px; height: 44px; }
.phone-card .grow { flex: 1; min-width: 220px; }
button.tr { width: 100%; border: 0; border-top: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
button.tr:hover { background: var(--panel); }
.tr.two { grid-template-columns: 1fr auto; }
.tr small { display: block; color: var(--muted); font-size: 0.8125rem; }
.main > header .row { flex-wrap: wrap; justify-content: flex-end; }

/* ---------- App: calmer forms. Groups of options are chips, and each group is its own quiet block. ---------- */
dialog fieldset { padding-top: 20px; border-top: 1px solid var(--line); }
dialog fieldset .hint { margin-top: 2px; }
.skills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.skills .check { position: relative; gap: 0; padding: 8px 14px; border: 1px solid #d9d6d1; border-radius: 999px; background: var(--white); font-size: 0.9375rem; font-weight: 500; transition: background-color 0.15s, border-color 0.15s; }
.skills .check:hover { border-color: var(--blue); }
.skills .check input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.skills .check:has(input:checked) { border-color: var(--blue); background: var(--blue-tint); color: var(--blue-dark); }
.skills .check:has(input:checked) span::before { content: "✓ "; }
.skills .check:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.check.all { width: fit-content; }
.settings { width: 100%; padding: clamp(20px, 4vw, 32px); }
.settings h3 + p { margin-top: 2px; }
.settings .btn { align-self: flex-start; width: fit-content; }
.window { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.window .field { width: auto; margin-top: 0; min-height: 44px; }
.window select:first-child { flex: 1; min-width: 180px; }
.visit .choices .choice { display: grid; gap: 2px; }

/* ---------- App: job board, people, costs, records ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(232px, 1fr); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.col { display: flex; flex-direction: column; gap: 10px; min-height: 180px; padding: 12px; border: 1px solid transparent; border-radius: var(--radius); background: rgb(13 11 9 / 3.5%); }
.col.over { border: 1px dashed var(--blue); background: var(--blue-tint); }
.col > header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 4px; }
.kcard { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 1px 2px rgb(13 11 9 / 4%); text-align: left; cursor: grab; }
.kcard:hover { border-color: #d5d2cd; }
.kcard .title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-weight: 600; color: var(--ink); }
.kcard .sub { font-size: 0.8125rem; color: var(--muted); word-spacing: 0.12em; }
.kfoot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; margin-top: 8px; }
.kfoot .cost { margin-left: auto; font-weight: 600; color: var(--ink); }
.col-empty { padding: 20px 4px; text-align: center; }
.board-hint { margin-top: 16px; }
.person { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 500; color: var(--text); }
.person i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-tint); color: var(--blue-dark); font-style: normal; font-size: 0.6875rem; font-weight: 600; }
.title .person { font-size: inherit; font-weight: inherit; color: inherit; }
.item.off { opacity: 0.55; }
select.field { appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%236f6d6b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; }
input[type="file"].field { padding: 9px; font-size: 0.875rem; color: var(--muted); }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; font-weight: 500; font-size: 0.9375rem; color: var(--ink); }
.hint { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.line { display: flex; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.line .grow { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.line small { display: block; color: var(--muted); font-size: 0.8125rem; }
.line.total { font-weight: 600; color: var(--ink); }
.line button, .record button { padding: 4px; border: 0; background: none; color: var(--muted); font-size: 0.8125rem; cursor: pointer; }
.line button:hover, .record button:hover { color: #a8321a; }
.cost-form { display: grid; grid-template-columns: 1fr 120px; gap: 8px; }
.cost-form .field { margin-top: 0; }
.cost-form select { grid-column: 1 / -1; }
.record { position: relative; padding: 10px 56px 10px 0; border-top: 1px solid var(--line); }
.record p { white-space: pre-wrap; overflow-wrap: anywhere; }
.record small { color: var(--muted); font-size: 0.8125rem; }
.record button { position: absolute; top: 8px; right: 0; }
@media (max-width: 760px) {
  .board { grid-auto-columns: 86%; scroll-snap-type: x mandatory; }
  .col { scroll-snap-align: start; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  /* Phone navigation: a top bar with the logo, the bell and Menu. Menu opens everything else as a full-screen list. */
  .side { position: sticky; top: 0; z-index: 6; flex-direction: row; align-items: center; gap: 4px; padding: 8px 12px 8px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .logo { padding: 0; margin-right: auto; }
  .side > button, .side > hr, .side > .spacer { display: none; }
  .side > .menu-btn, .side > [data-tour="bell"] { display: flex; width: auto; }
  .side > [data-tour="bell"] { order: 1; padding: 0 12px; font-size: 0; gap: 0; }
  .side > [data-tour="bell"] .badge { font-size: 0.6875rem; }
  .side > .menu-btn { order: 2; color: var(--text); }
  .side.open { position: fixed; inset: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 8px 16px 24px; overflow-y: auto; border-bottom: 0; }
  .side.open .logo { min-height: 44px; margin: 0 0 8px; align-self: flex-start; }
  .side.open > button { display: flex; width: 100%; min-height: 48px; font-size: 1rem; order: 0; }
  .side.open > [data-tour="bell"] { padding: 0 12px; gap: 12px; }
  .side.open > hr { display: block; }
  .side.open > .menu-btn { position: absolute; top: 8px; right: 12px; width: auto; min-height: 44px; }
  .stats { gap: 8px; } .stat { padding: 12px 14px; } .stat b { font-size: 1.5rem; }
  .item { padding: 14px 16px; gap: 10px; }
  .preview { padding: 16px 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 760px) {
  .badge { position: static; margin-left: 6px; border: 0; }
  .pair { grid-template-columns: 1fr; }
  dialog .tabs { top: 8px; }
  .chat { height: clamp(320px, 100dvh - 250px, 640px); border-radius: 12px; }
  .msg { max-width: 86%; }
}

/* ---------- Stoopfix admin ---------- */
.table-scroll { overflow-x: auto; }
.table.companies { min-width: 980px; }
.table.companies .tr { grid-template-columns: minmax(200px, 2.2fr) 1.3fr repeat(6, 0.8fr) 1fr 1.1fr; }
.table.companies .tr span:nth-child(2) { text-align: left; }
.notice.link { display: block; width: 100%; margin-bottom: 24px; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.side hr { width: 100%; margin: 8px 0; border: 0; border-top: 1px solid var(--line); }
.main > section > .label { margin-top: 8px; }
.report-grid + .report { margin-top: 16px; }

/* ---------- Offline ---------- */
.offline-bar { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); font-size: 0.9375rem; }
.offline-bar.off { border-color: #f3dca4; background: var(--yellow-tint); }
.offline-bar b { font-weight: 600; color: var(--ink); }
.offline-bar .failed { color: #8f2a17; }
.offline-bar button { margin-left: 4px; padding: 0 8px; border: 1px solid currentColor; border-radius: 6px; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.kcard .tag.waiting { background: var(--yellow-tint); color: var(--text); }

/* ---------- Tour ---------- */
/* A spotlight over one thing at a time and a card beside it. The dimming is the spotlight's own shadow, so the thing stays lit. */
.tour { position: fixed; inset: 0; z-index: 40; }
.tour.centered { background: rgb(13 11 9 / 45%); }
.tour-spot { position: fixed; border-radius: 14px; box-shadow: 0 0 0 9999px rgb(13 11 9 / 45%), 0 0 0 2px var(--blue); transition: left 0.25s ease, top 0.25s ease, width 0.25s ease, height 0.25s ease; pointer-events: none; }
.tour-card { position: fixed; display: grid; gap: 12px; width: min(360px, calc(100vw - 24px)); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 24px 64px rgb(13 11 9 / 24%); transition: left 0.25s ease, top 0.25s ease; }
.tour-card h3 { font-size: 1.1875rem; letter-spacing: -0.02em; }
.tour-card p { color: var(--text); font-size: 0.9375rem; line-height: 1.5; }
.tour-count { color: var(--blue); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.tour-skip { padding: 4px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.875rem; cursor: pointer; }
.tour-skip:hover { color: var(--text); text-decoration: underline; }
.tour-card .btn { min-height: 40px; padding-inline: 18px; }
.tour-card .row.between:last-child { margin-top: 4px; }
.tour-card .row.between:last-child > :only-child, .tour-card .btn[hidden] + .btn { margin-left: auto; }
@media (min-width: 761px) and (hover: hover) { .side.touring { width: 232px; box-shadow: 12px 0 40px rgb(13 11 9 / 8%); } }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }

/* ---------- Parts ---------- */
.part { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.part:first-child { border-top: 0; padding-top: 0; }
.part .grow { flex: 1 1 220px; min-width: 0; }
.part b { display: block; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.part small { display: block; color: var(--muted); font-size: 0.8125rem; }
.part .field { width: 112px; min-height: 40px; padding-block: 6px; }
.part .btn { min-height: 40px; padding-inline: 14px; }
.part-price { min-width: 72px; color: var(--ink); font-weight: 600; text-align: right; }
.part-remove { padding: 4px; border: 0; background: none; color: var(--muted); font-size: 0.8125rem; cursor: pointer; }
.part-remove:hover { color: #a8321a; }
.part-form { display: grid; grid-template-columns: minmax(0, 2.2fr) 88px minmax(0, 1.3fr) minmax(0, 1fr); gap: 8px; }

/* ---------- Phones and tablets: the last fit-and-finish ---------- */
/* The Menu button belongs to the phone layout only. */
@media (min-width: 761px) { .side > .menu-btn { display: none; } }
@media (max-width: 760px) {
  /* Page headers: the title, then the actions on their own row, sharing the width evenly. */
  .main > header.row { align-items: stretch; }
  .main > header .row { width: 100%; justify-content: flex-start; gap: 8px; }
  .main > header .row > .btn, .main > header .row > select.field { flex: 1 1 auto; justify-content: center; text-align: center; }
  /* The board: one column at a time, and the next one peeking in so it is clear there is more. */
  .board { grid-auto-columns: min(84vw, 340px); scroll-snap-type: x proximity; scroll-padding-left: 2px; }
  .board .col { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  /* Popup tabs wrap, so none is hidden off the edge. */
  .tabs { display: flex; flex-wrap: wrap; overflow: visible; }
  .tabs button { flex: 0 1 auto; }
  /* A location's actions sit under its name instead of squeezing it. */
  .loc-head { flex-wrap: wrap; align-items: flex-end; gap: 12px; }
  .loc-text { flex: 1 1 100%; }
  .loc-head .btn { flex: 1 1 0; justify-content: center; }
  .part-form { grid-template-columns: 88px minmax(0, 1fr); }
  .part-form > :first-child, .part-form > :last-child { grid-column: 1 / -1; }
  .part .grow { flex-basis: 100%; }
  .part .field { flex: 1 1 96px; }
}
/* The five statuses sit on one row wherever there is room for it. */
@media (min-width: 700px) { .segmented:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
/* Touch screens scroll these strips by swiping, so the scrollbar is only noise. */
@media (hover: none) { .board, .days, .table-scroll { scrollbar-width: none; } }

/* ---------- Closed without being done ---------- */
.status.closed { background: #efedea; } .status.closed::before { background: #8a8784; }
.kcard .tag.closed { background: #efedea; color: var(--text); }
.decline { padding-top: 16px; border-top: 1px solid var(--line); }
.decline .btn.quiet { padding-left: 0; }
.settings .skills { margin-top: 0; }
.tour-cue { color: var(--muted); font-size: 0.8125rem; }
.tour-spot.clickable { pointer-events: auto; cursor: pointer; box-shadow: 0 0 0 9999px rgb(13 11 9 / 45%), 0 0 0 3px var(--blue), 0 0 0 8px rgb(55 84 250 / 28%); }
.for-note { margin-top: 16px; font-size: 1rem; }

/* ---------- Urgent, and the tenant's household ---------- */
.tag.urgent { background: var(--coral-tint); color: #8f2a17; }
.household { display: grid; gap: 12px; margin-bottom: 20px; padding: 20px; }
.household h3 { font-size: 1.0625rem; }
.household .line:first-child { border-top: 0; }
.household-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; }
.household-form .btn { min-height: 48px; }
@media (max-width: 640px) { .household-form { grid-template-columns: 1fr; } }

/* ---------- Settings: own categories and closing the account ---------- */
.settings .row .field { flex: 1 1 200px; margin-top: 0; }
.settings.danger { margin-top: 24px; border-color: #f3b8a8; }
.btn.danger { background: #a8321a; border-color: #a8321a; color: var(--white); }
.btn.danger:hover { background: #8f2a17; }

/* ---------- Local repair companies ---------- */
.co { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.co .grow { flex: 1; min-width: 0; }
.co b { display: block; color: var(--ink); font-weight: 600; }
.co small { display: block; color: var(--muted); font-size: 0.875rem; }
.co-logo { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--blue-dark); font-weight: 600; object-fit: contain; }

/* ---------- Landing page on a phone ---------- */
@media (max-width: 640px) {
  .section { padding-block: 56px; }
  .hero .lede { font-size: 1.0625rem; }
  /* Hero preview: two tidy columns, without the line of location names competing with the greeting. */
  .d-head .small { display: none; }
  .mini-board { gap: 8px; }
  .mini-board .col { padding: 8px; gap: 8px; }
  .mini-board .kcard { padding: 10px; }
  .mini-board .kcard .title { font-size: 0.8125rem; }
  .mini-board .kcard .sub, .mini-board .kcard .due { font-size: 0.6875rem; }
  /* A week on the board: all five columns fit the screen, so nothing is cut off or needs sideways scrolling. */
  .week { padding: 12px; }
  .week-scroll { overflow: visible; }
  .week-cols, .week-lane { min-width: 0; }
  .week-lane { height: 268px; }
  .week-cols > div { flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 6px; }
  .week-cols .status { padding: 0; gap: 4px; background: none; font-size: 0.625rem; line-height: 1.15; white-space: normal; }
  .week-cols .status::before { flex: none; width: 6px; height: 6px; }
  .week-cols b { font-size: 0.75rem; }
  .wk { padding: 6px 7px; border-radius: 8px; }
  .wk b { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 0.625rem; line-height: 1.2; white-space: normal; }
  .wk small { display: none; }
  .js .wk { left: calc(var(--col, 0) * ((100% - 40px) / 5 + 10px) + 3px); width: calc((100% - 40px) / 5 - 6px); }
  /* Setup steps: the number sits beside its title, not floating between the picture and the words. */
  .step { display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; }
  .step .ill, .step p { grid-column: 1 / -1; }
  .step h3 { margin-top: 0; }
  .steps { gap: 40px; margin-top: 40px; }
  /* Footer: the company line, then the links in an even wrap. */
  .footer { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer .row { gap: 8px 18px; }
}

/* ---------- Landing: fewer words. Two sections are pictures and names only. ---------- */
/* "And the rest": one strip of drawn icons, no boxes. */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; }
.strip > div { display: grid; justify-items: center; gap: 4px; text-align: center; }
.strip .draw { width: 32px; height: 32px; margin: 0 0 6px; }
.strip dt { font-size: 0.9375rem; font-weight: 500; color: var(--text); }
/* "Who it's for": six tiles; each lights up in turn, like a street at dusk. */
.kinds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; list-style: none; }
.kinds li { display: grid; justify-items: center; align-content: center; gap: 10px; min-height: 132px; padding: 20px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 0.9375rem; font-weight: 500; text-align: center; animation: kind-on 9s infinite; }
/* Each kind of property is a photograph in a rounded frame, drifting slowly; the tiles take turns lighting up in brand blue. */
.kinds li { align-content: start; gap: 12px; min-height: 0; padding: 8px 8px 14px; }
.kind-photo { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel); }
.kind-photo img { display: block; width: 100%; height: 100%; object-fit: cover; animation: drift 16s ease-in-out infinite alternate; }
.kinds li:nth-child(even) .kind-photo img { animation-direction: alternate-reverse; }
@keyframes drift { from { scale: 1; translate: 0 0; } to { scale: 1.1; translate: -2% -2%; } }
.kinds li:nth-child(2) { animation-delay: 1.5s; } .kinds li:nth-child(3) { animation-delay: 3s; } .kinds li:nth-child(4) { animation-delay: 4.5s; } .kinds li:nth-child(5) { animation-delay: 6s; } .kinds li:nth-child(6) { animation-delay: 7.5s; }
@keyframes kind-on { 0%, 14%, 100% { border-color: var(--line); background: var(--white); box-shadow: none; translate: 0 0; } 4%, 10% { border-color: var(--blue); background: var(--blue-tint); box-shadow: 0 12px 32px rgb(55 84 250 / 14%); translate: 0 -4px; } }
@media (max-width: 900px) { .strip, .kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kinds li { padding: 6px 6px 12px; font-size: 0.875rem; } .strip dt { font-size: 0.8125rem; } }

/* ---------- Landing: "Also included". Six small pictures made of product pieces, each with its name. ---------- */
.extras { padding: clamp(32px, 5vw, 64px); }
.extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 40px 0 0; padding: 0; list-style: none; }
.extras-grid li { display: grid; gap: 14px; padding: 12px 12px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.extras-grid li > b { padding-inline: 8px; color: var(--ink); font-weight: 600; }
.ex-ill { display: grid; place-items: center; height: 148px; padding: 16px; overflow: hidden; border-radius: 12px; background: var(--panel) repeating-linear-gradient(135deg, transparent 0 12px, rgb(13 11 9 / 3.5%) 12px 13px); }
.ex-ill .mini { width: min(220px, 100%); padding: 14px; }
.ex-plan .status { margin-top: 8px; font-size: 0.75rem; }
.ex-loc { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; width: min(220px, 100%); padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); box-shadow: var(--shadow); }
.ex-loc i { height: 56px; border-radius: 10px; background: var(--blue-tint) repeating-linear-gradient(135deg, transparent 0 6px, rgb(55 84 250 / 14%) 6px 7px); }
.ex-loc b { display: block; color: var(--ink); font-size: 0.9375rem; font-weight: 600; } .ex-loc small { color: var(--muted); font-size: 0.8125rem; }
.ex-bars { display: grid; gap: 10px; }
.ex-bars .bar-track { display: block; height: 8px; border-radius: 4px; background: var(--panel); }
.ex-bars .bar-track i { display: block; height: 8px; border-radius: 4px; background: var(--blue); }
.ex-team { display: grid; gap: 8px; }
.ex-team .person { padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); box-shadow: var(--shadow); animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.ex-team .person:nth-child(2) { margin-left: 28px; } .ex-team .person:nth-child(3) { margin-left: 56px; }
.ex-push { margin: 0; width: min(240px, 100%); }
.ex-search { display: flex; align-items: center; gap: 10px; width: min(220px, 100%); padding: 12px 14px; border: 1px solid var(--blue); border-radius: 12px; background: var(--white); box-shadow: 0 0 0 3px var(--blue-tint); color: var(--muted); }
.ex-search svg { flex: none; width: 18px; height: 18px; }
.ex-search span { overflow: hidden; border-right: 2px solid var(--blue); color: var(--ink); font-weight: 500; white-space: nowrap; animation: typing 5s steps(6) infinite; }
@keyframes typing { 0%, 10% { width: 0; } 45%, 90% { width: 6.2ch; } 100% { width: 0; } }
@media (max-width: 900px) { .extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  /* Narrow tiles: the pictures drop their small print and tighten, so nothing wraps or is cut. */
  .extras { padding: 24px 12px; }
  .extras-grid li { padding: 8px 8px 14px; }
  .ex-ill .mini { padding: 10px; }
  .ex-ill b { font-size: 0.8125rem; }
  .ex-plan small, .ex-loc small, .ex-push small { display: none; }
  .ex-plan .status { margin-top: 6px; padding: 2px 8px; font-size: 0.6875rem; }
  .ex-loc { grid-template-columns: 34px 1fr; gap: 8px; padding: 8px; } .ex-loc i { height: 34px; border-radius: 8px; }
  .ex-push { gap: 8px; padding: 8px 10px; } .ex-push svg { width: 24px; height: 24px; } .ex-push b { font-size: 0.75rem; }
  .ex-search { padding: 9px 10px; gap: 8px; font-size: 0.875rem; }
  .ex-team { gap: 6px; } .ex-team .person { padding: 4px 12px 4px 4px; } .ex-team .person:nth-child(3) { display: none; }
}
@media (max-width: 640px) { .extras-grid { gap: 10px; } .ex-ill { height: 112px; padding: 8px; } .extras-grid li > b { font-size: 0.875rem; } .ex-team .person:nth-child(2) { margin-left: 14px; } .ex-team .person:nth-child(3) { margin-left: 28px; } }

/* ---------- The repair story on phones and tablets: every scene sized to its stage, centred, nothing cut off ---------- */
/* Whatever a scene holds can never be wider than the stage it sits in. */
.scene > * { max-width: 100%; }
.mock-row { grid-auto-columns: minmax(0, 1fr); }
.mock-chip { min-width: 0; }
.story-rail button { white-space: nowrap; }

@media (min-width: 641px) and (max-width: 900px) {
  /* A tablet has room: the scenes are drawn larger so they fill the stage instead of floating in it. */
  .scene > :not(.phone) { zoom: 1.25; }
  .scene .phone { height: min(100dvh - 300px, 560px); }
}

@media (max-width: 640px) {
  .js .scene, .story-stage { padding: 14px; }
  .js .story-texts { min-height: 124px; }
  .story-text { margin-top: 14px; } .story-text h3 { font-size: 1.625rem; } .story-text h3 span { margin-bottom: 6px; } .story-text p { margin-top: 8px; }
  .story-rail { gap: 4px; }
  .story-rail button { min-height: 36px; padding: 0 9px 0 4px; gap: 6px; }
  .story-rail .on { padding-right: 11px; }
  .story-rail i { width: 26px; height: 26px; font-size: 0.75rem; }
  /* 1. Reported: the phone's form keeps to what fits a small screen within a small screen. */
  .scene .phone { height: min(100dvh - 296px, 480px); }
  .scene .phone .mock-chip { padding: 7px 2px; font-size: 0.75rem; }
  .scene .phone .mock-field { display: none; }
  .scene .phone .phone-app .btn { min-height: 40px; font-size: 0.875rem; }
  .sc-stack { gap: 10px; }
  .sc-card { padding: 14px; }
  .sc-card b { font-size: 0.9375rem; }
  /* 2. Routed: name and outcome only; the trade and place would not fit and are not the point. */
  .sc-list { padding: 4px; }
  .sc-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 10px; font-size: 0.8125rem; }
  .sc-row > .muted { display: none; }
  .sc-row em { font-size: 0.75rem; white-space: nowrap; }
  /* 3. Scheduled: five days and four times share the width evenly. */
  .mock-row { gap: 5px; margin: 6px 0 12px; }
  .sc-sched .mock-chip { padding: 8px 0; border-radius: 8px; font-size: 0.75rem; }
  .sc-sched .mock-chip i { font-size: 0.625rem; }
  .sc-sched .sent { padding: 10px 12px; font-size: 0.8125rem; }
  /* 4. Fixed: two messages and the cost, so the cost is never pushed out of sight. */
  .sc-chat { padding: 12px; gap: 4px; }
  .sc-chat .msg:last-child { display: none; }
  .sc-chat .msg-bubble p { font-size: 0.875rem; }
  .mock-photo { width: 72px; margin-bottom: 4px; }
  .sc-cost { width: 100%; padding: 10px 14px; font-size: 0.875rem; }
  .sc-cost b { font-size: 1rem; }
  /* 5. On record: the Done mark sits under its entry instead of over the words. */
  .sc-record .record { padding: 10px 0; }
  .sc-record .record p { font-size: 0.875rem; }
  .sc-record .status { position: static; margin-top: 6px; }
  .sc-record .record:nth-of-type(3) { display: none; }
}
.extras-grid li > p { margin: -8px 0 0; padding-inline: 8px; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; }
@media (max-width: 640px) { .extras-grid li > p { font-size: 0.8125rem; } }

/* ---------- Invoices ---------- */
.inv-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 112px auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.inv-row .field { margin-top: 0; min-height: 44px; }
.tenant-invoice { padding: 16px 18px; gap: 8px; }
.tenant-invoice .line:first-child { border-top: 0; }
@media (max-width: 640px) { .inv-row { grid-template-columns: minmax(0, 1fr) 64px; } .inv-row > :nth-child(1) { grid-column: 1 / -1; } }

/* ---------- "A week on the board" on a phone ---------- */
/* Five columns can't be read at this width. The same seven tasks become a list, and each one's status pill
   changes as the page scrolls: the same story, told in a shape that fits. */
@media (max-width: 640px) {
  .week { padding: 14px; }
  .week-cols { display: none; }
  .week-lane, .js .week-lane { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; height: auto; background: none; border-radius: 0; }
  .wk, .js .wk { position: static; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 12px; width: auto; padding: 11px 12px 11px 14px; border-radius: 12px; transition: opacity 0.4s, box-shadow 0.3s; }
  .wk b { display: block; font-size: 0.875rem; line-height: 1.3; white-space: nowrap; }
  .wk small { display: block; grid-column: 1; font-size: 0.75rem; }
  .wk::after { content: "Open"; grid-column: 2; grid-row: 1 / span 2; padding: 3px 10px; border-radius: 999px; background: var(--coral-tint); color: var(--text); font-size: 0.75rem; font-weight: 500; white-space: nowrap; transition: background-color 0.4s; }
  .wk[data-status="scheduled"]::after { content: "Scheduled"; background: #e8f6fe; }
  .wk[data-status="in_progress"]::after { content: "In progress"; background: var(--yellow-tint); }
  .wk[data-status="waiting"]::after { content: "Waiting for parts"; background: #f0f0ff; }
  .wk[data-status="done"]::after { content: "Done"; background: var(--mint-tint); }
  .wk[data-status="done"] { opacity: 0.62; }
  .week-foot { margin-top: 14px; }
}

/* ---------- Bulk pricing ---------- */
.bulk { margin-top: 10px; color: var(--blue-dark); font-weight: 500; }
.saving { margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--blue-tint); color: var(--blue-dark); font-size: 0.875rem; font-weight: 500; text-align: center; }

/* ---------- Landing: billing. An invoice made of product pieces; its status turns from Sent to Paid. ---------- */
.billing { align-items: center; }
.bill-art { position: relative; display: grid; place-content: center; justify-items: center; min-height: 340px; padding: 24px; border-radius: 24px; background: var(--white) repeating-linear-gradient(135deg, transparent 0 12px, rgb(13 11 9 / 3.5%) 12px 13px); }
.bill { display: grid; gap: 4px; width: min(340px, 100%); padding: 20px; box-shadow: 0 16px 48px rgb(13 11 9 / 10%); }
.bill small { color: var(--muted); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.bill .line:first-of-type { margin-top: 8px; }
.bill-pay { margin-top: 12px; animation: paid-out 7s infinite; }
/* Apple Pay, as it appears on the payment page: Apple's own black button, their mark and the word Pay. */
.bill-apple { margin-top: 8px; gap: 5px; border-color: #000; background: #000; color: #fff; font-size: 1.0625rem; font-weight: 500; letter-spacing: -0.01em; }
.bill-apple svg { width: 17px; height: 17px; margin-top: -3px; }
.bill-pill { position: relative; display: inline-grid; }
.bill-pill .status { grid-area: 1 / 1; justify-self: end; }
.bill-pill .status.scheduled { animation: paid-out 7s infinite; }
.bill-pill .status.done, .bill-note { animation: paid-in 7s infinite; }
.bill-note { justify-self: end; margin-top: 12px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; box-shadow: 0 12px 32px rgb(13 11 9 / 14%); font-size: 0.875rem; }
.bill-note b { color: var(--ink); font-weight: 600; }
@keyframes paid-out { 0%, 52% { opacity: 1; } 60%, 94% { opacity: 0.25; } 100% { opacity: 1; } }
@keyframes paid-in { 0%, 52% { opacity: 0; translate: 0 8px; } 60%, 94% { opacity: 1; translate: 0 0; } 100% { opacity: 0; translate: 0 8px; } }
.bill-pill .status.scheduled { animation-name: sent-out; }
@keyframes sent-out { 0%, 52% { opacity: 1; } 60%, 94% { opacity: 0; } 100% { opacity: 1; } }
.soon { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-dark); font-size: 0.75rem; font-weight: 600; }
.ex-co { width: min(250px, 100%); padding: 10px 12px; gap: 10px; }
.ex-co .co-logo { width: 38px; height: 38px; font-size: 0.8125rem; }
.ex-co .mock-chip { padding: 5px 10px; font-size: 0.75rem; }
@media (max-width: 640px) {
  .bill-art { min-height: 300px; padding: 14px; }
  .ex-co small, .ex-co .mock-chip { display: none; }
}
@media (prefers-reduced-motion: reduce) { .bill-pill .status.scheduled, .bill-note { display: none; } }
.bill .btn { margin-top: 12px; }
#billing { margin-top: clamp(24px, 4vw, 48px); }
.ex-co b { font-size: 0.875rem; white-space: nowrap; } .ex-co small { font-size: 0.75rem; }

/* ---------- Settings on a desktop: edge to edge, in two columns, instead of one narrow strip ---------- */
.main > .settings + .settings { margin-top: 20px; }
@media (min-width: 1100px) {
  /* The main form on the left; the cards that stand alone (payments, QuickBooks, price list, closing the account) on the right. */
  .main:has(> form.settings + .settings) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 20px; align-items: start; align-content: start; }
  .main:has(> form.settings + .settings) > :not(.settings) { grid-column: 1 / -1; }
  .main:has(> form.settings + .settings) > form.settings:first-of-type { grid-column: 1; grid-row: 3 / span 12; }
  .main:has(> form.settings + .settings) > .settings:not(form:first-of-type) { grid-column: 2; margin-top: 0; margin-bottom: 20px; }
  .main:has(> form.settings + .settings) > .settings.danger { margin-top: 0; }
  /* A lone settings form (a repair company's listing) lays its fields out in two columns. */
  .settings .pair { gap: 20px; }
}

/* ---------- The landing page for repair companies: the same pieces, their side of the story ---------- */
.v-hero { text-align: center; }
.v-scene { position: relative; display: grid; gap: 14px; width: min(520px, 100%); margin: clamp(32px, 5vw, 56px) auto 0; text-align: left; }
.v-co { box-shadow: 0 16px 48px rgb(13 11 9 / 10%); animation: settle 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.v-chat { display: flex; flex-direction: column; gap: 6px; padding: 16px; box-shadow: 0 16px 48px rgb(13 11 9 / 10%); animation: settle 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.v-chat .msg.mine p { color: var(--white); }
.v-chat .msg:not(.mine) .msg-bubble { background: var(--panel); }
.v-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: min(240px, 100%); }
.v-chips .mock-chip { padding: 6px 12px; border-radius: 999px; }
.v-start h3 { font-size: 1.25rem; }
.v-start .stack { gap: 16px; }
@media (max-width: 480px) { .pricing:has(.v-start) { padding: 24px 8px; } .pricing:has(.v-start) > div:first-child { padding-inline: 12px; } .v-start { padding: 16px 12px; } }
#how { margin-top: clamp(24px, 4vw, 48px); }
.settings .skills { margin-top: 6px; }
@media (max-width: 640px) {
  .v-nav .login { display: none; }
  .v-chips { gap: 4px; } .v-chips .mock-chip { padding: 4px 9px; font-size: 0.6875rem; }
  .ex-co b { white-space: normal; font-size: 0.8125rem; }
  .v-co .mock-chip { display: none; }
}

/* ---------- Saved items as you type, and lines you can drag into order ---------- */
.suggest { position: relative; min-width: 0; }
.suggest-list { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--white); box-shadow: 0 12px 32px rgb(13 11 9 / 12%); }
.suggest-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.suggest-list li span { min-width: 0; overflow-wrap: anywhere; }
.suggest-list li b { flex: none; font-weight: 600; }
.suggest-list li:hover, .suggest-list li[aria-selected=true] { background: var(--panel); }
.suggest-list li[aria-selected=true] { box-shadow: inset 0 0 0 1.5px var(--blue); }
.check.keep { font-size: 0.9375rem; }
.grip, .line .grip { flex: none; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: grab; touch-action: none; align-self: center; }
.grip span { width: 10px; height: 16px; background: radial-gradient(circle, currentColor 1.5px, transparent 1.75px) 0 0 / 5px 5.33px; }
.grip:hover, .line .grip:hover { background: var(--panel); color: var(--ink); }
.grip:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.dragging { position: relative; z-index: 1; background: var(--white); box-shadow: 0 8px 24px rgb(13 11 9 / 12%); border-radius: 8px; }
.dragging .grip { cursor: grabbing; }
.inv-row { grid-template-columns: 28px minmax(0, 1fr) 76px 112px auto; }
@media (max-width: 640px) { .inv-row { grid-template-columns: 28px 72px minmax(0, 1fr) auto; } .inv-row > :nth-child(1) { grid-column: auto; } .inv-row > .suggest { grid-column: 2 / -1; } .inv-row > :nth-child(3) { grid-column: 2; } }

/* ---------- Invoices page, tax and fee, time off, the signature ---------- */
.inv-item { flex-wrap: wrap; row-gap: 10px; }
.inv-item .link-title { display: block; max-width: 100%; padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); text-align: left; cursor: pointer; }
.inv-item .link-title:hover { color: var(--blue); }
.inv-amount { font-weight: 600; color: var(--ink); }
.inv-actions { display: flex; gap: 8px; min-width: 190px; justify-content: flex-end; }
.inv-actions .btn { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }
.line.sum { color: var(--text); border-top: 0; padding: 4px 0; }
.line.sum + .line.total { margin-top: 6px; }
.inv-extras { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr); gap: 12px; align-items: end; }
.inv-extras label { font-size: 0.875rem; }
.inv-end { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.check.tax-tick { gap: 6px; align-items: center; font-size: 0.8125rem; color: var(--muted); }
.check.tax-tick input { width: 16px; height: 16px; margin: 0; }
.time-off .line:first-child { border-top: 0; }
.off-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 12px; }
.notice.covered { margin: 12px 0 0; font-weight: 400; }
.notice.covered ul { margin: 6px 0 0; padding-left: 18px; }
.signoff { padding-top: 16px; border-top: 1px solid var(--line); }
.sign-pad { display: block; width: 100%; max-width: 600px; aspect-ratio: 3 / 1; margin-top: 6px; border: 1px dashed #c9c5be; border-radius: var(--radius-sm); background: var(--white); touch-action: none; cursor: crosshair; }
.signature { display: block; width: min(300px, 100%); margin-top: 8px; color: var(--ink); border-bottom: 1px solid var(--line); }
.signed .sent { margin: 0; }
@media (max-width: 640px) {
  .inv-actions { width: 100%; min-width: 0; justify-content: flex-start; }
  .inv-extras { grid-template-columns: 1fr 1fr; } .inv-extras label:last-child { grid-column: 1 / -1; }
  .inv-row > .inv-end { grid-column: 4; }
}
@media (max-width: 640px) { .stats.aging { grid-template-columns: 1fr 1fr; gap: 10px; } .stats.aging .stat { padding: 12px 14px; } .stats.aging .stat b { font-size: 1.375rem; } .stats.aging .stat:last-child { grid-column: 1 / -1; } }
.line.owed { padding-top: 8px; color: var(--ink); }
.pay-log { margin-top: 4px; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 0.875rem; }
.refund { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); }

/* ---------- The clock, and a quantity at a rate ---------- */
.cost-form.with-qty { grid-template-columns: minmax(0, 1fr) 84px 120px; }
.clock { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.clock .label { margin-bottom: 6px; }
.clock .row { align-items: center; }
.clock-face { min-width: 92px; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.clock-face.running { color: var(--blue); }
.tag.clock { background: var(--blue-tint); color: var(--blue-dark); }
@media (max-width: 640px) { .cost-form.with-qty { grid-template-columns: 1fr 1fr; } .cost-form.with-qty > .suggest { grid-column: 1 / -1; } }
.tour[data-busy] .tour-card, [data-busy] .tour-card { opacity: 0.6; pointer-events: none; transition: opacity 0.15s; }
.go-ahead .row .field { margin-top: 0; width: 150px; }

/* ---------- Reports: invoices; a quiet go-ahead ---------- */
.report.money { margin-bottom: 16px; }
.report.money h3 { margin: 0; }
.report.money .row.between { margin-bottom: 14px; }
.mini-stats.wide { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-bottom: 18px; }
.report-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.go-ahead.quiet { padding: 0; border: 0; background: none; }
.go-ahead.quiet > .label { display: none; }
.go-ahead.quiet p { margin: 0; }

/* ---------- The bar across the top: search and notifications ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: calc(-1 * clamp(20px, 4vw, 40px) + 16px) 0 24px; }
.top-search { display: flex; align-items: center; gap: 10px; width: min(380px, 100%); min-height: 44px; padding: 0 12px 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--muted); font: inherit; font-size: 0.9375rem; text-align: left; cursor: text; }
.top-search:hover { border-color: #d5d2cd; color: var(--text); }
.top-search svg { width: 18px; height: 18px; flex: none; }
.top-search span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-search kbd { flex: none; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font: inherit; font-size: 0.75rem; color: var(--muted); }
.top-bell { position: relative; display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); color: var(--text); cursor: pointer; }
.top-bell:hover { border-color: #d5d2cd; }
.top-bell svg { width: 20px; height: 20px; }
.top-bell .badge { top: -7px; left: auto; right: -7px; }
.settings-tabs { margin: 16px 0 0; }
.api-head { margin: 28px 0 16px; }
.api-head h2 { font-size: 1.25rem; }
@media (max-width: 760px) {
  /* On a phone the two sit in the top bar itself, as icons, between the logo and Menu. */
  .topbar { position: fixed; top: 8px; right: 116px; z-index: 7; margin: 0; gap: 2px; }
  .top-search, .top-bell { width: 44px; height: 44px; min-height: 44px; padding: 0; border: 0; background: none; display: grid; place-items: center; color: var(--muted); }
  .top-search span, .top-search kbd { display: none; }
  .top-search svg { width: 20px; height: 20px; }
  .top-bell .badge { position: absolute; top: 0; right: -2px; left: auto; bottom: auto; margin: 0; }
  .side.open ~ .main .topbar { display: none; }
}

/* ---------- The path of a job: its stages, and the next step ---------- */
.path { padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 2px rgb(13 11 9 / 4%); }
.path:empty { display: none; }
.path-stages { display: flex; gap: 0; margin: 0 0 18px; padding: 0; list-style: none; }
.path-stages li { position: relative; flex: 1; display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 0.875rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.path-stages li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 12px; margin-right: 10px; border-radius: 2px; background: var(--line); }
.path-stages li.done:not(:last-child)::after { background: var(--blue); }
.path-stages li:last-child { flex: none; }
.path-dot { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #d9d6d1; background: var(--white); font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.path-stages li.now { color: var(--ink); font-weight: 600; }
.path-stages li.now .path-dot { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.path-stages li.done { color: var(--text); }
.path-stages li.done .path-dot { border-color: var(--blue); background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.path-stages li.skipped .path-dot { border-style: dashed; }
.path-stages small { font-weight: 400; color: var(--muted); }
.path-next { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.path-next .label { margin-bottom: 4px; color: var(--blue); }
.path-next h3 { font-size: 1.1875rem; letter-spacing: -0.01em; }
.path-next .muted { margin-top: 2px; max-width: 62ch; }
.path-actions { flex-wrap: wrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .path { padding: 14px 14px 16px; }
  .path-stages li { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 0.75rem; }
  .path-stages li:not(:last-child)::after { position: absolute; top: 12px; left: 34px; right: 6px; margin: 0; }
  .path-stages li:last-child { flex: 1; }
  .path-actions, .path-actions .btn:first-child { width: 100%; }
  .path-stages small { display: block; }
}
.go-ahead.quiet.covered { display: none; }

/* ---------- The estimate ---------- */
.go-ahead > .label { margin-bottom: 10px; }
.estimate-read { padding: 4px 16px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.estimate-read .line:first-child { border-top: 0; }
.estimate-actions { flex-wrap: wrap; }
.inv-extras.one { grid-template-columns: 110px; }
.agree { font-weight: 500; }
.to-invoice { margin-bottom: 24px; }

/* ---------- A popup's sections: a list down the left, the chosen section beside it ---------- */
dialog .body:has(> .sections) { width: min(1180px, 100%); }
.sections { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 36px; align-items: start; }
dialog .sections > .tabs { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 2px; width: auto; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.sections > .tabs button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border-radius: var(--radius-sm); font-size: 0.9375rem; font-weight: 500; color: var(--muted); text-align: left; }
.sections > .tabs button:hover { background: var(--panel); color: var(--text); }
.sections > .tabs button[aria-selected="true"] { background: var(--blue-tint); color: var(--blue); box-shadow: none; }
.sections > .tabs small { flex: none; font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.sections > .tabs button[aria-selected="true"] small { color: var(--blue-dark); }
@media (max-width: 900px) {
  /* On a phone or a narrow window: one strip across the top that scrolls sideways, with the chosen section underlined. */
  .sections { display: block; }
  dialog .sections > .tabs { top: 0; z-index: 2; flex-direction: row; flex-wrap: nowrap; overflow-y: hidden; gap: 4px; margin: 0 calc(-1 * clamp(16px, 5vw, 40px)) 20px; padding: 0 clamp(16px, 5vw, 40px); border-bottom: 1px solid var(--line); background: var(--white); overflow-x: auto; scrollbar-width: none; }
  dialog .sections > .tabs::-webkit-scrollbar { display: none; }
  .sections > .tabs button { flex: none; width: auto; min-height: 46px; padding: 0 10px; border-radius: 0; border-bottom: 2px solid transparent; justify-content: flex-start; gap: 6px; }
  .sections > .tabs button:hover { background: none; }
  .sections > .tabs button[aria-selected="true"] { background: none; color: var(--ink); border-bottom-color: var(--blue); }
}
@media (max-width: 640px) { .estimate-actions .btn { flex: 1 1 100%; } }

/* ---------- The top of a task: its title, and its status as a menu ---------- */
.task-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.task-status { display: grid; justify-items: end; gap: 4px; }
.task-status .label { margin: 0; }
.status-pick { width: auto; min-width: 190px; min-height: 44px; margin-top: 0; padding-left: 34px; font-weight: 600; background-repeat: no-repeat; background-position: 14px center, right 12px center; }
.status-pick[data-status="open"] { background-color: var(--coral-tint); border-color: #f6cfc2; box-shadow: inset 22px 0 0 -14px var(--coral); }
.status-pick[data-status="scheduled"] { background-color: #e8f6fe; border-color: #bfe3f8; box-shadow: inset 22px 0 0 -14px #66c6fa; }
.status-pick[data-status="in_progress"] { background-color: var(--yellow-tint); border-color: #f3dca4; box-shadow: inset 22px 0 0 -14px var(--yellow); }
.status-pick[data-status="waiting"] { background-color: #f0f0ff; border-color: #d3d3f7; box-shadow: inset 22px 0 0 -14px #9999ff; }
.status-pick[data-status="done"] { background-color: var(--mint-tint); border-color: #bfe6d5; box-shadow: inset 22px 0 0 -14px #4bbf95; }
.task-status .error { max-width: 320px; text-align: right; }
/* ---------- One list: the go-ahead on top of the costs ---------- */
.go-ahead { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.estimate-sum { padding-top: 2px; }
.estimate-sum .line.sum:first-child { border-top: 0; }
.line.on-order { color: var(--muted); }
.line.on-order b { font-weight: 500; }
.msg-link { font-weight: 600; text-decoration: underline; }
.msg.mine .msg-link { color: var(--white); }
@media (max-width: 640px) { .task-status { justify-items: stretch; width: 100%; } .status-pick { width: 100%; } .task-status .error { text-align: left; max-width: none; } }

/* ---------- The top of a task: the clock beside the status ---------- */
.task-tools { display: flex; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; justify-content: flex-end; }
.task-tools .clock { padding: 0; border: 0; background: none; display: grid; justify-items: end; gap: 4px; }
.task-tools .clock .label { margin: 0; }
.task-tools .clock .row { gap: 10px; flex-wrap: nowrap; }
.task-tools .clock .btn { min-height: 44px; padding: 0 14px; white-space: nowrap; }
.task-tools .clock-face { min-width: 0; font-size: 1.25rem; }
.task-tools .clock > .small { max-width: 260px; text-align: right; }
.task-tools .clock > .small:empty, .task-tools .clock > .error:empty { display: none; }
/* ---------- A discount, for those allowed to give one ---------- */
.discount-row { display: grid; grid-template-columns: auto 110px 76px; align-items: center; gap: 10px; justify-content: start; }
.discount-row label { font-weight: 500; }
.discount-row .field { margin-top: 0; min-height: 40px; }
@media (max-width: 640px) { .task-tools { width: 100%; justify-content: stretch; } .task-tools .clock { justify-items: start; } .task-tools > * { width: 100%; } .task-tools .clock > .small { text-align: left; max-width: none; } }

/* ---------- Fee and discount on the estimate ---------- */
.adjust { display: grid; gap: 10px; }
.adjust:empty { display: none; }
.adjust-row { display: grid; grid-template-columns: 84px minmax(0, 1fr) 110px 76px; align-items: center; gap: 10px; }
.adjust-row > label { font-weight: 500; }
.adjust-row .field { margin-top: 0; min-height: 42px; }
.estimate-sum:empty { display: none; }
.estimate-sum .line.total { margin-bottom: 4px; }
@media (max-width: 640px) { .adjust-row { grid-template-columns: 1fr 76px; } .adjust-row > label, .adjust-row > .small, .adjust-row > input[type="text"], .adjust-row > input:not([type]) { grid-column: 1 / -1; } }
.adjust-row.fee { grid-template-columns: 84px minmax(0, 1fr) 110px 76px auto; }
.estimate-sum .line.sum button { padding: 0 0 0 10px; }
@media (max-width: 640px) { .adjust-row.fee { grid-template-columns: 1fr 76px; } .adjust-row.fee > .btn { grid-column: 1 / -1; } }
.estimate-actions .field { flex: 1 1 220px; max-width: 320px; }
@media (max-width: 640px) { .estimate-actions .field { max-width: none; flex-basis: 100%; } }
.crew { display: grid; gap: 8px; }
.crew .line { align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
.stack.tight { gap: 6px; }
.kcard .people { gap: 6px; flex-wrap: nowrap; }
/* Messages: the chat as its own panel on the right-hand side. */
.top-chat + .top-bell { margin-left: 0; }
.chat-dock { position: fixed; z-index: 40; top: 0; right: 0; bottom: 0; width: min(360px, 100vw); display: flex; flex-direction: column; background: var(--white); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgb(13 11 9 / 6%); }
.chat-dock > header { display: flex; align-items: center; gap: 4px; min-height: 64px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); }
.chat-dock > header h3 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; letter-spacing: -0.01em; }
.chat-dock > header button { flex: none; min-height: 36px; padding: 0 10px; border: 0; border-radius: var(--radius-sm); background: none; color: var(--muted); font: inherit; font-size: 0.875rem; font-weight: 500; cursor: pointer; }
.chat-dock > header button:hover { background: var(--panel); color: var(--text); }
.chat-dock > header button:first-child { margin-left: -8px; }
.chat-rows { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding: 8px; }
.chat-row { display: grid; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-sm); background: none; font: inherit; text-align: left; cursor: pointer; }
.chat-row:hover { background: var(--panel); }
.chat-row b { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }
.chat-row b span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-row b small { flex: none; font-size: 0.75rem; font-weight: 400; color: var(--muted); }
.chat-row b i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.chat-row > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.chat-row.waiting > span { color: var(--text); }
.chat-dock > .chat { flex: 1; min-height: 0; height: auto; border: 0; border-radius: 0; }
.chat-dock > .chat-empty { margin: auto; padding: 24px; text-align: center; }
.chat-dock button:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
@media (min-width: 1280px) { .chat-open .app { padding-right: 360px; } }
/* Unread messages on a section of a popup: the same bubble as the bell's. */
.tabs.rail [role=tab] small.bubble { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--coral); color: var(--ink); font-size: 0.6875rem; font-weight: 600; line-height: 1; }
/* Inspections: one card per part of the unit, with three plain choices. The colours are the product's own status colours. */
.insp-item { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.insp-item h3 { font-size: 1rem; letter-spacing: -0.01em; }
.insp-item .btn.small { min-height: 32px; padding: 0 10px; font-size: 0.8125rem; }
.conds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cond { min-height: 44px; padding: 0 10px; border: 1px solid #d9d6d1; border-radius: var(--radius-sm); background: var(--white); color: var(--text); font: inherit; font-size: 0.9375rem; font-weight: 500; cursor: pointer; }
.cond:disabled { cursor: default; color: var(--muted); }
.cond[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.cond[data-cond="good"][aria-pressed="true"] { border-color: #9bd8bf; background: var(--mint-tint); }
.cond[data-cond="attention"][aria-pressed="true"] { border-color: #f3dca4; background: var(--yellow-tint); }
.cond[data-cond="damaged"][aria-pressed="true"] { border-color: #f3b8a8; background: var(--coral-tint); }
.cond:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.insp-item .estimate-actions select.field { flex: 0 1 220px; }
@media (max-width: 640px) { .cond { font-size: 0.8125rem; padding: 0 4px; } }
.cond-read { justify-self: start; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.cond-read[data-cond="good"] { border-color: #9bd8bf; background: var(--mint-tint); }
.cond-read[data-cond="attention"] { border-color: #f3dca4; background: var(--yellow-tint); }
.cond-read[data-cond="damaged"] { border-color: #f3b8a8; background: var(--coral-tint); }
.card.list > .label.pad { padding: 14px 16px 6px; }
a.item { text-decoration: none; color: inherit; }
.owner-ask { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
label.narrow > .field { max-width: 220px; }
.list.preview { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 12px; background: var(--white); }
.list.preview .line:first-child { border-top: 0; }
/* Ratings: five stars to tap, in brand blue once chosen. */
.stars { display: flex; gap: 4px; }
.star { width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: #d9d6d1; font-size: 1.875rem; line-height: 1; cursor: pointer; }
.star.on { color: var(--blue); }
.star:hover { background: var(--blue-tint); }
.stars-read { color: var(--blue); letter-spacing: 1px; }
.rated { margin-top: 12px; }
/* ---------- Pages for each kind of property, and for people moving from another system ---------- */
.kinds li a { display: grid; justify-items: center; gap: 12px; color: inherit; text-decoration: none; }
.kind-hero { margin-top: 8px; }
.kind-hero h1 { margin-top: 16px; font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: -0.035em; line-height: 1.08; }
.kind-hero .row { margin-top: 28px; }
.kind-hero-photo { width: min(460px, 100%); justify-self: center; aspect-ratio: 1; border-radius: 28px; overflow: hidden; background: var(--white); box-shadow: 0 16px 48px rgb(13 11 9 / 10%); }
.kind-hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; animation: drift 16s ease-in-out infinite alternate; }
.reasons { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.reasons.four { margin-top: 40px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.reason { padding: clamp(20px, 3vw, 28px); }
.reason h3 { font-size: 1.1875rem; }
.reason p { margin-top: 10px; color: var(--muted); }
.reason p b { color: var(--ink); font-weight: 600; }
.kind-price { margin-bottom: clamp(32px, 6vw, 64px); }
.switch-steps { padding: clamp(20px, 3vw, 28px); }
.switch-list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.switch-list li { display: grid; grid-template-columns: 32px 1fr; column-gap: 14px; counter-increment: step; }
.switch-list li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: var(--white); font-weight: 600; font-size: 0.9375rem; }
.switch-list b { color: var(--ink); font-weight: 600; }
.switch-list span { color: var(--muted); font-size: 0.9375rem; }
.center-note { margin-top: 20px; text-align: center; }
.now-rate { margin-top: 16px; }
.now-rate .field { margin-top: 6px; }
