:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f4f2;
  --ink: #141816;
  --ink-2: #3d4440;
  --muted: #68706b;
  --line: #d7dbd8;
  --brand: #0d5c3d;
  --brand-ink: #ffffff;
  --accent: #0e6b45;
  --accent-hover: #0a5536;
  --accent-ink: #ffffff;
  --accent-soft: #e5f1ea;
  --good: #0e6b45;
  --good-soft: #e5f1ea;
  --warn: #8a4a00;
  --warn-soft: #fbeedd;
  --bad: #b42318;
  --bad-soft: #fcebea;
  --stars: #0e6b45;
  --radius: 4px;
  --shadow: none;
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101311;
    --surface: #161a17;
    --surface-2: #1e231f;
    --ink: #edf0ed;
    --ink-2: #c2c9c4;
    --muted: #8e9791;
    --line: #2b322d;
    --brand: #6fcf9f;
    --brand-ink: #0b100c;
    --accent: #3aa874;
    --accent-hover: #4dbb86;
    --accent-ink: #06110a;
    --accent-soft: #15301f;
    --good: #6fcf9f;
    --good-soft: #15301f;
    --warn: #e8a650;
    --warn-soft: #33250f;
    --bad: #ff8e82;
    --bad-soft: #3a1714;
    --stars: #6fcf9f;
    --shadow: none;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  min-width: 320px;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 0.5rem;
  letter-spacing: -0.01em;
}
h1 {
  font-size: 1.75rem;
}
h2 {
  font-size: 1.15rem;
}
h3 {
  font-size: 1.05rem;
}
p {
  margin: 0 0 0.75rem;
}
a {
  color: var(--brand);
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
  margin-left: auto;
}
.block {
  display: block;
}
.good {
  color: var(--good);
}

