/* ============================================================
   WISEBOT — public site (apex)

   Deliberately standalone: no build step, no framework, no font
   request to a third party (GDPR). The --wb-* names and values are
   the SAME as apps/web/src/styles/tokens.css, copied rather than
   imported — this Worker must stay assets-only and buildless. Keep
   the two in sync by hand; there are only a dozen values here.
   ============================================================ */

:root {
  color-scheme: light dark;

  --wb-teal: #0099a7;
  --wb-amber: #fea500;

  --wb-bg: light-dark(#fcfcfc, #08090b);
  --wb-surface: light-dark(#ffffff, #0d1212);
  --wb-border: light-dark(#ececec, #1f2827);

  --wb-text: light-dark(#0d1212, #edf2f1);
  --wb-text-muted: light-dark(#4d4d4d, #a9b3b1);
  --wb-text-subtle: light-dark(#6f7573, #7e8886);

  --wb-accent-text: light-dark(#007682, #67dde7);
  --wb-accent-solid: light-dark(#007682, #0099a7);
  --wb-on-accent: light-dark(#ffffff, #031214);
  --wb-accent-wash: light-dark(#eafcfd, #0e2426);

  --wb-font-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wb-font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --wb-measure: 42rem;
}

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

body {
  margin: 0;
  padding: 0 1.25rem;
  background: var(--wb-bg);
  color: var(--wb-text);
  font-family: var(--wb-font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--wb-measure);
  margin: 0 auto;
}

/* ---- masthead ---------------------------------------------- */

header.masthead {
  padding: 3.5rem 0 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--wb-text);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--wb-accent-solid);
  display: grid;
  place-items: center;
}

.brand .mark::after {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--wb-on-accent);
}

h1 {
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 2rem 0 1rem;
  text-wrap: balance;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  text-wrap: balance;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--wb-text-muted);
}

p.lead {
  font-size: 1.075rem;
  color: var(--wb-text);
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--wb-text-muted);
}

li {
  margin-bottom: 0.4rem;
}

a {
  color: var(--wb-accent-text);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  color: var(--wb-text);
  font-weight: 500;
}

/* ---- call to action ---------------------------------------- */

.cta {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.7rem 1.35rem;
  min-height: 44px;
  border-radius: 999px;
  background: var(--wb-accent-solid);
  color: var(--wb-on-accent);
  font-weight: 500;
  text-decoration: none;
}

.cta:hover {
  filter: brightness(1.08);
}

.cta:focus-visible,
a:focus-visible {
  outline: 2px solid var(--wb-accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- scope callout (what Google's reviewer reads) ----------- */

.scope {
  border: 1px solid var(--wb-border);
  background: var(--wb-accent-wash);
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}

.scope p:last-child {
  margin-bottom: 0;
}

.scope .label {
  font-family: var(--wb-font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--wb-accent-text);
  margin: 0 0 0.5rem;
}

code {
  font-family: var(--wb-font-mono);
  font-size: 0.85em;
  background: var(--wb-surface);
  border: 1px solid var(--wb-border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

/* ---- legal pages ------------------------------------------- */

.updated {
  font-family: var(--wb-font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--wb-text-subtle);
  margin-bottom: 2rem;
}

dl.identity {
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: minmax(9rem, auto) 1fr;
  gap: 0.35rem 1.25rem;
  font-size: 0.95rem;
}

dl.identity dt {
  color: var(--wb-text-subtle);
}

dl.identity dd {
  margin: 0;
  color: var(--wb-text);
}

/* ---- footer ------------------------------------------------ */

footer.legal {
  margin-top: 4rem;
  padding: 1.5rem 0 3rem;
  border-top: 1px solid var(--wb-border);
  font-size: 0.875rem;
  color: var(--wb-text-subtle);
}

footer.legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 0.75rem;
}

/* No prefers-reduced-motion block: this site declares no transition and no
   animation, so there is nothing to reduce. Add one the day that changes. */
