/* Maintenance Tracker site
   Layout: single column with wide bands; hero pairs the pitch with a live-looking text thread.
   Palette: cool slate ink on a cool paper ground, with Butte copper as the one accent. */
:root {
  --paper: #f4f5f3;
  --surface: #ffffff;
  --ink: #17202a;
  --ink-soft: #4d5866;
  --rule: #d9dde2;
  --copper: #a8582a;
  --copper-soft: #f3e4d9;
  --bubble-in: #e6e9ed;
  --bubble-out: #17202a;
  --bubble-out-ink: #f4f5f3;
  --ok: #2f7a4f;
  --ok-soft: #e1f0e6;
  --wait: #9a6a12;
  --wait-soft: #f6ecd6;
  --font-display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --wrap: 68rem;
  --read: 42rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #11161c;
    --surface: #182029;
    --ink: #e6e9ee;
    --ink-soft: #9ba6b4;
    --rule: #2a3440;
    --copper: #e08d58;
    --copper-soft: #2e2219;
    --bubble-in: #24303c;
    --bubble-out: #e6e9ee;
    --bubble-out-ink: #11161c;
    --ok: #6fc794;
    --ok-soft: #17291f;
    --wait: #e2b45c;
    --wait-soft: #2c2414;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--copper); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }
.mono { font-family: var(--font-mono); }
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--copper);
}

/* Top bar */
.topbar { border-bottom: 1px solid var(--rule); background: var(--paper); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; padding-block: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
}
.brand-mark {
  width: 1.6rem; height: 1.6rem; border-radius: 6px;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 400;
}
.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.nav .nav-signin { color: var(--ink); font-weight: 500; }
.nav .nav-cta {
  color: var(--paper); background: var(--ink);
  padding: .45rem .9rem; border-radius: 999px; font-weight: 500;
}
.nav .nav-cta:hover { color: var(--paper); background: var(--copper); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font: 500 1rem/1 var(--font-body);
  padding: .9rem 1.25rem; border-radius: 999px;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--copper); color: #fff; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { color: var(--ink); border-color: var(--rule); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }

/* Hero */
.hero { padding-block: 4.5rem 4rem; }
.hero .wrap {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}
.hero-copy { display: flex; flex-direction: column; gap: 1.4rem; min-width: 0; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-stretch: 85%; }
.hero h1 em { font-style: normal; color: var(--copper); }
.hero .lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 34rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero-note { font-size: .9rem; color: var(--ink-soft); }

/* Phone thread */
.phone {
  justify-self: center; width: min(100%, 22rem);
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: 28px; padding: 1rem 1rem 1.25rem;
  box-shadow: 0 24px 48px -28px rgba(23, 32, 42, .35);
}
.phone-head {
  display: flex; flex-direction: column; align-items: center; gap: .15rem;
  padding-bottom: .9rem; margin-bottom: .9rem; border-bottom: 1px solid var(--rule);
}
.phone-head .avatar {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font-family: var(--font-mono); font-size: .85rem;
}
.phone-head strong { font-size: .95rem; }
.phone-head span { font-family: var(--font-mono); font-size: .78rem; color: var(--ink-soft); }
.thread { display: flex; flex-direction: column; gap: .55rem; }
.stamp { text-align: center; font-size: .72rem; color: var(--ink-soft); font-family: var(--font-mono); margin-block: .25rem; }
.bubble {
  max-width: 84%; padding: .6rem .85rem; border-radius: 18px;
  font-size: .9rem; line-height: 1.4;
}
.bubble.out { align-self: flex-end; background: var(--bubble-out); color: var(--bubble-out-ink); border-bottom-right-radius: 6px; }
.bubble.in { align-self: flex-start; background: var(--bubble-in); color: var(--ink); border-bottom-left-radius: 6px; }

/* Sections */
section.band { padding-block: 4.5rem; border-top: 1px solid var(--rule); }
.section-head { display: flex; flex-direction: column; gap: .75rem; max-width: var(--read); margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-stretch: 88%; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* Steps: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 14px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0;
}
.step-n { font-family: var(--font-mono); font-size: .85rem; color: var(--copper); }
.step h3 { font-size: 1.3rem; font-stretch: 90%; }
.step p { color: var(--ink-soft); font-size: .98rem; }

