/* Look: Uber-style. Black ground, white type, big bold headings. Green is reserved for the main action, the selected dot and the price. */
:root {
  color-scheme: dark;
  --bg: #000000; --surface: #141414; --surface-2: #242424; --ink: #ffffff; --muted: #a8a8a8; --line: #333333; --ring: #8a8a8a; --placeholder: #707070;
  --accent: #06c167; --accent-ink: #000000; --warn: #ff7a6e;
  --font: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 16px/1.45 var(--font);
  padding-block: 16px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
#app { max-width: 560px; margin: 0 auto; padding-bottom: 48px; }
h1, h2 { font-weight: 800; letter-spacing: -0.02em; text-wrap: balance; }
h1 { margin: 8px 0 4px; font-size: 34px; line-height: 1.08; } h2 { font-size: 22px; margin: 32px 0 10px; }
p { margin: 8px 0; }

/* sections: each group of fields sits in its own block with a small heading */
.card { background: var(--surface); border-radius: 16px; padding: 16px; margin: 12px 0; }
.section { background: var(--surface); border-radius: 16px; padding: 18px 16px 16px; margin: 20px 0; }
.section-title { margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.section-note { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: 1fr 72px 110px; gap: 10px; }
.grid > div { min-width: 0; }

.muted { color: var(--muted); font-size: 14px; } .err { color: var(--warn); } .ok { color: var(--accent); }
.fe { color: var(--warn); font-size: 13px; margin-top: 4px; min-height: 0; }
.row { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.center { text-align: center; }

.wordmark { text-align: center; font-weight: 800; font-size: 52px; letter-spacing: -0.04em; line-height: 1; margin: 0; }
.wordmark.small { font-size: 24px; letter-spacing: -0.03em; }
.hero { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.hero h2 { text-align: center; margin: 0; font-size: 24px; }
.hero .choices { display: grid; gap: 10px; }

button { width: 100%; padding: 16px; margin: 8px 0; font: 700 16px var(--font); border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button.alt { background: var(--surface-2); color: var(--ink); }
button.big { padding: 20px; font-size: 18px; }
button.small { width: auto; padding: 8px 14px; font-size: 14px; margin: 0; border-radius: 99px; }
button.link { width: auto; background: none; color: var(--muted); padding: 8px 0; margin: 0; font-size: 14px; }
button:active { transform: scale(0.99); } button:disabled { opacity: 0.5; }
/* Tap lock: dims at once; after a moment a row of sun-coloured dots pulses on the button */
button.busy { opacity: 0.6; pointer-events: none; }
button.spin::after { content: ''; display: inline-block; width: 1.5em; height: 0.4em; margin-left: 0.6em; vertical-align: middle;
  background: radial-gradient(circle, #ffd166 35%, #ff9f1c 55%, transparent 62%) 0 0 / 0.5em 0.4em repeat-x; animation: sundots 0.9s steps(4) infinite; }
@keyframes sundots { from { width: 0; } to { width: 1.5em; } }
@media (prefers-reduced-motion: reduce) { button.spin::after { animation: none; } }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .photo:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

label { display: block; margin: 14px 0 6px; font-weight: 700; font-size: 14px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=password], input[type=search], input[type=url], input[type=date], select, textarea {
  width: 100%; padding: 14px; font: 500 16px var(--font); color: var(--ink); background: var(--surface-2); border: 0; border-radius: 12px; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
textarea { resize: vertical; }

/* options: selected state is a filled dot (like a radio), never a check mark */
.opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 12px; margin: 8px 0; background: var(--surface-2); font-weight: 500; font-size: 16px; cursor: pointer; }
.opt input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 1px 0 0; border-radius: 50%;
  border: 2px solid var(--ring); background: transparent; display: grid; place-content: center; cursor: pointer; }
.opt input::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform 0.12s; }
.opt input:checked { border-color: var(--accent); } .opt input:checked::before { transform: scale(1); }
.opt b { display: block; font-weight: 700; } .opt .muted { display: block; }
.opt .thumb { margin-left: auto; }

/* lawn size slider */
.lot-name { font: 800 28px var(--font); letter-spacing: -0.02em; margin-top: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 14px 0 4px; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--surface-2); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--accent); border: 0; }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--accent); border: 0; }
/* each tick label is exactly as wide as the thumb, so its centre sits right under the thumb's centre at that stop */
.ticks { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.ticks span { width: 24px; text-align: center; }

/* photos */
.photo { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 8px auto; border-radius: 50%; background: var(--surface-2); overflow: hidden;
  cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; text-align: center; }
.photo input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.photo.wide { width: 100%; height: 150px; border-radius: 12px; margin: 8px 0; }
.photo img, .avatar img, .thumb img, .afterphoto { width: 100%; height: 100%; object-fit: cover; display: block; }
.afterphoto { border-radius: 12px; height: auto; max-height: 280px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; padding: 0; margin: 0; color: var(--ink); }
.avatar.big { width: 72px; height: 72px; font-size: 28px; }
.thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--surface-2); flex: none; display: grid; place-items: center; color: var(--muted); font-weight: 800; }

