/* ranclab.com. Design notes and tokens: site/README.md */
:root {
  --asphalt: #20262d;    /* ink; the night bands (hero, area, final) */
  --night-2: #2b333b;    /* a raised surface on a night band */
  --line-dark: #3c444d;  /* rules on a night band */
  --muted: #4b535c;      /* secondary text on light */
  --muted-dark: #b9beb4; /* secondary text on dark */
  --sign: #f3f4ef;       /* page: cool yard-sign white */
  --paper: #ffffff;      /* work order, warranty, tags, fields */
  --hivis: #ffd60a;      /* actions, and the price sign */
  --concrete: #cbcfc7;   /* field borders, dashed rules */
  --green: #1d7a46;      /* "Included", done, what Ranclab does */
  --red: #a1260d;        /* form errors, struck-out prices */
  --display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, sans-serif;
  --text: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif; /* Overpass: from Highway Gothic, the US road-sign face */
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--sign); color: var(--asphalt); font: 400 1.125rem/1.55 var(--text); text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 3px solid var(--asphalt); outline-offset: 3px; box-shadow: 0 0 0 7px var(--hivis); border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; background: var(--hivis); color: var(--asphalt); padding: 10px 14px; font-weight: 800; }
.skip:focus { left: var(--gutter); }

h1, h2 { font-family: var(--display); font-weight: 900; margin: 0; }
h2 { font-size: clamp(2.4rem, 6.2vw, 3.8rem); line-height: 0.95; margin-bottom: 0.6em; max-width: 18ch; text-wrap: balance; }
h3 { font-size: 1.25rem; line-height: 1.25; margin: 0 0 0.3em; }
.band { padding-block: var(--band); }
.lede { font-size: clamp(1.2rem, 2.5vw, 1.4rem); line-height: 1.5; max-width: 36ch; margin-bottom: 30px; }
.lead-in { font-size: 1.25rem; max-width: 40ch; margin-top: -0.4em; margin-bottom: 1.6em; }
.ico { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- night bands: the hero, one business per area, the close ---------- */
.masthead, .hero, .night, .final { background: var(--asphalt); color: var(--sign); }
.night h2, .final h2 { color: var(--sign); }
.night .lede, .final .lede { color: #dde0d8; }
.masthead :focus-visible, .hero :focus-visible, .night :focus-visible, .final :focus-visible { outline-color: var(--hivis); box-shadow: none; }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.mark { font: 900 2rem/1 var(--display); letter-spacing: 0.01em; text-decoration: none; }
.top a:not(.mark) { font-weight: 700; }

/* ---------- hero: the offer and the price on a road sign ---------- */
.hero { padding-block: clamp(8px, 3vw, 36px) clamp(56px, 8vw, 96px); }
/* phones: the pitch, then the form, then the phone demo; wide screens: pitch and phone side by side, the form under both */
.hero-grid { display: grid; gap: 44px; grid-template-areas: "pitch" "form" "demo"; }
.pitch { grid-area: pitch; }
.hero-form { grid-area: form; }
.hero .demo { grid-area: demo; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: minmax(0, 1fr) 330px; grid-template-areas: "pitch demo" "form form"; align-items: start; gap: 48px 64px; } }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); line-height: 1.02; letter-spacing: 0.005em; margin: 0 0 26px; max-width: 22ch; text-wrap: balance; }