/* ---------- shell ---------- */

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  background: var(--ink);
  color: var(--bg);
}
.nav {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav a {
  padding: 0.4rem 0.6rem;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.nav a:hover {
  background: var(--surface-2);
}
.nav a.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
  font-weight: 600;
}
.topbar-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.demo-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.demo-switcher select {
  max-width: 220px;
  padding: 0.35rem 0.5rem;
  font-size: 0.85rem;
}

.main {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}
.narrow {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wide {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

.page-header h1 {
  margin: 0;
}
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.back-link {
  display: inline-block;
  font-size: 0.875rem;
  margin-bottom: 0.4rem;
  text-decoration: none;
}
.section-title {
  margin: 0.75rem 0 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.offline-bar {
  background: var(--warn-soft);
  color: var(--warn);
  text-align: center;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
}
.loading {
  margin: 4rem auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.narrower {
  max-width: 440px;
}
.code-input {
  font-size: 1.6rem;
  letter-spacing: 0.4em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* ---------- surfaces ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.card > :last-child {
  margin-bottom: 0;
}
.card-dark {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.card-dark a {
  color: inherit;
}

.banner {
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  margin: 0;
}
.banner-warn {
  background: var(--warn-soft);
  border-color: transparent;
  color: var(--warn);
}
.banner-bad {
  background: var(--bad-soft);
  border-color: transparent;
  color: var(--bad);
}

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty .button {
  margin-top: 0.5rem;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.list-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
}
a.list-item:hover {
  border-color: var(--brand);
}
.list-item-main {
  flex: 1;
  min-width: 0;
}
.list-item-title {
  font-weight: 600;
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
.list-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}
.list-item-quiet {
  box-shadow: none;
  opacity: 0.8;
}

/* ---------- controls ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.button:hover {
  border-color: var(--ink-2);
}
.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.button-lg {
  padding: 0.85rem 1.3rem;
  font-size: 1.05rem;
}
.button-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}
.button.danger,
.link-button.danger {
  color: var(--bad);
}
.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 0.9rem;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
  align-self: flex-start;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.55rem 0.7rem;
  width: 100%;
}
input[type='checkbox'],
input[type='radio'] {
  width: auto;
  accent-color: var(--brand);
}
input[type='file'] {
  padding: 0.35rem;
  font-size: 0.85rem;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sub-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
legend {
  font-weight: 700;
  margin-bottom: 0.5rem;
  padding: 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.field-label {
  font-size: 0.875rem;
  font-weight: 600;
}
.field-hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.95rem;
  cursor: pointer;
}
.check input {
  margin-top: 0.3rem;
}
.check-row {
  justify-content: space-between;
}
.form-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.error-note {
  color: var(--bad);
  background: var(--bad-soft);
  padding: 0.6rem 0.8rem;
  border-radius: 4px;
  margin: 0;
  font-size: 0.9rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
}
.choice-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  font: inherit;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}
.choice small {
  color: var(--muted);
}
.choice-on {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  background: var(--surface-2);
  font-weight: 600;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.segmented button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.segmented button small {
  font-weight: 400;
  color: var(--muted);
}
.segmented button.on {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
  background: var(--surface-2);
}

/* ---------- bits ---------- */

.badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--ink-2);
  white-space: nowrap;
  vertical-align: middle;
}
.badge-good {
  background: var(--good-soft);
  color: var(--good);
}
.badge-warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.badge-bad {
  background: var(--bad-soft);
  color: var(--bad);
}
.badge-accent {
  background: var(--accent-soft);
  color: var(--brand);
}

.stars {
  color: var(--stars);
  letter-spacing: 1px;
}
.stars-lg {
  font-size: 1.4rem;
}
.stars-off {
  color: var(--line);
}
.star-input {
  display: flex;
  gap: 0.25rem;
}
.star-input button {
  background: none;
  border: 0;
  font-size: 2rem;
  line-height: 1;
  color: var(--line);
  cursor: pointer;
  padding: 0;
}
.star-input button.on {
  color: var(--accent);
}

.countdown {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.countdown-low {
  color: var(--bad);
}

.photo-preview {
  display: block;
  max-width: 100%;
  max-height: 240px;
  border-radius: 4px;
  border: 1px solid var(--line);
  object-fit: cover;
}
.photo-sm {
  max-height: 140px;
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ticks li {
  padding-left: 1.6rem;
  position: relative;
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.ticks li.todo::before {
  background: transparent;
  outline: 1.5px solid var(--muted);
  outline-offset: -1.5px;
}

/* ---------- home ---------- */

.home {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.hero {
  padding: 2.5rem 0 1rem;
  max-width: 720px;
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.5rem;
}
.lede {
  font-size: 1.15rem;
  color: var(--ink-2);
  max-width: 580px;
}
.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step-n {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 4px;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.step p {
  color: var(--ink-2);
}
.pro-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.pro-cta p {
  margin: 0;
  opacity: 0.9;
}
.offer {
  font-size: 0.95rem;
}

/* ---------- small screens ---------- */

@media (max-width: 720px) {
  .steps,
  .stat-row-4 {
    grid-template-columns: 1fr 1fr;
  }
  .pro-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar-end {
    margin-left: 0;
    width: 100%;
  }
  .demo-switcher {
    flex: 1;
  }
  .demo-switcher select {
    max-width: none;
    flex: 1;
  }
  .doc-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  .steps,
  .row-2,
  .segmented,
  .choice-grid-3 {
    grid-template-columns: 1fr;
  }
  .quote-head {
    flex-direction: column;
  }
  .quote-price {
    align-items: flex-start;
    text-align: left;
  }
  .msg {
    max-width: 92%;
  }
}

/* ---------- public site (server-rendered pages) ---------- */

.site-main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.site-nav a.cta {
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}
.crumbs {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  padding: 0;
  margin: 0 0 -1.5rem;
}
.crumbs li + li::before {
  content: '›';
  margin-right: 0.35rem;
}
.crumbs a {
  color: var(--muted);
}
.section h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}
.section > p.muted {
  margin-top: -0.4rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
  align-items: center;
}
.hero-grid .hero {
  padding: 1rem 0;
}
.job-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.job-form h2 {
  font-size: 1.15rem;
  margin: 0;
}
.job-form .row-2 {
  gap: 0.5rem;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--ink-2);
}
.hero-trust li::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 0.45rem;
  vertical-align: 0.1em;
  background: var(--accent);
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}
.service-card:hover {
  border-color: var(--brand);
}
.service-card .price {
  font-weight: 700;
  margin-top: auto;
}
.place-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0;
  margin: 0;
  list-style: none;
}
.place-links a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
}
.place-links a:hover {
  border-color: var(--brand);
}
.borough-block + .borough-block {
  margin-top: 1.25rem;
}
.borough-block h3 a {
  color: inherit;
}
.price-table td:last-child {
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.price-table td {
  padding: 0.7rem 0.75rem;
}
.ls-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
}
a.ls-card:hover {
  border-color: var(--brand);
}
.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.review-card blockquote {
  margin: 0;
  color: var(--ink);
}
.review-reply {
  margin: 0.25rem 0 0;
  padding-left: 0.75rem;
  border-left: 2px solid var(--line);
  color: var(--ink-2);
}
.review-meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.faq summary {
  font-weight: 600;
  cursor: pointer;
  list-style-position: outside;
}
.faq details p {
  margin: 0.5rem 0 0;
  color: var(--ink-2);
}
.speed {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.speed strong {
  font-size: 1.6rem;
  display: block;
}
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.prose {
  max-width: 720px;
}
.prose h2 {
  margin-top: 1.75rem;
}
.prose li {
  margin-bottom: 0.4rem;
}
.draft-note {
  background: var(--warn-soft);
  color: var(--warn);
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  font-size: 0.9rem;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 2rem 1rem;
  font-size: 0.875rem;
}
.site-footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.5rem;
}
.site-footer h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
}
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.site-footer a {
  color: var(--ink-2);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

.site-menu {
  display: none;
  margin-left: auto;
  position: relative;
}
.site-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}
.site-menu summary::-webkit-details-marker {
  display: none;
}
.site-menu nav {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 220px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  z-index: 20;
}
.site-menu nav a {
  padding: 0.6rem 0.75rem;
  border-radius: 4px;
  color: var(--ink);
  text-decoration: none;
}
.site-menu nav a:hover {
  background: var(--surface-2);
}
.mobile-cta {
  display: none;
}
.sample-quote {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 460px;
  border-left: 3px solid var(--ink);
}
.sample-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.sample-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}
.sample-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  white-space: nowrap;
}
.sample-price strong {
  font-size: 1.5rem;
  line-height: 1.1;
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }
  .site-menu {
    display: block;
  }
  .mobile-cta {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 15;
    padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }
  .mobile-cta .button {
    width: 100%;
  }
  .site-footer {
    padding-bottom: 5rem;
  }
}

@media (max-width: 820px) {
  .hero-grid,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .site-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
