/* sweep-mate.app
   Layout: left-aligned text column beside a soot-black chimney stack the phone stands in front of;
   then the job as a four-step sequence, the trade details, and a dark band on data. */
@font-face { font-family: 'Archivo'; src: url('/fonts/archivo-latin-wdth-normal.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('/fonts/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ash: #e7e9e6;      /* ground: cold hearth ash */
  --paper: #fbfbfa;
  --soot: #191b1c;
  --slate: #4b5559;    /* secondary text */
  --line: #cdd2ce;
  --ember: #a63a0c;    /* the app's accent */
  --ember-hi: #d4622e;
  --ok: #1d5a37;
  --ok-bg: #dcebe1;
  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ash); color: var(--soot); font-family: var(--body); font-size: 18px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--ember); text-underline-offset: 3px; }
a:hover { color: #7f2c09; }
a:focus-visible { outline: 3px solid color-mix(in srgb, var(--ember) 60%, transparent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 72rem; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* top bar */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 20px; }
.mark { display: inline-flex; align-items: center; gap: 10px; color: var(--soot); text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 22px; }
.mark img { border-radius: 6px; }
.signin { font-weight: 700; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border: 1.5px solid var(--soot); border-radius: 12px; color: var(--soot); text-decoration: none; }
.signin:hover { background: var(--soot); color: var(--ash); }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-block: 40px 96px; }
.hero-text { display: grid; gap: 24px; min-width: 0; }
h1 { font-size: clamp(52px, 8.4vw, 112px); font-weight: 800; font-stretch: 72%; line-height: 0.9; letter-spacing: -0.01em; }
.lede { font-size: clamp(19px, 2vw, 23px); max-width: 32rem; }
.status { color: var(--slate); max-width: 32rem; padding-left: 14px; border-left: 3px solid var(--ember); }

/* the stack the phone stands in front of */
.phone { margin: 0; position: relative; justify-self: center; padding: 64px 0 0; width: min(100%, 360px); }
.phone::before { content: ''; position: absolute; left: 12%; right: 12%; top: 26px; bottom: -96px; background: var(--soot); border-radius: 4px 4px 0 0; }
.phone::after { content: ''; position: absolute; top: 0; left: calc(12% + 18px); width: 44px; height: 30px; background: var(--soot); border-radius: 3px 3px 0 0; box-shadow: 86px 6px 0 -2px var(--soot); }
.screen { position: relative; z-index: 1; margin: 0 auto; width: 300px; max-width: 100%; border-radius: 34px; border: 10px solid #0f1011; background: #f3f3f0; padding: 16px 12px 14px; font-size: 12px; line-height: 1.35; color: #17191a; box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.45); display: grid; gap: 6px; }
.s-top { color: #a63a0c; font-weight: 700; font-size: 12px; }
.s-title { font-family: var(--display); font-weight: 800; font-stretch: 90%; font-size: 17px; line-height: 1.1; }
.s-sub { color: #50565a; font-size: 11px; }
.s-card { background: #fff; border: 2px solid #17191a; border-radius: 12px; padding: 10px; display: grid; gap: 5px; margin-top: 4px; }
.s-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.s-chip { font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 5px; }
.s-chip.ok { background: #e3f1e8; color: #1d5a37; }
.s-label { font-weight: 700; font-size: 10.5px; color: #33393c; margin-top: 3px; }
.s-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.s-pills.g2 { display: grid; grid-template-columns: 1fr 1fr; }
.s-pills span { border: 1.2px solid #bfc2bc; border-radius: 7px; padding: 4px 7px; text-align: center; font-size: 10.5px; }
.s-pills span.on { border: 1.6px solid #a63a0c; background: #fbede6; color: #7f2c09; font-weight: 700; }
.s-due { display: flex; justify-content: space-between; background: #f3f3f0; border-radius: 8px; padding: 6px 8px; margin-top: 4px; font-size: 11px; }
.s-due span { color: #50565a; }
.s-btn { background: #a63a0c; color: #fff; font-weight: 700; text-align: center; border-radius: 11px; padding: 10px; margin-top: 4px; font-size: 13px; }

/* the job, in order */
.flow { padding-block: 72px; display: grid; gap: 36px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; font-stretch: 78%; line-height: 1; max-width: 22ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--soot); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 800; font-stretch: 72%; font-size: 56px; line-height: 0.9; color: var(--ember); }
.steps h3 { font-size: 24px; font-weight: 800; font-stretch: 85%; }
.steps p { color: var(--slate); font-size: 17px; }
.state { margin-top: auto; align-self: flex-start; font-size: 14px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: var(--paper); color: var(--slate); border: 1px solid var(--line); }
.state.now { background: var(--ok-bg); color: var(--ok); border-color: transparent; }

/* trade details */
.made { padding-block: 24px 88px; display: grid; gap: 32px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.facts div { display: grid; gap: 6px; align-content: start; min-width: 0; }
.facts dt { font-family: var(--display); font-weight: 800; font-stretch: 85%; font-size: 22px; line-height: 1.15; }
.facts dd { margin: 0; color: var(--slate); font-size: 17px; }

/* data band: full-bleed soot */
.data { background: var(--soot); color: var(--ash); box-shadow: 0 0 0 100vmax var(--soot); clip-path: inset(0 -100vmax); padding-block: 72px; display: grid; gap: 28px; }
.data-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.data-grid p { color: #b9bfbb; font-size: 17px; }
.data-grid b { color: var(--paper); }

.foot { padding-block: 40px 56px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--slate); font-size: 15px; }

@media (max-width: 920px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-bottom: 72px; }
  .phone::before { bottom: -72px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts, .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .steps, .facts, .data-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { gap: 32px; }
  .flow, .data { padding-block: 56px; }
}

/* 404 */
.lost { padding-block: 64px 120px; display: grid; gap: 20px; }
.lost h1 { font-size: clamp(44px, 7vw, 80px); }
