/* Dev/claimshub/sites/plumbing.claims/public_html/assets/site.css */

/* Tokens. Teal leads this brand; orange is reserved for "needs attention"
   so a waiting stage is the only warm thing on the page. */
:root {
  --ink: #0b1220;
  --navy: #0f172a;
  --panel: #111c31;
  --line: #24324a;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --teal: #0d9488;
  --teal-up: #14b8a6;
  --teal-text: #5eead4;
  --orange: #ea580c;
  --orange-text: #fb923c;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "DM Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: 220ms ease;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

/* Scanline: faint enough to read as texture, never as noise. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  background: repeating-linear-gradient(to bottom, rgba(148, 163, 184, 0.035) 0, rgba(148, 163, 184, 0.035) 1px, transparent 1px, transparent 4px);
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: 0.005em; }
h1 { font-size: clamp(2.75rem, 9vw, 5rem); }
h2 { font-size: clamp(2rem, 5vw, 2.75rem); }
h3 { font-size: 1.5rem; line-height: 1.15; }
p { margin: 0 0 16px; }
a { color: var(--teal-text); text-underline-offset: 3px; }
a:hover { color: #fff; }
strong { font-weight: 700; color: #fff; }

/* Keep in-page targets clear of the sticky header. */
[id] { scroll-margin-top: 80px; }

:focus-visible { outline: 2px solid var(--teal-text); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1136px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.mono { font-family: var(--mono); }

.skip { position: absolute; left: -9999px; top: 0; background: var(--teal); color: var(--ink); padding: 8px 16px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(11, 18, 32, 0.94); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: #fff; text-decoration: none; letter-spacing: 0.01em; }
.brand__dot { color: var(--teal-text); }
.brand--foot { margin: 0 0 8px; }
.nav { display: none; gap: 24px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; transition: color var(--ease); }
.nav a:hover { color: #fff; }
.top .btn { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 8px 24px;
  background: var(--teal); color: var(--ink);
  border: 1px solid var(--teal);
  font-family: var(--body); font-size: 1rem; font-weight: 700; text-decoration: none;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn:hover { background: var(--teal-up); border-color: var(--teal-up); color: var(--ink); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line); }
.btn--line:hover { background: var(--panel); border-color: var(--teal-text); color: #fff; }
.btn--small { min-height: 40px; padding: 8px 16px; font-size: 0.94rem; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 32px 0 16px; }
.actions--tight { margin: 24px 0 8px; }

/* Hero */
.hero { padding: 56px 0 64px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; gap: 40px; }
.lead { font-size: 1.25rem; line-height: 1.5; color: #cbd5e1; max-width: 34em; margin-top: 24px; }
.lead--small { font-size: 1.19rem; margin-top: 16px; color: #fff; }
.note { color: var(--muted); font-size: 0.94rem; max-width: 36em; }
.fine { color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.sub { color: var(--muted); max-width: 38em; margin-top: 8px; }

/* Claim file panel: the one signature element. */
.file { background: var(--navy); border: 1px solid var(--line); border-top: 3px solid var(--teal); padding: 24px; align-self: start; }
.file__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.file__title { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.file__event { color: var(--muted); margin: 4px 0 16px; }
.file__row { display: flex; justify-content: space-between; gap: 16px; font-size: 0.94rem; color: var(--muted); margin-top: 16px; }
.file__next { margin: 16px 0 0; padding: 8px 16px; border-left: 3px solid var(--orange); background: var(--panel); font-size: 0.94rem; }
.file__foot { margin: 16px 0 0; font-size: 0.8125rem; color: var(--muted); }

.tag { display: inline-block; margin: 0; padding: 0 8px; border: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 0.75rem; line-height: 24px; }
.tag--on { border-color: var(--teal); color: var(--teal-text); }

.stages { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.stages li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0 8px 24px; border-bottom: 1px solid var(--line); position: relative; font-size: 0.94rem; color: var(--muted); }
.stages li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border: 1px solid var(--muted); }
.stages .is-done { color: var(--text); }
.stages .is-done::before { background: var(--teal); border-color: var(--teal); }
.stages .is-now { color: #fff; background: var(--panel); }
.stages .is-now::before { background: var(--orange); border-color: var(--orange); }
.stages__state { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
.stages .is-now .stages__state { color: var(--orange-text); }

.meter { height: 8px; background: var(--panel); border: 1px solid var(--line); margin-top: 8px; }
.meter__fill { display: block; height: 100%; width: 0; background: var(--teal); transition: width 260ms ease; }
.meter__fill--example { width: 85.7%; }

/* Bands */
.band { padding: 64px 0; border-bottom: 1px solid var(--line); }
.band--alt { background: var(--navy); }

/* Steps are a real sequence, so they are numbered. */
.steps { list-style: none; counter-reset: step; margin: 40px 0 0; padding: 0; display: grid; gap: 32px; }
.steps li { counter-increment: step; border-top: 1px solid var(--line); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--mono); color: var(--teal-text); font-size: 0.875rem; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 8px 0 0; }

/* Checklist */
.check { display: grid; gap: 32px; }
.check__events { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 8px 16px; background: transparent; color: var(--text); border: 1px solid var(--line); font-family: var(--body); font-size: 0.94rem; cursor: pointer; transition: background var(--ease), border-color var(--ease), color var(--ease); }
.chip:hover { border-color: var(--teal-text); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--ink); font-weight: 700; }
.check__panel { margin-top: 24px; background: var(--ink); border: 1px solid var(--line); padding: 24px; }
.check__list { list-style: none; margin: 0; padding: 0; }
.check__list li { border-bottom: 1px solid var(--line); }
.check__list label { display: flex; gap: 16px; align-items: flex-start; padding: 12px 0; cursor: pointer; }
.check__list input { appearance: none; -webkit-appearance: none; flex: 0 0 24px; width: 24px; height: 24px; margin: 2px 0 0; border: 1px solid var(--muted); background: transparent; cursor: pointer; transition: background var(--ease), border-color var(--ease); }
.check__list input:checked { background: var(--teal); border-color: var(--teal); box-shadow: inset 0 0 0 5px var(--ink); }
.check__list input:checked + span { color: var(--muted); }
.check__safety { border-left: 3px solid var(--orange); background: var(--panel); padding: 8px 16px; font-size: 0.94rem; }
.check__empty { color: var(--muted); margin: 24px 0 0; }
.check__status { min-height: 24px; margin: 8px 0 0; font-size: 0.875rem; color: var(--teal-text); }
.check__status.is-error { color: var(--orange-text); }

/* Two-column lists */
.cols { display: grid; gap: 32px; margin-top: 40px; }
.col { border-top: 1px solid var(--line); padding-top: 16px; }
.plain { list-style: none; margin: 16px 0 0; padding: 0; }
.plain li { padding: 8px 0 8px 24px; position: relative; color: #cbd5e1; }
.plain li::before { content: ""; position: absolute; left: 0; top: 20px; width: 8px; height: 1px; background: var(--teal-text); }
.plain--tight { margin-top: 0; }
.plain--tight li { padding: 4px 0; }
.plain--tight li::before { display: none; }
.plumbers { display: grid; gap: 32px; }

/* Answers */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 700; color: #fff; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono); color: var(--teal-text); }
details[open] summary::after { content: "\2212"; }
details p { color: #cbd5e1; max-width: 40em; }

/* Footer */
.foot { padding: 48px 0 64px; }
.foot__grid { display: grid; gap: 32px; }
.foot__label { font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); margin: 0 0 8px; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cols, .plumbers { grid-template-columns: repeat(2, 1fr); gap: 48px; }
  .foot__grid { grid-template-columns: 1fr 1fr 1.4fr; }
}

@media (min-width: 1000px) {
  .nav { display: flex; }
  .top .btn { margin-left: 0; }
  .hero { padding: 88px 0 96px; }
  .hero__grid { grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .check { grid-template-columns: 1fr 1.4fr; gap: 64px; }
  .band { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
