/* Detailer landing page. One job: watch the video, book the call (laid out as on Syncova's
   page). Navy and white, one family (Archivo) at three widths: wide for headlines, normal for
   reading, narrow for the docket labels. Bright blue only ever means "book a call". The full
   version, with the sections cut from here, is in drafts/frontline-main-site. */

@font-face {
  font-family: "Archivo Var";
  src: url(/detailers/assets/archivo-var.woff2) format("woff2-variations"), url(/detailers/assets/archivo-var.woff2) format("woff2");
  font-weight: 400 850;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0B1B36;
  --ink-2: #13284D;
  --navy: #1F3470;
  --act: #3366EE;
  --act-2: #2552D6;
  --sky: #9DB9FF;
  --paper: #FFFFFF;
  --mist: #F2F5FA;
  --line: #D8DFEA;
  --text: #0B1B36;
  --muted: #4B5A75;
  --muted-d: #A8B5CC;
  --font: "Archivo Var", Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 116%;
  --narrow: 82%;
  --gut: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.white :focus-visible { outline-color: var(--act); }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--paper); color: var(--text); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ------------------------------------------------------------- type ---- */
h1, h2 { font-stretch: var(--wide); font-weight: 800; letter-spacing: -0.018em; line-height: 1.04; }
h1 { font-size: clamp(2.1rem, 1.35rem + 3.4vw, 3.2rem); max-width: 16ch; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }

