/* The builder site's landing page (src/builder-landing-page.js): a dark hero with one box for a website's address. */
:root {
  --bg: #0a0a0a;
  --ink: #f5f6f8;
  --muted: #a4abbd;
  --line: rgb(255 255 255 / 14%);
  --brand: #002676;
  --brand-glow: #2f5bd3;
  --ok: #4ade80;
  --warn: #fbbf24;
  --sans: Geist, Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body.landing { position: relative; min-height: 100svh; margin: 0; overflow-x: hidden; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Backdrop: the city timelapse, darkened with neutral black, a faint dot field, and example findings drifting in it. */
.landing-backdrop { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #0a0a0a url("/_testing/landing/city-poster.jpg") center / cover no-repeat; }
.landing-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) brightness(.9); }
.landing-glow { position: absolute; inset: 0;
  background:
    radial-gradient(55% 45% at 50% 48%, rgb(0 0 0 / 50%), transparent 85%),
    linear-gradient(180deg, rgb(0 0 0 / 78%) 0%, rgb(0 0 0 / 60%) 40%, rgb(0 0 0 / 64%) 75%, rgb(0 0 0 / 82%) 100%); }
.landing-dots { position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / 22%) 1px, transparent 1.4px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 55% at 50% 100%, #000 10%, transparent 75%); mask-image: radial-gradient(70% 55% at 50% 100%, #000 10%, transparent 75%);
  animation: dots-drift 40s linear infinite; }
@keyframes dots-drift { to { background-position: 22px -44px; } }

.landing-findings { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.finding { position: absolute; display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: rgb(20 20 20 / 55%); color: rgb(245 246 248 / 78%); font-size: 13px; white-space: nowrap; backdrop-filter: blur(6px);
  opacity: 0; animation: finding-float 14s ease-in-out infinite; }
.finding-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.finding-warn .finding-mark { background: var(--warn); box-shadow: 0 0 10px var(--warn); }
.finding:nth-child(1) { left: 8%; bottom: 17%; animation-delay: 0s; }
.finding:nth-child(2) { right: 7%; bottom: 20%; animation-delay: 3.5s; }
.finding:nth-child(3) { left: 21%; bottom: 6%; animation-delay: 7s; }
.finding:nth-child(4) { right: 19%; bottom: 8%; animation-delay: 10.5s; }
@keyframes finding-float {
  0% { opacity: 0; transform: translateY(14px); }
  12%, 55% { opacity: 1; transform: translateY(0); }
  70%, 100% { opacity: 0; transform: translateY(-10px); }
}

/* Header */
.landing-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0; }
.landing-brand { display: inline-flex; border-radius: 6px; }
.landing-brand img { display: block; width: 104px; height: auto; filter: invert(1); }
.landing-actions { display: flex; align-items: center; gap: 22px; }
.landing-sign-in { color: rgb(245 246 248 / 82%); font-size: 14px; text-decoration: none; }
.landing-sign-in:hover { color: var(--ink); }
.landing-start { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 8px; background: var(--ink); color: #0b1020; font-size: 14px; font-weight: 500; text-decoration: none; }
.landing-start:hover { background: #fff; }

/* Hero */
.landing-hero { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; width: min(760px, calc(100% - 40px)); margin: 0 auto; padding: clamp(80px, 22vh, 220px) 0 120px; text-align: center; }
.landing-hero h1 { margin: 0; text-shadow: 0 2px 24px rgb(0 0 0 / 60%); font-size: clamp(40px, 6.4vw, 72px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.landing-lede { max-width: 540px; margin: 22px 0 0; color: #cfd1d6; text-shadow: 0 1px 12px rgb(0 0 0 / 80%); font-size: clamp(16px, 1.6vw, 18px); line-height: 1.55; text-wrap: pretty; }
.landing-form { display: flex; align-items: center; gap: 6px; width: min(440px, 100%); margin-top: 36px; padding: 6px 6px 6px 18px; border: 1px solid rgb(255 255 255 / 30%); border-radius: 12px;
  background: rgb(245 246 248 / 92%); box-shadow: 0 10px 40px rgb(0 0 0 / 35%), 0 0 0 6px rgb(255 255 255 / 5%); transition: box-shadow .2s ease; }
.landing-form:focus-within { box-shadow: 0 10px 40px rgb(0 0 0 / 35%), 0 0 0 6px rgb(255 255 255 / 22%); }
.landing-form input { flex: 1; min-width: 0; height: 44px; border: 0; outline: none; background: transparent; color: #0b1020; font: inherit; font-size: 16px; }
.landing-form input::placeholder { color: #6b7180; }
.landing-form button { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 9px; background: #0b1020; color: #fff; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.landing-form button:hover { background: var(--brand); }
.landing-form button:active { transform: scale(.96); }
.landing-form button svg { width: 18px; height: 18px; }
.landing-form button:focus-visible, .landing-start:focus-visible, .landing-sign-in:focus-visible, .landing-brand:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 3px; }
.landing-caption { margin: 18px 0 0; color: rgb(245 246 248 / 90%); font-size: 15px; text-shadow: 0 1px 10px rgb(0 0 0 / 80%); }
.landing-error { margin: 14px 0 0; color: #fca5a5; font-size: 14px; }
.landing-error[hidden] { display: none; }

@media (max-width: 1100px), (max-height: 720px) {
  .landing-findings { display: none; }
}
@media (max-width: 760px) {
  .landing-header { width: calc(100% - 32px); padding: 16px 0; }
  .landing-actions { gap: 16px; }
  .landing-hero { padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-video { display: none; }
  .landing-dots, .finding { animation: none; }
  .finding { opacity: .85; }
}
