/* courtwatch.ai. Tokens and components follow the CourtWatch design system,
   design/system-2 (tokens.css, components.css: court badge and pace locked
   2026-07-30; matter card from matters.html). Only what this page uses. */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  --bg: #F7F7F5;
  --surface: #FFFFFF;
  --surface-sunk: #F1F0EE;
  --hairline: #EDECE9;
  --border: #E8E7E3;
  --text: #1D1D1B;
  --text-muted: #63625E;            /* n-500 darkened a step: AA on every surface here */
  --link: #19669E;                  /* blue-ink: the system's accent blue fails AA as body-size text */
  --link-hover: #124E7A;
  --primary-bg: #1D1D1B;
  --primary-fg: #FFFFFF;
  --info-soft: #E7F1F8;  --info-text: #19669E;
  --success-soft: #EDF3EC; --success-text: #2F6046;
  --danger-soft: #FDEBEC; --danger-text: #A33A36;
  --pace-slow: #5B6B7A;

  --tier-sc: #2E3A6E; --tier-hc: #8A3A48; --tier-district: #4E5964;
  --tier-tribunal: #245C58; --tier-consumer: #744E2C; --tier-regulator: #633B64;
  --tier-fg: #FFFFFF;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px; --radius-full: 999px;
  --shadow-1: 0 1px 2px rgba(24,24,22,.04), 0 3px 10px rgba(24,24,22,.05);
  --shadow-2: 0 1px 2px rgba(24,24,22,.08);
  --shadow-3: 0 2px 8px rgba(24,24,22,.08), 0 12px 32px rgba(24,24,22,.14);
  --shadow-inset-hi: inset 0 1px 0 rgba(255,255,255,.10);
  --focus-ring: 0 0 0 2px var(--bg), 0 0 0 4px var(--link);
  --tap-min: 44px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0F10;
    --surface: #18181A;
    --surface-sunk: #1F1F22;
    --hairline: #26262A;
    --border: #26262A;
    --text: #EDEDEF;
    --text-muted: #A3A3AB;
    --link: #5B9DF9;
    --link-hover: #7FB4FB;
    --primary-bg: #EDEDEF;
    --primary-fg: #0F0F10;
    --info-soft: #16293D;  --info-text: #5B9DF9;
    --success-soft: #16281D; --success-text: #6EC08D;
    --danger-soft: #3A1F1F; --danger-text: #F0736D;
    --pace-slow: #8FA3B4;
    --tier-sc: #7383C8; --tier-hc: #C0687A; --tier-district: #7C8794;
    --tier-tribunal: #4A928C; --tier-consumer: #A87B4E; --tier-regulator: #A87AA9;
    --tier-fg: #0F0F10;
    --shadow-1: 0 1px 2px rgba(0,0,0,.30), 0 3px 10px rgba(0,0,0,.28);
    --shadow-2: 0 1px 2px rgba(0,0,0,.40);
    --shadow-3: 0 2px 8px rgba(0,0,0,.44), 0 12px 32px rgba(0,0,0,.50);
    --shadow-inset-hi: inset 0 1px 0 rgba(255,255,255,.06);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 4px; }
h1, h2, h3, p { margin: 0; }

.skip { position: absolute; left: 16px; top: 12px; transform: translateY(-200%); padding: 10px 14px; background: var(--surface);
  border-radius: var(--radius-md); z-index: 10; }
.skip:focus { transform: none; box-shadow: var(--shadow-3), var(--focus-ring); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- header ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text);
  text-decoration: none; font-weight: 700; font-size: 17px; letter-spacing: -.3px; min-height: var(--tap-min); }
.brand img { width: 28px; height: 28px; display: block; }
.by { font-size: 14px; font-weight: 500; color: var(--text-muted); text-decoration: none;
  min-height: var(--tap-min); display: inline-flex; align-items: center; }
.by:hover { color: var(--text); }
.by span { color: var(--link); }

/* ---------- hero ---------- */
.hero { display: grid; gap: 40px; padding-top: 32px; padding-bottom: 56px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.1fr .9fr; gap: 56px; padding-top: 56px; padding-bottom: 88px; } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-info { background: var(--info-soft); color: var(--info-text); }
.pill-success { background: var(--success-soft); color: var(--success-text); }
.pill-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

h1 { font-size: clamp(34px, 7.4vw, 54px); line-height: 1.08; letter-spacing: -1.4px;
  font-weight: 700; margin: 20px 0 20px; }