.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 36px; margin-bottom: 26px; }
/* a yellow sign with the black inset border of a US road sign */
.price-sign { margin: 0; display: inline-flex; align-items: baseline; gap: 12px; background: var(--hivis); color: var(--asphalt); padding: 12px 22px 9px; border-radius: 8px; box-shadow: inset 0 0 0 5px var(--hivis), inset 0 0 0 8px var(--asphalt); }
.price-sign .amt { font: 900 clamp(3rem, 6.5vw, 4.2rem)/0.86 var(--display); letter-spacing: 0.01em; }
.price-sign .per { font: 800 clamp(1.05rem, 2vw, 1.25rem)/1 var(--text); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.checks svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--hivis); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.hero .lede { color: #dde0d8; max-width: 44ch; margin: 0; }
.hero .phone { background: #12171b; box-shadow: 0 0 0 2px #3a434c, 0 50px 90px -40px rgba(0, 0, 0, 0.8); }
.hero .caption { color: var(--muted-dark); }

/* ---------- forms ---------- */
.claim { display: grid; gap: 14px; max-width: 35rem; }
.row { display: grid; gap: 14px; }
@media (min-width: 560px) { .row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; }
.field input { width: 100%; height: 58px; padding: 0 16px; font: inherit; color: var(--asphalt); background: var(--paper); border: 2px solid var(--concrete); border-radius: 6px; }
.field input:hover { border-color: #9aa097; }
.field input:focus { outline: none; border-color: var(--asphalt); box-shadow: 0 0 0 4px var(--hivis); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn { appearance: none; border: 0; cursor: pointer; min-height: 62px; padding: 0 26px; border-radius: 6px; background: var(--hivis); color: var(--asphalt); font: 800 1.2rem/1.1 var(--text); box-shadow: inset 0 -4px 0 rgba(32, 38, 45, 0.24); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn:hover { background: #ffdc33; }
.btn:active { transform: translateY(1px); box-shadow: inset 0 -2px 0 rgba(32, 38, 45, 0.24); }
.btn[disabled] { opacity: 0.75; cursor: progress; }
.status { font-weight: 700; margin: 0; min-height: 0; }
.status.err { color: var(--red); }
.fine { font-size: 0.92rem; line-height: 1.45; color: var(--muted); margin: 0; }
.done { background: var(--paper); color: var(--asphalt); border: 2px solid var(--asphalt); border-radius: 6px; padding: 22px 24px; max-width: 35rem; }
.done h3 { font: 900 2.2rem/1 var(--display); margin-bottom: 10px; }
.done p { margin: 0; }
.done:focus { outline: none; }
/* forms on a night band */
.hero .field label, .final .field label { color: var(--sign); }
.hero .fine, .final .fine { color: var(--muted-dark); }
.hero .status.err, .final .status.err { color: #ffb4a3; }
/* the hero form runs in one line on wide screens */
.claim.wide { max-width: none; }
@media (min-width: 980px) {
  .claim.wide { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; column-gap: 14px; }
  .claim.wide .row { display: contents; }
  .claim.wide .status, .claim.wide .fine { grid-column: 1 / -1; }
}

/* ---------- the phone: a missed call, then the text back ---------- */
.demo { display: grid; justify-items: center; gap: 14px; margin: 0; }
.phone { width: min(320px, 88vw); background: var(--asphalt); border-radius: 48px; padding: 12px; box-shadow: 0 40px 70px -40px rgba(32, 38, 45, 0.7); }
.screen { background: #f8f9f6; color: var(--asphalt); border-radius: 37px; min-height: 548px; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.status-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 0.85rem; padding: 2px 8px 4px; }
.battery { width: 24px; height: 12px; border: 2px solid var(--asphalt); border-radius: 3px; position: relative; }
.battery::after { content: ""; position: absolute; inset: 1px 7px 1px 1px; background: var(--asphalt); border-radius: 1px; }
.appbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 12px; border-bottom: 1px solid #e0e3dc; }
.appbar strong { font-size: 1rem; line-height: 1.2; }
.tag { background: var(--hivis); font-weight: 800; font-size: 0.78rem; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.sys { align-self: center; display: flex; align-items: center; gap: 7px; font-size: 0.86rem; font-weight: 700; color: var(--muted); background: #eceee8; border-radius: 12px; padding: 7px 12px; }
.sys svg { width: 16px; height: 16px; flex: none; }
.bubble { max-width: 84%; padding: 11px 14px; border-radius: 19px; font-size: 0.98rem; line-height: 1.4; }
.out { align-self: flex-end; background: var(--asphalt); color: #fff; border-bottom-right-radius: 6px; }
.in { align-self: flex-start; background: #e2e5de; border-bottom-left-radius: 6px; }
.note { align-self: flex-end; font-size: 0.8rem; color: var(--muted); margin-top: -6px; }
.callback { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; border-radius: 16px; background: var(--hivis); font-weight: 800; font-size: 1.05rem; }
.callback svg { width: 20px; height: 20px; }
.caption { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* one orchestrated moment: the thread plays once on load */
@media (prefers-reduced-motion: no-preference) {
  .js .step { opacity: 0; transform: translateY(10px); animation: arrive 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
  .js .s1 { animation-delay: 0.5s; }
  .js .s2 { animation-delay: 1.6s; }
  .js .s3 { animation-delay: 1.9s; }
  .js .s4 { animation-delay: 3.2s; }
  .js .s5 { animation-delay: 4.3s; }
}
@keyframes arrive { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- video ---------- */
.video h2 { max-width: none; }
.frame { position: relative; aspect-ratio: 16 / 9; background: var(--asphalt); border-radius: 10px; overflow: hidden; }
.frame iframe, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame.empty { background: transparent; border: 2px dashed #9aa097; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 24px; }
.frame.empty p { margin: 0; }

/* ---------- where jobs go: three leaks ---------- */
.leaks { list-style: none; margin: 0; padding: 0; display: grid; gap: 44px; }
@media (min-width: 900px) { .leaks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.leaks li { border-top: 5px solid var(--asphalt); padding-top: 24px; }
.leaks .ico { margin-bottom: 16px; }
.leaks .ico .x { stroke: var(--red); }
.leaks h3 { font: 900 clamp(1.8rem, 3vw, 2.15rem)/1 var(--display); margin-bottom: 14px; max-width: 15ch; }
.leaks p { max-width: 40ch; }
.fix { border-left: 6px solid var(--green); padding-left: 14px; font-weight: 700; margin: 0; }

/* ---------- the value stack: a work order ---------- */
.stack { background: #e9ebe4; }
.stack-grid { display: grid; gap: 40px; }
@media (min-width: 1020px) { .stack-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 56px; align-items: start; } }
.order { background: var(--paper); border: 2px solid var(--asphalt); border-radius: 4px; padding: clamp(18px, 3.4vw, 36px); box-shadow: 8px 8px 0 var(--asphalt); }
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 24px; padding-bottom: 16px; border-bottom: 3px solid var(--asphalt); }
.order-head .title { font: 900 2.8rem/0.9 var(--display); margin: 0; }
.order-head dl { display: grid; grid-template-columns: auto auto; gap: 2px 10px; margin: 0; font-size: 0.95rem; color: var(--muted); }
.order-head dt { font-weight: 700; }
.order-head dd { margin: 0; }
.cols { display: none; }
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 6px 16px; padding-block: 16px; border-bottom: 2px dashed var(--concrete); }
.lines .what { grid-column: 1 / -1; }
.lines strong { display: block; font-size: 1.12rem; }
.lines .desc { display: block; color: var(--muted); font-size: 1rem; line-height: 1.45; max-width: 50ch; }
.lines .was { color: var(--muted); font-size: 0.98rem; }
.lines .lbl { display: block; font-weight: 700; font-size: 0.85rem; }
.lines .was s { white-space: nowrap; }
.lines s, .totals s { text-decoration-color: var(--red); text-decoration-thickness: 2px; }
.inc { color: var(--green); font-weight: 800; display: flex; align-items: center; gap: 6px; white-space: nowrap; justify-self: end; font-size: 0.98rem; }
.inc svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) {
  .cols { display: grid; grid-template-columns: minmax(0, 1fr) 12.5rem 8.5rem; gap: 16px; padding: 14px 0 2px; font-size: 0.9rem; font-weight: 700; color: var(--muted); }
  .cols span:last-child { text-align: right; }
  .lines li { grid-template-columns: minmax(0, 1fr) 12.5rem 8.5rem; gap: 16px; }
  .lines .what { grid-column: auto; }
  .lines .lbl { display: none; }
}
.totals { margin: 10px 0 0; }
.totals div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; padding-block: 10px; }
.totals dt { font-weight: 700; }
.totals dd { margin: 0; }
.totals .was-total dd { color: var(--muted); }
.totals .total { border-top: 3px solid var(--asphalt); margin-top: 8px; padding-top: 18px; }
.totals .total dt { font-size: 1.2rem; }
.totals .amt { font: 900 clamp(2.8rem, 6vw, 3.8rem)/1 var(--display); }
.src { margin: 14px 0 0; font-size: 0.88rem; color: var(--muted); }
.order-notes p { max-width: 34ch; }
@media (min-width: 1020px) { .order-notes { position: sticky; top: 32px; } }
.order-notes .big { font: 900 clamp(2rem, 3.6vw, 2.6rem)/1 var(--display); margin-bottom: 0.5em; }

/* ---------- bonuses: hang tags ---------- */
.tags { list-style: none; margin: 0; padding: 30px 0 0; display: grid; gap: 58px 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 232px), 1fr)); }
.htag { position: relative; background: var(--paper); border: 2px solid var(--asphalt); border-radius: 10px; padding: 50px 22px 24px; box-shadow: 0 18px 30px -24px rgba(32, 38, 45, 0.55); }
.htag:nth-child(odd) { transform: rotate(-1.4deg); }
.htag:nth-child(even) { transform: rotate(1.1deg); }
.htag::before { content: ""; position: absolute; top: 16px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--sign); box-shadow: 0 0 0 2px var(--asphalt), 0 0 0 7px var(--concrete); }
.htag::after { content: ""; position: absolute; left: calc(50% - 1px); bottom: calc(100% - 24px); width: 2px; height: 50px; background: var(--asphalt); transform-origin: bottom center; transform: rotate(14deg); }
.htag .ico { width: 38px; height: 38px; margin-bottom: 12px; }
.htag h3 { font: 900 1.85rem/1 var(--display); margin-bottom: 10px; }
.htag p { margin: 0; color: var(--muted); }

/* ---------- one business per trade, per area ---------- */
.area-grid { display: grid; gap: 36px; }
@media (min-width: 980px) { .area-grid { grid-template-columns: 340px minmax(0, 1fr); gap: 72px; align-items: center; } }
.radius { width: min(340px, 100%); }
.radius .streets { fill: none; stroke: var(--line-dark); stroke-width: 6; }
.radius .zone { fill: rgba(255, 214, 10, 0.07); stroke: var(--hivis); stroke-width: 3; stroke-dasharray: 10 8; }
.radius .mile { stroke: var(--hivis); stroke-width: 3; }
.radius .mile-t { fill: var(--hivis); font: 800 18px var(--text); }
.radius .pin { fill: var(--hivis); }
.radius .pin-dot { fill: var(--asphalt); }
.radius .you { fill: var(--sign); font: 900 26px var(--display); }

/* ---------- warranty: a certificate with a seal ---------- */
.cert { position: relative; background: var(--paper); border: 2px solid var(--asphalt); border-radius: 4px; box-shadow: inset 0 0 0 7px var(--paper), inset 0 0 0 9px var(--asphalt); padding: clamp(30px, 5vw, 60px); }
.cert h2 { padding-right: 120px; }
.seal { position: absolute; top: clamp(-34px, -2.6vw, -22px); right: clamp(14px, 4vw, 48px); width: clamp(100px, 13vw, 136px); transform: rotate(10deg); }
.seal path { fill: var(--green); }
.seal circle { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 4 5; }
.seal polyline { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.warranty { display: grid; gap: 28px 52px; margin: 0; }
@media (min-width: 780px) { .warranty { grid-template-columns: 1fr 1fr; } }
.warranty div { border-top: 3px solid var(--asphalt); padding-top: 14px; }
.warranty dt { font: 900 1.9rem/1 var(--display); margin-bottom: 8px; }
.warranty dd { margin: 0; max-width: 42ch; }

/* ---------- how it works: a real sequence ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; counter-reset: step; }
.steps li { position: relative; padding-left: 66px; min-height: 48px; }
.steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -4px; width: 46px; height: 46px; border-radius: 50%; border: 3px solid var(--asphalt); background: var(--sign); display: grid; place-items: center; font: 900 1.5rem/1 var(--display); }
.steps li:first-child::before { background: var(--hivis); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 46px; bottom: -32px; width: 3px; background: var(--asphalt); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
  .steps li { padding-left: 0; padding-top: 68px; }
  .steps li::before { top: 0; }
  .steps li:not(:last-child)::after { left: 50px; right: -26px; top: 21px; bottom: auto; width: auto; height: 3px; }
}
.when { display: block; font-weight: 800; font-size: 1.05rem; margin-bottom: 4px; }
.steps p { margin: 0; max-width: 30ch; }

/* ---------- straight talk ---------- */
.honest p { font-size: clamp(1.25rem, 2.6vw, 1.55rem); line-height: 1.5; max-width: 38ch; }

/* ---------- questions ---------- */
.faq { max-width: 52rem; }
.faq details { border-top: 3px solid var(--asphalt); }
.faq details:last-child { border-bottom: 3px solid var(--asphalt); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font-weight: 800; font-size: 1.15rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 900 2rem/1 var(--display); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 22px; max-width: 60ch; }

/* ---------- final: the close ---------- */
.final .field input:focus { box-shadow: 0 0 0 4px var(--hivis); }
.final-grid { display: grid; gap: 34px; }
@media (min-width: 980px) { .final-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); align-items: end; gap: 72px; } }
.more { list-style: none; padding: 0 0 0 20px; margin: 0; display: grid; gap: 14px; max-width: 30rem; border-left: 7px solid var(--hivis); }
.more li { font-size: 1.05rem; }
.foot { border-top: 1px solid var(--line-dark); margin-top: var(--band); padding-block: 28px 44px; display: flex; flex-wrap: wrap; gap: 14px 32px; justify-content: space-between; font-size: 0.95rem; color: var(--muted-dark); }
.foot p { margin: 0; max-width: 52ch; }
.foot nav { display: flex; gap: 22px; }

/* ---------- small pages (privacy, terms, thanks, 404) ---------- */
.page { padding-block: clamp(24px, 6vw, 72px) var(--band); max-width: 46rem; }
.page h1 { font-size: clamp(2.8rem, 8vw, 4.4rem); max-width: none; margin-bottom: 0.4em; }
.page h2 { font-size: clamp(1.7rem, 4vw, 2.2rem); max-width: none; margin: 1.6em 0 0.4em; }
.page p, .page li { max-width: 66ch; }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.small-foot { border-top: 3px solid var(--asphalt); padding-block: 24px 40px; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 0.95rem; color: var(--muted); }
.small-foot nav { display: flex; gap: 22px; }
