/* DocketDecoder site. MooseBase recipes (surfaces, line, type, radii, motion) with DocketDecoder's own accent.
   Layout: a 56px top bar, a 960px column for the landing page, a 720px prose column for legal pages. */

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

:root {
  --card: #ffffff;
  --canvas: oklch(0.985 0 0);
  --elevated: oklch(0.98 0 0);
  --recessed: oklch(0.96 0 0);
  --tint: oklch(0.97 0 0);
  --hairline: oklch(0.935 0 0);
  --line: oklch(0.145 0 0 / 0.1);
  --foreground: #161616;
  --muted-foreground: #64748b;
  /* DocketDecoder accent: blueprint blue. 6.9:1 on card. Only for things you can click. */
  --primary: oklch(0.48 0.17 258);
  --primary-foreground: #ffffff;
  --ring: oklch(0.48 0.17 258);
  --ok: #16a34a;
  --warn: #d97706;

  --font-sans: Geist, "Geist Variable", system-ui, sans-serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-bevel: inset 0 1px 0 0 rgb(255 255 255 / 0.18);
  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --card: oklch(0.17 0 0);
    --canvas: oklch(0.12 0 0);
    --elevated: oklch(0.205 0 0);
    --recessed: oklch(0.145 0 0);
    --tint: oklch(0.269 0 0);
    --hairline: oklch(0.269 0 0);
    --line: oklch(0.32 0 0);
    --foreground: oklch(0.985 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --primary: oklch(0.74 0.13 258);
    --primary-foreground: oklch(0.145 0 0);
    --ring: oklch(0.74 0.13 258);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --card: oklch(0.17 0 0);
  --canvas: oklch(0.12 0 0);
  --elevated: oklch(0.205 0 0);
  --recessed: oklch(0.145 0 0);
  --tint: oklch(0.269 0 0);
  --hairline: oklch(0.269 0 0);
  --line: oklch(0.32 0 0);
  --foreground: oklch(0.985 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --primary: oklch(0.74 0.13 258);
  --primary-foreground: oklch(0.145 0 0);
  --ring: oklch(0.74 0.13 258);
  color-scheme: dark;
}

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

body {
  margin: 0;
  background: var(--card);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 28px;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--card);
}

h1, h2, h3 { font-weight: 600; text-wrap: balance; margin: 0; }
p { margin: 0; }
strong { font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

a { color: var(--primary); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-md); }

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 768px) {
  .wrap {
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
}
.wrap.prose-col { max-width: calc(720px + 48px); }

/* Top bar */
.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  background: var(--card);
  box-shadow: inset 0 -1px 0 var(--line);
}
.topbar .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--foreground); text-decoration: none; font-size: 16px; font-weight: 600; }
.wordmark svg { flex: none; }
.topnav { display: flex; gap: 4px; font-size: 14px; line-height: 20px; }
.topnav a { color: var(--foreground); text-decoration: none; padding: 6px 10px; border-radius: var(--radius-md); font-weight: 500; }
.topnav a:hover { background: var(--tint); }
@media (max-width: 480px) { .topnav .hide-sm { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-md); border: 0;
  font: 500 14px/20px var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform 100ms var(--ease-out-strong);
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: var(--primary-foreground);
  background: linear-gradient(color-mix(in oklch, var(--primary) 88%, white), var(--primary));
  box-shadow: var(--shadow-bevel), 0 0 0 1px color-mix(in oklch, var(--primary) 90%, black);
}
.btn-primary:hover { background: linear-gradient(color-mix(in oklch, var(--primary) 80%, white), var(--primary)); }
.btn-outline { color: var(--foreground); background: var(--card); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-xs); }
.btn-outline:hover { background: var(--tint); }

/* Sections */
main { display: flex; flex-direction: column; }
.section { padding-block: 64px; }
.section + .section { box-shadow: inset 0 1px 0 var(--hairline); }
.section-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 24px; max-width: 640px; }
.section-head h2 { font-size: 24px; line-height: 32px; }
.muted { color: var(--muted-foreground); }
.label { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.02em; color: var(--muted-foreground); }

/* Hero */
.hero { padding-block: 64px 48px; display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; } }
.hero-copy { display: flex; flex-direction: column; gap: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.12; letter-spacing: -0.01em; }
.hero .lede { font-size: 18px; line-height: 28px; color: var(--muted-foreground); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Docket card: real filings */
.docket { background: var(--card); border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.docket-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; background: var(--elevated); box-shadow: inset 0 -1px 0 var(--line); font-size: 13px; line-height: 18px; }
.docket-head .title { font-weight: 600; font-size: 14px; }
.entry { padding: 14px 16px; display: grid; gap: 4px; font-size: 14px; line-height: 20px; }
.entry + .entry { box-shadow: inset 0 1px 0 var(--hairline); }
.entry-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.entry-id { font-weight: 500; font-variant-numeric: tabular-nums; }
.entry-figure { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.entry-meta { font-size: 13px; line-height: 18px; color: var(--muted-foreground); font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 8px; border-radius: 9999px; font-size: 12px; line-height: 16px; font-weight: 500; background: var(--recessed); color: var(--foreground); box-shadow: inset 0 0 0 1px var(--hairline); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 9999px; background: var(--warn); flex: none; }
.docket-foot { padding: 10px 16px; background: var(--elevated); box-shadow: inset 0 1px 0 var(--line); font-size: 12px; line-height: 16px; color: var(--muted-foreground); }

/* Sources grid */
.grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.source { padding: 16px; border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.source h3 { font-size: 16px; line-height: 24px; }
.source p { font-size: 14px; line-height: 20px; color: var(--muted-foreground); }

/* Pricing */
.plan { padding: 24px; border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 16px; background: var(--card); }
.plan.featured { box-shadow: inset 0 0 0 1px var(--line); background: var(--elevated); }
.plan-name { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-name h3 { font-size: 18px; line-height: 28px; }
.price { display: flex; align-items: baseline; gap: 4px; }
.price .amount { font-size: 36px; line-height: 40px; font-weight: 600; font-variant-numeric: tabular-nums; }
.price .per { font-size: 14px; color: var(--muted-foreground); }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14px; line-height: 20px; }
.plan li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; }
.plan li svg { margin-top: 2px; color: var(--muted-foreground); }
.plan .btn { margin-top: auto; }
.fine { font-size: 13px; line-height: 18px; color: var(--muted-foreground); margin-top: 16px; }

/* Policy summary + contact */
.facts { display: grid; gap: 0; border-radius: var(--radius-xl); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.fact { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 16px; font-size: 14px; line-height: 20px; }
@media (min-width: 640px) { .fact { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; } }
.fact + .fact { box-shadow: inset 0 1px 0 var(--hairline); }
.fact dt { font-weight: 500; }
.fact dd { margin: 0; color: var(--muted-foreground); }
.fact dd a { color: var(--primary); }

/* Footer */
.footer { box-shadow: inset 0 1px 0 var(--line); padding-block: 24px 32px; font-size: 13px; line-height: 18px; color: var(--muted-foreground); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.footer a { color: var(--muted-foreground); }
.footer a:hover { color: var(--foreground); }

/* Legal prose */
.prose { padding-block: 32px 64px; max-width: 720px; }
.prose h1 { font-size: 32px; line-height: 40px; }
.prose .updated { margin-top: 4px; font-size: 14px; color: var(--muted-foreground); }
.prose h2 { font-size: 20px; line-height: 28px; margin-top: 40px; margin-bottom: 8px; }
.prose p, .prose ul { margin: 0 0 16px; }
.prose ul { padding-left: 20px; }
.prose li + li { margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
