/* Otterbend Home Repair (Demo). Design: docs/design-plan.md, "Step 43". No fonts to load, no motion. */
:root {
  --wall: #f2f4f3;
  --paper: #ffffff;
  --ink: #1b2226;
  --slate: #4a555c;
  --spruce: #1f5e57;
  --spruce-dark: #174841;
  --tape: #f2c14e;
  --rule: #cdd3d1;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --s1: 1.125rem;   /* 18px body */
  --s2: 1.406rem;   /* 22.5 */
  --s3: 1.75rem;    /* 28 */
  --s4: 2.188rem;   /* 35 */
  --s5: 2.75rem;    /* 44 */
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 var(--s1)/1.6 var(--font);
}
img, svg { max-width: 100%; }
a { color: var(--spruce); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--spruce-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--spruce); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(var(--s4), 7vw, var(--s5)); }
h2 { font-size: var(--s3); }
h3 { font-size: var(--s2); }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }
.narrow { max-width: 44rem; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); padding: 0.75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* The memorable element: a strip of masking tape that says Demo, on every page. */
.tape {
  position: relative; z-index: 2;
  width: max-content; max-width: calc(100% - 2rem);
  margin: 0.75rem 0 -0.4rem 1rem;
  padding: 0.35rem 1rem 0.3rem;
  background: var(--tape); color: var(--ink);
  font-size: 0.95rem; font-weight: 600; letter-spacing: 0.01em;
  transform: rotate(-1.6deg);
  clip-path: polygon(0 6%, 2% 0, 98% 4%, 100% 0, 99% 96%, 100% 100%, 2% 95%, 0 100%, 1% 50%);
  box-shadow: 0 1px 0 rgba(27, 34, 38, 0.12);
}
.tape span { font-weight: 800; }

