/* Speedee Brakes: one-page site.
   Colours sampled from his own graphics (tools/cut_images.py notes where):
   red    #B00303  his logo's caliper and car swoosh
   red-2  #A50204  the "WE COME TO YOU!" bar on his card
   black  #0D0D0D  the phone band on his card
   grey   #5C5B5B  the brake rotor in his logo
   green  #288E28  the Speedee checkmarks on his pricing flyer (checks only)
   Type: Archivo (his upright "KNOW WHAT YOU'RE PAYING FOR" and the wide
   italic card lettering), Roboto Condensed italic (his "SKIP THE SHOP!" and
   the brush-stroke "WE COME TO YOU."), Roboto for reading text. */

:root {
  --red: #B00303;
  --red-2: #A50204;
  --ink: #0D0D0D;
  --grey: #5C5B5B;
  --green: #288E28;
  --paper: #F4F4F4;
  --line: #E2E2E2;
  --white: #FFFFFF;
  --f-display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif;
  --f-cond: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Roboto", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --radius: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 17px/1.5 var(--f-body);
  -webkit-font-smoothing: antialiased;
  border-top: 6px solid var(--red);
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { list-style: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.red { color: var(--red); }
.nowrap { white-space: nowrap; }
/* Archivo's "&" is a curly shape that reads like a 6 in small caps; his graphics use a plain one */
.amp { font-family: var(--f-body); font-weight: 700; }

.wrap { width: min(100% - 2 * var(--gutter), 1140px); margin-inline: auto; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- buttons and round icon badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 24px;
  border-radius: 10px; border: 0;
  font: italic 800 20px/1 var(--f-cond); letter-spacing: .01em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .15s, transform .15s;
}
.btn svg { flex: none; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-2); }
.btn--black { background: var(--ink); color: var(--white); }
.btn--black:hover { background: #2a2a2a; }
.btn--white { background: var(--white); color: var(--ink); }
.btn--white:hover { background: #e9e9e9; }

.dot {
  flex: none; display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); color: var(--white);
}
.dot--lg { width: 58px; height: 58px; }

/* ---------- header ---------- */
.top { background: var(--white); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.top__logo img { width: 128px; }
.top__call { display: flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.top__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: var(--white); flex: none; }
.top__txt { display: flex; flex-direction: column; line-height: 1; }
.top__txt small { font: 800 11px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-bottom: 4px; }
.top__txt b { font: italic 800 21px/1 var(--f-cond); letter-spacing: .01em; white-space: nowrap; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__copy { padding: 18px 0 8px; }
.hero__h1 {
  display: flex; align-items: center; gap: 10px;
  font: 800 13px/1.25 var(--f-display); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); margin-bottom: 12px;
}
.hero__h1::before { content: ""; flex: none; width: 26px; height: 4px; background: var(--red); }
.hero__slogan {
  font: italic 900 clamp(66px, 19vw, 118px)/.86 var(--f-cond);
  color: var(--red); text-transform: uppercase; letter-spacing: -.005em;
  margin-left: -.03em;
}
.hero__brush {
  position: relative; display: inline-block;
  margin: 14px 0 16px -.4em;
  padding: .3em 1.15em .52em .78em;
  font: italic 800 clamp(30px, 8.6vw, 48px)/1 var(--f-cond);
  color: var(--white); text-transform: uppercase; letter-spacing: .005em;
}
.hero__brush .brush { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.hero__brush span { position: relative; }
.hero__lead { font: italic 700 18px/1.4 var(--f-body); max-width: 31em; }
.hero__lead em { color: var(--red); }
/* phones have the call / text bar at the bottom, so the buttons show from tablets up */
.hero__cta { display: none; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.hero__cta .btn { flex: 1 1 auto; }
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 22px; max-width: 540px; }
.trust li { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; font: 700 13.5px/1.22 var(--f-body); }
.trust .dot { width: 36px; height: 36px; }

.hero__pic { position: relative; width: calc(100% + var(--gutter)); margin: 14px calc(-1 * var(--gutter)) 0 auto; max-width: 600px; }
.hero__pic img { width: 100%; }
.price {
  position: absolute; left: 0; bottom: 7%;
  display: flex; flex-direction: column; align-items: center;
  padding: 10px 16px 11px; background: var(--white);
  border: 3px solid var(--red); border-radius: var(--radius);
  box-shadow: 0 10px 24px rgb(13 13 13 / .18);
  text-align: center;
}
.price__top { font: 800 12px/1 var(--f-display); letter-spacing: .06em; text-transform: uppercase; }
.price__num { font: italic 900 52px/.95 var(--f-display); color: var(--red); letter-spacing: -.02em; margin: 3px 0 1px; }
.price__sub { font: 500 13px/1 var(--f-body); color: var(--grey); }

/* ---------- section heads ---------- */
.h2 {
  font: 800 clamp(30px, 8.4vw, 50px)/1.02 var(--f-display);
  text-transform: uppercase; letter-spacing: -.012em;
}
.h2 .red { display: block; }
.swoosh { color: var(--red); width: 168px; height: 14px; margin: 10px auto 0; }
.swoosh--left { margin-left: 0; }
.head { text-align: center; margin-bottom: 30px; }
.head__sub { font: 400 18px/1.4 var(--f-body); color: var(--grey); margin-top: 10px; }

/* ---------- his van-wrap speed stripes, used as an accent in two places ---------- */
.stripes { position: absolute; left: 0; width: 100%; max-width: none; pointer-events: none; }
.stripes--top { top: 0; height: 24px; }
.stripes--cta { top: 0; height: 30px; }

/* ---------- honest pricing ---------- */
.pricing { position: relative; background: var(--paper); padding: 48px 0 52px; }
.vs { position: relative; display: grid; gap: 14px; max-width: 980px; margin-inline: auto; }
.vs__box {
  position: relative; background: var(--white);
  border: 2px solid var(--red); border-radius: var(--radius);
  padding: 34px 20px 10px;
}
/* the typical shop: quiet and greyed back; Speedee: bold, raised, green */
.vs__box--shop { background: #FAFAFA; border-color: #D3D3D3; }
.vs__box--us { border: 3px solid var(--green); box-shadow: 0 18px 38px rgb(13 13 13 / .13); }
.vs__tab {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -55%);
  padding: 8px 22px; border-radius: 10px; white-space: nowrap;
  background: var(--red); color: var(--white);
  font: italic 800 19px/1 var(--f-display); text-transform: uppercase; letter-spacing: .02em;
}
.vs__box--shop .vs__tab { background: var(--grey); font-size: 17px; padding: 7px 18px; }
.vs__box--us .vs__tab { background: var(--green); font-size: 21px; padding: 9px 26px; }
.vs__list li { display: flex; gap: 14px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.vs__list li:first-child { border-top: 0; }
.vs__list b { display: block; font: 700 17px/1.3 var(--f-body); }
.vs__list span:not(.mark) { display: block; font-size: 15px; line-height: 1.4; color: var(--grey); margin-top: 2px; }
.mark { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--white); margin-top: 1px; }
.mark--x { background: #F3DCDC; color: var(--red); }
.mark--ok { background: var(--green); }
.vs__box--shop b { color: #555; font-weight: 500; }
.vs__box--shop span:not(.mark) { color: #6B6B6B; }   /* 5.1:1 on #FAFAFA, still lighter than the Speedee side */
.vs__box--us b { font-weight: 700; }
/* "VS" between the two, heavy italic like his slogans */
.vs__vs {
  position: relative; z-index: 2; justify-self: center; display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%; margin: -16px 0 14px;
  background: var(--ink); color: var(--white); border: 3px solid var(--red);
  box-shadow: 0 0 0 4px var(--paper);
  font: italic 900 22px/1 var(--f-cond); letter-spacing: .01em; padding-right: .08em;
}

/* ---------- how the job is done ---------- */
.job { padding: 50px 0 54px; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.steps li { text-align: center; }
.steps .ill { width: 76px; height: 76px; margin: 0 auto 12px; overflow: visible; }
.steps h3 { font: 800 16px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.steps p { font-size: 15px; line-height: 1.45; color: var(--grey); margin-top: 6px; }

.cover {
  display: grid; gap: 22px; margin-top: 38px;
  background: var(--ink); color: var(--white);
  padding: 26px 22px; border-left: 8px solid var(--red);
}
.cover__item { display: flex; gap: 14px; align-items: flex-start; }
.cover h3 { font: italic 800 18px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.cover p { font-size: 15px; line-height: 1.45; color: #D2D2D2; margin-top: 6px; }
.cover p.cover__note { font-size: 13px; color: #B9B9B9; font-style: italic; }

/* ---------- where: his van pulling up, on his van-wrap speed stripes ---------- */
.where { background: var(--paper); padding: 40px 0 44px; overflow: hidden; }
.where__in { display: grid; gap: 10px; }
.where__pic { position: relative; isolation: isolate; width: 100%; max-width: 560px; margin: -22px auto 0; aspect-ratio: 600 / 340; }
.where__stripes { position: absolute; left: 0; top: 0; height: 100%; width: calc(100% * 2000 / 600); max-width: none; z-index: -2; }
.where__pic img { position: absolute; left: -1%; bottom: 7%; width: 82%; }   /* narrow screens: room for the stripes */
/* soft ground shadow under the tyres */
.where__pic::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 16%; bottom: 4%; height: 9%;
  background: radial-gradient(closest-side, rgb(13 13 13 / .32), rgb(13 13 13 / 0));
}
.where__head .h2 { font-size: clamp(30px, 8.4vw, 46px); }
.where__list { display: grid; gap: 18px; }
.where__list li { display: flex; gap: 14px; align-items: flex-start; }
.where__list h3 { font: 800 18px/1.2 var(--f-display); text-transform: uppercase; letter-spacing: .01em; }
.where__list p { font-size: 16px; color: var(--grey); margin-top: 4px; }

/* ---------- closing call to action ---------- */
.cta__bar {
  background: var(--red); color: var(--white); text-align: center;
  font: italic 900 clamp(20px, 5.4vw, 34px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .005em;
  padding: 14px var(--gutter);
}
.cta__bar span { display: block; }
.cta__bar .cta__dash { display: none; }
.cta__main { position: relative; background: var(--ink); color: var(--white); padding: 30px 0 34px; }
.cta__in { position: relative; display: grid; gap: 20px; justify-items: center; text-align: center; }
.cta__label { font: 800 14px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--white); }
.cta__phone {
  display: inline-block; margin-top: 6px;
  font: italic 900 clamp(46px, 13.6vw, 76px)/1 var(--f-cond); letter-spacing: .005em;
  color: var(--white); text-decoration: none; white-space: nowrap;
}
.cta__btns { display: flex; gap: 10px; justify-content: center; width: 100%; }
.cta__btns .btn { flex: 1 1 0; padding: 0 12px; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #A9A9A9; border-top: 1px solid #2a2a2a; padding: 18px 0 20px; font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; }
.foot__tag { font: italic 800 14px/1.5 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--white); }

/* ---------- 404 page ---------- */
.lost-page { min-height: 100vh; display: flex; flex-direction: column; }
.lost { flex: 1; display: flex; align-items: center; padding: 28px 0 56px; border-top: 1px solid var(--line); }
.lost__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.lost__van { width: min(100%, 420px); margin-bottom: 18px; }
.lost__code { font: 800 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.lost__lead { font-size: 18px; color: var(--grey); margin-top: 12px; max-width: 30em; }
.lost__cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }

/* ---------- sticky call / text bar on phones ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .96); border-top: 1px solid var(--line);
  box-shadow: 0 -6px 18px rgb(13 13 13 / .12);
}
.dock__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px;
  border-radius: 10px; text-decoration: none;
  font: italic 800 20px/1 var(--f-cond); text-transform: uppercase; color: var(--white);
}
.dock__btn--call { background: var(--red); }
.dock__btn--text { background: var(--ink); }
/* room for the bar (67px) inside the black footer, so no white strip shows under it */
.foot { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }

/* ---------- tablets ---------- */
@media (min-width: 760px) {
  :root { --gutter: 28px; }
  .top__logo img { width: 196px; }
  .top__in { padding: 12px 0; }
  .top__ic { width: 46px; height: 46px; }
  .top__txt small { font-size: 12px; }
  .top__txt b { font-size: 28px; }
  .hero__cta { display: flex; }
  .hero__cta .btn { flex: 0 0 auto; }
  .trust li { flex-direction: row; text-align: left; gap: 10px; font-size: 15px; }
  .trust .dot { width: 38px; height: 38px; }
  /* the two lists share rows, so each point sits level with its answer */
  .vs { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(4, auto); gap: 0 30px; max-width: 1060px; }
  .vs__vs { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }   /* 54 px until the boxes get roomier at 980 */
  .vs__box, .vs__list { display: grid; grid-row: span 4; grid-template-rows: subgrid; }
  .cover { padding: 28px 30px; }
  .where__pic img { left: 3%; width: 88%; }
  .where__pic::after { left: 2%; right: 8%; }
  .cta__btns { width: auto; }
  .cta__btns .btn { flex: 0 0 auto; padding: 0 24px; }
  .dock { display: none; }
  .foot { padding-bottom: 20px; }
}

/* ---------- desktop: photo bleeds off the right edge, as on his card ---------- */
@media (min-width: 980px) {
  .hero { --pw: clamp(420px, 42vw, 720px); min-height: calc(var(--pw) * .9708); }   /* the photo's height / width */
  .hero__in { min-height: inherit; display: flex; align-items: center; }
  .hero__copy { width: min(560px, 100vw - var(--pw) - 2 * var(--gutter) - 24px); padding: 34px 0 44px; }
  .hero__pic { position: absolute; right: 0; bottom: 0; width: var(--pw); max-width: none; margin: 0; }
  .price { left: -2%; bottom: 9%; padding: 14px 22px 15px; }
  .price__top { font-size: 14px; }
  .price__num { font-size: 72px; }
  .price__sub { font-size: 15px; }
  .hero__h1 { font-size: 14px; }
  .hero__slogan { font-size: clamp(88px, 8.6vw, 122px); }
  .hero__brush { font-size: clamp(38px, 3.6vw, 50px); }
  .hero__lead { font-size: 20px; }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps .ill { width: 88px; height: 88px; }
  .steps li + li { border-left: 1px solid var(--line); }
  .steps li { padding: 0 14px; }
  .cover { grid-template-columns: repeat(2, 1fr); gap: 26px 40px; }
  .cta__bar span, .cta__bar .cta__dash { display: inline; }
  .cta__in { grid-template-columns: auto auto; justify-content: space-between; align-items: center; text-align: left; justify-items: start; }
  .cta__btns { justify-content: flex-end; }

  .pricing { padding: 64px 0 66px; }
  .head { margin-bottom: 40px; }
  .h2 .red { display: inline; }
  .vs__box { padding: 38px 26px 12px; }
  .vs__vs { width: 64px; height: 64px; font-size: 27px; }
  .job { padding: 64px 0 68px; }
  .where { padding: 52px 0 48px; }
  /* words on the left, the van on the right driving in towards them */
  .where__in { grid-template-columns: minmax(0, max-content) minmax(0, 600px); grid-template-rows: auto 1fr;
    grid-template-areas: "head pic" "list pic"; justify-content: center; align-items: start; gap: 26px 48px; }
  .where__head { grid-area: head; align-self: end; }
  .where__list { grid-area: list; }
  .where__pic { grid-area: pic; align-self: center; max-width: none; margin: 0; }
  .where__head .h2 { font-size: clamp(40px, 4.4vw, 54px); }
  .where__head .h2 .red { display: block; }
  .where__list { gap: 22px; }
  .where__list h3 { font-size: 20px; }
  .where__list p { font-size: 17px; }
  .where__list .dot { width: 46px; height: 46px; }
  .cta__main { padding: 34px 0 38px; }
  .stripes--top { height: 36px; }
  .stripes--cta { height: 48px; }
  .btn { min-height: 58px; padding: 0 28px; font-size: 21px; }
}

@media (min-width: 1200px) {
  .hero { --pw: clamp(430px, 46vw, 720px); }
}
