@import url("theme.css");

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("fonts/ibm-plex-mono-latin-500.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

/*
  Design contract: BuildMeLeads is a service-area dispatch desk, not a generic AI shell.
  Route-card geometry, operational language, warm field-paper surfaces, and one signal-yellow
  accent connect discovery to a clear next action without inventing product proof.
*/

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: clip;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  font-family: "Archivo", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  caret-color: hsl(var(--primary));
}

* { scrollbar-color: hsl(var(--primary)) hsl(var(--muted)); scrollbar-width: thin; }
*::-webkit-scrollbar { width: .75rem; height: .75rem; }
*::-webkit-scrollbar-track { background: hsl(var(--muted)); }
*::-webkit-scrollbar-thumb { border: .2rem solid hsl(var(--muted)); border-radius: 100vmax; background: hsl(var(--primary)); }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(circle at 1px 1px, hsl(var(--foreground) / .1) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
}

::selection { color: hsl(var(--accent-foreground)); background: hsl(var(--accent)); }

:focus-visible {
  outline: 3px solid hsl(var(--ring));
  outline-offset: 4px;
  border-radius: .25rem;
}

a { color: inherit; text-underline-offset: .24em; text-decoration-thickness: .08em; }
img, svg { display: block; max-width: 100%; }
button, input { font: inherit; }

.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  transform: translateY(-200%);
  padding: .7rem 1rem;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--primary));
}

.skip-link:focus { transform: translateY(0); }