/* Ticket preview */
.ticket-demo {
  margin-top: 2rem; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 14px; overflow-x: auto;
}
.ticket-demo table { width: 100%; border-collapse: collapse; min-width: 34rem; font-size: .92rem; }
.ticket-demo th, .ticket-demo td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ticket-demo th { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
.ticket-demo tr:last-child td { border-bottom: 0; }
.ticket-demo td.mono { font-size: .85rem; white-space: nowrap; }
.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.pill.received { background: var(--copper-soft); color: var(--copper); }
.pill.scheduled { background: var(--wait-soft); color: var(--wait); }
.pill.done { background: var(--ok-soft); color: var(--ok); }
.demo-caption { font-size: .85rem; color: var(--ink-soft); margin-top: .75rem; }

/* Problem list */
.problems { display: grid; gap: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.problem { padding: 1.5rem 1.5rem 1.5rem 0; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.problem:nth-child(odd) { padding-right: 2rem; }
.problem:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--rule); }
.problem h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.problem p { color: var(--ink-soft); font-size: .98rem; }

/* Pricing */
.pricing { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.price-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px;
  padding: 2rem; display: flex; flex-direction: column; gap: 1.25rem;
}
.price-formula { font-family: var(--font-mono); font-size: .9rem; color: var(--ink-soft); }
.calc label { display: flex; justify-content: space-between; gap: 1rem; font-weight: 500; }
.calc output.units { font-family: var(--font-mono); }
.calc input[type=range] { width: 100%; accent-color: var(--copper); margin-top: .6rem; }
.price-total { display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }
.price-total .amount { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; font-stretch: 85%; }
.price-total .per { color: var(--ink-soft); }
.price-perunit { font-size: .92rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.includes { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .7rem; }
.includes li { display: grid; grid-template-columns: 1.1rem 1fr; gap: .6rem; color: var(--ink); }
.includes li::before { content: ""; width: .55rem; height: .55rem; margin-top: .55rem; border-radius: 2px; background: var(--copper); }
.pilot-note { background: var(--copper-soft); color: var(--ink); border-radius: 12px; padding: 1rem 1.1rem; font-size: .95rem; }

/* Tenants + about */
.split { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split > div { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.split h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-stretch: 88%; }
.split p { color: var(--ink-soft); }
.number-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 14px; padding: 1.25rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.number-card .big { font-family: var(--font-mono); font-size: 1.7rem; color: var(--ink); }
.fine { font-size: .88rem; color: var(--ink-soft); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact .wrap { padding-block: 4rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.contact h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-stretch: 88%; color: var(--paper); }
.contact p { color: color-mix(in srgb, var(--paper) 75%, transparent); max-width: 36rem; }
.contact .email { font-family: var(--font-mono); font-size: 1.15rem; color: var(--paper); user-select: all; }
.contact .row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.copy-btn { background: transparent; color: var(--paper); border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); }
.copy-btn:hover { border-color: var(--paper); }

/* Footer */
footer.site { border-top: 1px solid var(--rule); }
footer.site .wrap { padding-block: 1.75rem 2.5rem; display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; font-size: .9rem; color: var(--ink-soft); }
footer.site nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); }

/* Document pages (privacy, terms, opt-in) */
.doc { max-width: var(--read); margin: 0 auto; padding-block: 3.5rem 4.5rem; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 2rem; }
.doc header { display: flex; flex-direction: column; gap: .6rem; border-bottom: 1px solid var(--rule); padding-bottom: 1.5rem; }
.doc h1 { font-size: clamp(2.1rem, 5vw, 2.8rem); font-stretch: 88%; }
.doc .meta { color: var(--ink-soft); font-size: .95rem; }
.doc section { display: flex; flex-direction: column; gap: .6rem; }
.doc h2 { font-size: 1.25rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.doc p, .doc li { max-width: 65ch; }
.doc ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .4rem; }
.doc .callout { background: var(--copper-soft); border-radius: 10px; padding: 1rem 1.15rem; font-weight: 500; }
.doc .sms { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 1.25rem 1.35rem 1.4rem; }
.doc strong { font-weight: 600; }
.notice { border: 2px solid var(--ink); border-radius: 14px; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; background: var(--surface); }
.notice .big { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1.15; font-stretch: 88%; }
.notice .num { font-family: var(--font-mono); font-size: 2.1rem; color: var(--copper); }
.notice .fine { font-size: .95rem; }

@media (max-width: 860px) {
  .hero .wrap, .pricing, .split { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-block: 3rem; }
  .phone { justify-self: stretch; width: 100%; max-width: 24rem; }
}
@media (max-width: 640px) {
  .problems { grid-template-columns: minmax(0, 1fr); }
  .problem:nth-child(n) { padding: 1.25rem 0; border-left: 0; }
  .nav { gap: 1rem; }
  .nav a:not(.nav-cta):not(.nav-signin) { display: none; }
  section.band { padding-block: 3.25rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .bubble { animation: rise .5s ease both; }
  .thread .bubble:nth-of-type(2) { animation-delay: .15s; }
  .thread .bubble:nth-of-type(3) { animation-delay: .3s; }
  .thread .bubble:nth-of-type(4) { animation-delay: .45s; }
  @keyframes rise { from { transform: translateY(6px); opacity: .001; } to { transform: none; opacity: 1; } }
}