.top { border-bottom: 2px solid var(--ink); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 0.9rem; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; font-size: var(--s2); letter-spacing: -0.015em; }
.brand:hover { color: var(--ink); text-decoration: underline; }
.top-phone { font-weight: 700; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; gap: 0.35em; }
.top-phone:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0.7rem 1.5rem;
  background: var(--spruce); color: #fff; border: 0; border-radius: 4px;
  font: 700 var(--s1)/1.2 var(--font); text-decoration: none; cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--spruce-dark);
}
.btn:hover { background: var(--spruce-dark); color: #fff; }
.btn:disabled { background: #8a9894; box-shadow: none; cursor: not-allowed; }

.hero { padding: 2.75rem 0 3rem; }
.hero-in { display: grid; gap: 2rem; align-items: start; }
.lede { font-size: var(--s2); line-height: 1.5; color: var(--slate); max-width: 34rem; }
.cta { margin-top: 1.5rem; }

/* The work-order panel: a carbon-copy ticket. */
.ticket { background: var(--paper); border: 2px solid var(--ink); padding: 1.25rem 1.25rem 0.5rem; }
.ticket-head { font-weight: 800; border-bottom: 2px solid var(--ink); padding-bottom: 0.5rem; margin-bottom: 0.25rem; }
.ticket dl { margin: 0; }
.ticket dl > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.75rem; padding: 0.7rem 0; border-bottom: 1px dashed var(--rule); }
.ticket dl > div:last-child { border-bottom: 0; }
.ticket dt { color: var(--slate); font-size: 1rem; padding-top: 0.1rem; }
.ticket dd { margin: 0; font-weight: 600; }

.band { padding: 3rem 0; border-top: 1px solid var(--rule); }
.band-alt { background: #e8ecea; }
.rows { list-style: none; margin: 1rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.rows li { display: grid; gap: 0.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.rows h3 { margin: 0; font-size: var(--s1); }
.rows p { margin: 0; color: var(--slate); }
.towns { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 0; }
.towns li { font-weight: 700; }
.towns li:not(:last-child)::after { content: "·"; color: var(--slate); font-weight: 400; margin: 0 0.75rem; }

.demo-note { background: var(--paper); border-left: 6px solid var(--tape); padding: 0.75rem 1rem; }
.quote { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 1.25rem; display: grid; gap: 0.35rem; }
.quote label { font-weight: 700; margin-top: 0.75rem; }
.quote label:first-child { margin-top: 0; }
.quote input, .quote select, .quote textarea {
  width: 100%; min-height: 50px; padding: 0.65rem 0.75rem;
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid #7c8a86; border-radius: 4px;
}
.quote textarea { min-height: 8rem; resize: vertical; }
.quote input:focus-visible, .quote select:focus-visible, .quote textarea:focus-visible { border-color: var(--spruce); }
.quote .btn { margin-top: 1rem; justify-self: start; }
.form-status { margin: 0.5rem 0 0; font-weight: 600; }
.form-status:empty { display: none; }
.rather { margin-top: 1.25rem; color: var(--slate); }
.quote-grid { display: grid; gap: 1.5rem; align-items: start; }
.quote-side p { max-width: 30rem; }

.foot { border-top: 2px solid var(--ink); padding: 2rem 0 2.5rem; margin-top: 0; font-size: 1rem; color: var(--slate); }
.foot p { max-width: 44rem; }
.foot-demo strong { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.foot-nav a { min-height: 48px; display: inline-flex; align-items: center; font-weight: 700; }
.foot-nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.foot-contact a { overflow-wrap: anywhere; }

/* Privacy page */
.policy { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.policy-date { color: var(--slate); }
.policy-lede { font-size: var(--s2); line-height: 1.5; }
.policy-demo { background: var(--paper); border-left: 6px solid var(--tape); padding: 0.75rem 1rem; }
.policy-toc { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--ink); padding: 1rem 1.25rem; margin: 1.5rem 0 2rem; }
.policy-toc p { font-weight: 800; margin: 0 0 0.25rem; }
.policy-toc ol { margin: 0; padding-left: 1.4rem; columns: 2 16rem; column-gap: 2rem; }
.policy-toc li { padding: 0.2rem 0; break-inside: avoid; }
.policy section { padding-top: 1.75rem; margin-top: 1.75rem; border-top: 1px solid var(--rule); scroll-margin-top: 1rem; }
.policy h3 { font-size: var(--s1); margin-top: 1.25rem; }
.policy ul { padding-left: 1.25rem; }
.policy li { margin-bottom: 0.5rem; }
.scopes { width: 100%; border-collapse: collapse; background: var(--paper); margin: 0.75rem 0 1.25rem; font-size: 1rem; }
.scopes caption { text-align: left; font-weight: 700; padding-bottom: 0.4rem; }
.scopes th, .scopes td { text-align: left; vertical-align: top; padding: 0.7rem 0.75rem; border: 1px solid var(--rule); }
.scopes thead th { background: #e8ecea; }
.scopes td:first-child { width: 42%; }
.scopes code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9rem; overflow-wrap: anywhere; }

@media (max-width: 40rem) {
  .scopes thead { position: absolute; left: -9999px; }
  .scopes, .scopes tbody, .scopes tr, .scopes td { display: block; width: 100%; }
  .scopes tr { border: 1px solid var(--rule); border-bottom: 0; }
  .scopes tr:last-child { border-bottom: 1px solid var(--rule); }
  .scopes td { border: 0; }
  .scopes caption { display: block; width: 100%; }
  .scopes td:first-child { background: #e8ecea; width: 100%; }
}
@media (min-width: 48rem) {
  .hero { padding: 4rem 0 4.5rem; }
  .hero-in { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3.5rem; }
  .ticket { margin-top: 0.5rem; transform: rotate(0.6deg); }
  .rows li { grid-template-columns: 16rem 1fr; gap: 2rem; align-items: baseline; }
  .tape { margin-left: max(1rem, calc((100% - 70rem) / 2 + 1rem)); }
  .quote-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 3.5rem; }
}