/* ------------------------------------------------------------ bands ---- */
.band { padding: 56px 0; }
.ink { background: var(--ink); color: #fff; }
.white { background: var(--paper); color: var(--text); }
@media (min-width: 900px) { .band { padding: 88px 0; } }

/* ---------------------------------------------------------- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px;
  border: 0; border-radius: 10px;
  background: var(--act); color: #fff;
  font: inherit; font-weight: 750; font-stretch: 104%; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--act-2); }
.btn:active { transform: translateY(1px); }

/* ----------------------------------------------------------- header ---- */
.top-in { display: flex; align-items: center; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; font-stretch: 112%; font-size: 1.02rem; }
.brand img { width: 34px; height: auto; }

/* ------------------------------------------------------- hero, 1 to 7 ---- */
.hero { padding-top: 24px; }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.for { color: var(--muted-d); font-size: 0.95rem; margin-bottom: 14px; }
.for strong { color: #fff; font-weight: 650; }
.hero h1 { max-width: 16ch; }
.wide-br { display: none; }
/* On a laptop the headline runs wider than the video, as Syncova's does: two lines, the
   first one long. */
@media (min-width: 900px) {
  .hero h1 { max-width: none; text-wrap: wrap; font-size: clamp(3.4rem, 0.8rem + 4.6vw, 4.4rem); line-height: 1; letter-spacing: -0.025em; }
  .wide-br { display: inline; }
  .hero .promise { max-width: none; }
}
.promise { margin-top: 14px; max-width: 34ch; text-wrap: balance; font-size: clamp(1.08rem, 1rem + .5vw, 1.3rem); line-height: 1.45; color: #D9E1EE; }

/* The two steps, numbered because they are a sequence: watch, then book. */
.step { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 1.02rem; }
.num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--act); color: #fff; font-size: 0.9rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.vsl { width: 100%; max-width: 720px; margin-top: 26px; }
.frame {
  position: relative; margin: 12px auto 0; max-width: 720px;
  aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden;
  background: var(--ink-2); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.7);
}
.frame iframe, .frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.frame-empty { position: absolute; inset: 16px; display: grid; place-items: center; text-align: center; padding: 16px; border: 2px dashed rgba(157,185,255,.45); border-radius: 8px; color: var(--muted-d); font-size: 0.95rem; }
.frame-empty code { color: #fff; font-family: inherit; font-weight: 650; }

.hero .btn { margin-top: 26px; width: 100%; }
@media (min-width: 600px) { .hero .btn { width: auto; } }

.offer { margin-top: 40px; width: 100%; max-width: 560px; padding: 24px 22px 26px; border-radius: 14px; background: var(--ink-2); border: 1px solid rgba(157,185,255,.22); }
.offer h2 { font-size: 1.35rem; margin-bottom: 10px; }
.offer p { color: #D9E1EE; line-height: 1.5; }
.offer p + p { margin-top: 4px; }
.offer strong { color: #fff; }

/* ------------------------------------------------- calendar, 8 and 9 ---- */
.book { padding-top: 8px; }
.book-in { display: flex; flex-direction: column; align-items: center; }
/* 700px at most: GHL's calendar switches to its narrow layout at 720px and under, where
   "Schedule meeting" runs across the full width of the form instead of sitting in a corner. */
.cal { position: relative; width: 100%; max-width: 700px; margin-top: 14px; min-height: 700px; background: var(--paper); color: var(--text); border-radius: 14px; }
/* Nothing clips the calendar: it grows with each step (see app.js), and the frame rounds its own corners. */
.cal iframe { display: block; width: 100%; min-height: 700px; border: 0; border-radius: 14px; }
.cal-help { margin-top: 12px; font-size: 0.88rem; color: var(--muted-d); text-align: center; }
.cal-help a { color: #D9E1EE; }
.cal-fallback { padding: 28px 22px; text-align: center; color: var(--muted); }
.cal-fallback a { color: var(--act); font-weight: 700; }

/* ------------------------------------------------------ proof, 10 ---- */
.proof { background: var(--mist); }
.proof h2 { text-align: center; }
.proof-lede { margin: 10px auto 0; max-width: 46ch; text-wrap: balance; text-align: center; color: var(--muted); font-size: 1.05rem; }
.proof-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: 36px; }
@media (min-width: 900px) { .proof-grid { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 56px; align-items: center; } }

/* The docket: a job sheet with a torn top edge (a mask, so it works on any background). The ad
   numbers and the total work are two separate parts, with no total rule between them: the
   $41.7K is everything Imperium did in those weeks, not what the ads made. */
.docket {
  position: relative; margin: 0;
  background: var(--paper); color: var(--text);
  padding: 30px 24px 22px;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 24px 48px -32px rgba(11,27,54,.45);
  font-variant-numeric: tabular-nums lining-nums;
  -webkit-mask: radial-gradient(circle 6px at 9px 0, transparent 97%, #000) 0 0 / 18px 100% repeat-x;
          mask: radial-gradient(circle 6px at 9px 0, transparent 97%, #000) 0 0 / 18px 100% repeat-x;
}
@media (min-width: 900px) { .docket { padding: 34px 30px 24px; } }
.dk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.dk-who { font-weight: 800; font-stretch: 112%; font-size: 1.12rem; line-height: 1.2; }
.dk-who span { display: block; font-weight: 500; font-stretch: var(--narrow); font-size: 0.9rem; color: var(--muted); }
.dk-when { font-stretch: var(--narrow); font-size: 0.9rem; color: var(--muted); text-align: right; }
.dk-group { margin-top: 14px; font-weight: 700; font-stretch: 106%; font-size: 0.95rem; }
.dk-rows { margin: 2px 0 0; }
/* Label, dotted leader, figure. The leader is the row's ::before, moved between the two. */
.dk-rows > div { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; }
.dk-rows > div::before { content: ""; order: 2; flex: 1; min-width: 16px; border-bottom: 2px dotted #B9C3D4; transform: translateY(-5px); }
.dk-rows dt { order: 1; font-stretch: var(--narrow); font-weight: 500; color: var(--muted); font-size: 1rem; }
.dk-rows dd { order: 3; margin: 0; font-weight: 750; font-stretch: 110%; font-size: 1.2rem; white-space: nowrap; }
.dk-work { margin-top: 14px; padding: 16px 16px 14px; border-radius: 8px; background: var(--mist); }
.dk-work-label { font-stretch: var(--narrow); font-weight: 600; font-size: 1rem; color: var(--text); }
.dk-work-num { margin-top: 2px; font-size: clamp(2.2rem, 1.7rem + 2vw, 2.9rem); font-weight: 850; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1.05; }
.dk-foot { margin-top: 14px; font-stretch: 90%; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

.shots { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; justify-items: center; }
.shot { margin: 0; width: 100%; }
.shot img { border-radius: 12px; box-shadow: 0 1px 0 rgba(11,27,54,.06), 0 24px 48px -28px rgba(11,27,54,.5); }
.shot figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--muted); }
.shot-result { max-width: 300px; }

/* --------------------------------------------- disclaimer, 11 ---- */
.foot { background: #07142A; color: var(--muted-d); padding: 40px 0 120px; font-size: 0.86rem; line-height: 1.55; }
.foot p + p { margin-top: 10px; }
.foot { text-align: center; }
.foot p { max-width: 80ch; margin-left: auto; margin-right: auto; text-wrap: balance; }
.foot a { color: #D9E1EE; }
@media (min-width: 900px) { .foot { padding-bottom: 48px; } }

/* -------------------------------------------- phone sticky book bar ---- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  background: rgba(11,27,54,.96); border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(110%); transition: transform .25s ease;
}
.bar.show { transform: none; }
.bar .btn { flex: 1; min-height: 52px; }
.bar-note { color: var(--muted-d); font-size: 0.88rem; white-space: nowrap; }
@media (min-width: 900px) { .bar { display: none; } }
@media (prefers-reduced-motion: reduce) { .bar { transition: none; } }

/* ------------------------------------------------- the booked page ---- */
/* The confirmation page: the rules for the call, the numbers to bring, how it will go. */
.done { padding-top: 32px; }
.done-in { max-width: 760px; }
.done h1 { max-width: 18ch; }
.done .lede { margin-top: 16px; max-width: 56ch; font-size: 1.08rem; color: #D9E1EE; }
.done-block { margin-top: 40px; }
.done-block h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); padding-bottom: 12px; border-bottom: 1px solid rgba(157,185,255,.25); }
.rules, .bring { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.rules li, .bring li { position: relative; padding-left: 30px; color: #D9E1EE; }
.rules strong { color: #fff; }
.rules li::before, .bring li::before {
  content: ""; position: absolute; left: 3px; top: 0.42em;
  width: 12px; height: 6px;
  border-left: 2.5px solid var(--sky); border-bottom: 2.5px solid var(--sky);
  transform: rotate(-45deg);
}
/* How the call runs is a real sequence, so it's numbered, with the minutes on the right. */
.call { list-style: none; counter-reset: s; margin: 18px 0 0; padding: 0; display: grid; gap: 18px; }
.call li { counter-increment: s; position: relative; padding-left: 52px; }
.call li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--act); font-weight: 800; font-size: 0.95rem; }
.call h3 { display: flex; justify-content: space-between; gap: 12px; font-size: 1.1rem; font-weight: 750; font-stretch: 106%; }
.call h3 span { font-weight: 600; font-stretch: var(--narrow); color: var(--muted-d); font-size: 0.95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.call p { margin-top: 4px; color: var(--muted-d); }
.deal-line { margin-top: 44px; padding: 24px 22px; border-radius: 14px; background: var(--ink-2); border: 1px solid rgba(157,185,255,.25); }
.deal-big { font-size: clamp(1.3rem, 1.1rem + .9vw, 1.7rem); font-weight: 800; font-stretch: 110%; line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
.deal-line p + p { margin-top: 8px; color: #D9E1EE; }
