/* ==========================================================================
   BrandCop — landing.
   CSP-safe: no inline styles and no external font loads. Inter is self-hosted
   through /static/fonts so the landing page matches the console.
   ========================================================================== */
@font-face {
  font-family: "BrandCop Inter";
  src: url("/static/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* type */
  --display: "BrandCop Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --text:    "BrandCop Inter", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* surfaces */
  --canvas: #ffffff;
  --parchment: #f7f7f7;     /* surface-soft  */
  --parchment-2: #f2f2f2;   /* surface-strong */

  /* ink ramp */
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --faint: #6a6a6a;

  /* hairlines */
  --hairline: #dddddd;
  --hairline-strong: #c1c1c1;

  /* brand voltage — BrandCop wordmark */
  --accent: #ff4b26;
  --accent-active: #df3517;
  --accent-focus: #222222;   /* focus = ink, not a colour glow */
  --ring: rgba(34,34,34,.16);
  --error: #c13515;

  /* shape language */
  --radius-card: 14px;
  --radius-input: 8px;
  --radius-wizard: 20px;
  --radius-pill: 9999px;

  /* one shadow tier */
  --shadow-2: rgba(0,0,0,.02) 0 0 0 1px, rgba(0,0,0,.04) 0 2px 6px 0, rgba(0,0,0,.1) 0 4px 8px 0;

  --maxw: 1280px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--text); color: var(--ink); background: var(--canvas);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
p { margin: 0; }
button { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
input { font: inherit; color: inherit; }

/* ---------- accessibility ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--accent-focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 200;
  background: var(--canvas); color: var(--ink); padding: 10px 16px;
  border-radius: var(--radius-input); box-shadow: var(--shadow-2); transition: top .16s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }
.hidden, [hidden] { display: none !important; }

/* ---------- layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
.muted { color: var(--muted); }

/* ---------- brandmark + topbar (Airbnb: 80px white, bottom hairline) ---------- */
.brandmark { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); }
.brandmark:hover { text-decoration: none; }
.brandmark .mark {
  width: 158px; height: 34px; flex: 0 0 auto;
  object-fit: contain; object-position: center;
}
.topbar {
  position: sticky; top: 0; z-index: 60;
  background: var(--canvas); border-bottom: 1px solid var(--hairline);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.topnav { display: flex; align-items: center; gap: 6px; }
.topnav a {
  color: var(--ink); padding: 10px 12px; border-radius: var(--radius-pill);
  font-size: 16px; font-weight: 600; transition: background .12s ease;
}
.topnav a:hover { background: var(--parchment); text-decoration: none; }
.topnav a[aria-current="page"] { position: relative; }
.topnav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  background: var(--ink); border-radius: 2px;
}

/* ---------- hero ---------- */
.landing { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.hero { position: relative; padding: 72px 0 56px; }
.hero-inner { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 40px; text-align: center; }
.hero h1 {
  font-size: 28px; font-weight: 700; letter-spacing: 0; line-height: 1.25;
  margin-bottom: 14px; color: var(--ink);
}
.hero h1 .accent { color: var(--accent); }
.hero .lede {
  font-size: 18px; font-weight: 400; color: var(--body); max-width: 56ch;
  margin: 0 auto 34px; line-height: 1.5;
}

/* inline feedback under the search (empty-state nudge, hand-off note) */
.hero .hint {
  min-height: 20px; margin-top: 16px; font-size: 14px; color: var(--muted);
  opacity: 0; transition: opacity .14s ease;
}
.hero .hint.show { opacity: 1; }

/* the signature pill search bar */
.hero-search {
  display: flex; align-items: center; gap: 12px; max-width: 600px; margin: 0 auto;
  background: var(--canvas); border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill); box-shadow: var(--shadow-2);
  padding: 8px 8px 8px 22px; transition: box-shadow .14s, border-color .14s;
}
.hero-search:focus-within { border-color: var(--ink); }
.hero-search .lead { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.hero-search input {
  flex: 1; border: 0; background: transparent; outline: none;
  font-size: 16px; color: var(--ink); min-width: 0;
}
.hero-search input::placeholder { color: var(--muted); }
.hero-search .orb {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto;
  height: 48px; padding: 0 22px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; border: 0; cursor: pointer; font-weight: 500; font-size: 16px;
  transition: background .12s;
}
.hero-search .orb:hover { background: var(--accent-active); }
.hero-search .orb svg { width: 18px; height: 18px; }

/* three capability tiles — Airbnb soft cards */
.hero-strip { padding: 8px 0 64px; }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cap {
  display: flex; flex-direction: column; gap: 10px; padding: 24px;
  border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--canvas);
  transition: box-shadow .14s;
}
.cap:hover { box-shadow: var(--shadow-2); }
.cap .ico { width: 24px; height: 24px; color: var(--accent); }
.cap h3 { font-size: 16px; font-weight: 600; }
.cap p { font-size: 14px; color: var(--body); line-height: 1.5; }

.landing-foot { display: none; }

/* ---------- access gate (preserved auth; restyled to the Airbnb skin) ---------- */
.gate {
  position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
}
.gate-card {
  width: min(400px, calc(100vw - 48px));
  background: var(--canvas); border: 1px solid var(--hairline); border-radius: var(--radius-wizard);
  padding: 36px 34px; text-align: left; box-shadow: var(--shadow-2);
}
.gate-logo { height: 34px; width: auto; margin-bottom: 20px; }
.gate-card h2 { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; }
.gate-sub { font-size: 14px; line-height: 1.45; color: var(--muted); margin: 0 0 20px; }
.gate-card input {
  width: 100%; height: 48px; border: 1px solid var(--hairline); border-radius: var(--radius-input);
  background: var(--parchment); color: var(--ink); font-size: 16px; padding: 0 15px; outline: none;
  margin-bottom: 10px; transition: border-color .16s, box-shadow .16s, background .16s;
}
.gate-card input:focus { border-color: var(--ink); background: var(--canvas); box-shadow: 0 0 0 3px var(--ring); }
.gate-card button {
  width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: var(--radius-input); cursor: pointer;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 600;
  transition: background .16s, transform .12s;
}
.gate-card button:hover { background: var(--accent-active); }
.gate-card button:active { transform: scale(.99); }
.gate-hint { font-size: 12px; line-height: 1.4; color: var(--muted); text-align: center; margin: 14px 0 0; }
.gate-card .err { min-height: 18px; margin: 12px 0 0; font-size: 13px; color: var(--error); text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero-strip .wrap { grid-template-columns: 1fr; }
  .hero-search { flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius-wizard); }
  .hero-search .lead { display: none; }
  .hero-search input { flex: 1 1 auto; padding: 4px 0; }
  .hero-search .orb { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .hero-inner { padding: 0 20px; }
  .hero { padding: 48px 0 40px; }
  .topbar .wrap { height: 64px; }
  .brandmark .mark { width: 124px; height: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
