/* Lockup Lookup — shared light theme.
   One stylesheet drives every tab so navigation, links, and cards stay identical
   across the site. Colours are chosen for WCAG AA contrast on white. */

:root {
  --bg: #f6f4f9;
  --surface: #ffffff;
  --surface-2: #f3eff8;
  --ink: #1b1424;
  --ink-2: #3a3147;
  --muted: #5d5470;
  --line: #e3dbec;
  --line-strong: #cfc3dd;

  --accent: #c3145a;
  --accent-ink: #9c0f47;
  --accent-soft: #fdeff4;
  --violet: #6631c9;
  --violet-soft: #f1ebfd;
  --green: #0e7a55;
  --green-soft: #e9f7f1;
  --amber-ink: #8a5800;
  --amber-soft: #fff6e4;

  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(27, 20, 36, .05), 0 10px 26px rgba(27, 20, 36, .06);
  --shadow-lift: 0 6px 14px rgba(27, 20, 36, .08), 0 18px 40px rgba(27, 20, 36, .1);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 70% 40% at 12% -8%, rgba(102, 49, 201, .07), transparent 70%),
    radial-gradient(ellipse 60% 34% at 92% 0%, rgba(195, 20, 90, .06), transparent 70%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .stat-num { font-family: var(--display); letter-spacing: -.02em; }
h1 { margin: 0 0 12px; font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; line-height: 1.1; }
h2 { margin: 0; font-size: clamp(20px, 2.6vw, 27px); font-weight: 800; line-height: 1.2; }
h3 { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }

/* One focus ring everywhere. */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; background: var(--surface); color: var(--ink);
  border: 2px solid var(--violet); border-radius: 0 0 12px 0; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- Header + tab navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.6) blur(10px);
  -webkit-backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 12px 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink); font-size: 19px; font-weight: 800; text-decoration: none; white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
  background: linear-gradient(140deg, var(--accent), var(--violet));
}
.brand em { font-style: normal; color: var(--accent); }

.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 9px 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.menu-btn:hover { border-color: var(--violet); }
.menu-btn .bars { display: grid; gap: 3px; }
.menu-btn .bars i { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }

.tabs { display: flex; flex-wrap: wrap; gap: 2px; }
.tab {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 13px; border-radius: 10px;
  color: var(--ink-2); font-size: 14.5px; font-weight: 650; text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.tab:hover { background: var(--violet-soft); color: var(--ink); }
.tab[aria-current="page"] {
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 750;
  box-shadow: inset 0 -2px 0 var(--accent);
}

/* Mobile: the tab row collapses into a disclosure panel. */
@media (max-width: 1000px) {
  .menu-btn { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    padding: 10px 20px 16px;
    background: var(--surface); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: block; }
  .tabs { flex-direction: column; gap: 4px; }
  .tab { width: 100%; padding: 13px 14px; font-size: 16px; }
  .tab[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
}
@media (min-width: 1001px) {
  .menu-btn { display: none; }
  .site-nav { display: block !important; }
}

/* ---------- Layout ---------- */

.page { width: 100%; max-width: 1180px; margin: 0 auto; padding: 30px 20px 64px; }
.page-head { max-width: 760px; margin-bottom: 26px; }
.eyebrow {
  margin: 0 0 10px; color: var(--violet); font-size: 12px; font-weight: 800;
  letter-spacing: .11em; text-transform: uppercase;
}
.lede { margin: 0; color: var(--muted); font-size: clamp(15px, 1.7vw, 17.5px); line-height: 1.65; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 900px) { .grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

.card {
  padding: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow);
}
.card + .card { margin-top: 18px; }
.card-title { margin: 0 0 4px; font-family: var(--display); font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.card-sub { margin: 0 0 16px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin: 38px 0 14px; }
.section-head p { flex: 1 1 300px; max-width: 560px; margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- Controls ---------- */

.field { margin-bottom: 14px; }
label {
  display: block; margin-bottom: 7px;
  color: var(--ink-2); font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
input, select {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink);
  /* 16px keeps iOS Safari from zooming on focus. */
  font-family: inherit; font-size: 16px; line-height: 1.4;
  outline: none; appearance: none; -webkit-appearance: none;
}
input::placeholder { color: #8d84a0; }
select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235d5470' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center; background-size: 12px 8px;
}
input:focus, select:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(102, 49, 201, .16); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row > * { flex: 1 1 160px; min-width: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 48px; padding: 13px 18px;
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 750; text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn + .btn { margin-top: 10px; }
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); color: #fff; }
.btn-secondary { background: var(--violet); color: #fff; }
.btn-secondary:hover { filter: brightness(1.08); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--violet); background: var(--violet-soft); color: var(--ink); }
.btn-inline { width: auto; }

.status { min-height: 20px; margin-top: 9px; color: var(--accent-ink); font-size: 13px; font-weight: 650; }

/* ---------- Link tiles ---------- */

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.tiles.compact { grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); }
.tile {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  min-height: 52px; padding: 13px 15px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.35;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.tile:hover { transform: translateY(-2px); border-color: var(--violet); background: var(--violet-soft); color: var(--ink); }
.tile small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; line-height: 1.45; }

/* ---------- Notes, callouts, footer ---------- */

.note { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.callout {
  margin-top: 16px; padding: 14px 16px;
  border-left: 3px solid var(--violet); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--violet-soft); color: var(--ink-2); font-size: 13.5px; line-height: 1.6;
}
.callout.warn { border-left-color: var(--amber-ink); background: var(--amber-soft); }
.callout.good { border-left-color: var(--green); background: var(--green-soft); }
.callout strong { color: var(--ink); }
.callout ul { margin: 8px 0 0; padding-left: 20px; }
.callout li { margin-bottom: 5px; }
.callout li:last-child { margin-bottom: 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 26px 20px 40px; color: var(--muted); font-size: 12.5px; line-height: 1.65; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-bottom: 14px; }
.footer-links a { color: var(--ink-2); font-weight: 650; text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.contact-btn {
  display: inline-block; margin-top: 6px; padding: 11px 18px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none;
}
.contact-btn:hover { border-color: var(--violet); background: var(--violet-soft); color: var(--ink); }

.empty { display: none; padding: 26px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
