/* FinalCoat Local landing page.
   Layout: alternating navy (night, the pitch) and paper (daylight, the job site) bands; tall condensed
   headlines like trade signage; gold only for money, promises and the action. */
:root {
  --navy: #0d1b2a;
  --navy-2: #13243a;
  --navy-3: #1c3150;
  --gold: #d6b03a;
  --gold-hi: #e6c357;
  --gold-ink: #2e2405;
  --paper: #f6f3ec;
  --paper-2: #ece6d9;
  --ink: #1a1917;
  --ink-2: #3a3833;
  --muted: #6d6962;
  --mist: #c9d1dc;
  --line: #ddd7ca;
  --loss: #e0773a;
  --ok: #2f8a55;
  --error: #b3361d;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: max(16px, env(safe-area-inset-left, 0px), 4vw);
  --gutter-r: max(16px, env(safe-area-inset-right, 0px), 4vw);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--navy); color: #fff; font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }

/* ---------- type ---------- */
.display {
  margin: 0;
  font-weight: 900;
  font-stretch: 78%;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: .96;
  letter-spacing: -.01em;
  text-transform: uppercase;
  text-wrap: balance;
}
h2.display { font-size: clamp(34px, 4.8vw, 64px); }
.display-dark { color: var(--ink); }
.gold { color: var(--gold); }
.eyebrow { margin: 0 0 16px; font: 600 13px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.eyebrow-dark { color: #8a6d12; }
.section-head { max-width: 860px; margin-bottom: 36px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 0 22px; height: 48px; border-radius: 10px;
  font: 800 16px var(--sans); text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn:focus-visible { outline: 3px solid var(--gold-hi); outline-offset: 3px; }
.btn-gold { background: var(--gold); color: var(--gold-ink); box-shadow: 0 10px 30px rgba(214, 176, 58, .25); }
.btn-gold:hover { background: var(--gold-hi); transform: translateY(-1px); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .3); }
.btn-ghost:hover { border-color: #fff; }
.btn-big { height: 58px; padding: 0 24px; font-size: 17px; }
.btn-small { height: 40px; padding: 0 16px; font-size: 15px; }
.play { width: 0; height: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: rgba(13, 27, 42, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21; background: var(--navy); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand img { display: block; height: 44px; width: auto; }
.topnav { display: flex; gap: 26px; font-weight: 600; font-size: 15px; }
.topnav a { text-decoration: none; color: var(--mist); }
.topnav a:hover { color: #fff; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.top-phone { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--mist); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(48px, 8vw, 104px) clamp(56px, 8vw, 110px);
  background:
    radial-gradient(900px 500px at 85% 30%, rgba(214, 176, 58, .12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
}
.hero::after { /* siding lines, a nod to the job site in the film */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(180deg, transparent 0 62px, rgba(255, 255, 255, .025) 62px 64px);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { min-width: 0; }
.hero-lede { margin: 26px 0 0; max-width: 36em; font-size: clamp(18px, 1.6vw, 21px); color: var(--mist); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.assurances { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--mist); font-size: 15px; }
.assurances b { color: #fff; }
.assurances li::before { content: "✓"; color: var(--gold); font-weight: 900; margin-right: 8px; }

.hero-visual { display: grid; justify-items: center; gap: 18px; min-width: 0; }
.phone {
  width: min(330px, 100%); aspect-ratio: 300 / 620; padding: 11px; border-radius: 48px;
  background: #0a0a0b; box-shadow: 0 40px 80px rgba(0, 0, 0, .5), inset 0 0 0 2px #333;
  transform: rotate(-4deg);
}
.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  background: linear-gradient(180deg, #2b3340, #14171c); padding: 64px 14px 0;
}
.notch { position: absolute; top: 11px; left: 50%; width: 88px; height: 24px; margin-left: -44px; border-radius: 14px; background: #000; }
.lock-time { text-align: center; font-weight: 300; font-size: 72px; line-height: 1; letter-spacing: -2px; }
.lock-date { text-align: center; color: var(--mist); font-size: 15px; margin-top: 6px; }
.alert {
  margin-top: 28px; padding: 14px 16px; border-radius: 20px;
  background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
}
.alert-app { display: flex; align-items: center; gap: 8px; font: 600 11px var(--mono); color: var(--muted); }
.alert-dot { width: 10px; height: 10px; border-radius: 3px; background: #3fae6b; }
.alert-title { margin-top: 8px; font-weight: 800; font-size: 19px; line-height: 1.2; }
.alert-details { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e4e0d8; display: grid; gap: 5px; font-size: 13.5px; font-weight: 500; }
.alert-when { color: #2f7a4f; font-weight: 700; }
.alert-btn { margin-top: 12px; padding: 9px 0; border-radius: 12px; background: #3fae6b; text-align: center; font-weight: 700; font-size: 15px; }
.visual-caption { margin: 0; font: 500 14px var(--mono); color: var(--mist); text-align: center; }

/* ---------- weakness ---------- */
.weakness { background: var(--paper); color: var(--ink); padding-block: clamp(64px, 9vw, 120px); }
.weakness-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.steps-of-loss { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 0; }
.steps-of-loss li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 19px; color: var(--ink-2); }
.steps-of-loss li:last-child { color: var(--ink); font-weight: 600; }
.loss-time { font: 600 15px/1.9 var(--mono); color: var(--loss); }
.cost-card { background: var(--ink); color: var(--paper); border-radius: 18px; padding: clamp(26px, 3vw, 40px); }
.cost-label { margin: 0; font: 600 13px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #a8a39a; }
.cost-figure { margin: 10px 0 0; font-weight: 900; font-stretch: 80%; font-size: clamp(64px, 7.6vw, 104px); line-height: .9; color: var(--loss); font-variant-numeric: tabular-nums; }
.cost-text { margin: 18px 0 0; font-size: 18px; }
.cost-note { margin: 16px 0 0; font-size: 13px; color: #a8a39a; }

/* ---------- film ---------- */
.film { background: var(--navy); padding-block: clamp(64px, 9vw, 120px); }
.video-frame { border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .08); }
.video-frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.film-cta { margin-top: 32px; display: flex; justify-content: center; }

/* ---------- how ---------- */
.how { background: var(--paper); color: var(--ink); padding-block: clamp(64px, 9vw, 120px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.how-steps li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 18px; }
.step-n { font-weight: 900; font-stretch: 80%; font-size: 64px; line-height: .9; color: var(--navy); border-bottom: 6px solid var(--gold); padding-bottom: 6px; align-self: start; }
.how-steps h3 { margin: 4px 0 6px; font-size: 24px; font-weight: 800; }
.how-steps p { margin: 0; color: var(--ink-2); }
.lead-card { background: #fff; border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: 0 0 0 1.5px #e2ddd3, 0 24px 50px rgba(0, 0, 0, .07); }
.lead-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.lead-title { margin: 0; font-weight: 800; font-size: 30px; line-height: 1.1; }
.lead-sub { margin: 4px 0 0; font: 600 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.lead-badge { padding: 8px 12px; border-radius: 8px; background: #3fae6b; font: 700 14px var(--mono); color: var(--ink); }
.lead-fields { margin: 18px 0 0; }
.lead-fields div { padding: 12px 0; border-top: 1px solid #ece8e0; }
.lead-fields dt { font: 600 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lead-fields dd { margin: 3px 0 0; font-weight: 600; font-size: 19px; }

/* ---------- trades ---------- */
.trades { background: var(--paper-2); color: var(--ink); padding-block: clamp(48px, 6vw, 72px); }
.trade-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; }
.trade-list li { font-weight: 900; font-stretch: 75%; text-transform: uppercase; font-size: clamp(38px, 6vw, 76px); line-height: 1; color: var(--navy); }
.trade-list li:not(:last-child)::after { content: " /"; color: var(--gold); }
.trades-note { margin: 18px 0 0; font-size: 18px; color: var(--ink-2); }

/* ---------- founder ---------- */
.founder { background: var(--navy-2); padding-block: clamp(64px, 9vw, 110px); }
.founder-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.founder-copy p:not(.eyebrow) { color: var(--mist); font-size: 18px; margin: 20px 0 26px; }

/* ---------- offer ---------- */
.offer { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-3) 100%); padding-block: clamp(64px, 9vw, 120px); }
.offer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.offer-lede { margin: 22px 0 0; font-size: 19px; color: var(--mist); max-width: 32em; }
.price-row { display: flex; align-items: center; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.price { font-weight: 900; font-stretch: 80%; font-size: clamp(88px, 10vw, 132px); line-height: .85; color: var(--gold); letter-spacing: -.02em; }
.price-text { font-weight: 700; font-size: 24px; line-height: 1.15; max-width: 9em; }
.guarantee { margin-top: 30px; padding: 20px 22px; border: 2px solid var(--gold); border-radius: 14px; max-width: 34em; }
.guarantee-title { margin: 0; font-weight: 800; font-size: 21px; }
.guarantee p:not(.guarantee-title) { margin: 6px 0 0; color: var(--mist); }
.call-now { margin: 26px 0 0; color: var(--mist); }
.phone-number { font-weight: 800; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; user-select: all; }

.card { min-width: 0; background: var(--paper); color: var(--ink); border-radius: 18px; padding: clamp(22px, 3.5vw, 36px); box-shadow: 0 30px 70px rgba(0, 0, 0, .4); }
.card-title { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.card-sub { margin: 6px 0 0; color: var(--muted); }
.card .phone-number { color: var(--navy); }
form { margin-top: 22px; display: grid; gap: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
label, legend { font-weight: 600; font-size: 14px; padding: 0; }
.req { font: 500 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-left: 4px; }
input, select { width: 100%; min-width: 0; height: 48px; padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 8px; }
input::placeholder { color: #a7a196; }
input:focus-visible, select:focus-visible { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(214, 176, 58, .45); }
.field.invalid input, .field.invalid select { border-color: var(--error); }
.err { margin: 0; font-size: 13px; color: var(--error); }
.err:empty { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; font-weight: 500; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(214, 176, 58, .55); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[type="submit"] { height: 58px; margin-top: 4px; border: 0; border-radius: 10px; background: var(--gold); color: var(--gold-ink); font: 800 19px var(--sans); cursor: pointer; box-shadow: 0 10px 30px rgba(214, 176, 58, .3); }
button[type="submit"]:hover { background: var(--gold-hi); }
button[type="submit"]:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
button[disabled] { opacity: .65; cursor: progress; }
.fine { margin: 0; font-size: 13px; color: var(--muted); text-align: center; }
.banner { margin: 16px 0 0; padding: 10px 12px; border-radius: 8px; background: #f8e3dc; color: #7a2412; font-size: 14px; }
.done-check { margin: 0 0 8px; width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; font-size: 28px; font-weight: 900; }
#done-view .card-title { color: var(--ok); }
#done-text { margin: 10px 0 0; font-size: 18px; }

/* ---------- faq ---------- */
.faq { background: var(--paper); color: var(--ink); padding-block: clamp(64px, 8vw, 110px); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, .6fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-weight: 700; font-size: 20px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 400; color: #8a6d12; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.faq-list p { margin: 0 0 22px; color: var(--ink-2); max-width: 40em; }

/* ---------- final + footer ---------- */
.final { background: var(--navy); padding-block: clamp(64px, 9vw, 120px); }
.final-inner { display: grid; justify-items: center; text-align: center; gap: 30px; }
.final-inner .display { max-width: 14em; }
.final-ctas { display: grid; justify-items: center; gap: 12px; }
.final-phone { margin: 0; color: var(--mist); }
.footer { background: var(--navy); border-top: 1px solid rgba(255, 255, 255, .08); color: var(--mist); padding-block: 36px calc(36px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; }
.footer img { display: block; height: 40px; width: auto; }
.footer p { margin: 0; }
.copyright { color: #7e8a99; }

.mobile-cta { display: none; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .alert { animation: drop .7s cubic-bezier(.2, .8, .3, 1.15) .5s both; }
  @keyframes drop { from { transform: translateY(-24px) scale(.96); opacity: .001; } }
  .phone { animation: buzz .5s ease-in-out .3s 2; }
  @keyframes buzz { 0%, 100% { transform: rotate(-4deg); } 25% { transform: rotate(-5.5deg); } 75% { transform: rotate(-2.5deg); } }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .topnav { display: none; }
}
@media (max-width: 900px) {
  .hero-grid, .weakness-grid, .how-grid, .founder-grid, .offer-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { order: 2; }
  .phone { width: min(300px, 82%); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top-phone { display: none; }
  .topbar-inner { height: 64px; }
  .brand img { height: 38px; }
  .btn-big { width: 100%; }
  .hero-ctas { display: grid; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .steps-of-loss li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .how-steps li { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .step-n { font-size: 46px; }
  .mobile-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(13, 27, 42, .95); border-top: 1px solid rgba(255, 255, 255, .1);
    transition: transform .25s;
  }
  .mobile-cta .btn { width: 100%; height: 52px; font-size: 17px; }
  .mobile-cta.hide { transform: translateY(110%); }
  .footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}