.shell { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid hsl(var(--border) / .78);
  background: hsl(var(--background) / .9);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

.brand img { width: 2rem; height: 2rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { font-size: .92rem; font-weight: 600; text-decoration: none; }
.nav-links a:not(.button):hover { text-decoration: underline; }
.menu-toggle { display: none; border: 0; background: transparent; padding: .55rem; color: inherit; cursor: pointer; }

.button {
  min-height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .7rem 1.1rem;
  border: 1px solid transparent;
  border-radius: .7rem;
  color: hsl(var(--accent-foreground));
  background: hsl(var(--accent));
  box-shadow: 0 7px 18px hsl(var(--foreground) / .12);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1), box-shadow 180ms cubic-bezier(.16, 1, .3, 1);
}

.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px hsl(var(--foreground) / .16); }
.button:active { transform: translateY(0); }
.button.secondary { color: hsl(var(--foreground)); background: transparent; border-color: hsl(var(--border)); box-shadow: none; }
.button.small { min-height: 2.55rem; padding: .55rem .9rem; font-size: .88rem; }
.button[disabled] { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.hero {
  min-height: 46rem;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(20rem, .88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5.5rem);
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.hero h1,
.page-hero h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(3.1rem, 7.2vw, 6rem);
  line-height: .94;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.hero-copy > p { max-width: 64ch; margin: 1.8rem 0 0; color: hsl(var(--muted-foreground)); font-size: clamp(1.08rem, 2vw, 1.26rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.trust-note { display: flex; align-items: center; gap: .7rem; margin-top: 1.35rem; color: hsl(var(--muted-foreground)); font-size: .86rem; }
.trust-note svg { flex: 0 0 auto; }

.dispatch-board {
  position: relative;
  padding: 1rem;
  border-radius: 1.1rem;
  color: hsl(var(--primary-foreground));
  background: hsl(var(--foreground));
  box-shadow: 0 30px 70px hsl(var(--foreground) / .2);
  transform: rotate(1.25deg);
  animation: dispatch-settle 700ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes dispatch-settle {
  from { transform: translateY(10px) rotate(2.2deg); filter: blur(2px); box-shadow: 0 18px 45px hsl(var(--foreground) / .14); }
  to { transform: rotate(1.25deg); filter: none; box-shadow: 0 30px 70px hsl(var(--foreground) / .2); }
}

.dispatch-board::after {
  content: "";
  position: absolute;
  inset: .55rem -.55rem -.55rem .55rem;
  z-index: -1;
  border: 1px solid hsl(var(--foreground) / .28);
  border-radius: 1.1rem;
}

.board-head { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem .35rem .9rem; border-bottom: 1px solid hsl(var(--primary-foreground) / .18); }
.board-head strong { font-size: .95rem; }
.board-head span, .mono { font-family: "IBM Plex Mono", monospace; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.board-head span { color: hsl(var(--primary-foreground) / .65); }
.route-card { margin-top: .85rem; padding: 1rem; border-radius: .75rem; color: hsl(var(--foreground)); background: hsl(var(--card)); }
.route-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.route-top h2 { margin: .15rem 0 0; font-size: 1.05rem; line-height: 1.25; letter-spacing: -.02em; }
.signal { padding: .25rem .55rem; border-radius: 100vmax; background: hsl(var(--accent)); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.route-meta { margin: .35rem 0 1rem; color: hsl(var(--muted-foreground)); font-size: .8rem; }
.signal-row { display: grid; grid-template-columns: 1fr minmax(5rem, .8fr); gap: 1rem; align-items: center; padding: .55rem 0; border-top: 1px solid hsl(var(--border) / .7); font-size: .8rem; }
.meter { height: .42rem; overflow: hidden; border-radius: 100vmax; background: hsl(var(--muted)); }
.meter span { display: block; height: 100%; background: hsl(var(--accent)); }
.dispatch-action { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .85rem; padding: .9rem 1rem; border-radius: .75rem; background: hsl(var(--primary)); }
.dispatch-action span { color: hsl(var(--primary-foreground) / .72); font-size: .78rem; }
.dispatch-action strong { display: block; font-size: .9rem; }
.dispatch-arrow { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 50%; color: hsl(var(--foreground)); background: hsl(var(--accent)); }

.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); border-top: 1px solid hsl(var(--border)); }
.section-heading { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-heading h2 { margin: 0; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.section-heading p { max-width: 64ch; margin: 1.15rem 0 0; color: hsl(var(--muted-foreground)); font-size: 1.08rem; }

.process { display: grid; grid-template-columns: minmax(15rem, .7fr) minmax(0, 1.3fr); gap: clamp(2rem, 7vw, 7rem); }
.process-note { align-self: start; position: sticky; top: 7rem; }
.process-note p { max-width: 31ch; color: hsl(var(--muted-foreground)); }
.process-list { position: relative; border-top: 1px solid hsl(var(--foreground)); }
.process-list::before { content: "Qualification route / BML-01"; position: absolute; top: -1.8rem; right: 0; color: hsl(var(--muted-foreground)); font-family: "IBM Plex Mono", monospace; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; }
.process-item { position: relative; display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem; padding: 1.8rem 0; border-bottom: 1px solid hsl(var(--border)); }
.process-item::before { content: ""; position: absolute; top: 2rem; left: 4.35rem; width: .55rem; height: .55rem; border: 2px solid hsl(var(--background)); border-radius: 50%; background: hsl(var(--primary)); box-shadow: 0 0 0 1px hsl(var(--primary)); }
.process-item:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; bottom: -.1rem; left: 4.59rem; width: 1px; background: hsl(var(--primary) / .35); }
.process-item .mono { width: 3.2rem; height: 2rem; display: inline-grid; place-items: center; border: 1px solid hsl(var(--primary) / .45); color: hsl(var(--primary)); background: hsl(var(--background)); }
.process-item h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.025em; }
.process-item p { max-width: 60ch; margin: .5rem 0 0; color: hsl(var(--muted-foreground)); }

.coverage-strip { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.2rem; padding: 1.15rem 0; border-block: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); }
.coverage-strip strong { color: hsl(var(--foreground)); }
.coverage-strip span:not(:last-child)::after { content: "•"; margin-left: 1.2rem; color: hsl(var(--primary)); }

.split-proof { display: grid; grid-template-columns: minmax(0, .92fr) minmax(20rem, 1.08fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.field-note { padding: clamp(1.5rem, 4vw, 3rem); border-radius: 1rem; color: hsl(var(--primary-foreground)); background: hsl(var(--primary)); box-shadow: 0 22px 50px hsl(var(--foreground) / .15); }
.field-note p { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.3; letter-spacing: -.025em; }
.field-note .mono { color: hsl(var(--primary-foreground) / .7); }
.qualifiers { margin: 0; padding: 0; list-style: none; }
.qualifiers li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid hsl(var(--border)); }
.qualifiers li:first-child { border-top: 1px solid hsl(var(--border)); }
.qualifiers svg { margin-top: .15rem; color: hsl(var(--primary)); }
.qualifiers strong { display: block; margin-bottom: .25rem; }
.qualifiers span { color: hsl(var(--muted-foreground)); }

.safeguard-band { color: hsl(var(--primary-foreground)); background: hsl(var(--foreground)); }
.safeguard-band .section { border-top: 0; }
.safeguard-band .section-heading p { color: hsl(var(--primary-foreground) / .7); }
.safeguard-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; border-top: 1px solid hsl(var(--primary-foreground) / .2); }
.safeguard-list div { padding: 1.25rem 0; border-bottom: 1px solid hsl(var(--primary-foreground) / .2); }
.safeguard-list strong { display: block; }
.safeguard-list span { color: hsl(var(--primary-foreground) / .66); font-size: .9rem; }

.waitlist-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(20rem, 1.1fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.waitlist-wrap h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.04em; }
.waitlist-wrap p { color: hsl(var(--muted-foreground)); }
.waitlist-form { padding: clamp(1.25rem, 3vw, 2rem); border-radius: 1rem; background: hsl(var(--card)); box-shadow: 0 22px 50px hsl(var(--foreground) / .1); }
.form-row { display: grid; grid-template-columns: 1fr auto; gap: .65rem; }
.field label { display: block; margin-bottom: .5rem; font-size: .88rem; font-weight: 700; }
.field input { width: 100%; min-height: 3rem; padding: .7rem .85rem; border: 1px solid hsl(var(--input)); border-radius: .65rem; color: hsl(var(--foreground)); background: hsl(var(--background)); }
.field input::placeholder { color: hsl(var(--muted-foreground)); }
.form-help, .form-status { margin: .7rem 0 0; font-size: .8rem; color: hsl(var(--muted-foreground)); }
.form-status { min-height: 1.3rem; }
.form-status[data-state="success"] { color: hsl(var(--primary)); font-weight: 700; }
.form-status[data-state="error"] { color: hsl(var(--destructive)); font-weight: 700; }

.page-hero { padding-block: clamp(4.5rem, 8vw, 8rem); }
.page-hero h1 { max-width: 15ch; }
.page-hero p { max-width: 64ch; margin: 1.4rem 0 0; color: hsl(var(--muted-foreground)); font-size: 1.15rem; }
.notice { margin-top: 2rem; padding: 1rem 1.15rem; border-radius: .75rem; color: hsl(var(--accent-foreground)); background: hsl(var(--accent)); font-weight: 600; }

.pricing-ledger { border-top: 1px solid hsl(var(--foreground)); }
.price-row { display: grid; grid-template-columns: minmax(10rem, .7fr) minmax(15rem, 1fr) minmax(0, 1.4fr) auto; gap: 1.5rem; align-items: start; padding: 2rem 0; border-bottom: 1px solid hsl(var(--border)); }
.price-row.featured { margin-inline: -1rem; padding-inline: 1rem; background: hsl(var(--card)); }
.price-row h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.025em; }
.price { font-size: 2.3rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price small { display: block; margin-top: .45rem; color: hsl(var(--muted-foreground)); font-size: .75rem; font-weight: 500; letter-spacing: 0; }
.price-features { margin: 0; padding-left: 1.1rem; color: hsl(var(--muted-foreground)); }
.price-features li + li { margin-top: .35rem; }

.legal-layout { display: grid; grid-template-columns: minmax(12rem, .3fr) minmax(0, .7fr); gap: clamp(2rem, 7vw, 7rem); padding-bottom: 7rem; }
.legal-nav { position: sticky; top: 7rem; align-self: start; }
.legal-nav strong { display: block; margin-bottom: .7rem; }
.legal-nav a { display: block; padding: .3rem 0; color: hsl(var(--muted-foreground)); font-size: .9rem; }
.legal-copy { max-width: 74ch; }
.legal-copy h2 { margin: 3rem 0 .75rem; font-size: 1.7rem; letter-spacing: -.03em; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy h3 { margin: 2rem 0 .5rem; font-size: 1.1rem; }
.legal-copy p, .legal-copy li { color: hsl(var(--muted-foreground)); }
.legal-copy strong { color: hsl(var(--foreground)); }
.legal-copy li + li { margin-top: .45rem; }

.site-footer { padding-block: 3rem; border-top: 1px solid hsl(var(--border)); }
.footer-grid { display: grid; grid-template-columns: 1.25fr repeat(2, .75fr); gap: 2rem; }
.footer-grid h2 { margin: 0 0 .6rem; font-size: 1rem; }
.footer-grid p { max-width: 42ch; margin: 0; color: hsl(var(--muted-foreground)); font-size: .9rem; }
.footer-links { display: grid; align-content: start; gap: .45rem; }
.footer-links a { color: hsl(var(--muted-foreground)); font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid hsl(var(--border)); color: hsl(var(--muted-foreground)); font-size: .8rem; }

.reveal { opacity: 1; transform: none; filter: none; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links { position: absolute; inset: 4.75rem 1rem auto; display: none; align-items: stretch; padding: 1rem; border: 1px solid hsl(var(--border)); border-radius: .85rem; background: hsl(var(--card)); box-shadow: 0 18px 45px hsl(var(--foreground) / .16); }
  .nav-links[data-open="true"] { display: grid; }
  .nav-links .button { width: 100%; }
  .hero, .process, .split-proof, .waitlist-wrap, .legal-layout { grid-template-columns: 1fr; }
  .hero { min-height: auto; display: flex; flex-direction: column; align-items: stretch; }
  .hero-copy { display: contents; }
  .hero h1 { max-width: 15ch; }
  .hero h1 { order: 1; }
  .hero-actions { order: 2; margin-top: 0; }
  .dispatch-board { order: 3; width: min(calc(100% - 1.5rem), 34rem); margin-inline: auto; transform: rotate(.65deg); }
  .hero-copy > p { order: 4; margin-top: 0; }
  .trust-note { order: 5; }
  .process-note, .legal-nav { position: static; }
  .price-row { grid-template-columns: 1fr 1fr; }
  .price-features { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .shell { width: min(100% - 1.25rem, 1180px); }
  .hero { gap: 1rem; padding-block: 2rem 4rem; }
  .hero h1, .page-hero h1 { font-size: clamp(2.5rem, 12.2vw, 3.4rem); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-actions .button.secondary { display: none; }
  .process-item { grid-template-columns: 3.4rem 1fr; }
  .process-item::before { left: 2.75rem; }
  .process-item:not(:last-child)::after { left: 2.99rem; }
  .safeguard-list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .price-row, .price-row.featured { grid-template-columns: 1fr; margin-inline: 0; }
  .price-features { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}