/* little info button + hint panel */
.labelrow { display: flex; align-items: center; gap: 8px; }
.labelrow label { margin: 14px 0 6px; }
button.info { width: 28px; height: 28px; padding: 0; margin: 8px 0 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font: 700 14px var(--font); flex: none; }
.hint { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; margin: 4px 0 8px; font-size: 14px; color: var(--muted); }
.hint ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink); }

/* top bars and lists */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.listrow { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); color: var(--ink); padding: 14px; margin: 10px 0; border-radius: 16px; font-weight: 500; }
.listrow .grow { flex: 1; min-width: 0; } .listrow b { display: block; font-weight: 700; }
.price { font: 800 36px var(--font); color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }
.rate { display: flex; gap: 10px; margin: 10px 0; }
.rate button { width: 48px; height: 48px; padding: 0; margin: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 18px; }
.rate button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-head .section-title { margin: 0; } .section-head button.info { margin: 0; }
.q { margin: 14px 0 6px; font-weight: 700; font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pricerow { display: flex; align-items: baseline; gap: 12px; }
.was { font: 700 22px var(--font); color: var(--muted); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.stars { display: flex; gap: 6px; margin: 10px 0; justify-content: center; }
.stars button.star { width: 52px; height: 52px; padding: 0; margin: 0; background: none; color: var(--ring); font-size: 40px; line-height: 1; border-radius: 12px; }
.stars button.star.on { color: var(--accent); }
.stars-static { color: var(--accent); font-size: 22px; letter-spacing: 2px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 0; }
.stat { background: var(--surface); border-radius: 16px; padding: 14px; } .stat b { display: block; font: 800 26px var(--font); margin-top: 2px; letter-spacing: -0.02em; }
.money { display: flex; align-items: center; gap: 8px; margin-top: 10px; font: 800 28px var(--font); } .money input { font: 800 28px var(--font); }

.fold { background: var(--surface); border-radius: 16px; margin: 12px 0; padding: 0 14px; }
.fold > summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px 0; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold[open] > summary { border-bottom: 1px solid var(--surface-2); }
.fold .listrow { background: var(--surface-2); }

/* Test lab windows (admin): a clear label so a fake account is never mistaken for a real one */
html[data-ghost]::before { content: attr(data-ghost); display: block; background: #7c3aed; color: #fff; font: 700 12px/1 system-ui, sans-serif; text-align: center; padding: 6px; letter-spacing: .04em; text-transform: uppercase; }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); padding: 0; margin: 0; display: grid; place-items: center; font-size: 18px; }
.bell b { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.bubble { max-width: 82%; padding: 10px 12px; border-radius: 16px; margin: 6px 0; overflow-wrap: anywhere; white-space: pre-wrap; background: var(--surface-2); }
.bubble.mine { margin-left: auto; background: var(--accent); color: var(--accent-ink); }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 4px; }
.newdot { background: var(--accent); color: var(--accent-ink); }
.notif { display: block; width: 100%; text-align: left; }
.notif.unread b::before { content: '● '; color: var(--accent); }

/* Feels like an app: no pinch-zoom (viewport), no press-and-hold highlight or callout. Typing boxes and chat stay selectable. */
html { touch-action: manipulation; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
body { -webkit-user-select: none; user-select: none; }
input, textarea, select, .bubble { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