h1 span { display: block; }  /* phrase-per-line: keeps "appear in," together at every width */
.lede { font-size: 18px; line-height: 1.6; color: var(--text-muted); max-width: 34em; }
.lede strong { color: var(--text); font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap-min); padding: 0 18px; border-radius: var(--radius-md);
  border: 1px solid transparent; font-size: 15px; font-weight: 600; text-decoration: none; }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); box-shadow: var(--shadow-inset-hi), var(--shadow-2); }
.btn-primary:hover { color: var(--primary-fg); opacity: .9; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: var(--shadow-2); }
.btn-secondary:hover { color: var(--text); background: var(--surface-sunk); }

/* ---------- sample matter card (matters.html density A) ---------- */
.sample { margin: 0; }
.sample-stack { position: relative; }
.mcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3); padding: 14px 16px 16px; }
.mcard + .mcard { margin-top: 12px; box-shadow: var(--shadow-1); }
.mcard.unread { border-left: 3px solid var(--link); }
.mmeta { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 8px; }
.mno { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp { font-size: 15px; font-weight: 600; line-height: 1.35; }
.mv { font-size: 14px; color: var(--text-muted); line-height: 1.35; margin-bottom: 12px; }
.mfoot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 600; white-space: nowrap; }
.dchip-today { background: var(--danger-soft); color: var(--danger-text); }
.dchip-far { background: var(--surface-sunk); color: var(--text-muted); }
.live { display: flex; align-items: center; gap: 8px; background: var(--success-soft); color: var(--success-text);
  border-radius: var(--radius-sm); padding: 7px 12px; font-size: 12px; font-weight: 600; margin-bottom: 12px;
  flex-wrap: wrap; }
.live .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto;
  animation: pulse 1.8s cubic-bezier(.4,0,.2,1) infinite; }
.live .rt { margin-left: auto; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
.pace { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pace-slow { color: var(--pace-slow); }
.sample figcaption { font-size: 13px; color: var(--text-muted); margin-top: 14px; }

/* ---------- court badge (locked 2026-07-30) ---------- */
.badge { display: inline-flex; align-items: center; padding: 3px 7px; border-radius: var(--radius-sm);
  font-size: 11px; font-weight: 700; letter-spacing: .4px; line-height: 1.5;
  color: var(--tier-fg); background: var(--tier-district); white-space: nowrap; flex: 0 0 auto; }
.badge-sc { background: var(--tier-sc); }
.badge-hc { background: var(--tier-hc); }
.badge-district { background: var(--tier-district); }
.badge-tribunal { background: var(--tier-tribunal); }
.badge-consumer { background: var(--tier-consumer); }
.badge-regulator { background: var(--tier-regulator); }

/* ---------- sections ---------- */
.section { padding: 56px 0; border-top: 1px solid var(--border); }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.overline { font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); }
h2 { font-size: clamp(26px, 4.6vw, 34px); line-height: 1.2; letter-spacing: -.7px; font-weight: 700;
  margin: 10px 0 14px; text-wrap: balance; }
.intro { font-size: 17px; color: var(--text-muted); max-width: 40em; }

.grid { display: grid; gap: 12px; margin-top: 32px; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 16px; } }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1); overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; min-height: var(--tap-min); }
.card-icon { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-sunk);
  color: var(--text-muted); display: grid; place-items: center; }
.card-label { font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--text-muted); }
.card-body { padding: 14px 16px 18px; border-top: 1px solid var(--hairline); }
.card-body h3 { font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.35; margin-bottom: 6px; }
.card-body p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }

.split { display: grid; gap: 28px; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.badges .badge { font-size: 12px; padding: 5px 10px; }
.forums { padding: 20px; }
.forums p { font-size: 15px; color: var(--text-muted); margin-top: 16px; }

.consara { padding: 24px; display: grid; gap: 16px; }
@media (min-width: 720px) { .consara { padding: 32px; } }
.consara p { font-size: 16px; color: var(--text-muted); max-width: 44em; }
.consara p strong { color: var(--text); font-weight: 600; }
.fine { font-size: 13px; color: var(--text-muted); }

.contact { font-size: 18px; }
.contact a { font-weight: 600; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--text-muted); }
footer p { display: flex; flex-wrap: wrap; gap: 4px 10px; }
footer .sep { color: var(--text-muted); }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; align-content: center; gap: 16px; padding-top: 48px; padding-bottom: 48px; }
.nf h1 { margin: 0; }

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